Repository navigation
fix(tts-audio): pin the backfill image and make DRY_RUN renderable - #287
Merged
Merged
Conversation
Two bugs in how the backfill Job was plumbed, both found by running it against
the cluster rather than by reading the manifest.
**The Job pulled `:latest`, which does not exist.** Rendering the Job outside the
kustomization took it out of `images.newTag`'s reach — that transform only
rewrites resources *inside* the kustomization — so it kept the literal `:latest`
and died with ErrImagePull on the first run. It now renders `${WORKER_IMAGE}`,
the same `image:tag` the Deployment runs, and `test.sh` fails if `:latest`
comes back.
**`DRY_RUN=1` could not work at all.** The target passed it with
`kubectl set env job/tts-backfill`, which patches the pod template — immutable
once the Job exists — so `make backfill-plan` failed with "field is immutable"
instead of printing the plan. DRY_RUN is now a render-time value like every
other, substituted by render.sh (default "0"), and the set env hop is gone.
Verified end to end against the live cluster:
`{"result":"dry-run","scanned":221,"eligible":221,"created":221,"failed":0}`,
with zero synthesis Jobs created.
Both are covered by new assertions in test.sh, each checked against an injected
regression.
ngeorger
approved these changes
Nov 28, 2026
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.
Two bugs found by running the backfill after #286 merged, not by reading the manifest.
1. The Job pulled
:latest, which does not existMerging this with #286 introduced it: rendering the backfill outside the kustomization took it out of
images.newTag's reach — that transform only rewrites resources inside the kustomization — so it kept the literal:latest. The first real run died immediately:It now renders
${WORKER_IMAGE}— the sameimage:tagthe Deployment runs, so a receiver can never queue Jobs on an image it was not built with.2.
DRY_RUN=1could not work at allThe target set it with
kubectl set env job/tts-backfill, which patches the pod template. A Job's pod template is immutable once created, somake backfill-planfailed withfield is immutableinstead of printing the plan — the exact command the README tells you to run first.DRY_RUNis now a render-time value like every other (default"0", substituted byrender.sh), and theset envhop is gone.Verification
Against the live cluster, with the merged image deployed:
Zero synthesis Jobs created — the plan printed and nothing was queued.
deploy/tts-audio/test.sh✅ (93 worker tests) with four new assertions: the Job image is pinned toTAG,:latestis rejected,DRY_RUNdefaults to0, andDRY_RUN=1reaches the Job. Each was checked against an injected regression.