-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Stabilize test suite: fix flaky timing tests, add rerun support, and handle Windows resource leaks #11992
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
Dreamsorcerer
merged 30 commits into
aio-libs:master
from
rodrigobnogueira:fix/import-time-test-python-3.14
Feb 15, 2026
+68
−45
Merged
Stabilize test suite: fix flaky timing tests, add rerun support, and handle Windows resource leaks #11992
Changes from 26 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
d01078c
Fix flaky import time test for Python 3.12+
3597661
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a6313f9
Fix flaky test_regex_performance timing test
6ec38c6
Improve flaky test handling using pytest-rerunfailures
7b58495
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] afea84b
Fix socket leaks in TestShutdown suite for Windows CI
55e7368
reverting the windows socket handling. The scope might be growing too…
c81897f
Refactor get_flaky_threshold into rerun_adjusted_threshold fixture
4019cac
Marking flaky tests to rerun
a0ba5e4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9c60f37
Fix make_client_request fixture to prevent session leaks
0b181b6
fix: add Windows cleanup delay in secure_proxy_url fixture
e5efc52
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 1e8374a
fix: increase Windows cleanup delay to 0.5s with multiple gc passes
6c1a4b1
test: use extreme 5s delay to verify socket leak source
e55b246
test: add delay after gc.collect() to test async finalization
e99fea2
test: use thread polling instead of fixed sleep for Windows cleanup
1787cdd
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f3c5e29
test: use baseline thread detection for Windows cleanup
859da2d
fix: Improve thread cleanup in proxy test fixture by simplifying thre…
187b072
Add Windows socket warning filter for Py3.10/3.11
8e33e20
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] dbea725
refactor: introduce RerunThresholdParams NamedTuple for performance t…
114fc76
refactor: use asyncio.gather() for parallel cleanup in make_request f…
a07489e
Remove dynamic thresholds and use fixed values for performance tests
f781696
fix: suppress unraisable exception warnings on Windows for Python 3.1…
e5b3c1e
Update tests/conftest.py
rodrigobnogueira e2b107f
Inline regex/threshold constants & restore test_import_time best-of-3
2752514
Fix flaky test_uvloop_secure_https_proxy: use local server instead of…
cbc3021
refactor: move `best_time_ms` initialization after `PYTHONPATH` setup…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Fixed flaky performance tests by using appropriate fixed thresholds that account for CI variability -- by :user:`rodrigobnogueira`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.