Skip to content

fix(roadmap): a named fix-plan run can skip the 6-hour wait - #5459

Merged
dan-petty merged 5 commits into
mainfrom
fix/5413-fix-plan-skip-wait
Nov 13, 2026
Merged

dan-petty merged 5 commits into
mainfrom
fix/5413-fix-plan-skip-wait

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A person can now start one named fix-plan attempt within the 6-hour wait. devops roadmap step fix-plan --skip-wait needs --confirm and one of --item or --pull. The cap of 2 attempts on a head and the cap of 3 revisions stay. The Service never passes the flag, so its row and its Jobs keep the wait.

Each attempt records its release in fix_plan.version. With --skip-wait, a head with 2 counted attempts from an older release, or with no release, gets one more attempt, and the run logs why. A new release can fix the cause of those attempts, as #5409 did for the head of #5390.

A killed attempt now has a class. SIGTERM after the time budget is deadline: the attempt counts and logs result=timeout with kill=deadline. SIGTERM before the budget, and a stop of the Service, is evicted: the first 3 on a head do not count. The command exits 75 after an eviction and 143 after a deadline kill.

Closes #5413

Change: openspec/changes/archive/2026-11-13-5413-fix-plan-skip-wait/

Plans #5413: the option --skip-wait for a named fix-plan run, the release of each attempt in fix_plan.version, one more attempt on a head whose attempts ran on an older release, and the classes evicted and deadline of a killed attempt.
devops roadmap step fix-plan --skip-wait leaves out the 6-hour wait for the one item that --item or --pull names, and needs --confirm. The caps of the head and of the revisions stay. The step records the release of each attempt in fix_plan.version, and a named run with --skip-wait makes one more attempt on a head whose counted attempts ran on an older release, with a warning that says why. The Service never passes skip_wait.

A killed attempt now has a class. While the command runs, the first SIGTERM raises AttemptKilled, and the step writes the class in the grace period of the pod. SIGTERM after the time budget is a deadline kill: the attempt counts, the record gets timeout, and the result line holds kill=deadline. SIGTERM before the budget, and a stop of the Service, is an eviction: for 3 evicted attempts on a head, the record keeps the marks of the attempt before it and adds 1 to fix_plan.evicted. The command exits 75 after an eviction and 143 after a deadline kill.
The stage page, the job success page, the row fix_plan of the cluster page and the record keys of the roadmap workflow describe --skip-wait, the extra attempt on a head of an older release, fix_plan.version, fix_plan.evicted and the classes evicted and deadline of a killed attempt (#5413). ADR 0021 gets a dated line for its out-of-date list of record keys.
The kill marks go through set_marks, which reads the issue as it is now
and writes the marks on it. The extra read of the item cost one request
in the grace period of the pod, and the dry run did not list it.
The spec roadmap-stage/fix-plan gets the requirements of the named retry with skip_wait, the release of each attempt, the end of an attempt at SIGTERM, and the classes deadline and evicted of a killed attempt. The new rules are separate requirements, so each requirement text stays at 500 characters or fewer.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 13, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results and review notes (head 355ce9945, base origin/main 0341ae1fd).

Fail-to-pass. uv run devops ci fail-to-pass --base origin/main: exit 0. 13 tests fail on the base and pass on the head. 2 new or changed modules (tests/roadmap/test_attempt_kill.py, tests/roadmap/steps/test_roadmap_fix_plan_budget.py) do not collect on the base, because they import the new module attempt_kill.

  • test_skip_wait_selects_a_named_plan_within_the_wait fails on the base: TypeError: run_fix_plan() got an unexpected keyword argument 'skip_wait'.
  • test_skip_wait_keeps_the_attempt_cap[attempts] fails on the base: ValueError: 'fix_plan.version' is not a valid FixPlanRecordKey.
  • test_the_row_keeps_the_wait passes on the base, as it must: it guards the wait of the row of the Service.

Other checks.

  • uv run pytest tests/roadmap/steps tests/roadmap/test_attempt_kill.py tests/commands/test_roadmap_step_fix_plan.py tests/roadmap/test_roadmap_dry_runs.py tests/roadmap/test_roadmap_run_job_rows.py tests/invariants/test_adr_records.py tests/invariants/test_living_specs.py tests/roadmap/test_job_result.py tests/roadmap/test_roadmap_command_help.py: 173 passed.
  • uv run devops ci --check --only lint,format,domain,constructs,test-tree,swallowed-failures,startup-imports: pass.
  • uv run mypy on the changed modules: no issues.
  • uv run devops docs check: all documents up to date.
  • uv run devops openspec check: pass.

Read-only validation against the real record. A scratch call of select_fix_plan only (2 GitHub reads, release 0.129.1) on item #5272: without skip_wait, the 6-hour wait of the attempt at 14:44:07Z leaves the item out. With skip_wait, the step selects #5390 at head 8d08977ffff4 and gives the reason "the record gives their release as none, older than this release 0.129.1".

k8s render diff. Not applicable: the branch changes no path under k8s/.

Review fix. The kill path read the item before set_marks, which reads the issue as it is now. The extra read cost one request in the grace period of the pod, and the dry run did not list it. Commit 054b612c3 removes the read.

After the release. The Service image and the runner image must hold the change. Then a person runs devops roadmap step fix-plan --pull 5390 --skip-wait --confirm on the plan of #5272 and confirms that the attempt starts and writes its result line.

@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 17:01
@dan-petty
dan-petty merged commit 94a1999 into main Nov 13, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/5413-fix-plan-skip-wait branch November 13, 2026 17:02
dan-petty pushed a commit that referenced this pull request Nov 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.130.0](v0.129.1...v0.130.0)
(2026-11-13)


### Features

* **k8s:** add RuntimeClass gvisor for the runsc nodes
([#5436](#5436))
([0d9ffa1](0d9ffa1))
* **roadmap:** make the attempt limits of the failing jobs settings
([#5490](#5490))
([a13e520](a13e520)),
closes [#5440](#5440)


### Bug Fixes

* **infra:** a plan shows a skip by a check-mode when as unchecked
([#5442](#5442))
([499b42c](499b42c))
* **infra:** the apply gate leaves out alerts of offline nodes
([#5478](#5478))
([3f0d0f0](3f0d0f0))
* **roadmap:** a named fix-plan run can skip the 6-hour wait
([#5459](#5459))
([94a1999](94a1999)),
closes [#5413](#5413)
* **roadmap:** a review finding must name a part of the plan
([#5418](#5418))
([34cdf12](34cdf12))
* **roadmap:** the stage gate log names each refused finding
([#5441](#5441))
([47b1ec5](47b1ec5))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): a named fix-plan run can skip the 6-hour wait

1 participant