felipepessoto opened a new pull request, #13663:
URL: https://github.com/apache/gluten/pull/13663
<!--
Thank you for submitting a pull request! Here are some tips:
1. For first-time contributors, please read our contributing guide:
https://github.com/apache/gluten/blob/main/CONTRIBUTING.md
2. If necessary, create a GitHub issue for discussion beforehand to avoid
duplicate work.
3. If the PR is specific to a single backend, include [VL] or [CH] in the PR
title to indicate the
Velox or ClickHouse backend, respectively.
4. If the PR is not ready for review, please mark it as a draft.
-->
## What changes are proposed in this pull request?
<!--
Provide a clear and concise description of the changes introduced in this PR.
Ensure the PR description aligns with the code changes, especially after
updates.
If applicable, include "Fixes #<GitHub_Issue_ID>" to automatically close the
corresponding issue
when the PR is merged.
-->
The [CentOS 8 TPC
job](https://github.com/felipepessoto/gluten/actions/runs/44166328281/job/134336305147)
failed before Maven started because Maven Central returned HTTP 429 while
downloading the pinned Maven distribution. Its curl 7.61.1 does not retry 429
with the wrapper's existing `--retry` options.
Add a single, old-tool-compatible bootstrap download retry budget for both
curl and the wget fallback: at most four attempts, with 3, 6, and 12 second
backoff. Retry HTTP 408/429/500/502/503/504 and transient connection/transfer
failures; fail immediately for permanent HTTP errors, certificate verification
failures, and local file errors. Preserve the final URL, downloader exit
status, and HTTP status in failure diagnostics.
Download into a `.part` file and publish the archive only after a successful
transfer, so a failed attempt is never extracted. Preserve the version pinned
in `pom.xml`, matching-system-Maven selection, existing local
installations/archives, Maven arguments/options, and Maven's exit status. Only
the bootstrap transfer is retried, not Maven builds or tests.
Add deterministic bootstrap regression tests under `gluten-ut` and document
the retry behavior and standalone test command. No dependency caching or CI
configuration changes are included.
## How was this patch tested?
<!--
Describe how the changes were tested, if applicable.
Include new tests to validate the functionality, if necessary.
For UI-related changes, attach screenshots to demonstrate the updates.
-->
- Reproduced the original HTTP 429 failure for both downloaders with the new
regression case against the unmodified wrapper.
- `python3 gluten-ut/test/src/test/python/test_mvn.py -v`: all 10 test
methods pass. Coverage includes 429 followed by success, other transient HTTP
and network errors, bounded exhaustion/backoff, permanent HTTP/TLS/local-I/O
failures, partial-file cleanup, Maven selection, cached archives, and
invocation/exit-status preservation. The tests isolate `PATH`, accept only
legacy-compatible downloader options, mock network responses and sleeps, and
extract a real local tar fixture; no network or JDK is required.
- Bash syntax check of the LF-normalized wrapper, Black formatting/check,
repository license-header check, and `git diff --check` passed.
Validation was performed under Linux/WSL from a Windows checkout. The actual
CentOS 8 CI job and a full native/Spark build were not rerun locally.
## Was this patch authored or co-authored using generative AI tooling?
<!--
If generative AI tooling has been used in the process of authoring this
patch, please include the
phrase: 'Generated-by: ' followed by the name of the tool and its version.
If no, write 'No'.
Please refer to the [ASF Generative Tooling
Guidance](https://www.apache.org/legal/generative-tooling.html) for details.
-->
Generated-by: GitHub Copilot CLI 1.0.106-8.unstable.r43566476370.g869eef3
(GPT-6.1 Sol)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]