Skip to content

[3.14] Backport regrtest changes from the main branch (#163045) - #163056

Merged
vstinner merged 1 commit into
python:3.14from
vstinner:regrtest14
Dec 3, 2026
Merged

vstinner merged 1 commit into
python:3.14from
vstinner:regrtest14

Conversation

@vstinner

@vstinner vstinner commented Dec 3, 2026

Copy link
Copy Markdown
Member

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 "".

(cherry picked from commit 352cc06)


(cherry picked from commit 8ea5514)

* pythongh-155981: Store refleak deltas in arrays (pythongh-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 (python#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 (python#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)

---------

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
(cherry picked from commit 8ea5514)
@vstinner
vstinner enabled auto-merge (squash) December 3, 2026 07:45
@vstinner
vstinner merged commit 4d3f628 into python:3.14 Dec 3, 2026
60 checks passed
@vstinner
vstinner deleted the regrtest14 branch December 3, 2026 08:22
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