Repository navigation
feat(roadmap): run each stage item in its own Job - #5559
Merged
Merged
Conversation
The row stage moves from the model lane to the status lane and becomes a submit (stage_submit.py). It plans no item and calls no model: a stage Job from CronJob roadmap-stage (#5483) plans each item in a pod of its own, so a rollout of the Service stops no plan. A round lists the stage Jobs of the repository by their labels: the Job list is the lock. It checks in for each Job of a check-out that ended with no check-in (evicted, deadline, failed or succeeded), runs the cleanup of the orphans, the closed items and the rejections, and then creates one Job for each Ready item that the selection takes, up to the new setting roadmap.stage.jobs (default 1). The check-out and the claim owner/service come before the create, the name comes from the item and the hash of its body, and a 409 means that the Job exists. An eviction is free 3 times on one body. A deadline end, a failed end and a later eviction count toward roadmap.stage.plan_defect_limit, and the end that reaches it returns the item to New with a comment that asks refine to split it. The in-pod body of the stage row, its place on the model lane, the round failure rule and the use of the model clone by stage are removed. The rules that read the series of the planner select job=~"roadmap-service|roadmap-stage", and the job grades read the result lines of the stage Job pods. Closes #4559
… keep the failure ledger The stage row acts on a listed Job only when its item label names the item of the check-out, so a record block that an issue author edits cannot delete the Job of another item. It counts, logs and frees an item only when check_in wrote, from the item as it reads now, so a Job that checked in after the round read its items keeps its draft. An item that holds its draft checks in as succeeded. A DeadlineExceeded pod with no log is ci_infra, and only timeout and plan_defect ends count toward the split. An orphan removal keeps the failure marks, the count and stage.evictions. roadmap.stage.jobs counts the stage Jobs of every repository. The GitHub request alert of the Service reads the Service alone, a new alert watches the stage budget, and the throttle alert reads both jobs.
dan-petty
marked this pull request as ready for review
November 13, 2026 21:58
dan-petty
pushed a commit
that referenced
this pull request
Nov 13, 2026
🤖 I have created a release *beep* *boop* --- ## [0.133.0](v0.132.1...v0.133.0) (2026-11-13) ### Features * **roadmap:** run each stage item in its own Job ([#5559](#5559)) ([b771fc4](b771fc4)) ### Bug Fixes * **cli:** Print the elapsed line only on a terminal ([#5554](#5554)) ([5dc5882](5dc5882)) * **roadmap:** only blocker and major review findings block a plan ([#5557](#5557)) ([75d45b5](75d45b5)) --- 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>
This was referenced Nov 13, 2026
dan-petty
added a commit
that referenced
this pull request
Nov 13, 2026
Each row of the roadmap due table now runs in a lane of its own in the Service: one worker and one trigger queue for each row and repository, with the name of the row. A round of one row no longer waits for a round of another row, such as alternatives behind refine. - The setting `service.lanes` puts rows into a shared lane. The Service reads it when it starts. - Each lane with a row that needs files works in its own clone, `lanes/<lane>`, and reads the listing through its own snapshot. The start removes the state of the earlier lanes. - A trigger carries the issue of its delivery as its subject, for #5555. - After a scoped intake, the wake goes to each other lane, and to the lane of intake when it holds another row. - `devops_cli_roadmap_row_seconds` gets the label `lane`. The model call limit, the GitHub budget and the failure ledger stay shared. Overlap: #5559, #5560. Closes #5553 Change: `openspec/changes/archive/2026-11-13-5553-each-roadmap-job-in-its-own-lane/`
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The stage row of the Service submits one stage Job for each Ready item (part 2 of #4559, after #5545), so a rollout of the Service no longer stops a plan.
roadmap.stage.jobs(default 1, for the whole cluster).check_inwrote.timeoutandplan_defectends count toward the split. An orphan removal keeps the failure ledger.RoadmapStageGitHubRequestsHigh; the throttle alert reads both jobs.Overlap: #5026, #5440, #4558, #5411, #4555, #5524.
Closes #4559
Change:
openspec/changes/archive/2026-11-13-4559-run-each-stage-item-in-its-own-job/