ci: let committers bypass the merge queue for urgent fixes #7540
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.50) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 608 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.384
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #7540"
general
weight: 0.35
sunchao
Which issue does this PR close?
N/A. No issue filed. This ports the committer bypass apache/iceberg-rust added in apache/iceberg-rust#3459, apache/iceberg-rust#3458 and apache/iceberg-rust#3481.
Rationale for this change
Today nothing reaches
mainexcept through the merge queue, and only ASF Infra (apache/root) can bypass it. That leaves no fast path for an urgent, approved fix, for example a security fix, or the fix for a queue that evicts every entry for a reason outside the PR. That happened on 2026-11-06, when GitHub retired themacos-14runner image. It also means a required context that never reports blocks every merge, including the one that would fix.asf.yaml, until Infra steps in.iceberg-rust solved this with a ruleset bypass for a public committer team. This PR does the same for Comet with
apache/datafusion-public.What changes are included in this PR?
.asf.yaml:| Ruleset | Rules | Who can bypass |
|---|---|---|
|
Default Branch Protection(new) | 1 approving review, no force push, no deletion |apache/root||
Merge Queue| merge queue, plusRequired Checks(moved here from classic protection) |apache/root,apache/datafusion-publicwithbypass_mode: pull_request(new) |mainis removed fromprotected_branches, and the release branches keep their entries. iceberg-rust found that GitHub refuses a ruleset bypass while classic protection exists on the branch, even on an approved PR with green checks (DIRECT_MERGE: BLOCKED, apache/iceberg-rust#3481). asfyaml removes classic protection from branches no longer listed, so onlymainchanges.Default Branch Protectioncarries the rules classic protection gavemain. Classic protection blocked force pushes and deletion implicitly, so the ruleset lists them. It sets norequired_linear_history, same as today. Squash is the only merge method anyway.strict_required_status_checks_policy: falsekeeps today's behavior. PR branches need not be up to date, because the queue tests against the latestmain.apache/datafusion-public(team id19468222) is the public team DataFusion committers opt into through Boxer. Secret teams such asdatafusion-committerscannot be bypass actors.pull_requestmode allows the bypass only through a PR, never a direct push. Because of theDefault Branch Protectionruleset, a bypass merge still needs an approval.dev/ci/check-ci-config.py:asf_required_contexts()now reads the- context:entries underrulesets:. It used to readprotected_branches.main, so without this change it would have silently stopped checking the context. A new check fails ifmainreappears underprotected_branches, since that would quietly disable the bypass.Docs: a "Merging an urgent pull request" section in
docs/source/contributor-guide/ci.md. The "Branch protection" section of.github/workflows/README.mdnow describes the two rulesets.release_process.mdno longer shows amain:entry, and the "needs an INFRA ticket" comments are updated.To merge an urgent PR, a committer joins
apache/datafusion-publiconce, gets the PR approved, removes it from the queue, and runsgh pr merge <number> --squash --admin.For discussion before this leaves draft
apache/datafusion-publicis shared by every DataFusion repository, so any DataFusion committer who joins can bypass on Comet. Comet committers are DataFusion committers, so this matches iceberg-rust's setup withiceberg-public, but the PMC should agree to it.mainchanges from classic protection to rulesets in one asfyaml run. I have not checked the order in which asfyaml appliesprotected_branchesandrulesets. If the ruleset step failed after the classic step,mainwould be left with only theMerge Queueruleset, which has no review requirement. iceberg-rust made the same switch in one PR (apache/iceberg-rust#3481) without trouble. Splitting this PR is the cautious alternative.How are these changes tested?
python3 dev/ci/check-ci-config.pypasses. With amain:entry added back underprotected_branches, it fails with the new message.normalize_rulesetsandensure_no_copilot_overlap(fromapache/infrastructure-asfyaml, with GitHub lookups stubbed out). They produce the expected Rulesets API payloads.After merge, these should hold. This is unverified until then.