Skip to content

gh-157628: regrtest: Only report a leak if all runs leak one FD - #157629

Merged
vstinner merged 3 commits into
python:mainfrom
vstinner:regrtest_refleak
Sep 16, 2026
Merged

vstinner merged 3 commits into
python:mainfrom
vstinner:regrtest_refleak

Conversation

@vstinner

@vstinner vstinner commented Sep 16, 2026

Copy link
Copy Markdown
Member

In regrtest, only consider that a test leaks if all test runs leak at least one file descriptor. For example, ignore "[0, 1, -1] file descriptors, sum=0" deltas, instead of reporting it as a leak.

Add a regression test.

In regrtest, only consider that a test leaks if all test runs leak at
least one file descriptor. For example, ignore "[0, 1, -1] file
descriptors, sum=0" deltas, instead of reporting it as a leak.

Add a regression test.
@vstinner vstinner added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Sep 16, 2026
@vstinner
vstinner enabled auto-merge (squash) September 16, 2026 16:44
@vstinner
vstinner merged commit bba171e into python:main Sep 16, 2026
60 checks passed
@vstinner
vstinner deleted the regrtest_refleak branch September 16, 2026 17:15
@miss-islington-app

Copy link
Copy Markdown

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington-app

Copy link
Copy Markdown

Sorry, @vstinner, I could not cleanly backport this to 3.15 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker bba171ea02669b6fdd3c58eaa886f414436ee223 3.15

@miss-islington-app

Copy link
Copy Markdown

Sorry, @vstinner, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker bba171ea02669b6fdd3c58eaa886f414436ee223 3.14

@miss-islington-app

Copy link
Copy Markdown

Sorry, @vstinner, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker bba171ea02669b6fdd3c58eaa886f414436ee223 3.13

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

Labels

needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant