Repository navigation
perf(roadmap): parse only the test modules that name the registry - #4778
Merged
Merged
Conversation
counts_in returns no entry before ast.parse when the text of the module does not hold REGISTRY_COUNTS. A module that declares the counts assigns to that name, so the table does not change. registry_table makes the relative path only for a module that gives an entry. A test sees the calls of ast.parse through sys.monitoring (PEP 669) and patches no function.
Each call of check_proposal, check_gates and gate_arguments in tests/roadmap/stage that does not test the registry gate passes registry=(), so a test of another gate does not read the declarations of the tree. The test of a new roadmap limit gives the table of the checkout, because it checks a real declaration.
Owner
Author
Measurements (local, 16 CPUs, Python 3.14.10)The host had other load. The load average is given for each run.
Fail-to-pass
Scope
Owner stepsNone. The change touches no workflow, setting, manifest or the cluster. |
Owner
Author
CI measurementsAll runs are
|
dan-petty
marked this pull request as ready for review
November 11, 2026 19:12
dan-petty
enabled auto-merge (squash)
November 11, 2026 19:12
dan-petty
pushed a commit
that referenced
this pull request
Nov 11, 2026
🤖 I have created a release *beep* *boop* --- ## [0.113.0](v0.112.3...v0.113.0) (2026-11-11) ### Features * **roadmap:** detect merge conflicts on open ready pull requests ([#4766](#4766)) ([3f72e76](3f72e76)) ### Bug Fixes * **ci:** run the job-time alarm on the schedule only ([#4774](#4774)) ([60c0847](60c0847)) ### Performance Improvements * **roadmap:** parse only the test modules that name the registry ([#4778](#4778)) ([4b28980](4b28980)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
When a caller of
check_proposalorcheck_gatesgives no table, the registry gate callsregistry_table, which ranast.parseon each of the 1,340 test modules on each call (2 to 4 s).counts_innow returns no entry beforeast.parsewhen the text does not holdREGISTRY_COUNTS. A declaring module holds that name, so the table does not change, and only 7 modules are parsed. The stage gate tests passregistry=(), and the limit ratchet test gives the table of the checkout. A test sees theast.parsecalls throughsys.monitoringand patches nothing.Closes #4509
Change:
openspec/changes/archive/2026-11-11-4509-parse-only-the-test-modules-that/