Repository navigation
docs(openspec): plan #2369 speed up startup-import probes - #2985
Merged
Merged
Conversation
This was referenced Nov 1, 2026
dan-petty
added a commit
that referenced
this pull request
Nov 1, 2026
This change removes the plan folder `openspec/changes/2369-the-startup-import-tests-start-56/`. The Service staged it in pull request #2985. The plan drops `-X importtime` from the startup-import probe. Its goal is half of the CPU time of `tests/test_cli_startup_imports.py`. The measure shows that the flag does not change the CPU time. The ratio of a probe without the flag to a probe with it is 0.97 to 1.02. So the plan cannot meet its goal. The issue goes back to New with the evidence. A new item can re-scope it after #2164 moves this budget into a `devops ci` row. Plans #2369
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.
Plans #2369
Replace -X importtime with a sys.modules dump in the 56 startup-import probes. The budget check only needs the set of module names, which sys.modules provides at the end of the run. The -X importtime flag stays for the failure diagnostic: when a budget is breached, the probe re-runs with -X importtime to build the ten-slowest-imports message. All 56 probes, all four limits, and the control test are unchanged. The file takes at most half its present CPU time over three runs of pytest tests/commands/test_cli_startup_imports.py -n 0.
Change:
openspec/changes/2369-the-startup-import-tests-start-56/