Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-109972: Split test_gdb into a package of 3 tests#109977
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
vstinner commentedSep 27, 2023
Test on PPC64LE RHEL8 3.x buildbot. When Python is built with With this change, it takes12 min 2 sec when tests are run in parallel. |
754d551 to534bdadComparevstinner commentedSep 28, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I splitted the test even more, I added test_cfunction and test_cfunction_full. Timings on my Fedora 38 x86-64: Timings on RHEL8 ppc64le, buildbot with slowest test_gdb: |
3c6bfc9 toc29b162Comparevstinner commentedSep 28, 2023
Hum, I went too far in terms of refactoring. I made this PR as simple as possible, to only split test_gdb into multiple files. I will write a follow-up PR for the heavy refactoring. |
Split test_gdb.py file into a test_gdb package made of multipletests, so tests can now be run in parallel.* Create Lib/test/test_gdb/ directory.* Split test_gdb.py into multiple files in Lib/test/test_gdb/ directory.* Move Lib/test/gdb_sample.py to Lib/test/test_gdb/ directory. Update get_sample_script(): use __file__ to locate gdb_sample.py.* Move gdb_has_frame_select() and HAS_PYUP_PYDOWN to test_misc.py.* Explicitly skip test_gdb on Windows. Previously, test_gdb was skipped even if gdb was available because of gdb_has_frame_select().
vstinner commentedSep 28, 2023
I added 5 minutes to buildbot timeout:python/buildmaster-config#408 Before, buildbots alwaysremoved 5 minutes to their default timeout of 20 minutes. I fixed this issue to have use more consistent timeouts on all Python CIs. |
miss-islington commentedSep 28, 2023
Thanks@vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
miss-islington commentedSep 28, 2023
Sorry,@vstinner, I could not cleanly backport this to |
Split test_gdb.py file into a test_gdb package made of multipletests, so tests can now be run in parallel.* Create Lib/test/test_gdb/ directory.* Split test_gdb.py into multiple files in Lib/test/test_gdb/ directory.* Move Lib/test/gdb_sample.py to Lib/test/test_gdb/ directory. Update get_sample_script(): use __file__ to locate gdb_sample.py.* Move gdb_has_frame_select() and HAS_PYUP_PYDOWN to test_misc.py.* Explicitly skip test_gdb on Windows. Previously, test_gdb was skipped even if gdb was available because of gdb_has_frame_select().
miss-islington commentedOct 4, 2023
Thanks@vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
miss-islington commentedOct 4, 2023
Sorry,@vstinner, I could not cleanly backport this to |
Split test_gdb.py file into a test_gdb package made of multipletests, so tests can now be run in parallel.* Create Lib/test/test_gdb/ directory.* Split test_gdb.py into multiple files in Lib/test/test_gdb/ directory.* Move Lib/test/gdb_sample.py to Lib/test/test_gdb/ directory. Update get_sample_script(): use __file__ to locate gdb_sample.py.* Move gdb_has_frame_select() and HAS_PYUP_PYDOWN to test_misc.py.* Explicitly skip test_gdb on Windows. Previously, test_gdb was skipped even if gdb was available because of gdb_has_frame_select().(cherry picked from commit8f324b7)
GH-110339 is a backport of this pull request to the3.12 branch. |
…110339)gh-109972: Split test_gdb.py into test_gdb package (#109977)Split test_gdb.py file into a test_gdb package made of multipletests, so tests can now be run in parallel.* Create Lib/test/test_gdb/ directory.* Split test_gdb.py into multiple files in Lib/test/test_gdb/ directory.* Move Lib/test/gdb_sample.py to Lib/test/test_gdb/ directory. Update get_sample_script(): use __file__ to locate gdb_sample.py.* Move gdb_has_frame_select() and HAS_PYUP_PYDOWN to test_misc.py.* Explicitly skip test_gdb on Windows. Previously, test_gdb was skipped even if gdb was available because of gdb_has_frame_select().(cherry picked from commit8f324b7)
…on#109977) (python#110339)pythongh-109972: Split test_gdb.py into test_gdb package (python#109977)Split test_gdb.py file into a test_gdb package made of multipletests, so tests can now be run in parallel.* Create Lib/test/test_gdb/ directory.* Split test_gdb.py into multiple files in Lib/test/test_gdb/ directory.* Move Lib/test/gdb_sample.py to Lib/test/test_gdb/ directory. Update get_sample_script(): use __file__ to locate gdb_sample.py.* Move gdb_has_frame_select() and HAS_PYUP_PYDOWN to test_misc.py.* Explicitly skip test_gdb on Windows. Previously, test_gdb was skipped even if gdb was available because of gdb_has_frame_select().(cherry picked from commit8f324b7)(cherry picked from commite7a61d3)
#110343)[3.12]gh-109972: Split test_gdb.py into test_gdb package (#109977) (#110339)gh-109972: Split test_gdb.py into test_gdb package (#109977)Split test_gdb.py file into a test_gdb package made of multipletests, so tests can now be run in parallel.* Create Lib/test/test_gdb/ directory.* Split test_gdb.py into multiple files in Lib/test/test_gdb/ directory.* Move Lib/test/gdb_sample.py to Lib/test/test_gdb/ directory. Update get_sample_script(): use __file__ to locate gdb_sample.py.* Move gdb_has_frame_select() and HAS_PYUP_PYDOWN to test_misc.py.* Explicitly skip test_gdb on Windows. Previously, test_gdb was skipped even if gdb was available because of gdb_has_frame_select().(cherry picked from commit8f324b7)(cherry picked from commite7a61d3)
Split test_gdb.py file into a test_gdb package made of multipletests, so tests can now be run in parallel.* Create Lib/test/test_gdb/ directory.* Split test_gdb.py into multiple files in Lib/test/test_gdb/ directory.* Move Lib/test/gdb_sample.py to Lib/test/test_gdb/ directory. Update get_sample_script(): use __file__ to locate gdb_sample.py.* Move gdb_has_frame_select() and HAS_PYUP_PYDOWN to test_misc.py.* Explicitly skip test_gdb on Windows. Previously, test_gdb was skipped even if gdb was available because of gdb_has_frame_select().
Uh oh!
There was an error while loading.Please reload this page.
Split test_gdb.py file into a test_gdb package made of multiple
tests, so tests can now be run in parallel.
directory.
Update get_sample_script(): usefile to locate gdb_sample.py.
skipped even if gdb was available because of
gdb_has_frame_select().