ci: retry Maven downloads in the TPC-H and TPC-DS builds #7828
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
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.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
comphead
<!-- 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) acrosslint-java, both TPC-H/TPC-DSBuild projectsteps, and bothGenerate TPC-H/TPC-DS data(exec:java) steps; passesbash -n,sh -n, YAML parsing,check-suites.py, all 18check-ci-config.pyinvariants, and 13 behavioral retry tests.<br>↓ Live GitHub Actions execution andactionlinthave 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 #123indicates 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-onlymode, 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 orexec:javadata-generation step aborts the job beforeSave Maven dependenciesruns 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.
-->
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-4sjitter backoff,-Uon retries (so cached Maven 404s are refreshed),mktemplog cleanup viatrap, 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..github/workflows/pr_build_linux.ymlto route five Maven steps throughdev/ci/mvn-retry.shand removed the duplicated inline retry script andshell: bashoverride:-
lint-java:Run scalafix check-
verify-benchmark-results-tpch:Build projectandGenerate TPC-H data (SF=1)(exec:java)-
verify-benchmark-results-tpcds:Build projectandGenerate 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 mode100755and LF line endings.bash -n dev/ci/mvn-retry.sh,yaml.safe_loadon.github/workflows/pr_build_linux.yml, andsh -non all 5 updated workflow step bodies — passed.dev/ci/mvn-retry.shundersh -e(root andspark/subdirectory invocations with../dev/ci/mvn-retry.sh ../mvnw,MAVEN_OPTSpropagation, quoted-Dexec.argswith spaces, 403/404/429/[FATAL]/Could not find artifact/No plugin found for prefix/ClassNotFoundExceptionretries 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 andlocal_ci_config.config()passed, and confirmeddev/ci/mvn-retry.shroutes tobuild_linux/build_macosviadev/ci/**(runningcheck_local_ci_configdirectly on Windows hits a pre-existingdev\local-ci.shpath separator quirk).