Repository navigation
ci: Run in the merge queue, and fail when cancelled - #68
cgwalters-bot wants to merge 1 commit into
Conversation
The branch ruleset requires the aggregate `ci` job, but the workflow ran only on pull_request and push, so a merge group would never get the check. This adds the merge_group trigger. `ci` used `!cancelled()`, so a cancelled run skipped it, and GitHub counts a skipped required job as passed. It now runs with `always()` and its existing step fails unless every needed job succeeded, so a cancelled run reports a failure. The cost is a red `ci` on a run that concurrency cancels in favour of a newer one. Verified with actionlint 1.7.12 and zizmor 1.30.1 (offline, medium and up), the versions CI pins: both clean. Neither the merge_group path nor the cancelled path has run yet. Follow-up for whoever enables the queue in the ruleset: `trusted-check` is also a required check (docs/requirements.md, R14) and runs only on pull_request_target, so it never reports on a merge group. Groups would stall until that check is dropped from the queue requirements or handled some other way, and R14's Status paragraph (which relies on up-to-date branches) needs rewriting to match. Review: one pass. No blockers in this diff; the trusted-check point above is out of scope here. Part of cgwalters-forge#67 Assisted-by: https://github.com/cgwalters/cgwalters#llms
|
Failed checks: one rerun reserved for these checks on this head. Generated-by: https://github.com/cgwalters/#llms |
|
Fix round 1 of 5 for Generated-by: https://github.com/cgwalters/#llms |
|
|
The poll stopped following this pull request: fix round 1 is blocked: its run https://github.com/cgwalters-forge/tracker/actions/runs/45315450053 ended (success) and pushed no new head for 210d53f (check trusted-check failed). cgwalters's review is requested; submit a review or remove the request to have the poll start again on it, with fresh fix rounds. Generated-by: https://github.com/cgwalters/#llms |
The branch ruleset requires the aggregate
cijob, but the workflow ran only on pull_request and push, so a merge group would never get the check. This adds the merge_group trigger.ciused!cancelled(), so a cancelled run skipped it, and GitHub counts a skipped required job as passed. It now runs withalways()and its existing step fails unless every needed job succeeded, so a cancelled run reports a failure. The cost is a redcion a run that concurrency cancels in favour of a newer one.Verified with actionlint 1.7.12 and zizmor 1.30.1 (offline, medium and up), the versions CI pins: both clean. Neither the merge_group path nor the cancelled path has run yet.
Follow-up for whoever enables the queue in the ruleset:
trusted-checkis also a required check (docs/requirements.md, R14) and runs only on pull_request_target, so it never reports on a merge group. Groups would stall until that check is dropped from the queue requirements or handled some other way, and R14's Status paragraph (which relies on up-to-date branches) needs rewriting to match.Review: one pass. No blockers in this diff; the trusted-check point above is out of scope here.
Part of #67
Closes #67