Skip to content

feat(roadmap): run the runner Job as three containers - #6732

Merged
dan-petty merged 2 commits into
mainfrom
feat/3700-three-container-job
Nov 22, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/3700-three-container-job

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

The runner Job runs prepare, agent and publish as three containers in turn, so the agent never shares one with the App key.

  • Template: init containers prepare and agent, container publish. Only prepare and publish read the App key, only agent the model key. agent mounts no state, publish mounts run and state read-only, and each container has its own tmp and home.
  • Policy: one variable for all containers, exact names, the key, mounts, args and plain env of each, no shareProcessNamespace, restart fields, probes or workingDir, the old shape only on UPDATE, wave -1.
  • The renovate token container names its cluster and namespace.

Closes #3700

Change: openspec/changes/archive/2026-11-22-3700-three-container-job/

@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 22, 2026
@dan-petty
dan-petty force-pushed the feat/3700-three-container-job branch from f06fff8 to ac8602e Compare November 22, 2026 04:22
@dan-petty
dan-petty force-pushed the feat/3700-three-container-job branch from ac8602e to ca94037 Compare November 22, 2026 05:20
@devops-cli-service

Copy link
Copy Markdown
Contributor

Pull request #6732 has merge conflicts with main at commit ea350bd1d378. GitHub cannot merge it. Rebase the branch onto the current main, resolve the conflicts and push the branch.

@dan-petty
dan-petty force-pushed the feat/3700-three-container-job branch from ea350bd to 78d4f50 Compare November 22, 2026 12:23
@dan-petty

Copy link
Copy Markdown
Owner Author

Merge precondition. Merge this PR only when the runner CronJob runs a runner image that holds #6745 (62bcc35). Argo CD applies the three-container template at merge. On the 0.193.0 runner code, publish makes its repository in the read-only run folder and fails with EROFS.

State on 2026-11-22 at 13:10 UTC:

  • Release 0.193.1 holds fix(roadmap): ready the phase code for the read-only run folder #6745. In Release run 45022530108, the job Runner Image / Attest & Tag failed at Attest Build Provenance with InternalError: error fetching tlog entry - (404) Not Found. The runner tag v0.193.1 was not made.
  • The CronJob still runs the 0.193.0 runner digest sha256:845bb236….

Check before the merge: kubectl -n devops get cronjob devops-cli-runner -o jsonpath='{..image}' must show the digest of the v0.193.1 runner tag (or of a later release).

Accepted window. The policy (wave -1) refuses a CREATE of the one-container runner shape. Argo CD applies the CronJob in wave 0. For the few seconds between the two waves, a Service round that makes a runner Job from the old CronJob gets 403. The round ends with an error, and the next round uses the new CronJob. If the wave-0 apply fails, Argo CD shows a failed sync, and each create stays refused until a sync applies the CronJob. Admitting the old shape on CREATE would close this window. It would also delay what #3700 enforces, so this PR keeps the window.

After the merge: I run one implement Job and one fix-checks Job, and post the result on #3700.

CronJob devops-cli-runner runs the init containers prepare and agent and
the container publish, of one image. Only prepare and publish read the
App key, only agent the model key. agent mounts no state volume,
publish mounts run and state read-only, and each container has its own
tmp and home. The admission policy reads one variable of all containers
and pins the names, the key, the mounts, the args and the plain env of
each. It refuses shareProcessNamespace, restart fields, probes and
workingDir, admits the old shape only on an UPDATE, and syncs in wave
-1 before the CronJob.

Closes #3700
The log commands of a runner Job name the phase with -c or read each
container with --all-containers --prefix. The code texts say that the
runner template runs each phase in its own container, and the run
folder of a runner Job is /run/roadmap. Four requirements name the
container agent, the exit code of the containers, the git calls of
prepare and publish, and each container of the runner template.

Refs #3700
@dan-petty
dan-petty force-pushed the feat/3700-three-container-job branch from 78d4f50 to 5c36b04 Compare November 22, 2026 13:10
@dan-petty
dan-petty marked this pull request as ready for review November 22, 2026 13:22
@dan-petty

Copy link
Copy Markdown
Owner Author

The merge precondition is met. The second attempt of Release run 45022530108 tagged the runner v0.193.1 as sha256:c94543fb…, and CronJob devops-cli-runner runs that digest.

Head 5c36b04: the second commit changes only text. An AST check shows that the 9 Python files differ only in docstrings and comments. The archive replay on 077428d gives + 2, ~ 11, - 0, and the result is the same as the living specs. CI: 26 checks passed, 7 were skipped and none failed.

@dan-petty
dan-petty merged commit 97d6bc7 into main Nov 22, 2026
33 checks passed
@dan-petty
dan-petty deleted the feat/3700-three-container-job branch November 22, 2026 13:22
dan-petty-release Bot added a commit that referenced this pull request Nov 22, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.194.0](v0.193.1...v0.194.0)
(2026-11-22)


### Features

* **roadmap:** run the runner Job as three containers
([#6732](#6732))
([97d6bc7](97d6bc7)),
closes [#3700](#3700)


### Bug Fixes

* **ai:** retry a Qdrant request after a 429, 502, 503 or 504 answer
([#6761](#6761))
([a406980](a406980))
* **deps:** pin the devtools image in its run tag form
([#6763](#6763))
([4735538](4735538)),
closes [#6760](#6760)
* **k8s:** Scrape the SearXNG engine metrics
([#6755](#6755))
([80fc29d](80fc29d))

---
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): add the three-container runner Job, policy and log reads

1 participant