You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
perf(tests): the startup-import checks share interpreter starts instead of one python per test #1733
priority/p0-criticalPriority P0: a release blocker or a critical defectscope/ciGitHub Actions workflows, pre-commit hooks, CI gates, and runnerssource/agentFiled by an agenttype/testType test: a new or changed test
Split from #1725 (CI time budget), so that this row is one issue delivered by one pull request.
Friction
tests/test_cli_startup_imports.py checks what each command imports at startup by starting a fresh python -c interpreter in each test. That's 62 tests and 70-97s summed, the suite's second most expensive file.
Remedy
The checks share interpreter starts: one probe per distinct import set, or one per session that reports every command's imports.
Each test still asserts its own command's imports.
Every assertion stays.
Acceptance criteria
Revised after measuring. 9 of the file's 63 interpreter starts re-measured a command line another test had measured. A start per command line is itself what the checks measure, and sharing it would need a fork server.
Each command line's imports are measured in one interpreter start (63 starts become 54), with every assertion kept.
A test still over 5s records its reason in its docstring.
The startup-import checks in tests/test_cli_startup_imports.py start one interpreter per command line. Nine of the file's 63 interpreter starts re-measured a command line another test had already measured. This row was split from #1725's CI time budget.
priority/p0-criticalPriority P0: a release blocker or a critical defectscope/ciGitHub Actions workflows, pre-commit hooks, CI gates, and runnerssource/agentFiled by an agenttype/testType test: a new or changed test
Activity
perf(tests): the startup-import checks start one interpreter per comm…
dan-petty commentedon Oct 20, 2026
What changed
#1739, merged into
release/v0.2.38as eced8fb.4 file(s) changed.
How it was verified
Check runs at 0b2bc01:
Acceptance Criteria of
docs/agent/tasks/task-1733-startup-import-probes-once.md:No Acceptance Criteria section.
feat(release): v0.2.38 (#1799)
feat(release): v0.2.38 (#1798)