Skip to content

feat(roadmap): a stop sets Blocked; a new image clears it - #2974

Merged
dan-petty merged 15 commits into
mainfrom
feat/2912-stop-blocked-and-digest-clear
Nov 1, 2026
Merged

dan-petty merged 15 commits into
mainfrom
feat/2912-stop-blocked-and-digest-clear

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A stop of the implement job now sets the Status Blocked. It no longer sets Ready. The Service never runs a Blocked item again on its own, so a Job that fails does not repeat.

Two rules take an item out of Blocked. They run in the row implement, before the plan:

  • retry: the owner, a member or a collaborator comments implement: retry. The stop clears at once.
  • digest: the runner image in CronJob devops-cli-runner is not the image of the Job that stopped. The stop clears one time for each image.

The Service records the digest of the runner image in implement.job_digest when it makes a Job. It reads the CronJob one time for each Job, so the record and the Job name the same image. A comment names the rule that cleared a stop. A stop that no rule clears costs one request in each round.

The docs say what the code does: docs/ROADMAP_WORKFLOW.md, docs/ROUTINE_TASKS.md, k8s/README.md and CONTEXT.md. The OpenSpec change is archived.

Closes #2912

@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 1, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results (local, uv run devops ci): 15676 passed, 1 failed, 1 error. The failure and the error are one test, tests/commands/test_scan_outcomes_and_gating.py::test_scan_report_skips_named_scanners. The devcontainer has kube-linter on PATH, so the test fails here and passes on GitHub (issue #2165). All other checks passed. The test check took 282 s (4m42s).

Fail-to-pass (uv run devops ci fail-to-pass --base origin/main): 29 tests failed on the base and pass on the branch, 3 errored on the base. Files: tests/core/test_roadmap_implement_checks.py, tests/core/test_roadmap_implement_planned_run.py, tests/invariants/test_roadmap_workflow_doc.py, tests/k8s/test_k8s_cluster_job_api.py, tests/roadmap/test_roadmap_implement_job.py, tests/roadmap/test_roadmap_implement_submit.py, tests/roadmap/test_roadmap_status_sync.py, tests/roadmap/test_roadmap_stop_clear.py.

Review findings fixed:

  • major, implement_submit.py: the digest on record and the image of the Job came from two reads of the CronJob. The round now reads the CronJob one time for each create (ClusterJobs.cronjob, image_digest, create(cronjob=...)). A test rolls the image between two reads and checks that the record and the Job name one digest.
  • minor, stop_clear.py: a failed digest read was not kept. A small class now keeps the result or the error, so the pass reads the template at most one time. A test with four Blocked items checks one read, and that a retry still clears.
  • minor, stop_clear.py: an idle stop cost two requests in each round. The pass now lists the comments (one request) and reads the issue again only when a rule holds. A test counts the requests. Step 16 of k8s/README.md states the cost.
  • minor, docs/ROUTINE_TASKS.md (two lines): both lines now describe the Blocked stop and the two clear rules.

Findings not fixed: none.

The archive commit was reverted and made again after the fixes, so the last content commit before the merge is the archive of the change. The merge commits bring in origin/main (the explain and inbox commands). The conflict in docs/ROADMAP_WORKFLOW.md was the two planned-list rows of finished items. Both rows are removed.

@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 01:18
…d-and-digest-clear

# Conflicts:
#	README.md
#	docs/ROUTINE_TASKS.md
#	k8s/README.md
@dan-petty
dan-petty merged commit 665e058 into main Nov 1, 2026
20 checks passed
@dan-petty
dan-petty deleted the feat/2912-stop-blocked-and-digest-clear branch November 1, 2026 01:35
dan-petty pushed a commit that referenced this pull request Nov 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.37.0](v0.36.0...v0.37.0)
(2026-11-01)


### Features

* **config:** preview requests in dry run for config commands
([#2963](#2963))
([47cdf0d](47cdf0d))
* **devcontainer:** preview requests in dry run for devcontainer
commands ([#2969](#2969))
([c30583d](c30583d))
* **roadmap:** a stop sets Blocked; a new image clears it
([#2974](#2974))
([665e058](665e058)),
closes [#2912](#2912)
* **roadmap:** add devops roadmap inbox for what waits for a person
([#2970](#2970))
([f21e459](f21e459)),
closes [#2915](#2915)
* **service:** shorter prime-number intervals for the roadmap rows
([#2973](#2973))
([f414791](f414791)),
closes [#2965](#2965)


### Bug Fixes

* **tests:** concurrent slot leasing test synchronizes on barrier
([#2962](#2962))
([20d72ac](20d72ac)),
closes [#2841](#2841)
* **tests:** fake model calls in tests write to tmp_path ledger
([#2966](#2966))
([d422e3a](d422e3a)),
closes [#2192](#2192)

---
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/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): a stop sets status/blocked and a new runner image clears it once

1 participant