Skip to content

docs(openspec): plan #4472 name the replaced selection test - #5463

Merged
dan-petty merged 1 commit into
mainfrom
docs/4472-name-the-replaced-selection-test
Nov 13, 2026
Merged

dan-petty merged 1 commit into
mainfrom
docs/4472-name-the-replaced-selection-test

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Plans #4472

The plan chooses the workers of a narrowed devops ci test run from the collected tests, so task 1.1 replaces the test that asserts the file-count rule, test_a_selection_past_the_serial_limit_runs_on_the_capped_workers, with test_a_selection_past_the_collected_test_limit_runs_on_the_capped_workers. The implement guard lets a step remove or rename a test only when the plan on the default branch names it in ## Weakened checks. The plan did not name it, so the runner stopped group 1 with the class tests_lost. This change adds the section with that test, what it stopped and the safeguard that takes its place.

Change: openspec/changes/4472-a-narrowed-ci-test-runs-many/

Plans #4472

The plan chooses the workers of a narrowed `devops ci test` run from the collected tests, so task 1.1 replaces the test that asserts the file-count rule, `test_a_selection_past_the_serial_limit_runs_on_the_capped_workers`, with `test_a_selection_past_the_collected_test_limit_runs_on_the_capped_workers`. The implement guard lets a step remove or rename a test only when the plan on the default branch names it in `## Weakened checks`. The plan did not name it, so the runner stopped group 1 with the class `tests_lost`. This change adds the section with that test, what it stopped and the safeguard that takes its place.

Change: `openspec/changes/4472-a-narrowed-ci-test-runs-many/`
@dan-petty dan-petty added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 13, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

After this merges, comment implement: retry on #4472, and the Service runs the implement job of #4472 again.

Proof on the pushed head (a93ca83)

  • uv run devops roadmap plan-check 5463 --json gives [] (no problem: stage gates, group size, title, body, Semantic PR title).
  • openspec validate 4472-a-narrowed-ci-test-runs-many --strict gives Change '4472-a-narrowed-ci-test-runs-many' is valid.
  • weakened_checks reads 1 entry, and recorded_tests gives tests/commands/test_test_selection.py::test_a_selection_past_the_serial_limit_runs_on_the_capped_workers.
  • unrecorded_tests on the lost test of the stop comment, with merged_recorded_tests at the head, gives {}. At origin/main the plan records no test, which is why the runner stopped.

Other tests of the plan

The stop comment of #4472 names one lost test only. Group 1 adds cases and edits the helpers _pytest_runs and _started_runs. Group 2 edits test_staged_sources_select_the_worktrees_tests, test_a_test_run_past_its_timeout_fails_naming_its_command_and_timeout, the helpers _run_recording_handlers, _devops_ci_test and _invoke, and keeps each test name. Group 3 changes documents only. The step guard (lost_since) compares test names only, so no other test needs an entry.

The step after the merge

The stop has the class tests_lost, with the action wait, so a new runner image does not clear it (src/devops_cli/roadmap/stop_clear.py). A trusted comment (owner, member or collaborator) with the exact text implement: retry on issue #4472, after the last <!-- devops roadmap implement --> comment of the job, clears it (retry_asked in src/devops_cli/roadmap/implement/implement.py). The Service then sets the Status that derive_status gives (Planned, because the plan is on main) through write_status. Do not set the Status label by hand. Post the comment only after the merge: the job reads the plan on origin/main, so a retry before the merge stops again with tests_lost.

@dan-petty

Copy link
Copy Markdown
Owner Author

Bottom line: this plan correction is ready for review. The independent review found no defect in the plan. A person merges it, then posts implement: retry on #4472.

Plan Check proof:

  • The CI job Plan Check has the conclusion skipped on this pull request. Its condition in .github/workflows/pr-title.yml runs it only for a pull request that devops-cli-service[bot] opened, and an agent opened this pull request. Thus the CI run gives no Plan Check proof here.
  • The local proof: uv run devops roadmap plan-check 5463 --json gives [] on the head a93ca83. I ran it again after main moved to 2bdc9a2 (release 0.130.0, after feat(roadmap): make the attempt limits of the failing jobs settings #5490), and it still gives [].
  • All other CI checks that ran on a93ca83 pass. Dependency Freshness, Test Job Duration and Tests on Main are skipped by their triggers.

Next steps:

  1. A person merges this pull request.
  2. After the merge, a trusted author posts one comment on fix(ci): a narrowed ci test runs many slow tests serially #4472 with the exact text implement: retry. Do not post it before the merge: the implement job reads the plan at origin/main and stops again with tests_lost.

@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 18:05
@dan-petty
dan-petty merged commit b4ae104 into main Nov 13, 2026
22 checks passed
@dan-petty
dan-petty deleted the docs/4472-name-the-replaced-selection-test branch November 13, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/openspec OpenSpec changes, specs and their checks type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant