Repository navigation
ci: carry TS CI / Success only from pull_request and merge_group runs - #12635
Conversation
A branch that lives in this repo fires both a push and a pull_request TS CI run for the same commit, and both report the TS CI / Success required check. Branch protection then sees two results for that context, so a cancellation or flake on the push side (e.g. two pushes racing on the test.yml concurrency group) blocks the PR even when the pull_request run passed. Restrict push CI to main so PR branches carry TS CI / Success only via their pull_request run (and the merge queue via merge_group). Since pull_request now covers every PR, run the build/test jobs on every pull_request (same-repo and fork) instead of relying on the push run, and drop the same-repo/fork/chore-lockfile gating that existed only to avoid duplicate push+pull_request builds. main stays covered pre-merge by merge_group and post-merge by the push run.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe CI workflow narrows the ChangesCI TypeScript Job Gating Simplification
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 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 |
PR Summary by Qodoci: ensure TS CI / Success is reported only by pull_request and merge_group Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. PR branch detection broken
|
|
Code review by qodo was updated up to the latest commit 793afd0 |
Summary
A branch that lives in this repo fires both a
pushand apull_requestTS CI run for the same commit, and both report the
TS CI / Successrequired check to that commit. Branch protection then sees two results for the
one required context, so a cancellation or flake on the push side — for
example two pushes racing on the
test.ymlconcurrency group — blocks the PReven when the
pull_requestrun passed.This makes a PR's
TS CI / Successcome solely from itspull_requestrun(and from
merge_groupin the merge queue):pushnow triggers only onmain. PR/feature/Dependabot branches nolonger start a second push run alongside their
pull_requestrun, so thereis only ever one
TS CI / Successcontext per PR commit.mainis stillvalidated pre-merge by
merge_groupand re-checked post-merge by thepush-on-mainrun. This also subsumes the oldgh-readonly-queue/**ignore.
pull_request(same-repo andfork), so the
pull_requestrun does the real testing. Previously same-repoPRs were tested on the
pushevent and thepull_requestrun skipped theheavy jobs; pointing the required check at
pull_requestwithout this wouldhave produced a false green.
No double-running (each PR is one run; each
mainpush is one run), nobranch-protection config change (the required context name
TS CI / Successis unchanged), and the
chore/update-lockfilespecial case is handlednaturally now that
pull_requestalways runs the heavy jobs.Squash Commit Body
Checklist
Written by an agent (Claude Code, claude-opus-4-8).
Summary by CodeRabbit