← Back to Pull requests

ci: fix the review bypass, allow only squash merges, delete merged branches #20804

Closed
unknown closed this pull request without merging on Oct 30, 2026 18:35 UTC
View on GitHub
unknown unknown commented on Oct 30, 2026 17:37 UTC
Author

Description

Follow-up to #20796. ASF Infra created the Default Branch Protection ruleset, but GitHub refused the Require review ruleset:

Validation failed while creating ruleset 'Require review':
['Actor druid committers team must be part of the ruleset source or owner organization']

GitHub doesn't accept a secret team as a bypass actor, and druid-committers is secret. The .asf.yaml convenience syntax can only name teams, so this PR switches the ruleset to the raw Rulesets API syntax and uses the Write repository role (actor_id: 4) as the bypass actor instead. On this repository only committers hold the Write role, granted by ASF Infra, so it needs no update when committers change. apache/airflow uses the same workaround for its airflow-committers team.

The rule itself is unchanged: one approving review on master, which committers can explicitly bypass.

Allow only squash merges

Disables the rebase button, so squash is the only way to merge a PR. Merge commits are already disabled. Our contributing guide already expects committers to squash PRs into a single commit. The existing squash commit title and message settings stay as they are.

Delete branches after merge

Turns on del_branch_on_merge, so a branch in the apache/druid repository is deleted once its PR merges. This mostly affects backport and Dependabot branches; branches in contributors' forks aren't touched. Release branches are protected from deletion by the Default Branch Protection ruleset.

<hr>

This PR has:

  • been self-reviewed.
  • Diff: 196 lines (+147 / -49) across 2 files Reviewer: gianm Review duration: 58m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 196 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.316
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #20804"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.1% (MEDIUM) · Higher = larger blast radius
    36.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.2% · Safe to merge
    14.2%
    Repository