This is an automated email from the ASF dual-hosted git repository.

github-merge-queue[bot] pushed a commit to branch 
gh-readonly-queue/main/pr-12075-29206c683c81bd4dd89fc5f7116275b68cf4d8e1
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git

commit e57434dd358225790eb7d7508c4b2b5a5aa4c1b2
Author: Kosta Tarasov <[email protected]>
AuthorDate: Wed Nov 4 17:15:17 2026 +0000

    ci: stop Dependabot PRs entering the merge queue before PR CI finishes 
(#12075)
    
    # Which issue does this PR close?
    
    No linked issue. Follow-up to #11894, from [this
    
report](https://github.com/apache/arrow-rs/pull/11894#issuecomment-6621398141)
    by @Jefffrey.
    
    # Rationale for this change
    
    Dependabot PRs can enter the merge queue before their PR CI finishes.
    
    Dependabot branches live in `apache/arrow-rs`, so each push also starts
    the `push` run of `CI`, where `Required Checks` is skipped. GitHub
    [reports a job skipped by a conditional as a
    
success](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks),
    and the `pull_request` run doesn't create its own `Required Checks` job
    until every suite finishes. Until then, the skipped check is the only
    one with that name on the commit.
    
    On #12051 the skipped check landed at 02:51:09 UTC, the PR first entered
    the queue at 03:02:28, and the real check wasn't created until 03:13:18.
    
    This doesn't let untested code merge, because the queue still needs a
    passing `merge_group` run. All 100 PRs merged after #11894, including
    #12051, had one before merging. The cost is that a Dependabot PR with
    failing CI could hold one of the queue's two build slots until its queue
    run fails.
    
    # What changes are included in this PR?
    
    Add `dependabot/**` to the `branches-ignore` list of the `push` trigger,
    as [DataFusion's
    
`rust.yml`](https://github.com/apache/datafusion/blob/main/.github/workflows/rust.yml)
    already does, and update the matching assertion in `check-ci-config.py`.
    The `pull_request` and `merge_group` triggers don't change, so
    Dependabot PRs get the same PR and queue CI as before.
    
    Two limits:
    
    - Other branches pushed to `apache/arrow-rs` still get the skipped
    check. All 7 same-repo PRs merged after #11894 came from Dependabot, so
    this covers what we see today.
    - A fork's own `dependabot/**` branches also stop running push CI. That
    only affects the informational `CI (fork)` check.
    
    # Are these changes tested?
    
    The `check-ci-config.py` assertion now requires the exclusion and fails
    without it. It can't show the queue behavior, so that needs checking on
    a real Dependabot PR after this merges: it should not be possible to
    queue the PR until its PR CI finishes.
    
    # Are there any significant user-facing changes?
    
    No.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 .github/ci/scripts/check-ci-config.py | 2 +-
 .github/workflows/ci.yml              | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/ci/scripts/check-ci-config.py 
b/.github/ci/scripts/check-ci-config.py
index c68c36eb7c..be1a4526b0 100644
--- a/.github/ci/scripts/check-ci-config.py
+++ b/.github/ci/scripts/check-ci-config.py
@@ -136,7 +136,7 @@ def validate_config(root=ROOT):
     assert set(events) == {"pull_request", "push", "merge_group", 
"workflow_dispatch"}, "Unexpected CI triggers"
     assert events["pull_request"] is None, "Required CI must run on every PR"
     assert events["merge_group"] == {"types": ["checks_requested"]}, "Missing 
queue trigger"
-    assert events["push"] == {"branches-ignore": ["asf-site", 
"gh-readonly-queue/**"]}, "Fork branches must trigger CI without queue-branch 
push runs"
+    assert events["push"] == {"branches-ignore": ["asf-site", 
"gh-readonly-queue/**", "dependabot/**"]}, "Fork branches must trigger CI 
without queue-branch or Dependabot push runs"
     validate_fork_ci(workflows, ci)
 
     gate = jobs["required-checks"]
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2bf371ab51..f533b9f832 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -29,6 +29,9 @@ on:
       # Merge queue commits are validated by the merge_group event, not push.
       # A skipped Required Checks job on a queue-branch push can satisfy the 
gate early.
       - 'gh-readonly-queue/**'
+      # Dependabot branches live upstream, so their push runs skip Required 
Checks.
+      # That skip can let the PR enter the merge queue before its PR run 
finishes.
+      - 'dependabot/**'
   workflow_dispatch:
 
 concurrency:

Reply via email to