fix(ci): gate the three ungated pipelines on their own variable #155
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/gate-manual-pipelines"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
A manual
crow pipeline createinstantiates every pipeline in.crow/, and each one decides for itself whether to run. Three had nothing to decide with — their only manual condition was a bareevent: manual:auto-apply-patches— pushes toauto/registry-patch-proposalsand opens/updates a PRweekly-patch-proposals— posts and edits two Forgejo issuestrial-build-registry— starts a build per matrix row, on both archesSo they fired on any manual trigger in this repo, whatever it was for. That is how they came to run alongside a manual
process-updatesrun foralpine-324-arm64(#10723), which is also why that pipeline is marked failure.repair-built-stamp.yamlalready documents the rule this breaks:What this changes
Each of the three gets a gate variable named after the pipeline,
evaluated on the manual event, defaulting to off:Cron triggers are untouched, so the scheduled runs behave exactly as before.
The run-manually comments in all three headers were also stale: they documented
--var task=<name>withwoodpecker-cli, and no pipeline evaluates ataskvariable. They now show the real invocation.Note on the sibling pipelines
The already-gated pipelines use
default: all(e.g.weekly_rebuild_missing). If Crow applies a declared default to a variable that an API-created pipeline never passed, those would match on an unrelated manual run too —weekly-rebuild-missingwould be an expensive way to find out. I could not settle that from #10723 because its step logs have since expired, so I left them alone rather than guess. The three fixed here default to'false', which is safe under either semantics.Verification
crow lint .crow/passes. Auditing every pipeline that accepts a manual event now reports a gate on all ten: