Skip to content

The merge bus lands a commit with no push event, so images/deploy never run for it #782

Not planned

Description

@athvin

Found while landing #777 and #779 — the first two PRs the merge bus has
actually merged.
The land half had never carried members to completion before,
so this consequence has not been observable until now.

What happens

A bus-landed commit creates no push workflow run at all. Not created and
cancelled — never created.

Evidence, 2026-11-07:

The cause is GitHub's documented rule that events triggered by GITHUB_TOKEN
do not create new workflow runs. merge-bus-land.sh:39 runs
gh pr merge "$n" --squash --delete-branch under
GH_TOKEN: ${{ github.token }}.

This is not the merge-burst cancellation already recorded in land-pr
(#main-push-gate-cancels-under-merge-burst). That one leaves a run in the list
with conclusion: cancelled and zero jobs. Here there is no row to find.

Why it matters, and the part that is not redundant

The confirmation runs (rust, frontend, infra, devcontainer on push) are
largely redundant for a bus landing — the batch PR already proved the
combination, which is strictly better evidence than each member against a stale
base. Losing those is close to harmless.

images and deploy are not redundant, and they are lost too.

  • images.yml triggers on push: branches: [main] with paths covering
    rust/**, frontend/**, infra/k8s/**, scripts/dev_env.sh,
    scripts/obs_up.sh.
  • deploy.yml triggers on workflow_run of images.

So a rust/** or frontend/** change landed by the bus is never deployed.
It merges green and simply never reaches the cluster, until some later human
merge happens to touch an image input and carries it along incidentally.

deploy.yml's own trigger block documents this exact failure class, found the
hard way via #507 — "a change that merges green and is simply never applied."
This is the same bug arriving through a different door, and the door is the
mechanism we are trying to make the default path for merges.

Nothing is currently un-deployed

#777 and #779 touch only .claude/**, docs/**, CLAUDE.md and
scripts/skills-check.sh, none of which is an images path. So there is no
pending deployment to recover — the gap is latent until the bus lands a code
change.

main was verified green with both changes on it by the three routes that do
not need a push run: the batch PR #780's full tier (test, entities,
DuckLake + extensions e2e) against a tree byte-identical to main's
(0-line diff), the gates run directly against origin/main, and ancestry.

Options, not a recommendation

  1. Have the bus dispatch images itself after a successful land, via
    workflow_dispatch or repository_dispatch. Keeps the token story
    unchanged. Needs images.yml to accept a dispatch with an explicit ref, and
    needs the paths decision replicated (or images-detect.sh reused) so a
    docs-only batch does not build.
  2. Merge with a PAT carrying workflow/repo. Fixes the trigger
    generically but adds the long-lived credential the bus exists without — the
    file argues against this explicitly, and the same objection already keeps
    workflow-touching PRs off the bus.
  3. Accept it and make it loud, i.e. the bus reports "landed; no deploy will
    fire for these SHAs" and names the image paths the batch touched, so a human
    knows to dispatch. Cheapest, and honest, but relies on someone reading it.

Option 1 looks right to me, with the caveat that any fix touching
.github/workflows/** cannot ride the bus (GitHub refuses an App-token push
there and workflows is not a grantable GITHUB_TOKEN scope), so it is a
hand-merge.

Acceptance

A bus landing of a commit touching rust/** is observed producing an images
run and a deploy run — observed, not reasoned about, per the house rule that a
gate is trusted only after being watched work.

Activity

  1. athvin commented on Nov 7, 2026

    @athvin
    OwnerAuthor

    Refinement — the consequence is "blocked loudly", not "silently stale". The
    original description says a bus-landed code change "is never deployed", which
    overstates it. Observed on 4affe218 (#786) an hour later:

    deploy found no image tagged with the SHA, fell back to the newest ECR digest,
    then compared source commits and refused:

    the newest digest in ECR was built from b5146071…, and these paths changed
    between it and 4affe218…. Refusing to deploy rather than reporting success on a
    stale image. Build it with: gh workflow run images.yml -f ref=4affe2183d58…
    

    So there IS a backstop. If the bus lands a rust/** change with no images
    run, that change is not deployed — but the next deploy to run will refuse
    and name the remedy, rather than quietly serving a stale image. That is the
    #507 failure mode already defended against, from the other side.

    What this changes:

    • Severity drops. The silent-never-applied scenario is covered; the real
      cost is a blocked deploy and a manual images.yml dispatch, discovered by
      whoever merges next rather than by whoever used the bus.
    • The confusing part stays. The person who sees the red deploy is not the
      person who used the bus, and the error names their SHA, so the diagnosis
      points at the wrong commit. That is the argument for option 1 (bus dispatches
      images after landing) — not data loss, but misattributed failure.

    Acceptance unchanged, and still wants to be observed rather than reasoned about.

  2. athvin commented on Nov 26, 2026

    @athvin
    OwnerAuthor

    Closing as not planned during a board triage. The merge bus workflow has been removed from the tree, so there is no bus left to land a commit without a push event.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions