Repository navigation
fix(deploy): keep healthy targets through production cutover - #1062
Merged
Merged
Conversation
athvin
force-pushed
the
fix/1043-cutover-gate
branch
from
November 9, 2026 20:17
770370e to
69b6b76
Compare
athvin
marked this pull request as ready for review
November 9, 2026 20:17
athvin
force-pushed
the
fix/1043-cutover-gate
branch
from
November 9, 2026 21:41
69b6b76 to
dec8956
Compare
This was referenced Nov 9, 2026
This was referenced Nov 9, 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.
Closes #1043
What
Keep old ALB targets registered while the replacement colour becomes healthy, then verify public health before retirement. Roll back on failed verification.
Why
Proof
45 local CI-helper tests pass, including 11 cutover tests; intentionally broken target matching and overlap selectors both made their gates fail. Helm lint, all profile schema validation plus production overlap, selector checks, actionlint, workflow-shell/scripts-home checks and skills-check pass.
Risk & rollback
The overlap briefly serves both already-smoke-tested versions; each BFF reaches its own same-pod API. Additive migrations remain mandatory. Canonical live/preview selectors stay colour-specific through interruption. Any target/public verification failure restores the old colour and fails the deploy before retirement; a rollback failure remains visibly red with both Deployments retained.
Post-merge ledger
Closed by: Codex · session
01a1be1a-66a7-72f3-8e78-32c20c5e0da9onMac-46· 2026-11-09T22:22:06.103400+00:00mainis green with this change on it — merge0a208d9c8c6cd8e9275ec4e6da7bc1fd4e0145ae; all six runs succeeded: rust42706398325, frontend42706398145, infra42706398187, images42706398156, devcontainer42706398484, deploy42706442649. The 30-minute post-merge watch completed; no attributable CI/deployment failure. Application readiness failures are explicitly tracked below and in Fix production readiness timeouts during dashboard reads #1067.images— 42706398156 succeeded and reused unchanged API/web images; this change alters deployment behavior and the chart.deployconverged — 42706442649 logged exact DEPLOY_SHA0a208d9c8c6cd8e9275ec4e6da7bc1fd4e0145aeand passed both environments. Prod logged both expected ALB targets healthy at 21:53:47Z, public readiness healthy for three minutes at 21:56:52Z, and retired green at 21:56:54Z. Independent readback: er-web and er-web-edge select blue, ALB10.1.164.9healthy, blue 1/1 and green 0/0. Running API emitteder-server listeningat 21:52:51.130164Z. Dev green is 1/1 with blue 0/0 and emitted startup at 21:55:09.394202Z; events explain that later start as a forceful node eviction/replacement of the same ReplicaSet, not a second deployment. Both live pods have zero restarts..claude/skills/infra-platform/references/infrastructure.mddocuments staged edge target registration, canonical Service isolation, public health verification, draining and rollback. Fix production readiness timeouts during dashboard reads #1067 preserves the separate application-timeout evidence and diagnosis leads.Specific to this change
Normal demo login reaches the dashboard in Chromium and WebKit; both read 23 synthetic records with no page errors. This confirms navigation, not complete application availability: the independent monitor caught two upstream-unreachable health failures during these reads, recorded in Fix production readiness timeouts during dashboard reads #1067.
Completed the post-merge watch from 21:51:06Z through 2026-11-09T22:22:03.590430+00:00: 353 public-health samples, 351 HTTP200/ready=true and 2 HTTP503. Both failures were application JSON upstream-unreachable at 21:59:08Z and 21:59:15Z during ordinary dashboard reads; deferred — Fix production readiness timeouts during dashboard reads #1067. No ALB registration 503 was sampled during either fixed cutover. The owned observer was stopped after this window. This is not a claim of complete production availability.
A second real cutover on descendant
80c674ecalso passed in 42710140151: two expected ALB targets healthy22:16:46Z, public readiness passed three minutes22:19:53Z, blue retired22:19:55Z. Independent readback22:21Z: green1/1, blue0/0, pod2/2 with zero restarts, target10.1.164.13 healthy; live process emitted startup22:15:46.364193Z. The newer commit's Rust/frontend/infra/images/devcontainer workflows also succeeded.Context — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files
Implementation plan