Skip to content

Expose git commit in /health; verify deploys by commit; bump actions - #18

Merged
ConalMullan merged 1 commit into
developfrom
chore/ops-follow-ups
Jul 31, 2026
Merged

Expose git commit in /health; verify deploys by commit; bump actions#18
ConalMullan merged 1 commit into
developfrom
chore/ops-follow-ups

Conversation

@ConalMullan

Copy link
Copy Markdown
Collaborator

Summary

Follow-ups from ops' migration to the Monza registry and pull-based deploys:

  • /health now reports the git commit. Ops noted the wait step couldn't prove a deploy — package version doesn't change on every commit, so a stale container is indistinguishable from a fresh one. GIT_COMMIT already reaches the build as a build-arg; this exposes it in the health payload.
  • Deploy verification is now exact. The dev wait step compares /health's commit against github.sha; a healthy host serving the wrong commit after 6 minutes fails the run instead of warning. One transitional warning is expected on the first deploy (the running image predates the commit field). Prod gets the same commit-first check with the version match kept as fallback.
  • actions/checkout and actions/setup-node bumped v4 → v5 (Node 20 runner deprecation warnings flagged by ops).
  • CLAUDE.md deployment docs rewritten for the pull-based flow: hosts self-deploy on a timer, compose/.env are host-managed (ops request, not a commit), :latest is dev's tag only.

Test plan

  • Build, lint (0 errors), format check, 481 unit tests green
  • After merge: dev deploy should end with the transitional "no commit field" warning, then the next deploy verifies exactly by commit

🤖 Generated with Claude Code

https://claude.ai/code/session_016LdzWqfHMC51154WW2oSZc

Follow-ups from the ops registry migration to pull-based deploys:

- /health now includes the commit field (GIT_COMMIT already flows in via
  Docker build-arg -> version.json -> version.ts; it just wasn't exposed)
- deploy-dev wait step verifies by commit instead of package version -
  version matching cannot distinguish a same-version commit from a stale
  deploy. A healthy host serving the wrong commit after 6 min is now a
  failure, not a warning (one transitional warning while the running
  image predates the commit field)
- deploy-prod wait step prefers commit verification, keeping the version
  match only as a fallback for the pre-commit-field image
- actions/checkout and actions/setup-node bumped v4 -> v5 (Node 20
  runner deprecation warnings)
- CLAUDE.md deployment section rewritten for the pull-based flow
  (compose is a reference copy; :latest is dev-only)
@ConalMullan
ConalMullan merged commit a22d022 into develop Jul 31, 2026
3 checks passed
@ConalMullan
ConalMullan deleted the chore/ops-follow-ups branch July 31, 2026 11:43
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.

1 participant