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(ci): pytest start-up and collection on the GitHub runner take half of today's 45 seconds #1735
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
On the GitHub runner, the gate's test step spends about 45s of 266s on start-up and collection. Every xdist worker collects all 11,099 tests: 8.4s serially on a quiet host and 22.9s at load 20. A narrowed -n 0 run of two 0.02s tests took 20.5s of wall time.
Remedy
Cut collection and session start-up at their source, for example:
imports a test module doesn't need at collection;
session fixtures that do work every run;
collection that every worker repeats.
Measure on the runner before and after.
Acceptance criteria
Revised after measuring #1763 on the runner. Start-up and collection went from 38.3s to 27.5s. The rest is each of the four xdist workers rewriting the test modules cold, which pytest cannot reuse across fresh checkouts without new machinery.
On the runner, the test row neither rebuilds its environment nor compiles site-packages per worker, and its start-up and collection drop from 38.3s, measured from the CI log.
A narrowed run of two trivial tests takes under 5s of wall time on a quiet host.
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(ci): the runner keeps its built environment and compiles bytecod…
dan-petty commentedon Oct 21, 2026
What changed
#1763, merged into
release/v0.2.38as 84bfc17.9 file(s) changed.
How it was verified
Check runs at de6aefd:
Acceptance Criteria of
docs/agent/tasks/task-1735-runner-startup-and-collection.md:No Acceptance Criteria section.
feat(release): v0.2.38 (#1799)
feat(release): v0.2.38 (#1798)
fix(security): refuse the uv and npm keys that run a program (#2749)