Skip to content

docs(openspec): plan #4472 Size narrowed test workers by collected tests - #4917

Merged
dan-petty merged 1 commit into
mainfrom
fix/4472-a-narrowed-ci-test-runs-many
Nov 13, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/4472-a-narrowed-ci-test-runs-many

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Plans #4472

A narrowed devops ci test run chose its worker count from the number of test files, so a selection of 7 files that hold 399 slow tests ran serially and hit the 1800 s timeout. The run sizes its workers from the tests that it selects, so that selection runs in parallel and ends inside the timeout (#4472). A collection that fails falls back to the file-count rule with a warning, an empty collection counts zero tests, and a given -n, a full-suite run, a dry run and --repeat keep their worker choice.

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

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix labels Nov 12, 2026
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The stage_ready row leaves pull request #4917 a draft. It holds the label plan/needs-fix, because the model review of its plan found an open finding. Fix the plan, or remove the label when the finding is no defect.

@devops-cli-service devops-cli-service Bot removed the verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix label Nov 12, 2026
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 12, 2026 18:39
@dan-petty dan-petty added the verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix label Nov 12, 2026
@dan-petty

Copy link
Copy Markdown
Owner

The label plan/needs-fix is back on this pull request as a hold, because the fix-plan attempt of 2026-11-12 18:39Z cleared it in error:

  • At the current default branch, the stage checks refused the plan on this branch (the plan names paths that fix(ci): replay a changed gate check in fail-to-pass #4898 and perf(ci): direct pytest runs wait for a gate slot #4901 changed). The planner wrote a new plan that passed the checks (3 plan calls, 2 gate returns, 7,567,057 tokens).
  • The review of that new plan found no open finding, so the step pushed nothing: _settle pushes only when the review of the head found an open finding (src/devops_cli/roadmap/steps/fix_plan.py, if before:). The branch still holds the plan that the checks refuse, and the comment says "The plan stays as it is".
  • The open finding of the stage comment (ignores_existing_code at group 1: a third builder of the pytest command beside _build_test_cmd in src/devops_cli/commands/ci.py and _form_failure in src/devops_cli/roadmap/implement/implement_step.py) did not go to the planner, because the new review found no finding.

The implement job skips a plan with this label. A fix of the step is being filed; after it ships, the fix-plan step takes this pull request again.

dan-petty added a commit that referenced this pull request Nov 12, 2026
The step fix-plan logged results that did not occur, and it lost work.
On #4917 the checks refused the head, the planner wrote a plan that
passed them, and a clean review of that plan removed the label with no
push. On #4963 the reader refused the head, and the step logged a review
that did not run.

Now the step reads the head before the attempt marks: a refused plan
ends `unreadable`, uses no attempt and writes no result line. The
revision keeps the gated plan and the findings of the head review on a
failure, and a gated plan that differs from the head is pushed
(`regated`). The results are `stopped`, `failed`, `revised`, `cleared`,
`regated`, `dismissed` and `unchanged`, and only `revised` and `cleared`
are a success. The result line holds `before` and `after` only when the
attempt measured them, and the head review skips the screen.

Closes #5213

Change:
`openspec/changes/archive/2026-11-12-5213-fix-plan-records-the-true-result/`
@dan-petty
dan-petty marked this pull request as draft November 13, 2026 00:42
@devops-cli-service
devops-cli-service Bot force-pushed the fix/4472-a-narrowed-ci-test-runs-many branch from ba8cc66 to 337b0b9 Compare November 13, 2026 02:03
@devops-cli-service
devops-cli-service Bot force-pushed the fix/4472-a-narrowed-ci-test-runs-many branch from 337b0b9 to b4316bf Compare November 13, 2026 13:50
@devops-cli-service devops-cli-service Bot removed the verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix label Nov 13, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 16:47
@dan-petty
dan-petty merged commit 0341ae1 into main Nov 13, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/4472-a-narrowed-ci-test-runs-many branch November 13, 2026 16:47
dan-petty added a commit that referenced this pull request Nov 13, 2026
)

Each finding of the model review of a plan now has a severity:
`blocker`, `major`, `minor` or `nit`, as in the golden set. Only a
blocker or a major finding is open. So only such a finding returns the
plan to the planner, keeps `plan/needs-fix`, counts in the decisions of
`fix-plan` and refuses an item of a bot in refine. A minor or a nit
finding is advice in the comment. Plan pull request #4917 kept the label
for one minor finding that one line of the plan fixes.

The comment line starts with the severity, and `fix-plan` reads a line
with no severity from an older release as a major finding. The prompt
describes the four severities, and `spec_delta_wrong` now needs a
scenario where no test can assert any part of its THEN. `devops roadmap
eval verify` states a ceiling of the findings that return a good plan,
next to the recall floor, so recall cannot grow by returned good plans.

Closes #5411

Change:
`openspec/changes/archive/2026-11-13-5411-only-blocker-and-major-review-findings/`
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