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): the gate's test workers finish together and bandit stops competing with the test row #1734
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/bugType bug: the code does not do what it must
Split from #1725 (CI time budget), so that this row is one issue delivered by one pull request.
Friction
The gate's test row is its critical path, and two things lengthen it:
Worker imbalance: the slowest xdist worker finishes 47s after the median, and CI shows a 51s tail.
bandit competing with pytest: bandit over src and tests takes 21s alone but 61s beside pytest.
Remedy
Balance the workers with xdist's own scheduling, --dist worksteal.
Run bandit where it doesn't compete with the test row.
No check is dropped and no threshold lowered.
Measure the gate before and after on a quiet host.
Acceptance criteria
Revised after measuring. The host never went quiet, so the CI runner confirms the saving.
A replay of xdist's schedulers over a full run's test times shows the worksteal saving per worker count, and paired full runs show the slowest worker's tail shrinking.
Bandit runs at a lower CPU priority than the test row, with the same targets and threshold, and a test pins the argv.
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/bugType bug: the code does not do what it must
Activity
perf(ci): the gate's test workers steal work and Bandit runs under ni…
dan-petty commentedon Oct 20, 2026
What changed
#1745, merged into
release/v0.2.38as 3e3bc8c.10 file(s) changed.
How it was verified
Check runs at aaff739:
Acceptance Criteria of
docs/agent/tasks/task-1734-worksteal-and-niced-bandit.md:No Acceptance Criteria section.
feat(release): v0.2.38 (#1799)
feat(release): v0.2.38 (#1798)
fix(roadmap): intake calls a candidate a duplicate only when it asks …