Skip to content

deploy.yml's push trigger was a misdiagnosis — remove it and gate what it was protecting #661

Closed

Description

@athvin

Verified-open work, checked against the workflows and the run history · release mvp · estimate 0.2 eng-weeks

deploy.yml's push: trigger was added by #587 to fix a cause that was misdiagnosed. It is redundant, it has never once fired on a commit it was designed for, and it now puts a red deploy run on main for ordinary commits.

What #587 believed, and what was actually true

#587's reasoning, written into deploy.yml:

images only runs when something that goes INTO an image changes, so a commit touching just infra/k8s/** builds nothing, images never runs, and this workflow never fires.

images.yml's own push: paths include infra/k8s/**, scripts/obs_up.sh and .github/workflows/deploy.yml — and already did before #587, confirmed by reading ed3a22ab^. So a platform-only commit does trigger images, which skips both build jobs, concludes success, and fires deploy through workflow_run.

The real cause of #507's allowlist never deploying was cancellation. For its merge commit d4dae454:

images   completed/cancelled   push
deploy   completed/skipped     workflow_run   # the `if` requires conclusion == 'success'

That is the cancel-in-progress: true failure fixed by #599, not a missing trigger.

What the redundant trigger has actually done

Every deploy run since #587, by event:

commit event result
c74a69ac push failure — the #600 staleness guard correctly refused a deploy that raced ahead of its own image build
6dd47093 push cancelled
0a4c2261 push cancelled
5f2fb497 push success, racing the workflow_run deploy for the same commit

Four firings, none on an infra/k8s-only commit — there has not been one in the last 40 commits on main. Every firing was on a mixed commit, where the push path runs before the image exists.

The failure mode is the one deploy.yml already warns about one layer up: a red deploy on main that is pure noise trains the reader to ignore deploy failures, and a real one then looks the same.

Tasks

  • Remove the push: trigger and the PLATFORM_ONLY env var (:74 and :134 as of 2026-11-07); with one path left, the notice-vs-warning fork in "Resolve image digests" collapses to the warning.
  • Correct the header comment to the real diagnosis — cancellation, not a missing trigger — so the next reader does not re-add it.
  • Add the gate this leaves needed: deploy is now reachable only through images, so images.yml's push: paths must keep covering infra/k8s/**, scripts/obs_up.sh and .github/workflows/deploy.yml. Trimming that list would silently make platform changes undeployable again — the original bug, through a third door.
  • Put the gate in rust/crates/er-schema/tests/, registered in tests/main.rs. Precedent: collector_allowlist.rs already reads infra/k8s/** YAML from a Rust test, and that lands it in the required test context rather than in the ungated workflow pins (S9) job.

What removal gives up, deliberately

If images fails on a commit carrying a platform change, the platform half no longer deploys on its own. That is the right outcome — half a commit should not roll — and workflow_dispatch remains for a human.


Found 2026-11-05 after #615's merge produced a red deploy on main that was correct to fail.

Activity

  1. added
    mvp
    ci-backlog
    on Nov 6, 2026
  2. self-assigned this
    on Nov 8, 2026
  3. athvin commented on Nov 8, 2026

    @athvin
    OwnerAuthor

    Claimed — working in the draft PR above; closing it releases the claim.

  4. added 2 commits that reference this issue on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ci-backlogmvp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions