ci(deploy): probe backend /readyz so a dead backend fails the deploy #94
Reference in New Issue
Block a user
Delete Branch "feature/deploy-backend-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?
What
Add a backend
/readyzprobe to the deploy job's health check.Why
While fixing the dictionary seed-drift issue, a crash-looping backend twice passed the deploy green. Root cause: the post-deploy probe only checks
GET /(static landing) andGET /app/(gateway-served SPA shell) through the edge caddy — neither needs the backend, so a dead backend is invisible to it.(Note: the deploy checkout is fine — it builds the PR's code,
refs/pull/N/head; an earlier hunch that "PR deploys build base" was wrong, confirmed from the run #442 deploy log. The real gap was the probe.)Change
Probe the landing, gateway and backend: add a third check,http://backend:8080/readyzon thescrabble-internalnetwork, to the same retry loop; dump backend logs on failure. A backend that cannot become ready now fails the deploy loudly instead of going green.Verification
This PR's own test-contour deploy exercises the new probe (the backend is healthy now → it should pass). One-line shell addition to an existing step; YAML structure unchanged.