Skip to content

[3.15] Backport regrtest changes from the main branch - #163045

Merged
vstinner merged 3 commits into
python:3.15from
vstinner:regrtest15
Dec 3, 2026
Merged

vstinner merged 3 commits into
python:3.15from
vstinner:regrtest15

Conversation

@vstinner

@vstinner vstinner commented Dec 3, 2026

Copy link
Copy Markdown
Member

No description provided.

nascheme and others added 3 commits December 3, 2026 02:00
Store per-run deltas in array objects rather than lists of pooled
integers. Large, unique deltas could otherwise grow int_pool and make
the refleak checker report its own retained integers as reference leaks.

(cherry picked from commit b38e073)
When a test fails with "worker bug" and tests are rerun in verbose
mode, reset worker_bug so that tests are marked as success if the
failed test doesn't fail again when rerun in verbose mode.

TestResult.write_json_into(file) now calls also file.flush().

(cherry picked from commit f84083b)
When a test fails with "worker bug", no longer reruns failed tests in
verbose mode. Previously, re-running tests in verbose mode failed to
run a test called "<regrtest worker>".

(cherry picked from commit 352cc06)
@vstinner vstinner added tests Tests in the Lib/test dir skip news labels Dec 3, 2026
@vstinner vstinner added needs backport to 3.14 bugs and security fixes skip issue labels Dec 3, 2026
@vstinner
vstinner merged commit 8ea5514 into python:3.15 Dec 3, 2026
68 checks passed
@vstinner
vstinner deleted the regrtest15 branch December 3, 2026 07:17
@miss-islington-app

Copy link
Copy Markdown

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

@miss-islington-app

Copy link
Copy Markdown

Sorry, @vstinner, I could not cleanly backport this to 3.14 due to a conflict.

Please backport manually with cherry_picker, see the devguide for more information.

cherry_picker 8ea5514ecd320aa1e66fcb9cc9bbe057f9cd3d9e 3.14

@bedevere-app

bedevere-app Bot commented Dec 3, 2026

Copy link
Copy Markdown

GH-163056 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 Dec 3, 2026
vstinner added a commit that referenced this pull request Dec 3, 2026
)

[3.15] Backport regrtest changes from the main branch (#163045)

* gh-155981: Store refleak deltas in arrays (gh-55982)

Store per-run deltas in array objects rather than lists of pooled
integers. Large, unique deltas could otherwise grow int_pool and make
the refleak checker report its own retained integers as reference leaks.

(cherry picked from commit b38e073)

* Fix regrtest rerun: reset worker_bug (#162293)

When a test fails with "worker bug" and tests are rerun in verbose
mode, reset worker_bug so that tests are marked as success if the
failed test doesn't fail again when rerun in verbose mode.

TestResult.write_json_into(file) now calls also file.flush().

(cherry picked from commit f84083b)

* Do not rerun failed tests in regrtest on worker bug (#162780)

When a test fails with "worker bug", no longer reruns failed tests in
verbose mode. Previously, re-running tests in verbose mode failed to
run a test called "<regrtest worker>".

(cherry picked from commit 352cc06)

---------


(cherry picked from commit 8ea5514)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip issue skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants