Repository navigation
Closed
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/k8sKubernetes commands, Helm charts, pods, services, and policiesscope/releaseThe release-please workflow, the changelog and the published artifactstype/featureType feature: a new function
Milestone
Description
Ready: implementation plan (refined 2026-10-17 at 3dd7fa6)
This section supersedes any text below that conflicts with it.
Decisions
- With no cluster context, the blocking gate still runs, because it is offline and needs no cluster. Only the live part (the diff, and whether the live overrides cover the release's hosts) needs a cluster, and that part is a report: with no Argo CD server, token or
argocdbinary, it is skipped with one warning and the cut goes on. A release must not depend on reaching the homelab, and the offline gate catches both failures feat(release): v0.2.28 #1283 hit: a kustomization that does not build (fix(k8s): resolve argocd application out-of-sync and manifest generation failures #1279), and placeholder values that no override replaces (fix(k8s): argo cd takes homelab values from deploy-time overrides, and the repository holds no private or placeholder config #1290). - Which Applications are built: every
kind: Applicationunderk8s/argocd/appsandk8s/argocd/bootstrap, discovered by reading the files and never listed by hand. Each git source with apathis built: the 8 Kustomize Applications (base, devops, gpu-feature-discovery, ingress, llm, logging, monitoring, otel) and the two directory Applicationsbootstrapandcluster. The 14 Helm Applications are not rendered, because their chart comes from a remote chart repository, so a render would not be offline. Their git part is checked instead: each$<ref>/<file>value file must exist in the tree and parse as YAML. - How a path is built:
kubectl kustomizefor a directory with a kustomization, or every YAML file parsed for a plain directory, asrender_manifest_pathalready decides (src/devops_cli/k8s/template.py:126-145). A path holdingChart.yaml, a path outside the tree, or a git source whoserepoURLis not this repository'soriginfails the gate as one it cannot build offline. None exists today. - Build from the commit, not the working tree: the gate exports the fetched release tip with
git archive <origin/release/vX.Y.Z>into a temporary directory, so a gitignored local file (the fix(k8s): resolve argocd application out-of-sync and manifest generation failures #1279configmap.yaml) cannot hide a broken kustomization. Measured at 3dd7fa6: exporting the whole tree takes 0.26 s, and 0.9 s with the 8 Kustomize builds. - The offline placeholder rule: a template domain value (
CONST_K8S_TEMPLATE_DOMAIN_PLACEHOLDERor a$DOMAINvariable, the same valuesrender_manifest_templatereplaces) may appear only in a host field thathost_patchesrewrites (_host_fields,src/devops_cli/k8s/argocd_overrides.py:108). That host field must sit in an Application that deploy-stack patches (CONST_K8S_ARGOCD_HOMELAB_APPLICATIONS,src/devops_cli/config/constants.py:679). Any other occurrence fails, in a rendered object or in a Helm value file, keys included, naming the Application, the object and the JSON pointer. The live overrides are exactlyhost_patchesof the render, so a placeholder anywhere else is never replaced. At 3dd7fa6 every occurrence (one line indevops, 23 iningress) sits in such a field, so the rule passes today. - Is kubectl required wherever a cut runs: yes. It is pinned in
tools.lock(1.37.1,src/devops_cli/tools_lock/tools.lock:27-28), andrender_at_revisionalready builds with it. Without kubectl the gate fails, namingdevops install-tools --tool kubectl. A repository with nok8s/argocddirectory has no Applications and passes. - The live diff uses the
argocdbinary, not the REST API. The binary is pinned (3.5.4,tools.lock:127-128) and applies Argo CD's own normalization andignoreDifferences. A REST diff would re-implement them. The call isargocd app diff <app> --revision <release tip sha> --grpc-web, with--source-positions <n> --revisions <sha>for the git source of a multi-source Application. The server and token come from the configuredargocd.urland Argo CD token, as_argocdresolves them (src/devops_cli/commands/argo.py:162-179). They are passed asARGOCD_SERVERandARGOCD_AUTH_TOKENin the environment, never in argv. Exit codes, fromargocd app diff --help: 0 is no diff, 1 is a diff, 2 is an error. - The live override check (report only): for each homelab Application,
argocd app get <app> -o jsonreadsspec.source.kustomize.patches. Every placeholder host at the release tip that no livetestoperation names is reported, withdevops k8s deploy-stack --stack <stack>to run after the merge (CONST_K8S_ARGOCD_HOMELAB_APPLICATIONS_BY_STACK,constants.py:681). It cannot block: deploy-stack computes patches from the revision Argo CD tracks (main), so a host the release adds can only be patched after the merge. - The image bullet is dropped. refactor(release): the release no longer pins, bumps or pre-publishes the service image tag; image updater rolls service:latest #1486 removed image pinning, and Image Updater rolls
service:latest. - Where the gate runs: in
cut_release, right after_fetch_remote_release_tip(src/devops_cli/release/cut.py:1065) and before_checkout_cut_branch(:1066). That is before any branch, file, commit, push or pull request. Every cut path goes through it:release prepare --create-pr(src/devops_cli/commands/release.py:299),release pr(:365),roadmap close --confirm(src/devops_cli/commands/roadmap.py:483) and the Service's close job (src/devops_cli/roadmap/run.py:519). The call site is the same whether the cut pushesrelease/vX.Y.Z(today) or openschore/cut-vX.Y.Zas a pull request (the cut-as-a-pull-request change), so this plan assumes neither. - Module:
src/devops_cli/k8s/argocd_gate.py, besideargocd_overrides.py, notrelease/. The cut only calls it, andtests/test_k8s_argocd_apps.pyshares its discovery. The live report goes insrc/devops_cli/k8s/argocd_live_report.py. The token resolution moves out of the Typer command into a function that raises a typed error, anddevops argoand the report both use it. - The roadmap job's cut: the shared
cut_releasegives it the gate, but the Service is suspended (chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562) and its image has no kubectl (Dockerfile:25-41). The Service's cut passing the gate stays out of this delivery: see Dependencies.
Delivery
- PR 1 (M): Refs feat(release): a release is cut only after every argo cd application builds at the release head and its live changes are shown #1343. The offline gate and its call in the cut.
template.pygainsbuild_manifest_path, which builds whatrender_manifest_pathbuilds without the substitution;render_manifest_pathbecomes that build plus the substitution. It also gains one predicate for "holds a template domain value", shared withrender_manifest_template._KUSTOMIZATION_NAMES(template.py:21) moves toconstants.py, beside a newCONST_K8S_ARGOCD_APPLICATION_DIRS. Failures raiseArgoCDGateError, aKubernetesErrorinsrc/devops_cli/exceptions/k8s.py, which names every failing Application at once. Tests first:- In
tests/test_k8s_argocd_gate.py, over fixture trees intmp_pathwith the realkubectl kustomize, offline: a kustomization that lists a missing file fails, naming the Application and kustomize's message; a placeholder in a ConfigMap ofdevopsfails; a placeholder Ingress host in a non-homelab Application fails; a placeholder in a Helm value file fails; a missing value file fails; a path holdingChart.yamlfails; a git source with anotherrepoURLfails; a clean tree passes and names each Application it built; a tree with nok8s/argocdpasses; a missingkubectlfails, namingdevops install-tools --tool kubectl; a file that is in the working tree but not in the commit does not reach the build. - In
tests/test_release.py, modelled ontest_a_bad_fragment_stops_the_automatic_cut_before_it_writes_or_pushes(:2120): a gate failure stops the cut, leaving the remote refs, the local branches and the working tree unchanged and calling nogh. - In
tests/test_k8s_argocd_apps.py,test_rendered_raw_objects_single_ownership(:217) andtest_namespace_and_pvc_data_safety(:277) take their Applications from the gate's discovery instead of the lists at:219and:278. A newtest_this_repository_passes_the_argocd_gatemakesdevops cirun the gate on every pull request. - Files:
src/devops_cli/k8s/argocd_gate.py,src/devops_cli/k8s/template.py,src/devops_cli/release/cut.py,src/devops_cli/exceptions/k8s.py,src/devops_cli/config/constants.py,src/devops_cli/lang/en/messages.py, the three test files,RELEASE_CYCLE.md(Step 2,:192-197),changelog.d/1343.md, anddocs/agent/tasks/task-1343-*.md.
- In
- PR 2 (M): closes feat(release): a release is cut only after every argo cd application builds at the release head and its live changes are shown #1343. The live report, run by the cut right after the gate. It never blocks. Tests first, in
tests/test_k8s_argocd_live_report.py, with a fake runner that records argv and the environment:- with no
argocd.url, token or binary, one warning names what is missing and the cut goes on; - each Application is diffed at the release tip sha with
--grpc-web, a multi-source Application by its git source position, and the token appears only in the environment; - exit 1 is reported as "differs", exit 2 as "failed" with its stderr cut to
CONST_MAX_ERROR_DETAIL_LENGTH, and neither stops the cut; - a placeholder host at the tip that no live
testoperation names is reported with itsdeploy-stack --stackcommand. - Files:
src/devops_cli/k8s/argocd_live_report.py,src/devops_cli/argo/(the lifted server and token resolution),src/devops_cli/commands/argo.py,src/devops_cli/release/cut.py, the new test file,RELEASE_CYCLE.md,changelog.d/1343.md(extended), and the task file.
- with no
Acceptance criteria
- Every cut path runs the offline gate on the fetched release tip before it creates a branch, writes a file, commits, pushes or opens a pull request.
- A failed build, an unbuildable source, a missing value file or a misplaced placeholder stops the cut with
ArgoCDGateError, naming each Application and why. Origin, the local branches and the working tree stay unchanged, and noghcommand runs. - The gate builds from
git archiveof the release tip, so a gitignored file in the working tree never reaches a build. - Applications are discovered from
k8s/argocd/appsandk8s/argocd/bootstrap, and no list of Application names or paths remains in the gate or intests/test_k8s_argocd_apps.py:217-310. -
test_this_repository_passes_the_argocd_gatepasses at the head of the release branch, in under 2 s. - Without kubectl the gate fails, naming
devops install-tools --tool kubectl. - With a configured Argo CD server, the cut reports each Application's diff at the release tip, and each placeholder host that no live override covers, with its
deploy-stackcommand. The report never stops the cut, and the token never appears in argv. - Without a server, a token or the
argocdbinary, the report is skipped with one warning. -
RELEASE_CYCLE.mdStep 2 describes the gate and the report. -
changelog.d/1343.mdrecords the change.CHANGELOG.mdanddocs/ROADMAP.mdare not edited. -
uv run devops cipasses. - Pending a person: at the v0.2.37 cut, with Argo CD configured, the report lists all 22 Applications, which shows that
--grpc-webreaches the server through the tunnel.
Current references
cut_release:src/devops_cli/release/cut.py:1024; fetch, checkout, commit-and-push, PR::1065,:1066,:1092,:1119- Cut callers:
src/devops_cli/commands/release.py:299,:365;src/devops_cli/commands/roadmap.py:483;src/devops_cli/roadmap/run.py:519 render_at_revision,_host_fields,host_patches,Run:src/devops_cli/k8s/argocd_overrides.py:80,:108,:143,:29render_manifest_template,_render_kustomize_dir,render_manifest_path,_KUSTOMIZATION_NAMES:src/devops_cli/k8s/template.py:59,:87,:126,:21CONST_K8S_TEMPLATE_DOMAIN_PLACEHOLDER:src/devops_cli/config/constants.py:667CONST_K8S_ARGOCD_HOMELAB_APPLICATIONS,..._BY_STACK:src/devops_cli/config/constants.py:679,:681KubernetesError:src/devops_cli/exceptions/k8s.py:14- Argo CD URL and token:
src/devops_cli/commands/argo.py:162-179; REST reads::212,:294 - Hard-coded Application lists:
tests/test_k8s_argocd_apps.py:219,:278;_all_applications::36 - Cut-stops-before-push test to model:
tests/test_release.py:2120 - Pinned kubectl and argocd:
src/devops_cli/tools_lock/tools.lock:27-28,:127-128 - Service image stage, without kubectl:
Dockerfile:25-41
Dependencies and order
- fix(k8s): resolve argocd application out-of-sync and manifest generation failures #1279, feat(release): v0.2.28 #1283, fix(k8s): argo cd takes homelab values from deploy-time overrides, and the repository holds no private or placeholder config #1290 and refactor(release): the release no longer pins, bumps or pre-publishes the service image tag; image updater rolls service:latest #1486: closed.
- Making the cut a pull request (intake draft, not filed yet): independent. The gate runs before the cut creates any branch, so it fits both flows.
- fix(release): the cut opens as a pull request only after the release pull request's checks pass, so a fix for a failing check reaches the version's changelog #1544 (blocked): when it splits
cut_releaseinto opening the release pull request and pushing the cut, both halves call the gate first. - fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425 (backlog): the release pull request's rehearsal gets the gate through
devops ci(test_this_repository_passes_the_argocd_gate), so this item adds no workflow step. - refactor(github): pr readiness is one verdict module that the pr commands, the monitor and mcp consume #998, fix(github): pr readiness exempts a chore/open release-process pull request only when it changes release-process files #1344, feat(github): a release pull request gets a set number of copilot passes, and later review threads become follow-up issues #1345 (v0.2.37): no shared code.
- The Service's cut, once chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 is reverted: its image needs kubectl, or every Service cut stops at the gate. That part is out of this delivery. The missing issue, "the Service image carries the pinned kubectl", is drafted for intake alongside this plan.
Problem
v0.2.28's release pull request (#1283) took about ten hours after it opened, because problems no check had caught were found only at the end.
- Unverified Argo CD design: fix(k8s): resolve argocd application out-of-sync and manifest generation failures (#1279) #1281 (3f02ee9) relied on a gitignored
.argocd-source.yaml, which Argo CD never reads. Merging feat(release): v0.2.28 #1283 as cut would have rewritten every Ingress host to*.example.comand started roadmap-service on placeholder config. fix(k8s): argo cd takes homelab values from deploy-time overrides, and the repository holds no private or placeholder config #1290 fixed that before the merge. - The
devopsApplication could not build: on v0.2.27 it was already in ComparisonError, because its kustomization listed a gitignoredconfigmap.yaml(fix(k8s): resolve argocd application out-of-sync and manifest generation failures #1279). - The image did not exist yet: the merge pins roadmap-service to
service:vX.Y.Z, which Release Orchestration publishes only after its release job. With the Recreate strategy, that is an outage until the image exists.
Each of these can be detected without a model and without Copilot.
Acceptance criteria
- Before the cut opens the release pull request (
devops release prepare --create-pr, and the roadmap job's cut), it runs a deterministic gate:- every Application in
k8s/argocd/appsbuilds with Kustomize at the release head, using its own source path; - no rendered host remains under the placeholder domain once the Application's live overrides are applied;
- on an Argo CD-managed cluster, each Application's diff against the live cluster at the release head is reported, through Argo CD's API or
argocd app diff --revision; - the service image tag the release pins either exists, or the report names the outage window until Release Orchestration publishes it.
- every Application in
- A failed build or a placeholder host stops the cut, with an error naming the Application. The live diff and the image check are reported, and do not block.
- Tests run the gate over fixture Applications offline: a build failure, a placeholder host, and a clean release.
-
changelog.d/<n>.mdrecords the change;CHANGELOG.mdanddocs/ROADMAP.mdare not edited. -
uv run devops cipasses.
Key questions
- Where does the live diff run when the roadmap job cuts in the cluster? (proposed) roadmap-service reads Argo CD's API in-cluster. A workstation cut uses the configured Argo CD context. Without either, the gate reports that the live diff was skipped.
Strategic alignment
- Milestone: none; the roadmap tooling places it. Related: feat(release): v0.2.28 #1283, fix(k8s): argo cd takes homelab values from deploy-time overrides, and the repository holds no private or placeholder config #1290, fix(k8s): resolve argocd application out-of-sync and manifest generation failures #1279, fix(roadmap): a critical fix joins the current release while its release pull request is open, so the release branch holds every change before it merges #1294, refactor(docs): no documentation-only pull requests: release artifacts are made as the release merges, and every kept doc changes with its code or is deleted #1103.
Update 2026-10-08: refinement
#1451 makes the pinned image exist before the release merges, so the gate's image bullet is dropped. Of 20 Applications, 8 have a source path; the build covers those, and two tests list them by hand (tests/test_k8s_argocd_apps.py:211, :271).
- The gate and both tests find path Applications by reading
k8s/argocd/apps.
Metadata
Metadata
Assignees
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/k8sKubernetes commands, Helm charts, pods, services, and policiesscope/releaseThe release-please workflow, the changelog and the published artifactstype/featureType feature: a new function
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty-bot commentedon Oct 8, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
It prevents multi-hour release delays and potential production outages, but releases still function today, so it is important rather than urgent.Requires Kustomize build orchestration, placeholder-domain detection, Argo CD API diff integration, image-tag verification, offline fixture tests, and wiring into the existing release-prepare command.dan-petty commentedon Oct 17, 2026
Readiness check for v0.2.37, against
release/v0.2.36at 22d8748. Line numbers are at that commit.Status: needs a split, plus a reference refresh.
Today
cut_release(src/devops_cli/release/cut.py:1024-1119) has no Kubernetes gate.devops release prepare --create-pr, anddevops roadmap close --confirm(src/devops_cli/commands/roadmap.py:483).tests/test_k8s_argocd_apps.py:219and:278; the body cites:211and:271.Facts for the design
k8s/argocd/apps/has 22 Applications. 8 of them have apath: base, devops, gpu-feature-discovery, ingress, llm, logging, monitoring and otel.CONST_K8S_TEMPLATE_DOMAIN_PLACEHOLDER(src/devops_cli/config/constants.py:667), and only the homelab overrides fill it (:679).src/devops_cli/k8s/argocd_overrides.pyalready hasrender_at_revision(:80) andhost_patches(:143) to reuse.src/devops_cli/commands/argo.py:212and:294. There is no diff helper.Obsolete in the body
Questions for the owner
argocdbinary?Proposed split
src/devops_cli/release/argocd_gate.py, called from the cut atcut.py:1068-1092before the push.feat(release): every Argo CD application builds at the release head (…
dan-petty commentedon Oct 19, 2026
What changed
#1688, merged into
release/v0.2.37as 32e9de3.11 file(s) changed.
How it was verified
Check runs at f9f20f6:
Acceptance Criteria of
docs/agent/tasks/task-1343-argocd-build-gate.md:Applicationpointing to this repository is discovered and validated.ArgoCDGateError.cut_releasefrom creating branches, writing files, or pushing to origin.RELEASE_CYCLE.mddocuments the Argo CD build gate in Step 2.feat(release): live Argo CD diff and override report at release cut (C…
feat(release): v0.2.37 (#1720)
feat(k8s): the homelab runs gitea under argo cd as a read-write inter…