Repository navigation
Description
Problem Description
devops ci test <files> runs pytest with one serial worker (-n 0) when it gets 12 test files or fewer (_narrowed_workers in src/devops_cli/commands/ci.py, DEFAULT_CI_TEST_SERIAL_MAX_FILES = 12). The rule counts files, not tests or their time. Some files hold many slow tests: tests/roadmap/implement/test_roadmap_implement_job.py and test_roadmap_implement_step.py run real git in each test, and one test takes about 10 seconds. A selection of 7 such files is 399 tests. Serial, it ran past the 1800 s timeout of devops ci test, and the command stopped it.
Reproduction Steps
- On a host with load (load average 40 to 50 on 16 CPUs), run
uv run devops ci test tests/roadmap/implement/test_roadmap_implement_extension.py tests/roadmap/implement/test_roadmap_implement_job.py tests/roadmap/implement/test_roadmap_implement_job_extension.py tests/roadmap/implement/test_roadmap_implement_limits.py tests/roadmap/implement/test_roadmap_implement_step.py tests/roadmap/implement/test_roadmap_implement_tool_log.py tests/roadmap/test_roadmap_mcp.py. - The command runs
pytest -n 0on the 7 files.
Expected vs Actual Behavior
Expected: a narrowed run sizes its workers by the work it selects, so a selection of many slow tests uses several workers and ends well inside the timeout.
Actual: the run was serial. After 30 minutes it had run 134 of 399 tests, and the command stopped it at its 1800 s timeout. On the same host, pytest -n 6 ran 264 of the other tests of the same selection in 114 s.
Environment Diagnostics
devops-cli main at c653bde, devcontainer, Python 3.14, pytest-xdist 3.8.0. Several agents ran checks on the same host.
Logs, Traces, or Terminal Output
tests/roadmap/implement/test_roadmap_implement_job_extension.py ..uv --preview-features malware-check,check-command run pytest -n 0 tests/roadmap/implement/... ran past its 1800s timeout and was stopped with every process it started.
Elapsed: 30m 2s
Related: #4405 and #4427 (the speed of the full local check); #1669 and #1717 set the serial rule for small selections.
Proposed design
Problem statement
A narrowed devops ci test run chooses serial execution from the number of test files. Seven files with 399 slow tests ran serially and hit the 1800 s timeout. The command must size its workers from the selected test work, not from the file count.
Acceptance criteria
Requirement: Collected tests choose workers
devops ci test SHALL choose its worker count from the number of collected tests when the caller gives no -n.
Scenario: Many tests in few files
- WHEN The selected files collect more than
DEFAULT_CI_TEST_SERIAL_MAX_TESTStests. - THEN The command runs pytest with
-n DEFAULT_CI_TEST_NARROWED_WORKERS.
Requirement: Small selections stay serial
devops ci test SHALL run pytest with -n 0 when the selected tests collect no more than DEFAULT_CI_TEST_SERIAL_MAX_TESTS tests.
Scenario: Few collected tests
- WHEN The selected files collect 12 tests and the caller gives no
-n. - THEN The command runs pytest with
-n 0.
Requirement: Keyword filter changes the count
The worker decision SHALL count only the tests that match the -k filter.
Scenario: Keyword filter leaves few tests
- WHEN The selected files collect 399 tests and
-kmatches 5 tests. - THEN The command runs pytest with
-n 0.
Requirement: Collection uses the run selection
The command MUST collect tests with the same target list and keyword filter that it passes to pytest.
Scenario: Collection command arguments
- WHEN The caller passes two test files and
-k slow. - THEN The collection command contains both file paths and
-k slow.
Requirement: Collection failure falls back
When pytest collection fails, the command SHALL fall back to the file-count rule and continue.
Scenario: Collection error
- WHEN The collection command exits non-zero for a selection of 7 files.
- THEN The command uses the file-count rule and prints a warning that names the collection failure.
Requirement: Explicit workers win
An explicit -n value from the caller MUST override the automatic worker count.
Scenario: Explicit worker count
- WHEN The caller passes
-n 2for a selection of 399 tests. - THEN The command runs pytest with
-n 2.
Requirement: Full suite keeps addopts
A run with no paths SHALL keep the existing behavior and pass no -n value.
Scenario: Full suite run
- WHEN The caller passes no paths.
- THEN The command runs pytest with no
-noption, soaddoptsapplies.
Existing Tool Considered
No alternatives check has run. pytest-xdist is already the maintained parallel runner, but it has no policy that sizes workers from the selected work. The change adds a small policy to _narrowed_workers. Estimated build cost is about 2,000 tokens to write, 4,000 tokens to keep and fix, and half a day of elapsed time.
Key questions
- How should the command measure the work of a narrowed run?: Collect the selected tests with pytest and use their count for the worker decision. (best practice) [sources: src/devops_cli/commands/ci.py:1823, src/devops_cli/config/defaults.py:469, src/devops_cli/config/defaults.py:470]
- Chosen: Count collected tests. It measures the tests that the run starts, and pytest already provides collection.
- Rejected: Keep the file count. It made 7 files with 399 tests run serially.
- Rejected: Read a duration cache. No maintained duration cache exists in the project.
- Rejected: Always use parallel workers. It pays xdist start-up cost for a selection of a few fast tests.
- What threshold should keep a narrowed run serial?: Use a new
DEFAULT_CI_TEST_SERIAL_MAX_TESTSof 50 collected tests. (best practice) [sources: src/devops_cli/config/defaults.py:469, src/devops_cli/config/defaults.py:470]- Chosen: 50 collected tests. It keeps xdist start-up away from tiny selections and puts the 399-test case in parallel.
- Rejected: 12 files. It ignores the number of tests in each file.
- Rejected: Always parallel. It adds xdist start-up to a selection of one or two fast tests.
- Should the
-kfilter change the collected test count?: Yes. The collection command must pass the same-kfilter as the run. (best practice) [sources: src/devops_cli/commands/ci.py]- Chosen: Apply
-k. The filter changes the tests that the run starts. - Rejected: Ignore
-k. A narrow keyword selection would start parallel workers for tests that it does not run.
- Chosen: Apply
- What should the command do when pytest collection fails?: Fall back to the file-count rule and print a warning that names the collection failure. (best practice) [sources: src/devops_cli/commands/ci.py]
- Chosen: Fall back to the file count. The run still starts, and the existing rule limits the change.
- Rejected: Stop the command. A collection error would hide the test result that the run can still report.
- Rejected: Always use parallel workers. It can start many workers for a selection that the file-count rule would keep serial.
- Should an explicit
-nvalue win over the automatic worker count?: Yes. A caller's-nvalue must remain the final choice. (best practice) [sources: src/devops_cli/commands/ci.py]- Chosen: Keep the override. The caller can choose the worker count for the host.
- Rejected: Ignore the override. It removes control that the command already gives a person.
- Should
--repeatuse the new worker count?: No.--repeatkeeps-n 0because it needs a deterministic shuffled order. (best practice) [sources: src/devops_cli/commands/ci.py]- Chosen: Keep
--repeatserial. The seed and the order must stay stable across runs. - Rejected: Use the new worker count. Parallel workers make the shuffled order harder to reproduce.
- Chosen: Keep
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-11: in-use.
The item already names this tool.
Tool: pytest-xdist (https://pypi.org/project/pytest-xdist), MIT, last activity 2025-07-01, not maintained.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(ci)scope of the title gives the scope.A common operation (narrowed test run) hits a hard 1800 s timeout and is killed, blocking developer work.Developers running a small file selection of slow tests cannot complete the run, but the affected path is one of several test invocation modes.The fix changes the worker-count rule in one function from file count to test count or duration.Both address local test slowness, but #4405 diagnoses the full devops ci check while the candidate fixes the serial-worker rule for narrowed ci test selections.devops-cli-service commentedon Nov 11, 2026
Status set to Ready at 54743c4 (see proposed design in issue body).
devops-cli-service commentedon Nov 11, 2026
Alternatives check: in-use
Reason: The searches surfaced pytest-xdist as the parallel test runner that the project already uses, and it does provide parallel worker processes with
-n/-n autoand per-file/scope distribution. It does not, however, size workers from the number of collected tests or keep small selections serial, so the worker-count policy in_narrowed_workersstill has to be written in the project.The item already names this tool.
Tool: pytest-xdist (https://pypi.org/project/pytest-xdist)
Covers:
Lacks:
Tools considered:
Searches run:
Sources:
Checked on 2026-11-11. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 12, 2026
Staged: branch
fix/4472-a-narrowed-ci-test-runs-many, draft pull request #4917. The pull request plans the item and closes no issue.The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:
The default branch changed these paths that the plan names, after the commit that the planner read. Read the commits before you judge the plan:
src/devops_cli/commands/ci.py: 59bfc57 fix(ci): replay a changed gate check in fail-to-pass (fix(ci): replay a changed gate check in fail-to-pass #4898)src/devops_cli/lang/en/messages.py: 59bfc57 fix(ci): replay a changed gate check in fail-to-pass (fix(ci): replay a changed gate check in fail-to-pass #4898)src/devops_cli/lang/en/help.py: 59bfc57 fix(ci): replay a changed gate check in fail-to-pass (fix(ci): replay a changed gate check in fail-to-pass #4898)docs/TESTING.md: e80db62 perf(ci): direct pytest runs wait for a gate slot (perf(ci): direct pytest runs wait for a gate slot #4901)docs/CLI_REFERENCE.md: 59bfc57 fix(ci): replay a changed gate check in fail-to-pass (fix(ci): replay a changed gate check in fail-to-pass #4898)docs/commands/ci.md: 59bfc57 fix(ci): replay a changed gate check in fail-to-pass (fix(ci): replay a changed gate check in fail-to-pass #4898)A model review of the plan found these open findings. The stage keeps this pull request a draft with the label
plan/needs-fixuntil a later round clears them:ignores_existing_codeat group 1: Group 1 addscollection_argvas a second builder of the pytest collection command, while the repository already holds that command in_form_failure(src/devops_cli/roadmap/implement/implement_step.py:1428) and already holds a builder ofuv run pytestwith the-kfilter and targets in_build_test_cmd(src/devops_cli/commands/ci.py:1809), the file group 1 reads. The change should extract and reuse one builder instead of writing a third one in a new module. Evidence: "argv = [BIN_UV, "run", BIN_PYTEST, "--collect-only", "-q", "--", form.path]"A model review of the plan found these points. They stop no draft, and a person judges them:
otherat group 2: The new collection call runs on every narroweddevops ci test, but the plan patchesrun_subprocessonly in the cases it adds totests/commands/test_test_selection.py. Other tests that drive a narrowed run and double onlyasyncio.create_subprocess_execstart a realuv run pytest --collect-only, whichrefuse_nested_test_runsfails, and tests that count pytest calls (for exampletests/commands/test_ci.py:1887,tests/ci/test_ci_gate_admission.py:169) see the extra collection call. The group names no task for these tests, so its own verify command fails. Evidence: "Add a helper that patchesrun_subprocessindevops_cli.commands.ciwith a fake that answers the collection command and refuses any other command, and give the parametrized worker case its collection answer too."ignores_existing_codeat group 2: The plan adds a helper that patchesrun_subprocessin the module under test, although the project already fakes the process-runner seam withProcessFakeand theprocess_fakefixture, whichtests/commands/test_test_selection.pyalready imports and uses. The existing fake answers a scriptedrun_subprocesscall and records it, so the new helper builds what the repository already holds. Evidence: "Installs an in-memoryProcessFakeinto the process runner seam."otherat group 2: Decision 7 says a dry run makes no collection call, but the group's implementation guards only a given-n, the full suite and--repeat. A--dry-runnarrowed run therefore still makes the collection,run_subprocessanswers it with an empty dry-run result, and the command reads zero tests and prints-n 0instead of the worker count the real run would use. Evidence: "Make no collection call when the caller gives-n, when no path is given, or in a dry run."ignores_existing_codeat group 1: Group 1 adds a newcollected_teststhat counts the test-id lines of a quiet pytest collection, but the project already holds the publiccollected_itemsinsrc/devops_cli/roadmap/implement/implement_test_form.py, which does exactly that and returns zero for a collection with no item; the plan duplicates it instead of reusing or moving it. Evidence: "def collected_items(output: str) -> int:"missing_pathat group 2: The new collection runs in every narroweddevops ci test, but the plan changes no file fortests/commands/test_ci.pyandtests/ci/test_ci_gate_admission.py, whose narrowed-run tests answer onlyrecord_spawns; the collection there would start a realuv run pytest --collect-onlyin the suite, contrary to the plan's claim that all tests of the command useprocess_fake. Evidence: "result = runner.invoke(app, ["test", "tests/test_x.py"])"otherat group 2: The new count function starts the collection through_run_in_own_session, whose stop-signal handlers cancel the task, but the plan handles onlysubprocess.TimeoutExpiredand the exit codes. A Ctrl-C, SIGTERM or SIGHUP during the collection therefore escapes as an unhandled cancellation instead of exiting as cancelled the way_session_returncodedoes, so the collection path breaks the stop behavior thatdevops ci testalready has. Evidence: "returns None onsubprocess.TimeoutExpiredand on any exit code except 0 and 5 with the warning printed"The runs of the planner and the review made 228 model request(s), and used 16931155 input tokens and 360938 output tokens. The tool calls, in order:
search_code({"text":"_narrowed_workers"})search_code({"text":"DEFAULT_CI_TEST_SERIAL_MAX_FILES"})read_file({"path":"src/devops_cli/commands/ci.py","start_line":1780,"end_line":1990})read_file({"path":"src/devops_cli/config/defaults.py","start_line":465,"end_line":495})read_file({"end_line":640,"path":"tests/commands/test_test_selection.py","start_line":1})read_file({"end_line":660,"path":"tests/commands/test_test_selection.py","start_line":520})read_spec({"capability":"ci-test-selection"})search_code({"text":"collect-only"})read_spec({"capability":"ci-test-stop"})read_spec({"capability":"ci-gate-rows"})read_file({"path":"tests/support/fakes/process.py"})read_file({"path":"tests/support/session_spawns.py"})read_file({"path":"tests/support/fakes/process.py","start_line":216})search_code({"text":"def process_fake"})read_file({"path":"tests/support/fakes/process.py","start_line":430,"end_line":520})search_code({"text":"tests collected"})search_code({"text":"serial_max"})search_code({"text":"collect-only"})search_code({"text":"collect_only"})search_code({"text":"tests collected"})read_file({"path":"tests/roadmap/implement/test_roadmap_implement_test_form.py","start_line":90,"end_line":150})read_file({"path":"src/devops_cli/roadmap/implement/implement_test_form.py"})search_code({"text":"_pytest_runs"})search_code({"text":"ci_app, [\"test\""})search_code({"text":"devops\", \"ci\", \"test"})search_code({"text":"numprocesses"})read_file({"path":"tests/commands/test_ci.py","start_line":1440,"end_line":1500})search_code({"text":"1800"})search_code({"text":"DEFAULT_CI_TEST_SERIAL_MAX_TESTS"})list_files({"directory":"src/devops_cli/ci"})read_file({"path":"tests/commands/test_test_selection.py","start_line":380,"end_line":470})search_code({"text":"def run_subprocess"})search_code({"text":"selection_fallback"})read_file({"path":"src/devops_cli/core/process.py","start_line":900,"end_line":1000})read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":1740,"end_line":1800})search_code({"text":"num_workers"})search_code({"text":"worker"})read_file({"path":"src/devops_cli/lang/en/help.py","start_line":760,"end_line":800})read_file({"path":"docs/TESTING.md","start_line":150,"end_line":170})read_issue({"number":1669})search_code({"text":"DEFAULT_CI_TEST_SERIAL_MAX_FILES"})search_code({"text":"DEFAULT_CI_TEST_SERIAL_MAX_TESTS"})read_file({"path":"src/devops_cli/config/defaults.py","start_line":455,"end_line":495})list_files({"directory":"tests/ci"})read_file({"path":"src/devops_cli/commands/ci.py","start_line":1790,"end_line":1935})read_file({"path":"tests/commands/test_test_selection.py","start_line":540,"end_line":620})read_file({"end_line":545,"path":"tests/commands/test_test_selection.py","start_line":480})search_code({"text":"num_workers"})list_files({"directory":"docs/commands"})search_code({"text":"def collected_items"})search_code({"text":"num_workers"})search_code({"text":"selection_fallback"})search_code({"text":"test_collected_items"})list_files({"directory":"tests/support/fakes"})search_code({"text":"num_workers: str"})search_code({"text":"def process_fake"})list_files({"directory":"src/devops_cli/ci"})read_file({"end_line":790,"path":"src/devops_cli/lang/en/help.py","start_line":765})read_file({"end_line":1780,"path":"src/devops_cli/lang/en/messages.py","start_line":1750})search_code({"text":"CLI_REFERENCE.md"})read_file({"end_line":470,"path":"tests/support/fakes/process.py","start_line":400})read_file({"end_line":60,"path":"tests/commands/test_test_selection.py","start_line":1})read_file({"path":"tests/support/session_spawns.py"})file_symbols({"path":"src/devops_cli/core/process.py"})search_code({"text":"--collect-only"})search_code({"text":"def _match_answer"})read_file({"path":"src/devops_cli/roadmap/implement/implement_test_form.py","start_line":60,"end_line":130})search_code({"text":"collected_items("})read_file({"end_line":1450,"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1420})search_code({"text":"_ITEM_MARK"})search_code({"text":"setattr(\"devops_cli.commands.ci"})search_code({"text":"monkeypatch.setattr(ci, \"run_subprocess\""})search_code({"text":"_form_failure("})search_code({"text":", \"run_subprocess\""})search_code({"text":"run_subprocess\", "})read_file({"end_line":1975,"path":"tests/commands/test_ci.py","start_line":1900})read_spec({"capability":"ci-test-selection"})list_files({"directory":"tests/roadmap/implement"})list_files({"directory":"tests/roadmap"})references({"name":"_narrowed_workers"})references({"name":"DEFAULT_CI_TEST_SERIAL_MAX_FILES"})list_files({"directory":"src/devops_cli/ci"})list_files({"directory":"tests/ci"})read_file({"path":"src/devops_cli/commands/ci.py","start_line":1770,"end_line":1960})read_file({"path":"src/devops_cli/config/defaults.py","start_line":460,"end_line":500})search_code({"text":"def _report_audit"})read_file({"path":"src/devops_cli/core/process.py","start_line":1,"end_line":90})search_code({"text":"serial_limit"})search_code({"text":"num_workers"})read_spec({})read_file({"path":"tests/commands/test_test_selection.py","start_line":540,"end_line":640})read_file({"path":"src/devops_cli/commands/ci.py","start_line":330,"end_line":380})search_code({"text":"Number of parallel worker processes"})read_spec({"capability":"ci-test-selection"})references({"name":"DEFAULT_CI_TEST_SERIAL_MAX_FILES"})read_spec({"capability":"ci-test-shards"})search_code({"text":"SERIAL_MAX"})read_file({"path":"docs/TESTING.md","start_line":140,"end_line":185})search_code({"text":"addopts"})read_file({"path":"tests/support/session_spawns.py","start_line":1,"end_line":80})read_file({"path":"tests/support/fakes/process.py","start_line":1,"end_line":120})search_code({"text":"run_subprocess"})search_code({"text":"devops_cli.commands.ci.run_subprocess"})search_code({"text":"patch run_subprocess"})search_code({"text":"setattr(ci_module"})search_code({"text":"test_telemetry_semconv"})search_code({"text":"-n logical"})search_code({"text":"def process_fake"})list_files({"directory":"tests/telemetry"})search_code({"text":"test_collected_items_counts_the_lines_that_hold_a_test_id"})read_file({"path":"tests/support/fakes/process.py","start_line":400,"end_line":470})search_code({"text":"sync-readme"})search_code({"text":"name=\"docs\""})read_file({"path":"tests/commands/test_test_selection.py","start_line":490,"end_line":542})read_file({"path":"tests/telemetry/test_telemetry_semconv.py","start_line":1,"end_line":40})search_code({"text":"DEFAULT_CI_TEST_SERIAL_MAX_TESTS"})search_code({"text":"run_subprocess"})file_symbols({"path":"tests/telemetry/test_telemetry_semconv.py"})read_file({"end_line":100,"path":"tests/telemetry/test_telemetry_semconv.py","start_line":40})read_file({"end_line":300,"path":"tests/telemetry/test_telemetry_semconv.py","start_line":210})read_file({"end_line":400,"path":"tests/support/fakes/process.py","start_line":300})search_code({"text":"def run_subprocess("})search_code({"text":"PlannedProcessResult"})read_issue({"number":4898})read_file({"end_line":1440,"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1410})list_files({"directory":"tests/roadmap/implement"})list_files({"directory":"changelog.d"})search_code({"text":"class CIMessages"})read_file({"end_line":830,"path":"src/devops_cli/commands/ci.py","start_line":780})read_file({"end_line":140,"path":"tests/support/session_spawns.py","start_line":80})search_code({"text":"_started_runs("})read_file({"end_line":490,"path":"tests/commands/test_test_selection.py","start_line":440})read_file({"end_line":1010,"path":"src/devops_cli/core/process.py","start_line":900})search_code({"text":"ci\", \"test"})search_code({"text":"\"test\", \"src/"})read_file({"end_line":1920,"path":"tests/commands/test_ci.py","start_line":1860})read_file({"end_line":440,"path":"tests/commands/test_test_selection.py","start_line":370})search_code({"text":"[\"test\", \"tests/"})read_file({"end_line":2620,"path":"tests/commands/test_ci.py","start_line":2570})read_file({"end_line":200,"path":"tests/ci/test_ci_gate_admission.py","start_line":140})read_file({"end_line":140,"path":"tests/ci/test_ci_gate_admission.py","start_line":1})search_code({"text":"process_fake"})search_code({"text":"_narrowed_workers"})read_file({"path":"tests/commands/test_test_selection.py","start_line":1,"end_line":80})search_code({"text":"class ProcessFake"})read_file({"path":"tests/commands/test_test_selection.py","start_line":520,"end_line":640})read_file({"path":"tests/support/fakes/process.py","start_line":120,"end_line":260})search_code({"text":"def process_fake"})read_file({"path":"src/devops_cli/commands/ci.py","start_line":1790,"end_line":1960})read_file({"end_line":470,"path":"tests/support/fakes/process.py","start_line":425})read_file({"end_line":120,"path":"tests/support/fakes/process.py","start_line":1})read_file({"path":"src/devops_cli/config/defaults.py","start_line":465,"end_line":495})read_file({"path":"docs/TESTING.md","start_line":155,"end_line":165})search_code({"text":"def run_subprocess_async"})search_code({"text":"def record_spawns"})read_file({"end_line":1230,"path":"src/devops_cli/core/process.py","start_line":1154})read_file({"end_line":120,"path":"tests/support/session_spawns.py","start_line":40})read_file({"end_line":425,"path":"tests/support/fakes/process.py","start_line":259})list_files({"directory":"tests/roadmap/implement"})list_files({"directory":"src/devops_cli/ci"})search_code({"text":"num_workers"})search_code({"text":"num_workers"})search_code({"text":"selection_fallback"})read_file({"end_line":800,"path":"src/devops_cli/lang/en/help.py","start_line":760})list_files({"directory":"docs/commands"})search_code({"text":"ci-test-selection"})search_code({"text":"def run("})search_code({"text":"create_subprocess_exec"})read_file({"end_line":660,"path":"src/devops_cli/core/process.py","start_line":480})read_file({"end_line":1155,"path":"src/devops_cli/core/process.py","start_line":1050})references({"name":"DEFAULT_CI_TEST_SERIAL_MAX_FILES"})list_files({"directory":"tests/ci"})read_file({"end_line":1800,"path":"src/devops_cli/commands/ci.py","start_line":1700})search_code({"text":"addopts ="})search_code({"text":"DEFAULT_CI_TEST_SERIAL_MAX_TESTS"})search_code({"text":"--collect-only"})list_files({"directory":"docs"})search_code({"text":"class CIMessages"})read_file({"path":"src/devops_cli/config/defaults.py","start_line":455,"end_line":500})read_spec({"capability":"ci-test-selection"})search_code({"text":"_narrowed_workers"})search_code({"text":"DEFAULT_CI_TEST_SERIAL_MAX_FILES"})file_symbols({"path":"tests/support/fakes/process.py"})read_file({"path":"tests/commands/test_test_selection.py","start_line":55,"end_line":90})list_files({"directory":"src/devops_cli/ci"})list_files({"directory":"tests/ci"})read_file({"end_line":640,"path":"tests/commands/test_test_selection.py","start_line":560})search_code({"text":"test_a_narrowed_run_chooses_its_workers_and_the_full_suite_keeps_addopts"})search_code({"text":"def _started_runs"})read_file({"end_line":1935,"path":"src/devops_cli/commands/ci.py","start_line":1815})search_code({"text":"numprocesses"})search_code({"text":"num_workers"})search_code({"text":"class CIMessages"})search_code({"text":"Number of parallel worker processes"})read_file({"path":"tests/commands/test_test_selection.py","start_line":1,"end_line":40})search_code({"text":"test_collected_items_counts_the_lines_that_hold_a_test_id"})references({"name":"DEFAULT_CI_TEST_SERIAL_MAX_FILES"})list_files({"directory":"tests/roadmap/implement"})read_file({"path":"src/devops_cli/commands/ci.py","start_line":1790,"end_line":1960})read_spec({})read_spec({"capability":"ci-test-selection"})read_file({"path":"src/devops_cli/config/defaults.py","start_line":455,"end_line":500})search_code({"text":"_started_runs"})search_code({"text":"DEFAULT_CI_TEST_NARROWED_WORKERS"})read_file({"path":"tests/commands/test_test_selection.py","start_line":500,"end_line":660})search_code({"text":"def _run("})read_file({"path":"src/devops_cli/commands/ci.py","start_line":300,"end_line":400})search_code({"text":"def process_fake"})read_file({"path":"tests/support/fakes/process.py","start_line":300,"end_line":520})search_code({"text":"_session_returncode"})search_code({"text":"def _invoke_test_with"})read_file({"path":"src/devops_cli/commands/ci.py","start_line":260,"end_line":300})read_file({"path":"tests/commands/test_test_selection.py","start_line":440,"end_line":500})references({"name":"DEFAULT_CI_TEST_SERIAL_MAX_FILES"})read_spec({"capability":"ci-test-shards"})search_code({"text":"\"docs\":"})search_code({"text":"def get_check_spec"})read_file({"path":"src/devops_cli/commands/ci.py","start_line":700,"end_line":800})read_file({"end_line":920,"path":"src/devops_cli/commands/ci.py","start_line":800})list_files({"directory":"tests/ci"})search_code({"text":"def answer("})read_file({"end_line":300,"path":"tests/support/fakes/process.py","start_line":220})search_code({"text":"narrowed"})search_code({"text":"async def run_subprocess_async"})read_file({"path":"tests/support/session_spawns.py"})read_file({"path":"src/devops_cli/core/process.py","start_line":1154,"end_line":1240})search_code({"text":"@app.command()"})search_code({"text":"devops ci docs"})read_file({"end_line":80,"path":"tests/commands/test_test_selection.py","start_line":25})list_files({"directory":"tests/roadmap/implement"})search_code({"text":"test_collected_items_counts_the_lines_that_hold_a_test_id"})search_code({"text":"collect-only"})read_issue({"number":4898})read_issue({"number":4472})search_code({"text":"process_fake.calls"})search_code({"text":"call_count"})search_code({"text":"mirror"})search_code({"text":"generated"})search_code({"text":"CLI_REFERENCE"})search_code({"text":"REGENERATE_DOCUMENTS"})search_code({"text":"by hand"})search_code({"text":"docs/commands"})read_file({"end_line":785,"path":"src/devops_cli/lang/en/help.py","start_line":760})search_code({"text":"class CIMessages"})read_file({"end_line":1780,"path":"src/devops_cli/lang/en/messages.py","start_line":1745})search_code({"text":"collect"})search_code({"text":"collected"})read_file({"end_line":140,"path":"tests/roadmap/implement/test_roadmap_implement_test_form.py","start_line":90})search_code({"text":"collected_items"})read_file({"end_line":95,"path":"src/devops_cli/roadmap/implement/implement_test_form.py","start_line":1})search_code({"text":"_pytest_runs(process_fake)"})search_code({"text":"called[0]"})read_file({"end_line":990,"path":"tests/commands/test_test_selection.py","start_line":840})search_code({"text":"ci_app, [\"test\""})search_code({"text":"record_spawns"})read_file({"end_line":380,"path":"tests/commands/test_ci.py","start_line":330})read_file({"end_line":100,"path":"tests/ci/test_ci_gate_admission.py","start_line":60})read_file({"end_line":200,"path":"tests/ci/test_ci_gate_admission.py","start_line":100})search_code({"text":"[\"test\", \"tests/"})search_code({"text":"\"test\", \"--dry-run\""})read_file({"path":"tests/commands/test_ci.py","start_line":2470,"end_line":2535})search_code({"text":"set_process_runner"})read_spec({"capability":"ci-gate-admission"})read_file({"path":"src/devops_cli/roadmap/implement/implement_test_form.py"})search_code({"text":"collected_items"})search_code({"text":"\"test\", \"tests/"})search_code({"text":"record_spawns"})read_file({"path":"tests/support/session_spawns.py"})read_file({"path":"tests/commands/test_ci.py","start_line":2470,"end_line":2620})read_file({"path":"tests/ci/test_ci_gate_admission.py","start_line":130,"end_line":200})read_file({"path":"tests/commands/test_ci.py","start_line":330,"end_line":400})read_file({"end_line":130,"path":"tests/ci/test_ci_gate_admission.py","start_line":1})read_file({"path":"src/devops_cli/config/defaults.py","start_line":455,"end_line":495})read_file({"path":"src/devops_cli/commands/ci.py","start_line":1800,"end_line":1940})read_file({"path":"tests/commands/test_test_selection.py","start_line":25,"end_line":90})read_file({"path":"tests/commands/test_test_selection.py","start_line":520,"end_line":660})read_file({"path":"tests/support/fakes/process.py"})search_code({"text":"def fake_uv"})read_file({"path":"tests/support/fakes/process.py","start_line":216,"end_line":330})search_code({"text":"fake_uv"})read_file({"end_line":2700,"path":"tests/commands/test_ci.py","start_line":2620})search_code({"text":"[\"test\","})read_file({"end_line":80,"path":"tests/commands/test_ci.py","start_line":1})read_file({"end_line":1900,"path":"tests/commands/test_ci.py","start_line":1860})search_code({"text":"_pytest_runs(process_fake)"})read_file({"end_line":1460,"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1420})search_code({"text":"repeat_seed_unavailable"})read_file({"end_line":790,"path":"src/devops_cli/lang/en/help.py","start_line":760})read_file({"end_line":1790,"path":"src/devops_cli/lang/en/messages.py","start_line":1755})read_spec({"capability":"ci-test-selection"})search_code({"text":"Number of parallel worker processes"})read_file({"end_line":165,"path":"docs/TESTING.md","start_line":155})search_code({"text":"def process_fake"})read_file({"end_line":470,"path":"tests/support/fakes/process.py","start_line":330})list_files({"directory":"src/devops_cli/ci"})list_files({"directory":"tests/ci"})read_file({"end_line":80,"path":"tests/commands/test_ci_repeat.py","start_line":40})search_code({"text":"_invoke("})read_file({"end_line":215,"path":"tests/commands/test_ci_repeat.py","start_line":136})search_code({"text":"markers"})search_code({"text":"live:"})references({"name":"collected_items"})references({"name":"_narrowed_workers"})search_code({"text":"DEFAULT_CI_TEST_SERIAL_MAX_FILES"})search_code({"text":"_narrowed_workers"})read_file({"path":"src/devops_cli/commands/ci.py","start_line":1815,"end_line":1935})read_file({"path":"src/devops_cli/config/defaults.py","start_line":472,"end_line":490})read_file({"path":"src/devops_cli/lang/en/help.py","start_line":770,"end_line":778})search_code({"text":"repeat_seed_unavailable: str"})references({"name":"collected_items"})read_file({"path":"src/devops_cli/roadmap/implement/implement_test_form.py","start_line":78,"end_line":95})read_file({"end_line":76,"path":"tests/commands/test_test_selection.py","start_line":66})read_file({"end_line":446,"path":"tests/support/fakes/process.py","start_line":436})list_files({"directory":"docs"})read_file({"end_line":70,"path":"tests/commands/test_ci.py","start_line":62})list_files({"directory":"docs/commands"})search_code({"text":"def test_a_selection_past_the_serial_limit_runs_on_the_capped_workers"})search_code({"text":"_started_runs"})search_code({"text":"def test_a_narrowed_run_chooses_its_workers_and_the_full_suite_keeps_addopts"})read_file({"end_line":600,"path":"tests/commands/test_test_selection.py","start_line":525})search_code({"text":"def run_subprocess_async"})file_symbols({"path":"src/devops_cli/core/process.py"})read_file({"path":"src/devops_cli/core/process.py","start_line":1154,"end_line":1200})read_file({"end_line":200,"path":"tests/support/fakes/process.py","start_line":1})read_file({"end_line":120,"path":"tests/support/session_spawns.py","start_line":1})read_file({"end_line":1815,"path":"src/devops_cli/commands/ci.py","start_line":1780})read_file({"end_line":20,"path":"src/devops_cli/roadmap/implement/implement_test_form.py","start_line":1})read_file({"end_line":1450,"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1415})search_code({"text":"_ITEM_MARK"})read_file({"end_line":2520,"path":"tests/commands/test_ci.py","start_line":2460})read_file({"end_line":2620,"path":"tests/commands/test_ci.py","start_line":2570})read_file({"end_line":1155,"path":"src/devops_cli/core/process.py","start_line":1117})read_file({"end_line":262,"path":"tests/commands/test_ci.py","start_line":2520})read_file({"end_line":200,"path":"tests/ci/test_ci_gate_admission.py","start_line":140})read_file({"end_line":210,"path":"tests/commands/test_ci_repeat.py","start_line":180})read_issue({"number":4898})find_issues({"terms":"narrowed workers collected tests"})read_file({"end_line":1795,"path":"src/devops_cli/lang/en/messages.py","start_line":1755})read_spec({"capability":"ci-test-selection"})list_files({"directory":"src/devops_cli/ci"})search_code({"text":"\"pytest\" in call.argv"})search_code({"text":"\"test\", \"tests/"})read_file({"end_line":720,"path":"tests/commands/test_test_selection.py","start_line":692})read_file({"end_line":990,"path":"tests/commands/test_test_selection.py","start_line":960})list_files({"directory":"src/devops_cli/ci"})list_files({"directory":"tests/ci"})read_file({"path":"src/devops_cli/commands/ci.py","start_line":1780,"end_line":1940})read_file({"path":"src/devops_cli/config/defaults.py","start_line":465,"end_line":495})search_code({"text":"def _run_in_own_session"})search_code({"text":"name=\"docs\""})search_code({"text":"test_a_selection_past_the_serial_limit_runs_on_the_capped_workers"})search_code({"text":"docs"})read_file({"path":"src/devops_cli/commands/ci.py","start_line":780,"end_line":830})read_file({"path":"src/devops_cli/commands/ci.py","start_line":240,"end_line":300})search_code({"text":"def _run("})read_file({"path":"tests/commands/test_test_selection.py","start_line":540,"end_line":620})read_file({"path":"tests/support/fakes/process.py","start_line":300,"end_line":520})read_file({"path":"tests/commands/test_test_selection.py","start_line":480,"end_line":542})search_code({"text":"async def run_subprocess_async"})search_code({"text":"create_subprocess_exec"})read_file({"path":"src/devops_cli/core/process.py","start_line":1080,"end_line":1240})read_spec({})search_code({"text":"ci docs"})read_file({"path":"src/devops_cli/lang/en/help.py","start_line":760,"end_line":790})read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":1765,"end_line":1790})read_spec({"capability":"ci-test-shards"})read_spec({"capability":"ci-test-selection"})references({"name":"DEFAULT_CI_TEST_SERIAL_MAX_FILES"})references({"name":"DEFAULT_CI_TEST_NARROWED_WORKERS"})read_file({"path":"tests/commands/test_ci.py","start_line":60,"end_line":72})read_file({"path":"tests/commands/test_ci.py","start_line":1775,"end_line":1795})read_file({"path":"tests/commands/test_ci.py","start_line":1875,"end_line":1900})read_file({"path":"tests/commands/test_ci.py","start_line":2480,"end_line":2540})search_code({"text":"--collect-only"})read_file({"path":"tests/support/session_spawns.py","start_line":40,"end_line":60})read_file({"path":"tests/commands/test_ci_repeat.py","start_line":180,"end_line":215})read_file({"path":"tests/commands/test_test_selection.py","start_line":62,"end_line":76})read_file({"path":"src/devops_cli/commands/ci.py","start_line":295,"end_line":400})search_code({"text":"[\"test\","})read_file({"path":"tests/commands/test_test_selection.py","start_line":420,"end_line":480})read_file({"path":"tests/ci/test_ci_gate_admission.py","start_line":140,"end_line":200})read_file({"path":"tests/commands/test_ci.py","start_line":2560,"end_line":2625})read_file({"path":"src/devops_cli/roadmap/implement/implement_test_form.py","start_line":44,"end_line":95})references({"name":"collected_items"})read_file({"path":"tests/roadmap/implement/test_roadmap_implement_test_form.py","start_line":100,"end_line":120})read_issue({"number":4898})find_issues({"terms":"narrowed serial workers"})search_code({"text":"\"test\""})read_file({"path":"tests/commands/test_ci_dry_run.py","start_line":30,"end_line":90})search_code({"text":"addopts"})read_file({"path":"tests/commands/test_ci.py","start_line":2430,"end_line":2482})read_file({"path":"tests/commands/test_ci.py","start_line":2620,"end_line":2700})read_spec({"capability":"ci-test-stop"})read_spec({"capability":"ci-test-shards","requirement":"Each shard collects only its own test files"})read_spec({"capability":"ci-test-shards","requirement":"The test row runs one shard of the suite"})references({"name":"Number of parallel worker processes"})list_files({"directory":"tests/ci/__snapshots__"})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1420,"end_line":1460})search_code({"text":"collect_only"})read_file({"path":"tests/commands/test_ci.py","start_line":2700,"end_line":2790})references({"name":"ci/changed_tests.py"})references({"name":"changed_tests"})read_file({"path":"tests/support/fakes/process.py","start_line":225,"end_line":300})search_code({"text":"criteria"})search_code({"text":"\"run\", \"pytest\""})Tool calls: file_symbols=4 (empty=0), find_issues=2 (empty=0), list_files=30 (empty=0), read_file=168 (empty=0), read_issue=6 (empty=0), read_spec=20 (empty=0), references=15 (empty=0), search_code=160 (empty=10)
The stage job read the open pull requests and their files in 1 GraphQL request(s).
fix(roadmap): the constants gate reads only a stated value (#5042)
feat(roadmap): extend stage review rounds while open findings drop (#…
76 remaining items
devops-cli-service commentedon Nov 13, 2026
Stopped at fix.
Failed check:
Fail-to-Pass Check. The end of its log:Failure class:
provider.Action taken: none.
Action left:
retry: run the item again.Fail-to-Pass CheckReason:
Last message of the agent (a claim that no check verified): none.
The item is Blocked, and the job will not run it. Fix the cause. Then comment
implement: retry. The Service clears the stop on its own when a new runner image rolls out, but only if a retry can fix the class of the stop and the limits ofroadmap.implement.digest_clears_per_classandroadmap.implement.digest_clears_per_itemallow it.devops-cli-service commentedon Nov 13, 2026
The runner Job devops-cli-runner-20261113-232637-e65d ended: succeeded.
Image digest: sha256:76078f1cd06ba1c79bbdbce51d140440096425772751c1ed283bfcc3a93475da
The last lines of its log:
fix(ci): Skip the collection in the tests that read the pytest run (#…
fix(ci): Describe the collected-test worker rule in the docs (#4472)
fix(ci): Make check Tests & Coverage pass (#4472)
fix(ci): Prove the collected-test worker rule on the base (#4472)
docs(openspec): archive the change (#4472)
devops-cli-service commentedon Nov 14, 2026
Released in v0.136.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.136.0
devops-cli-service commentedon Nov 14, 2026
Live since 2026-11-14 02:41 UTC
fix(ci): bound the narrowed test workers and their collection (#5614)