Skip to content

gh-110918: Fix side effects of regrtest test_match_tests() #116718

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
Mar 13, 2024

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Mar 13, 2024

test_match_tests now saves and restores patterns.

Add get_match_tests() function to libregrtest.filter.

Previously, running test_regrtest multiple times in a row only ran tests once: "./python -m test test_regrtest -R 3:3.

test_match_tests now saves and restores patterns.

Add get_match_tests() function to libregrtest.filter.

Previously, running test_regrtest multiple times in a row only ran
tests once: "./python -m test test_regrtest -R 3:3.
@vstinner
Copy link
Member Author

Example: https://buildbot.python.org/all/#/builders/259/builds/1062

./python -E  -m test --slow-ci --timeout=12000 -R 3:3 -u-cpu -j10 
+ ./python -u -W default -bb -E -m test --slow-ci --timeout=12000 -R 3:3 -u-cpu -j10 --dont-add-python-opts
(...)
0:11:44 load avg: 16.09 [392/472/1] test_regrtest ran no tests (36.2 sec) -- running (7): test_socket (2 min 40 sec), test.test_concurrent_futures.test_wait (54.8 sec), test_imaplib (8 min 37 sec), test.test_multiprocessing_forkserver.test_processes (3 min 5 sec), test.test_multiprocessing_spawn.test_misc (1 min 47 sec), test_zipfile (1 min 31 sec), test_io (2 min 59 sec)
beginning 6 repetitions. Showing number of leaks (. for 0 or less, X for 10 or more)
123:456
(...)
Ran 111 tests in 35.743s

OK (skipped=2)
X
----------------------------------------------------------------------
Ran 0 tests in 0.000s

NO TESTS RAN

@vstinner vstinner added needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes labels Mar 13, 2024
@vstinner vstinner merged commit 612f1ec into python:main Mar 13, 2024
@vstinner vstinner deleted the test_match_tests branch March 13, 2024 13:20
@miss-islington-app
Copy link

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 13, 2024
…honGH-116718)

test_match_tests now saves and restores patterns.

Add get_match_tests() function to libregrtest.filter.

Previously, running test_regrtest multiple times in a row only ran
tests once: "./python -m test test_regrtest -R 3:3.
(cherry picked from commit 612f1ec)

Co-authored-by: Victor Stinner <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Mar 13, 2024

GH-116726 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Mar 13, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 13, 2024
…honGH-116718)

test_match_tests now saves and restores patterns.

Add get_match_tests() function to libregrtest.filter.

Previously, running test_regrtest multiple times in a row only ran
tests once: "./python -m test test_regrtest -R 3:3.
(cherry picked from commit 612f1ec)

Co-authored-by: Victor Stinner <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Mar 13, 2024

GH-116727 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Mar 13, 2024
vstinner added a commit that referenced this pull request Mar 13, 2024
…-116718) (#116726)

gh-110918: Fix side effects of regrtest test_match_tests() (GH-116718)

test_match_tests now saves and restores patterns.

Add get_match_tests() function to libregrtest.filter.

Previously, running test_regrtest multiple times in a row only ran
tests once: "./python -m test test_regrtest -R 3:3.
(cherry picked from commit 612f1ec)

Co-authored-by: Victor Stinner <[email protected]>
vstinner added a commit that referenced this pull request Mar 13, 2024
…-116718) (#116727)

gh-110918: Fix side effects of regrtest test_match_tests() (GH-116718)

test_match_tests now saves and restores patterns.

Add get_match_tests() function to libregrtest.filter.

Previously, running test_regrtest multiple times in a row only ran
tests once: "./python -m test test_regrtest -R 3:3.
(cherry picked from commit 612f1ec)

Co-authored-by: Victor Stinner <[email protected]>
vstinner added a commit to vstinner/cpython that referenced this pull request Mar 20, 2024
…hon#116718)

test_match_tests now saves and restores patterns.

Add get_match_tests() function to libregrtest.filter.

Previously, running test_regrtest multiple times in a row only ran
tests once: "./python -m test test_regrtest -R 3:3.
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
…hon#116718)

test_match_tests now saves and restores patterns.

Add get_match_tests() function to libregrtest.filter.

Previously, running test_regrtest multiple times in a row only ran
tests once: "./python -m test test_regrtest -R 3:3.
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
…hon#116718)

test_match_tests now saves and restores patterns.

Add get_match_tests() function to libregrtest.filter.

Previously, running test_regrtest multiple times in a row only ran
tests once: "./python -m test test_regrtest -R 3:3.
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.

1 participant