Skip to content

merge bus: #610 - #613

Closed
github-actions[bot] wants to merge 2 commits into
mainfrom
merge-bus/42099563401
Closed

github-actions[bot] wants to merge 2 commits into
mainfrom
merge-bus/42099563401

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

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, run 42099563401.

bmoore813 and others added 2 commits November 5, 2026 14:18
… 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]>
@github-actions github-actions Bot added the bus-failed merge bus batch went red label Nov 5, 2026
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

The batch went red on: test, test shard (er-match). Nothing was merged. Left open so the combination stays inspectable — run log.

@athvin

athvin commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Closing: the batch's red was a 30-minute timeout on test shard (er-match), not a test failure — the shard ran 20:03:33→20:33:52, exactly its timeout-minutes: 30, and test then failed closed on the non-success leg, correctly.

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 build-cost.md "a lock-touching PR runs cold until it merges" effect, reached via a new branch rather than a lockfile change. test-shard is capped at 30m where lint and the e2e tiers get 45m.

Everything else in this run worked: the bus approved its own held runs (approved run 42099638414/63/82), detected held-ness via the Actions API, named the right failing contexts, labelled bus-failed, commented on the member, and merged nothing.

@athvin athvin closed this Nov 5, 2026
@athvin
athvin deleted the merge-bus/42099563401 branch November 5, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bus-failed merge bus batch went red

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants