Repository navigation
test: run the 1732 leg steps once and share tree scans (#3148) - #3151
Merged
Merged
Conversation
Owner
Author
|
Review verdict: needs changes at
Confirmed:
The fix goes to the original worker, and this head's CI is cancelled. |
- test_sweeps_on_latest_only_1732: TestTheStepSelectsByLeg's five tests become one, each a subtest under its old name, so setUpClass runs the steps on one xdist worker rather than on each that drew a test. - TestTheIgnoresAreTheLatestTier moves to test_latest_ignores_by_pytest_1732: its child pytest imports pcapkit, so the rest of 1732 is now a project pin. - tests/_sources.py: text, comments and per-file products of a parse, cached per process and checked against each file's inode, size, mtime and ctime; a file changed within RACY_NS is never kept, trees are not kept, and paths outside the checkout are never cached. - test_sources_loader_3148_unit pins that a same-size rewrite is read again. - ext_len 2854, per_class_import_guard, docs epilog 1936, docs roles 1103, issue refs in comments and unit_tests_queue's docs readers scan through it, so a repeated tree scan in one process parses each file once. The touched modules, tests/project and the root suites pass.
JarryShaw
force-pushed
the
test/3148-e2-project-pins
branch
from
November 27, 2026 16:33
af30782 to
28344fe
Compare
Owner
Author
|
Re-review verdict: good to go at
|
Documentation build overview
119 files changed ·
|
Contributor
|
Coverage: 94.79% (unit tier, Python 3.15,
Per-file detail: the |
Owner
Author
|
Ready to merge at |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Please follow the guide below
Put an
xinto every box [ ] that applies to your pull request (like this: [x])Use the Preview tab to see how your pull request will look
Searched for similar pull requests
Followed the coding style (
make pylint,make mypy,make isort)make testpasses, and a test case covers the changeDescribed the user-visible change below and left its changelog entry to the maintainer, keeping
docs/source/changelog/andCHANGELOG.mdout of the diff, if the change is user-visible: N/A — centralisedWhat is the purpose of your pull request?
Tick the commit type your subject line carries.
fix— corrects a defectfeat— adds a featureperf— changes performance, not behaviourrefactor— changes neither behaviour nor performancetest— tests onlydocs— documentation onlyci— workflows or build toolingrelease— bumps the version or rolls up a distributionchore— anything elseAlso tick if it regenerates constant or registry tables, members keeping their numeric values (the
constlabel)Description of your pull request and other information
Part of #3148, batch E2 (T7, T10). No
pcapkit/change. Times are local JUnit test-seconds, CPython 3.14,-n 4.TestTheStepSelectsByLeg: 5 tests → 1, a subtest per old name, no assertion removedPROJECT_PINS_SELECTORforLATEST_TIER_SELECTORinRun unit testsfails it on every off-latestleg; its own doctored step still differsTestTheIgnoresAreTheLatestTier→test_latest_ignores_by_pytest_1732.py, sois_project_pin()takes 1732 (pins gain only 1732)pcapkitfiles (43%)tests/_sources.py: text, comments and per-file parse products, keyed on inode, size, mtime and ctime; a file changed within 100 ms is never kept, nor trees, nor anything outside the checkoutpcapkit/and one intests/fail all 6 tree checkstest_sources_loader_3148_unit.py: a same-size rewrite under the checkout is read again(size, mtime)loader returns 48 of 50 rewrites stale; dropping the 100 ms rule fails 50, dropping inode/ctime fails the kept-file testunit_tests_queuedocs readers use itpcapkit's cost ~186 MiB and 0.31 s per fullgc.collect,tests/' ~446 MiB and 1.48 s, andrun_unittest_leg.pycollects every 10 tests.-n 4saved nothing, so no CI figure is claimed.974e1f48b9: touched modules;tests/project2493 passed, 88 skipped, and roottests/test_*.py266 passed, 1 skipped, at-n 2.