deploy.sh: fix the daemon-binary probe, which always dropped daemon #33
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Jinemi/thermograph#33
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-daemon-probe"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while checking live status on beta:
thermograph-daemon-1was stillrunning an old backend image tag while backend/lake had rolled forward twice
in a row.
Root cause, reproduced directly against beta
docker compose config --images daemondoes not filter to the namedservice on this host's Compose v5.3.1 — it prints every service's image, one
per line, in file order:
| head -1was silently grabbing db's image instead of daemon's. Theprobe then always found no
/usr/local/bin/thermograph-daemonin a Postgresimage and concluded "this image predates the daemon binary," dropping daemon
from every single backend deploy, regardless of what the real backend
image actually contained — the exact
/internal/*version-skew this guardwas written to prevent, caused by the guard itself.
(Prod wasn't affected — it deploys via the Swarm stack path, which reconciles
the full declarative service list on every run rather than rolling a
TARGETSsubset, so it never had this failure mode.)Fix
Build the image reference directly from the same vars
docker-compose.yml'sdaemon.image:already interpolates(
REGISTRY_HOST/BACKEND_IMAGE_PATH/BACKEND_IMAGE_TAG) instead of goingthrough
docker compose configat all — no dependency on that command'sfiltering behavior, and it can't disagree with what compose will actually
run.
Verification
secrets sourced: confirmed it selects the wrong (db) image.
and the binary probe passes.
shellcheck -x: 0 findings.bash -n: clean.Once this merges I'll trigger a backend redeploy to bring beta's daemon back
in sync (currently 2 releases behind, functionally inert there since the
Discord token is prod-only, but worth correcting).