Repository navigation
feat(roadmap): add the stage Job template and one-item entry point - #5545
Merged
Merged
Conversation
The stage job runs in the pod of the roadmap Service, and a rollout of the Service stops a running stage round. This change adds the CronJob template roadmap-stage, the admission, Role and network rows of a stage Job, and the entry point devops roadmap stage --job-item, with no change to the rows of the Service (part 1 of #4559).
…limits The deploy-stack manifest list applies cronjob-stage.yaml, the SearXNG pin tests name the pod of a stage Job, and the limit table classes the new stage Job limits.
The setting roadmap.stage.github_requests_per_hour (#5483) adds the variable DEVOPS_CLI_ROADMAP_STAGE_GITHUB_REQUESTS_PER_HOUR, whose name holds GITHUB. The list of the GitHub variables in the config command test did not hold it.
… repository A stage Job that holds the private key of the App now refuses to run, before a clone or a model call, unless service.github_app.token_repository is the repository of --repo, as the implement runner does (#2667). A person who runs the command with their own token runs it locally.
…p its MCP token The admission policy now holds a stage Job of the Service to the args roadmap stage --repo <owner/name> --job-item <n> --confirm, to the plain env names of the template and of stage_job_env, to a token repository equal to --repo, and to the deadline of 10800 s. The pod gets 120 s to check in after a SIGTERM. The MCP token leaves the pod: roadmap.stage.mcp is off, and the server accepts one token for every role. The spend panel names the end user roadmap-stage.
Owner
Author
|
Local results at head Tests first:
Checks:
Review fixes in this PR: the Job refuses an App token for more than its repository; the policy pins the args, the plain env names, the token repository (= Live proof after the release (the in-pod stage row still runs until #4559):
|
Owner
Author
Check resultsHead commit:
Skipped check: Plan Check |
dan-petty
marked this pull request as ready for review
November 13, 2026 20:25
This was referenced Nov 13, 2026
dan-petty
added a commit
that referenced
this pull request
Nov 13, 2026
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. - The row moves to the status lane and plans nothing. It recovers each check-out whose Job ended with no check-in, then creates Jobs up to `roadmap.stage.jobs` (default 1, for the whole cluster). - It acts on a Job only when the item label of the Job names the item, and frees only what `check_in` wrote. - Only `timeout` and `plan_defect` ends count toward the split. An orphan removal keeps the failure ledger. - The in-pod stage path and the stage use of the model clone go. - New alert `RoadmapStageGitHubRequestsHigh`; the throttle alert reads both jobs. - The kept plan file stays until #5499. 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/`
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.
Part 1 of #4559, to merge before part 2: a stage Job plans one item in a pod of its own, so a rollout of the Service does not stop the plan. The Service rows do not change yet.
roadmap-stage, a suspended template: the Service image, 2 Secret keys, 250m/1Gi to 1/2Gi, deadline 10800 s, a new pod only after exit 75 or a disruption.devops roadmap stage --job-item <n>: one model call slot, a GitHub request budget of its own, a time budget inside the Job deadline, exit 0/1/75/143 and a check-in at the end. It refuses an App token for more than its repository.devops k8s run-job --template stage --repo <r> --item <n>.Overlap: #4558, #5411, #5440.
Closes #5483
Change:
openspec/changes/archive/2026-11-13-5483-stage-job-template-entry/