Repository navigation
merge bus: #610 - #613
merge bus: #610#613github-actions[bot] wants to merge 2 commits into
Conversation
… left out) PR13 (#541) shipped the legibility half of "task pods survive a cutover" — the `er.dupezero.com/image-digest` annotation that makes a mid-deploy run legible — but not the proof half. This is the assertion the plan actually asked for. A task pod's ONLY route to the control plane is `svc/er-api` (`ER_SERVER_URL` in the task template is `http://er-api.<ns>.svc.cluster.local:8000`), so a cutover moves its heartbeats, claim renewals and finish call onto a different er-server process than the one that launched it. If that were visible to a running attempt, a deploy would fail paying work: a data-path failure caused by a serving-path deploy. Phase 6 flips `color.active` with a task in `running` and asserts the attempt did not notice: settles succeeded, `launches == 1`, and no termination_reason. `exec-task` has TWO unreachability windows, and getting the assertion right meant reading which one this phase can actually reach: step 1, work order 6 ticks x 10s = 60s, then control_plane_unreachable, exit 3, charged to the launch budget. A task already running is PAST this; a sibling that launches after the flip is not. heartbeat thread posts every 30s, fences after 3 consecutive transport misses (~90s). Step 6 then refuses to post a verdict and writes `fenced` — the work completed and the result is discarded, which is the expensive one. So the assertion is `termination_reason is None`, not a single named reason. Asserting only `!= "control_plane_unreachable"` would have been decoration: it is unreachable in the window this phase creates, so the guard could not have fired no matter what the cutover did. `is None` covers fenced, sigterm, stale_start, structural_mismatch and control_plane_unreachable together, and a succeeded task carries no reason — every writer of the field in er-server (`skipped`, `control_error`, `config`, `heartbeat_timeout`, `no_terminal_record`, `DeadlineExceeded`, `build_skew`) is a failure path. Distinct from phase 2 in what it exercises. The dispatcher is not coloured and does not restart here, so adoption is not involved; what is proved is that the attempt's callback path is stateless across the two pods. Three things done so the phase cannot pass having proved nothing: - **It refuses a pre-colour chart.** An empty `er.dupezero.com/color` selector on `svc/er-api` fails the phase outright, rather than flipping nothing and asserting a task succeeded. Observed firing against the stale local kind release, which is still on a pre-PR9 chart. - **It asserts the selector actually moved** after the flip, so a no-op upgrade is a failure rather than a pass. - **`termination_reason` is read by subscript, not `.get()`**, so a renamed or dropped field raises KeyError instead of passing on a `None` that only means "no such key". It restores the release afterwards (flip back, then retire — the reverse order would blackhole the Service for the length of the scale-down), so the probe stays re-runnable and a later `kind_env.sh up` does not inherit a surprising active colour. Note the probe's own port-forward is unaffected and that is not a gap: `kubectl port-forward svc/...` resolves to one pod when the stream opens and does not re-resolve, so its reads keep landing on the old colour — which still runs, because retiring it is the deploy's third phase. Both colours read the same Postgres. The flip is proved by the selector assertion, not by where curl lands. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…r (the half PR13 left out)
|
The batch went red on: test, test shard (er-match). Nothing was merged. Left open so the combination stays inspectable — run log. |
|
Closing: the batch's red was a 30-minute timeout on The cause is inherent to batching: a batch branch is a novel tree, so sccache misses and the job pays a cold bundled-DuckDB rebuild — the Everything else in this run worked: the bus approved its own held runs ( |
Batch of 1: #610
This PR exists so the ordinary gate runs against the combination of those
PRs rather than against each one separately against a base that has since moved.
If it goes green the members are squash-merged in order; if it goes red nothing
merges. Opened by
merge-bus.yml, run42099563401.