← Back to Pull requests

ci: run Spark SQL 4.1 and Iceberg 1.11 on every pull request #7516

Closed
unknown closed this pull request without merging on Nov 07, 2026 00:15 UTC
View on GitHub
unknown unknown commented on Nov 05, 2026 15:27 UTC
Author

Which issue does this PR close?

No issue filed. Follows on from #7311, which moved the PR tier of fork pull requests onto the contributor's fork.

Rationale for this change

In the week from 2026-10-29 to 2026-11-05, Comet CI used about 2,600 runner-hours on ASF runners. Pull requests were 1,333 of them, the merge queue 1,003, and the nightly run 243. Even after #7311, fork pull requests into main used about 450 runner-hours in the 5.5 days after it landed. Nearly all of that came from run- labels. A fork run can't see the labels, so labeled suites still run upstream, and because the labels stay on the pull request they run again on every push. run-spark-4.1-tests and run-iceberg-tests are among the most common, because without them a pull request gets no Spark SQL or Iceberg verdict until the merge queue.

The PR tier now runs on the fork for fork pull requests, so Spark SQL 4.1 and Iceberg 1.11 can run there at no cost to ASF runners. The merge queue already gates on exactly these versions. With this change a pull request gets the queue's Spark and Iceberg verdict before it is queued, which removes the main reason to apply those two labels, and it should also cut the queue runs that fail on a 4.1 or 1.11 problem. In the same week, 174 runner-hours went to failed queue runs and 154 to entries cancelled behind them.

What changes are included in this PR?

  • dev/ci/compute-changes.py:

  • - spark_4_1 (catalyst and sql_core) and iceberg_1_11 move from ["queue", label] to ["pr", "queue"]. Path filters still apply.
    - spark_4_1_hive stays queue-only, with run-spark-4.1-hive-tests to bring it forward.
  • Labels:

  • - run-spark-4.1-tests is retired. It gates nothing now, and a labeled run for it starts nothing. The label can be deleted from repository settings after merge. Until now it also brought the sql_hive shards forward, so a pull request that carries it now gets only catalyst and sql_core on each push. Authors who want the hive shards before the queue should apply run-spark-4.1-hive-tests.
    - run-iceberg-tests now selects the three nightly Iceberg versions (1.8, 1.9, 1.10).
  • dev/ci/check-ci-config.py: PR_TIER, QUEUE_TIER, ICEBERG_OPT_IN and the label policy cases are updated to the new tiers.

  • .github/workflows/README.md, the spark_4_1 comment in ci.yml, docs/source/contributor-guide/ci.md and spark-sql-tests.md are updated to describe the new tiers.
  • Nothing else changes for the other tiers. The nightly run still covers Spark SQL 3.5, 4.0 and 4.2, Iceberg 1.8, 1.9 and 1.10, the Delta suites and the other Comet profiles. Pull requests that target a release branch already ran every tier and are unaffected.

    What this costs:

  • Fork runs take longer, since the Spark SQL and Iceberg shards run alongside the Linux test matrix.

  • A pull request from a branch of this repository now pays for these two suites upstream on each push when its paths match. That was 13 runs in the 5.5 days measured.
  • How are these changes tested?

    python3 dev/ci/check-ci-config.py passes. It evaluates POLICY against the event cases in that file, which this PR updates: a plain pull request, a fork push, a fork pull request, the merge queue, the nightly run, release branches, and the remaining 4.1 hive and Iceberg label cases. test-iceberg-shards.py, test-fork-ci-status.cjs and check-versioned-source-parity.py also pass. This PR's own fork run is the end-to-end check: it changes dev/ci/*, so it routes to the Spark SQL 4.1 and Iceberg 1.11 suites on the fork.

    Diff: 446 lines (+334 / -112) across 5 files Reviewer: rich7420 Review duration: 1968m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 446 lines diff across 5 files
    0.45
    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.365
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #7516"
    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: 45.4% (MEDIUM) · Higher = larger blast radius
    45.4%
    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: 17.9% · Safe to merge
    17.9%