8000 bpo-45200: GHA Address Sanitizer skips 3 slowest tests by vstinner · Pull Request #30797 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-45200: GHA Address Sanitizer skips 3 slowest tests #30797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2022
Merged

bpo-45200: GHA Address Sanitizer skips 3 slowest tests #30797

merged 1 commit into from
Jan 22, 2022

Conversation

vstinner
Copy link
Member
@vstinner vstinner commented Jan 22, 2022

Skip the 3 slowest tests of the Address Sanitizer CI of GitHub
Actions:

  • test_tools
  • test_peg_generator
  • test_concurrent_futures

These tests take between 5 and 20 minutes on this CI which makes this
CI job the slowest. Making this CI job faster makes the whole Python
workflow faster. These tests are run on all others CIs.

Example of Address Sanitizer output:

10 slowest tests:
- test_peg_generator: 17 min 33 sec
- test_tools: 8 min 27 sec
- test_concurrent_futures: 5 min 24 sec
- test_zipfile: 2 min 41 sec
- test_compileall: 2 min 21 sec
- test_asyncio: 2 min 17 sec
- test_gdb: 1 min 43 sec
- test_weakref: 1 min 35 sec
- test_pickle: 1 min 18 sec
- test_subprocess: 1 min 12 sec

Moreover, test_concurrent_futures also seems to be affected by
bpo-45200 bug: libasan dead lock in pthread_create().

https://bugs.python.org/issue45200

Skip the 3 slowest tests of the Address Sanitizer CI of GitHub
Actions:

* test_tools
* test_peg_generator
* test_concurrent_futures

These tests take between 5 and 20 minutes on this CI which makes this
CI job the slowest. Making this CI job faster makes the whole Python
workflow faster. These tests are run on all others CIs.

Example of Address Sanitizer output:

    10 slowest tests:
    - test_peg_generator: 17 min 33 sec
    - test_tools: 8 min 27 sec
    - test_concurrent_futures: 5 min 24 sec
    - test_zipfile: 2 min 41 sec
    - test_compileall: 2 min 21 sec
    - test_asyncio: 2 min 17 sec
    - test_gdb: 1 min 43 sec
    - test_weakref: 1 min 35 sec
    - test_pickle: 1 min 18 sec
    - test_subprocess: 1 min 12 sec

Moreover, test_concurrent_futures also seems to be affected by
bpo-45200 bug: libasan dead lock in pthread_create().
@vstinner
Copy link
Member Author
vstinner commented Jan 22, 2022

@pablogsal: Are you ok with that?

Moreover, test_concurrent_futures also seems to be affected by bpo-45200 bug: libasan dead lock in pthread_create().

See: https://bugs.python.org/issue45200#msg411273

@pablogsal
Copy link
Member

@pablogsal: Are you ok with that?

Moreover, test_concurrent_futures also seems to be affected by bpo-45200 bug: libasan dead lock in pthread_create().

See: https://bugs.python.org/issue45200#msg411273

Yeah, go ahead 🤘

@vstinner
Copy link
Member Author

Tests now take less than 10 minutes, that's better!

Tests / Address sanitizer (pull_request) Successful in 13m — Address sanitizer

== Tests result: SUCCESS ==

406 tests OK.

10 slowest tests:
- test_asyncio: 1 min 57 sec
- test_venv: 1 min 22 sec
- test_weakref: 1 min 13 sec
- test_subprocess: 1 min 6 sec
- test_gdb: 1 min 6 sec
- test_pickle: 1 min 1 sec
- test_compileall: 55.4 sec
- test_signal: 54.6 sec
- test_io: 50.9 sec
- test_regrtest: 44.9 sec

9 tests skipped:
    test_devpoll test_ioctl test_kqueue test_msilib test_startfile
    test_winconsoleio test_winreg test_winsound test_zipfile64

Total duration: 9 min 47 sec
Tests result: SUCCESS

@vstinner vstinner merged commit ce7d667 into python:main Jan 22, 2022
@vstinner vstinner deleted the gha_skip_concurrent_futures branch January 22, 2022 18:16
@vstinner
Copy link
Member Author

Ah, Python 3.10 doesn't have this CI job, so there is no need to backport it.

Yeah, go ahead metal

Thanks for the review. I merged my PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0