Repository navigation
Description
Requested by the owner, 2026-10-09 ("rip out the custom process for updating service version tags completely"). Depends on #1485 being live in the cluster: it must ship in a release after #1485's, so the devops Application already carries Image Updater's digest override when the pin goes.
Problem
Checked at main (8598e79). Once #1485 runs, every piece below is redundant: Image Updater moves the deployment when service:latest moves, and only the release merge moves latest.
commands/release.py:_update_service_image_tagand its helpers (:158-198) bumpnewTagin the cut;_apply_cut_modifications(:1198-1219) calls them and the Argo CDtargetRevisionrewrite (:201-289, which has only ever writtenmainsince fix(k8s): argo cd git-source targetRevision tracks main while service image pin tracks release #1261);_release_paths(:785-807) stagesk8s/devops/kustomization.yamlandk8s/argocd/;_verify_release_versions(:1657-1663) and_verify_argocd_target_revisions(:292-315) makedevops release checkfail on a pin mismatch.k8s/devops/kustomization.yaml:8-10: theimages:pin.config/constants.py:42-44(CONST_SERVICE_IMAGE,CONST_SERVICE_IMAGE_KUSTOMIZATION) andlang/en/messages.py:441-443..github/workflows/release.yml: therelease/v*push trigger (:7-9, fix(release): the Service image a release pins is published before main pins it, so Argo CD never rolls the roadmap Service onto a missing image #1451), the service-image job's release-branch condition (:157-166), the inputs label andSERVICE_IMAGE_INPUTS(:176-181,:209,:320), the publication plan (:196-303), the release-branch checks in the tag step (:396-408) and the promote step (:415-421)..github/workflows/ci.yml:160-169: the service-image job skips release PRs because the release branch used to publish them.- Tests that pin the removed behaviour:
tests/test_release.py:269-404,tests/test_k8s_devops_runtime.py:227-265,tests/test_release_service_image_plan.py,tests/test_ci.py:672-802,tests/test_architectural_invariants.py:570-590. - Docs that describe it: RELEASE_CYCLE.md (
:165,:175,:208-210,:217,:233), docs/ROUTINE_TASKS.md (:256-271), k8s/README.md (:401-404,:548).
Proposed remedy
Delete them; keep building the image. After this change:
- A release PR's CI builds, smoke-tests and scans the Service image without pushing (the
ci.ymlskip goes). - On the merge,
release.ymlbuilds, scans, pushes and attestsservice:vX.Y.Zonce, then tags itvX.Y.Zandlatest(the tag step stays after attestation). Nothing else ever pusheslatest. - Image Updater sees
latest's new digest and updates Applicationdevops; Argo CD rolls the pod.
Acceptance criteria
- No file in the repository and no step of the release writes or checks a Service image tag: no
images:pin, nonewTagbump, no pin check indevops release check, notargetRevisionrewrite. -
release.ymlruns the Service image job only for the merge to main (and dispatch), pushesvX.Y.Zandlatestafter attestation, and has no release-branch trigger, plan or promote step. -
ci.ymlbuilds the release PR's Service image without pushing. - The removed tests are gone, and the tests that remain assert the new release.yml and ci.yml shape and that the cut leaves
k8s/untouched. - RELEASE_CYCLE.md, docs/ROUTINE_TASKS.md and k8s/README.md describe the new flow;
docs/agent/tasks/task-1451-*.mdnotes it is superseded by this item. -
changelog.d/<issue>.md. - After the release that carries this merges, the Deployment rolls to the new
latestdigest with no git commit. (Person-checked.)
Proposed design
Problem statement
The release process currently pins the Service image tag in k8s/devops/kustomization.yaml, bumps it during the release cut, pre-publishes it from the release branch, and verifies it matches the version. Once Image Updater (#1485) is live in the cluster, all of this is redundant: Image Updater moves the deployment when service:latest moves, and only the release merge to main moves latest. This issue removes the entire custom tag-pinning process (the kustomization images pin, the release.py bump and verify functions, the Argo CD targetRevision rewrite, the release-branch trigger and publication plan in release.yml, the ci.yml skip for release PRs, and their tests and docs) so the release simply builds, pushes, attests, and tags the image on merge to main, and Image Updater handles the rollout.
Acceptance criteria
- Criterion 1: No file in the repository and no step of the release writes or checks a Service image tag: no images: pin in k8s/devops/kustomization.yaml, no newTag bump in release.py, no pin check in devops release check, no targetRevision rewrite.
Verification: grep -r 'newTag|CONST_SERVICE_IMAGE|_update_service_image_tag|_verify_argocd_target_revisions' src/ k8s/ .github/ returns no matches; devops release check passes without referencing k8s/devops/kustomization.yaml. - Criterion 2: release.yml runs the Service image job only for the merge to main (and workflow_dispatch), pushes vX.Y.Z and latest after attestation, and has no release-branch trigger, plan step, or promote step.
Verification: The on.push.branches list in release.yml contains only main (no release/v*); the service-image job has no 'plan' step, no 'Point latest at the Published Service Image' step, and its if condition references only refs/heads/main or workflow_dispatch. - Criterion 3: ci.yml builds the release PR's Service image without pushing (the release-branch skip is removed).
Verification: The service-image job's if condition in ci.yml no longer contains 'startsWith(github.head_ref, release/v)'; the build step has push: false and load: true. - Criterion 4: The removed tests are gone, and the tests that remain assert the new release.yml and ci.yml shape and that the cut leaves k8s/ untouched.
Verification: tests/test_release_service_image_plan.py does not exist; tests/test_release.py has no tests referencing _update_service_image_tag, _release_paths staging k8s, or Argo CD targetRevision; tests/test_ci.py and tests/test_architectural_invariants.py assert the new workflow shape; uv run pytest passes. - Criterion 5: RELEASE_CYCLE.md, docs/ROUTINE_TASKS.md and k8s/README.md describe the new flow (build on merge, tag vX.Y.Z and latest, Image Updater rolls the pod); docs/agent/tasks/task-1451-*.md notes it is superseded by this item.
Verification: grep -n 'release/v|pre-publish|pin.*service|targetRevision' RELEASE_CYCLE.md docs/ROUTINE_TASKS.md k8s/README.md returns no references to the old flow; docs/agent/tasks/task-1451-image-before-main-pins-it.md contains a superseded note referencing refactor(release): the release no longer pins, bumps or pre-publishes the service image tag; image updater rolls service:latest #1486. - Criterion 6: changelog.d/1486.md exists with the item's changelog entry.
Verification: test -f changelog.d/1486.md && cat changelog.d/1486.md shows a non-empty entry. - Criterion 7: After the release that carries this merges, the Deployment rolls to the new latest digest with no git commit.
Verification: Person-checked: after the release PR merges, kubectl -n devops get deploy roadmap-service -o jsonpath='{.spec.template.spec.containers[0].image}' shows the new digest, and git log shows no commit touching k8s/devops/kustomization.yaml.
Key questions
- Who requested this change and what was the scope?: The owner requested it on 2026-10-09: 'rip out the custom process for updating service version tags completely'. The scope is removing all tag pinning, bumping, pre-publishing, and verification of the Service image tag, while keeping the image build and push on merge to main. (proposed)
- What happens to the k8s/devops/kustomization.yaml images pin?: It is removed. The images: block (name: ghcr.io/dan-petty/devops-cli/service, newTag: v0.2.30) is deleted from the kustomization, and the file is no longer staged by _release_paths or checked by devops release check. [sources: k8s/devops/kustomization.yaml:8-10]
- What happens to the ci.yml service-image job's release-branch skip?: The skip is removed. The service-image job in ci.yml currently skips release PRs because the release branch used to publish them; after this change, ci.yml builds the release PR's Service image without pushing, so the skip condition (startsWith(github.head_ref, 'release/v') && head.repo.full_name == github.repository) is deleted. [sources: .github/workflows/ci.yml:160-169]
Open questions
- What is the new release flow for the Service image after this change? (missing verified source)
- Does this issue depend on another issue? (missing verified source)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
#1485
[end-marker]
Proposed design
Problem statement
The release process currently pins the Service image tag in k8s/devops/kustomization.yaml, bumps it during the release cut, pre-publishes it from the release branch, and verifies it matches the version. Once Image Updater (#1485) is live in the cluster, all of this is redundant: Image Updater moves the deployment when service:latest moves, and only the release merge to main moves latest. This issue removes the entire custom tag-pinning process (the kustomization images pin, the release.py bump and verify functions, the Argo CD targetRevision rewrite, the release-branch trigger and publication plan in release.yml, the ci.yml skip for release PRs, and their tests and docs) so the release simply builds, pushes, attests, and tags the image on merge to main, and Image Updater handles the rollout.
Acceptance criteria
- Criterion 1: No file in the repository and no step of the release writes or checks a Service image tag: no images: pin in k8s/devops/kustomization.yaml, no newTag bump in release.py, no pin check in devops release check, no targetRevision rewrite.
Verification: grep -r 'newTag|CONST_SERVICE_IMAGE|_update_service_image_tag|_verify_argocd_target_revisions' src/ k8s/ .github/ returns no matches; devops release check passes without referencing k8s/devops/kustomization.yaml. - Criterion 2: release.yml runs the Service image job only for the merge to main (and workflow_dispatch), pushes vX.Y.Z and latest after attestation, and has no release-branch trigger, plan step, or promote step.
Verification: The on.push.branches list in release.yml contains only main (no release/v*); the service-image job has no 'plan' step, no 'Point latest at the Published Service Image' step, and its if condition references only refs/heads/main or workflow_dispatch. - Criterion 3: ci.yml builds the release PR's Service image without pushing (the release-branch skip is removed).
Verification: The service-image job's if condition in ci.yml no longer contains 'startsWith(github.head_ref, release/v)'; the build step has push: false and load: true. - Criterion 4: The removed tests are gone, and the tests that remain assert the new release.yml and ci.yml shape and that the cut leaves k8s/ untouched.
Verification: tests/test_release_service_image_plan.py does not exist; tests/test_release.py has no tests referencing _update_service_image_tag, _release_paths staging k8s, or Argo CD targetRevision; tests/test_ci.py and tests/test_architectural_invariants.py assert the new workflow shape; uv run pytest passes. - Criterion 5: RELEASE_CYCLE.md, docs/ROUTINE_TASKS.md and k8s/README.md describe the new flow (build on merge, tag vX.Y.Z and latest, Image Updater rolls the pod); docs/agent/tasks/task-1451-*.md notes it is superseded by this item.
Verification: grep -n 'release/v|pre-publish|pin.*service|targetRevision' RELEASE_CYCLE.md docs/ROUTINE_TASKS.md k8s/README.md returns no references to the old flow; docs/agent/tasks/task-1451-image-before-main-pins-it.md contains a superseded note referencing refactor(release): the release no longer pins, bumps or pre-publishes the service image tag; image updater rolls service:latest #1486. - Criterion 6: changelog.d/1486.md exists with the item's changelog entry.
Verification: test -f changelog.d/1486.md && cat changelog.d/1486.md shows a non-empty entry. - Criterion 7: After the release that carries this merges, the Deployment rolls to the new latest digest with no git commit.
Verification: Person-checked: after the release PR merges, kubectl -n devops get deploy roadmap-service -o jsonpath='{.spec.template.spec.containers[0].image}' shows the new digest, and git log shows no commit touching k8s/devops/kustomization.yaml.
Key questions
- Who requested this change and what was the scope?: The owner requested it on 2026-10-09: 'rip out the custom process for updating service version tags completely'. The scope is removing all tag pinning, bumping, pre-publishing, and verification of the Service image tag, while keeping the image build and push on merge to main. (proposed)
- What happens to the k8s/devops/kustomization.yaml images pin?: It is removed. The images: block (name: ghcr.io/dan-petty/devops-cli/service, newTag: v0.2.30) is deleted from the kustomization, and the file is no longer staged by _release_paths or checked by devops release check. [sources: k8s/devops/kustomization.yaml:8-10]
- What happens to the ci.yml service-image job's release-branch skip?: The skip is removed. The service-image job in ci.yml currently skips release PRs because the release branch used to publish them; after this change, ci.yml builds the release PR's Service image without pushing, so the skip condition (startsWith(github.head_ref, 'release/v') && head.repo.full_name == github.repository) is deleted. [sources: .github/workflows/ci.yml:160-169]
- What is the new release flow for the Service image after this change?: On the merge to main, release.yml builds, scans, pushes and attests service:vX.Y.Z once, then tags it vX.Y.Z and latest. Nothing else ever pushes latest. Image Updater sees latest's new digest and updates Application devops; Argo CD rolls the pod. A release PR's CI builds, smoke-tests and scans the Service image without pushing. [sources: .github/workflows/release.yml, RELEASE_CYCLE.md]
Open questions
- Does this issue depend on another issue? (missing verified source)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
#1485
[end-marker]
Proposed design
Problem statement
The release process currently pins the Service image tag in k8s/devops/kustomization.yaml, bumps it during the release cut, pre-publishes it from the release branch, and verifies it matches the version. Once Image Updater (#1485) is live in the cluster, all of this is redundant: Image Updater moves the deployment when service:latest moves, and only the release merge to main moves latest. This issue removes the entire custom tag-pinning process (the kustomization images pin, the release.py bump and verify functions, the Argo CD targetRevision rewrite, the release-branch trigger and publication plan in release.yml, the ci.yml skip for release PRs, and their tests and docs) so the release simply builds, pushes, attests, and tags the image on merge to main, and Image Updater handles the rollout.
Acceptance criteria
- Criterion 1: No file in the repository and no step of the release writes or checks a Service image tag: no images: pin in k8s/devops/kustomization.yaml, no newTag bump in release.py, no pin check in devops release check, no targetRevision rewrite.
Verification: grep -r 'newTag|CONST_SERVICE_IMAGE|_update_service_image_tag|_verify_argocd_target_revisions' src/ k8s/ .github/ returns no matches; devops release check passes without referencing k8s/devops/kustomization.yaml. - Criterion 2: release.yml runs the Service image job only for the merge to main (and workflow_dispatch), pushes vX.Y.Z and latest after attestation, and has no release-branch trigger, plan step, or promote step.
Verification: The on.push.branches list in release.yml contains only main (no release/v*); the service-image job has no 'plan' step, no 'Point latest at the Published Service Image' step, and its if condition references only refs/heads/main or workflow_dispatch. - Criterion 3: ci.yml builds the release PR's Service image without pushing (the release-branch skip is removed).
Verification: The service-image job's if condition in ci.yml no longer contains 'startsWith(github.head_ref, release/v)'; the build step has push: false and load: true. - Criterion 4: The removed tests are gone, and the tests that remain assert the new release.yml and ci.yml shape and that the cut leaves k8s/ untouched.
Verification: tests/test_release_service_image_plan.py does not exist; tests/test_release.py has no tests referencing _update_service_image_tag, _release_paths staging k8s, or Argo CD targetRevision; tests/test_ci.py and tests/test_architectural_invariants.py assert the new workflow shape; uv run pytest passes. - Criterion 5: RELEASE_CYCLE.md, docs/ROUTINE_TASKS.md and k8s/README.md describe the new flow (build on merge, tag vX.Y.Z and latest, Image Updater rolls the pod); docs/agent/tasks/task-1451-*.md notes it is superseded by this item.
Verification: grep -n 'release/v|pre-publish|pin.*service|targetRevision' RELEASE_CYCLE.md docs/ROUTINE_TASKS.md k8s/README.md returns no references to the old flow; docs/agent/tasks/task-1451-image-before-main-pins-it.md contains a superseded note referencing refactor(release): the release no longer pins, bumps or pre-publishes the service image tag; image updater rolls service:latest #1486. - Criterion 6: changelog.d/1486.md exists with the item's changelog entry.
Verification: test -f changelog.d/1486.md && cat changelog.d/1486.md shows a non-empty entry. - Criterion 7: After the release that carries this merges, the Deployment rolls to the new latest digest with no git commit.
Verification: Person-checked: after the release PR merges, kubectl -n devops get deploy roadmap-service -o jsonpath='{.spec.template.spec.containers[0].image}' shows the new digest, and git log shows no commit touching k8s/devops/kustomization.yaml.
Key questions
- Who requested this change and what was the scope?: The owner requested it on 2026-10-09: 'rip out the custom process for updating service version tags completely'. The scope is removing all tag pinning, bumping, pre-publishing, and verification of the Service image tag, while keeping the image build and push on merge to main. (proposed)
- What happens to the k8s/devops/kustomization.yaml images pin?: It is removed. The images: block (name: ghcr.io/dan-petty/devops-cli/service, newTag: v0.2.30) is deleted from the kustomization, and the file is no longer staged by _release_paths or checked by devops release check. [sources: k8s/devops/kustomization.yaml:8-10]
- What happens to the ci.yml service-image job's release-branch skip?: The skip is removed. The service-image job in ci.yml currently skips release PRs because the release branch used to publish them; after this change, ci.yml builds the release PR's Service image without pushing, so the skip condition (startsWith(github.head_ref, 'release/v') && head.repo.full_name == github.repository) is deleted. [sources: .github/workflows/ci.yml:160-169]
- What is the new release flow for the Service image after this change?: On the merge to main, release.yml builds, scans, pushes and attests service:vX.Y.Z once, then tags it vX.Y.Z and latest. Nothing else ever pushes latest. Image Updater sees latest's new digest and updates Application devops; Argo CD rolls the pod. A release PR's CI builds, smoke-tests and scans the Service image without pushing. (proposed) [sources: .github/workflows/release.yml, RELEASE_CYCLE.md]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
#1485
[end-marker]
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 9, 2026
Placed by the owner, 2026-10-09: first in its release (#1485 in v0.2.31, then #1486 in v0.2.32), so Image Updater is live before the custom tag process is removed.
dan-petty-bot commentedon Oct 9, 2026
Intake placed this item kept in v0.2.32: a person placed it in v0.2.32, and that placement stands.
Owner-requested simplification that depends on #1485 being live; no active bug or security exposure, but it removes a maintenance burden and a class of timing defects.Eliminates a multi-file custom pinning pipeline, removes the timing window that caused #1451, and reduces the release surface area that must be tested and documented.Touches release.py, two workflow files, kustomization, constants, messages, five test modules, and three docs files, with acceptance criteria spanning all of them.dan-petty-bot commentedon Oct 9, 2026
Status set to Ready at 0b06ff4 (see proposed design in issue body).
refactor(release): the release no longer pins, bumps or pre-publishes…
dan-petty-bot commentedon Oct 9, 2026
What changed
#1504, merged into
release/v0.2.32as 4716d7f.20 file(s) changed.
How it was verified
Check runs at 58aaea5:
Acceptance Criteria of
docs/agent/tasks/task-1486-release-drops-service-image-tag.md:images:pin, nonewTagbump, no pin check indevops release check, notargetRevisionrewrite.test_release_prepare_leaves_k8s_untouched(tests/test_release.py) runsdevops release prepare 0.1.8over a kustomization pinningv0.1.7and an Application onrelease/v0.1.7: both files stay byte-identical, and_release_pathsnames nothing underk8s/.test_kustomization_lists_every_manifest_and_pins_no_image_and_stays_out_of_the_root(tests/test_k8s_devops_runtime.py) holds the kustomization free ofimages, andtest_both_workloads_run_the_digest_image_updater_sets_and_pull_it_only_when_missingstill renders both workloads on Image Updater's digest without the pin.release.ymlruns the Service image job only onmain, pushes it by digest, attests it and only then tagsvX.Y.Zandlatest, and has no release-branch trigger, plan or promote step.test_service_image_release_job_invariants(tests/test_ci.py) pins the trigger, the job's condition, needs and permissions, the absence of the plan, its gates and the promote step, the step order, the metadata tags, the push by digest with no tags and an SBOM, the tag step, the Trivy inputs, and no${{in arun:block.ci.ymlbuilds the release PR's Service image without pushing.test_service_image_ci_job_invariants(tests/test_ci.py) pins a condition with no release-branch or head-repository clause, read-only permissions, and a build that loads and does not push.tests/test_release_service_image_plan.py, the pin, bump andtargetRevisiontests intests/test_release.py,test_the_kustomization_survives_the_release_bump_rewrite(tests/test_k8s_devops_runtime.py) andtest_release_service_image_inputs_are_what_the_image_is_built_from(tests/test_architectural_invariants.py).changelog.d/1486.md.release/v0.2.32,gh run list -R dan-petty/devops-cli --workflow release.yml --branch release/v0.2.32 --limit 3lists no run that a push started after it.ci.yml's Service Image check (build, smoke test, Trivy) green, and no Build & Publish Service Image check.devops argo cd apps status devopsis Synced and Healthy, and the roadmap-service pod has not restarted:kubectl -n devops get pods -l app.kubernetes.io/name=roadmap-service -o jsonpath='{.items[*].spec.containers[*].image}'still names the previousservice:latest@sha256:digest.release.ymlrun onmain(gh run list -R dan-petty/devops-cli --workflow release.yml --branch main --limit 1), the job Build & Publish Service Image builds, scans, pushes, attests and tags.docker buildx imagetools inspect ghcr.io/dan-petty/devops-cli/service:latest --format '{{ .Manifest.Digest }}'and the same forservice:v0.2.32print the same digest, andgh attestation verify oci://ghcr.io/dan-petty/devops-cli/service:v0.2.32 -R dan-petty/devops-cli --signer-workflow dan-petty/devops-cli/.github/workflows/release.yml --source-ref refs/heads/mainpasses.kubectl -n argocd get imageupdater devops -o jsonpath='{.status.recentUpdates}'records that digest,kubectl -n argocd get application devops -o jsonpath='{.spec.source.kustomize.images}'holds it, and the roadmap-service pod'simageID(kubectl -n devops get pods -l app.kubernetes.io/name=roadmap-service -o jsonpath='{.items[*].status.containerStatuses[*].imageID}') and CronJobdevops-cli's image (kubectl -n devops get cronjob devops-cli -o jsonpath='{.spec.jobTemplate.spec.template.spec.containers[*].image}') carry it.git log origin/main -- k8s/devops/kustomization.yamlshows no commit after the release merge.feat(release): v0.2.32 (#1516)