Skip to content

[3.15] gh-157628: regrtest: Only report a leak if all runs leak one FD (#157629) - #157753

Merged
vstinner merged 2 commits into
python:3.15from
vstinner:regrtest_refleak15
Oct 9, 2026
Merged

vstinner merged 2 commits into
python:3.15from
vstinner:regrtest_refleak15

Conversation

@vstinner

@vstinner vstinner commented Sep 18, 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.

(cherry picked from commit bba171e)

…python#157629)

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.

(cherry picked from commit bba171e)
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 9, 2026
@vstinner vstinner removed the type-feature A feature request or enhancement label Oct 9, 2026
@vstinner
vstinner merged commit 0a4f255 into python:3.15 Oct 9, 2026
64 of 66 checks passed
@vstinner
vstinner deleted the regrtest_refleak15 branch October 9, 2026 21:35
@miss-islington-app

Copy link
Copy Markdown

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

@bedevere-app

bedevere-app Bot commented Oct 9, 2026

Copy link
Copy Markdown

GH-159088 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 9, 2026
vstinner added a commit that referenced this pull request Oct 9, 2026
GH-157629) (GH-157753) (#159088)

[3.15] gh-157628: regrtest: Only report a leak if all runs leak one FD (GH-157629) (GH-157753)

gh-157628: regrtest: Only report a leak if all runs leak one FD (GH-157629)

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.
(cherry picked from commit 0a4f255)


(cherry picked from commit bba171e)

Co-authored-by: Victor Stinner <vstinner@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant