Repository navigation
ci: don't run push CI on merge-queue branches - #12633
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughTwo GitHub Actions workflows expand shorthand ChangesWorkflow Trigger Deduplication
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
GitHub's merge queue runs each entry on a temporary `gh-readonly-queue/**` branch, whose creation also fires a `push` event. For `ci.yml` (`on: [push, pull_request, merge_group]`) that produced two TS CI runs for the identical commit: one `push`, one `merge_group`. Both reach the reusable `test.yml`, whose concurrency group keys on `github.ref` with `cancel-in-progress: true`. Since the two runs share `github.ref`, their per-(platform, node, chunk) test jobs land in the same group and cancel each other. The Windows shards are gated only on compile-and-lint + build-pnpr, so both runs' Windows jobs start near-simultaneously and reliably collide. The `merge_group` run — the only one the queue's required `TS CI / Success` check reads — lost the race, so its cancelled test jobs failed `Success` and ejected the PR for "failed status checks". Restrict the `push` trigger to ignore `gh-readonly-queue/**` so only the `merge_group` run executes for queued commits. `pacquet-ci.yml` already scopes push to `main` and was unaffected. Apply the same `branches-ignore` to `audit.yml` to drop its redundant push run on those branches.
PR Summary by QodoCI: skip push-triggered workflows on merge queue gh-readonly-queue branches Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1. Merge-queue audit removed
|
f9aa0b3 to
01d725d
Compare
|
Code review by qodo was updated up to the latest commit 01d725d |
1 similar comment
|
Code review by qodo was updated up to the latest commit 01d725d |
Summary
Fixes the merge queue ejecting PRs for "failed status checks" (e.g. this run).
GitHub's merge queue runs each entry on a temporary
gh-readonly-queue/**branch, whose creation also fires apushevent. Becauseci.ymllistens on[push, pull_request, merge_group], this produced two TS CI runs for the identical commit — onepush, onemerge_group:Both runs reach the reusable
test.yml, whose concurrency group keys ongithub.refwithcancel-in-progress: true. Since the two runs sharegithub.ref, each per-(platform, node, chunk)test job lands in the same group, so the later one cancels the earlier:The Windows shards are gated only on
compile-and-lint+build-pnpr, so both runs' Windows jobs start near-simultaneously and reliably collide (the ubuntu jobs wait ontest-smoke, which staggers them apart). Themerge_grouprun — the only one the queue's requiredTS CI / Successcheck reads — lost the race, so its cancelled test jobs failedSuccessand the PR was ejected.TS CI / Successis not the culprit: itneeds:every test job, so it waits for them and only reports the cancellation afterward.Fix
Restrict the
pushtrigger inci.ymlto ignoregh-readonly-queue/**, so only themerge_grouprun executes for queued commits (that run already forces the full suite and is the only run the queue reads, so dropping the push duplicate is pure upside).pacquet-ci.ymlalready scopes push tobranches: [main]and was unaffected. The samebranches-ignoreis applied toaudit.ymlto drop its redundant (non-breaking, just wasteful) push run on those branches.Squash Commit Body
Checklist
pacquet/port, or the description notes what still needs porting. (CI-only; not user-visible CLI surface — no pacquet port needed.)pnpm changeset) if this PR changes any published package. (No published package changes — CI workflow only.)Written by an agent (Claude Code, claude-opus-4-8).
Summary by CodeRabbit