Overview
| Artifact ID: | 6df2e4ef7871de10195e19f99074a5e20535054121c5cb57dc10ee0689f16a41 |
|---|---|
| Ticket: | 49323c33748834d7e774e3c6b09be90481526f09
ci: fire a run when a landing opens and its tip has none |
| User & Date: | zeitgeist on 2026-09-14 12:52:00 |
Changes
- Untracked field cmimetype: "text/x-markdown"
- comment changed to:
Narrowed 2026-09-14 after tracing what exists. Original ask: the event half of zit#127 — fire a pipeline when a landing opens AND when a new check-in lands on a branch with an open landing. THE BRANCH HALF IS DONE, by a different mechanism than this ticket proposed. registrar.go's fold loop calls ci.Trigger on every fold, so every check-in on any branch gets a run, and ci/trigger.go supersedes that branch's still-running runs. Branches with open landings are covered incidentally, by the watermark sweep. That also answers the question this ticket left open — whether the branch watch is separate from the artifact watch, or one subscription covers both. Neither: there is no watch. evt.BranchMoved and evt.LandingOpened are both raised, and nothing in CI subscribes to either. No run is started from the event plane or the v2 dispatcher. WHAT IS LEFT: opening a landing does not fire a run. The only two callers of a run-starter are that fold loop and the manual ci.trigger op; landing.open does not touch CI. So a landing opened at a check-in whose run never happened, was pruned, or was cancelled shows "Waiting for 1 required check", and the reader has to know to press Re-run — which web.go's AnyRunning comment already states outright: "a required check with no run at all, where Re-run is the only way to start one." Same dead end as cancelled-run recoverability; worth doing together.
- icomment:
Traced this today. The branch half is already satisfied — by the fold loop, not by an event subscription — so the design question this ticket left open has no answer to give: there is no watch. What is left is only the landing-open trigger, and it is the same dead end as cancelled-run recoverability. Description narrowed to that; the title follows it.
- mimetype: "text/x-markdown"
- title changed to:
ci: fire a run when a landing opens and its tip has none