← Back to Pull requests

ci: retry Maven downloads in the TPC-H and TPC-DS builds #7828

Open
unknown opened this pull request with 549 lines diff across 6 files
View on GitHub
unknown unknown commented on Dec 02, 2026 16:44 UTC
Author

<!-- copilot-assessment:v1 -->

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 8caeb36fde623a099bef44aa74056a230b6c2a04

| Dimension | Assessment | Rationale |
|---|---|---|
| Change confidence | 9.5/10 | ↑ Deduplicated the retry loop into dev/ci/mvn-retry.sh (100755, LF, Apache 2.0 header) across lint-java, both TPC-H/TPC-DS Build project steps, and both Generate TPC-H/TPC-DS data (exec:java) steps; passes bash -n, sh -n, YAML parsing, check-suites.py, all 18 check-ci-config.py invariants, and 13 behavioral retry tests.<br>↓ Live GitHub Actions execution and actionlint have not yet run on this branch. |
<!-- /copilot-assessment -->

Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example Closes #123 indicates that this PR will close issue #123.
-->

Closes #7759.

Rationale for this change

<!--
Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.
-->

In cache-refresh-only mode, the TPC-H (verify-benchmark-results-tpch) and TPC-DS (verify-benchmark-results-tpcds) jobs are the only Maven builds in .github/workflows/pr_build_linux.yml. Without retry logic on transient Maven Central download failures (such as HTTP 403, cached 404, 429, or missing plugin/compiler artifacts), a failed build or exec:java data-generation step aborts the job before Save Maven dependencies runs and leaves fork caches cold.

What changes are included in this PR?

<!--
There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.
-->

  • Added dev/ci/mvn-retry.sh, a shared executable bash helper that wraps any Maven invocation (dev/ci/mvn-retry.sh <mvnw> [args...]) with up to 4 attempts, 10s/20s/40s + 0-4s jitter backoff, -U on retries (so cached Maven 404s are refreshed), mktemp log cleanup via trap, and matching on [ERROR]/[FATAL] download failure markers (No plugin found for prefix, could not be resolved, Could not transfer, Could not find artifact, ClassNotFoundException: scala.tools.nsc.Main). Non-download failures (compile errors, lint violations) still fail on attempt 1.

  • Updated .github/workflows/pr_build_linux.yml to route five Maven steps through dev/ci/mvn-retry.sh and removed the duplicated inline retry script and shell: bash override:

  • - lint-java: Run scalafix check
    - verify-benchmark-results-tpch: Build project and Generate TPC-H data (SF=1) (exec:java)
    - verify-benchmark-results-tpcds: Build project and Generate TPC-DS data (SF=1) (exec:java)

    How are these changes tested?

    <!--
    We typically require tests for all PRs in order to:
    1. Prevent the code from being accidentally broken by subsequent changes
    2. Serve as another way to document the expected behavior of the code

    If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
    -->

  • git ls-files -s --eol dev/ci/mvn-retry.sh — confirmed mode 100755 and LF line endings.

  • bash -n dev/ci/mvn-retry.sh, yaml.safe_load on .github/workflows/pr_build_linux.yml, and sh -n on all 5 updated workflow step bodies — passed.

  • 13 behavioral tests against dev/ci/mvn-retry.sh under sh -e (root and spark/ subdirectory invocations with ../dev/ci/mvn-retry.sh ../mvnw, MAVEN_OPTS propagation, quoted -Dexec.args with spaces, 403/404/429/[FATAL]/Could not find artifact/No plugin found for prefix/ClassNotFoundException retries with -U, 4-attempt exhaustion, immediate failure on compile/lint errors, temp-file cleanup) — all 13 passed.

  • python dev/ci/check-suites.py — passed.

  • dev/ci/check-ci-config.py — all 18 workflow/policy/cache/checkout invariants and local_ci_config.config() passed, and confirmed dev/ci/mvn-retry.sh routes to build_linux / build_macos via dev/ci/** (running check_local_ci_config directly on Windows hits a pre-existing dev\local-ci.sh path separator quirk).
  • Diff: 549 lines (+411 / -138) across 6 files Reviewer: comphead Review duration: 1828m
    All Vouch review confidence checks passed
    Residual risk 0.28 = Change Risk (0.53) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.53 · 549 lines diff across 6 files
    0.53
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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.378
    Shallow Review Depth shallow_review_depth
    0.344
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #7828"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 53.1% (MEDIUM) · Higher = larger blast radius
    53.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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 28.3% · Safe to merge
    28.3%