Skip to content

fix(kind): build under a content-addressed tag and verify by image ID (#815) - #1342

Merged
athvin merged 1 commit into
mainfrom
fix/815-kind-image-tag
Nov 28, 2026
Merged

athvin merged 1 commit into
mainfrom
fix/815-kind-image-tag

Conversation

@athvin

@athvin athvin commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Closes #815

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

scripts/kind_env.sh tags er-api by content (short HEAD, plus a diff hash when dirty; ER_KIND_IMAGE_TAG overrides) and fails kind-up unless every er-api pod's imageID is the digest just pushed. check_kind.sh prints the running image IDs. The probe docs (batch-orchestration-design) gain the image-ID rule and the drifted-local-Postgres recovery.

#815: a mutable :kind tag plus IfNotPresent kept a stale image on a long-lived node, so a probe could pass against code that never reached the cluster. #814's mutation work depends on this.

Proof

  • bash -n on both scripts; scripts-home-check and skills-check pass.
  • The kind workflow dispatched on this branch (run 46113050988) brings the cluster up through the new tag and image-ID check, then runs every check_kind.sh phase.
  • Stale-node case, by construction: two different commits get two different tags, so IfNotPresent can no longer reuse a cached image across commits; and the post-install image-ID comparison fails loudly if a node ever runs anything but the pushed digest.

Risk & rollback

Local/CI kind tooling only. git revert <merge-sha>.

Post-merge ledger

Closed by: agent · session Claude Code:24d16c2e-fec6-49d8-9797-060338df4848 on brians-MacBook-Pro · 2026-11-28T22:20:30Z

  • main is green with this change on it — the merge SHA, and the run
    that proves it. A later head SHA with this commit as an ancestor counts;
    a cancelled run with zero jobs does not: — 26d6776, rust 46155431323 + frontend 46155431159 success
  • images built, or correctly never ran because nothing that goes into
    an image changed: — n/a — scripts and docs only; no image input changed
  • deploy converged — proved by a line the running process emitted, not
    by the image digest and not by the workflow conclusion: — n/a — nothing deploys from kind tooling
  • the push-only surface no pull request can pre-test (deploy, drift,
    kind's nightly leg) is green, or knowingly red for a reason that is not
    this change: — infra, devcontainer success on 26d6776; the kind probe's own evidence is below
  • the board card reached Done through the automation rather than by
    hand, and the issue closed: — kind probe deploys a stale image: mutable :kind tag + default IfNotPresent #815 CLOSED by fix(kind): build under a content-addressed tag and verify by image ID (#815) #1342 via automation
  • follow-ups are open for everything deferred here — numbers: — none
  • what was learned is written down where the next session will find it
    (a skill, a reference, memory) — or nothing new was learned: — the kind log now prints the content tag and the running digest; use those lines, not the tag, when a probe result is in doubt

Specific to this change

  • the dispatched kind run on this branch passes — 46113050988 success: up … from er-api:6818e747852d (sha256:f9e877f8…) and image IDs running: sha256:f9e877f8…, equal
Context — plan, discoveries, measurements, files

Plan

Discoveries

  • The chart's common label is app.kubernetes.io/part-of: er, not er-platform.

Measurements

Files

🤖 Generated with Claude Code

…#815)

make kind-up pushed er-api under the mutable tag :kind, and with no
imagePullPolicy (IfNotPresent) a node that already held :kind kept its old
image: a probe or mutation run reported on code that never reached the
cluster. The tag is now the short HEAD, plus a diff hash when the tree is
dirty (ER_KIND_IMAGE_TAG overrides), and kind-up refuses to report up unless
every er-api pod's imageID is the digest it just pushed. check_kind.sh
prints the running image IDs first. The probe docs gain the drifted-local-
Postgres recovery.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@athvin
athvin merged commit 26d6776 into main Nov 28, 2026
48 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 28, 2026 14:35 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
marketing-preview — 6818e747 Deployed Nov 28, 2026 by athvin via remove closed PR previews #119
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kind probe deploys a stale image: mutable :kind tag + default IfNotPresent

2 participants