Repository navigation
Description
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:
imagesonly runs when something that goes INTO an image changes, so a commit touching justinfra/k8s/**builds nothing,imagesnever 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 thePLATFORM_ONLYenv var (:74and:134as 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:
deployis now reachable only throughimages, soimages.yml'spush:paths must keep coveringinfra/k8s/**,scripts/obs_up.shand.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 intests/main.rs. Precedent:collector_allowlist.rsalready readsinfra/k8s/**YAML from a Rust test, and that lands it in the requiredtestcontext rather than in the ungatedworkflow 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
athvin commentedon Nov 8, 2026
Claimed — working in the draft PR above; closing it releases the claim.
wip: claim #661 — remove deploy.yml's misdiagnosed push trigger
fix(ci): remove deploy.yml's misdiagnosed push trigger and gate the i…