felipepessoto opened a new pull request, #13662:
URL: https://github.com/apache/gluten/pull/13662

   <!--
   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.
   -->
   
   Cache the Maven distribution used by `build/mvn` to avoid repeated bootstrap 
downloads and reduce exposure to Maven Central HTTP 429 responses, as seen in 
[this CentOS 8 TPC 
job](https://github.com/felipepessoto/gluten/actions/runs/44166328281/job/134336305147).
   
   - Add a reusable `.github/actions/cache-maven` composite action. It reads 
`<maven.version>` directly from `pom.xml`, without running Maven, and uses 
`actions/cache@v4` for the workspace-relative `build/.mvn` directory. The key 
contains the pinned Maven version, runner OS and runner architecture; there are 
no cross-version restore keys.
   - Restore after checkout and before Maven in all 21 Maven-using jobs defined 
directly in `velox_backend_x86.yml`: TPC tests (including OOM, random-kill, 
Uniffle and Celeborn variants), Spark 3.4/3.5/4.0/4.1/4.2 tests and their 
slow/Scala 2.13 variants, fast-build/Spark 4.2 build checks, C++ JNI/UDF tests, 
and the cuDF build.
   - Add focused regression tests under `gluten-ut/src-ci/test/python`, run 
them using the existing format-check workflow's Python/PyYAML tooling, and 
document the coverage.
   
   Native-only jobs, metadata jobs, delegated Iceberg workflows, and other 
Velox workflows are unchanged. This does not modify `build/mvn`, cache `~/.m2` 
dependencies, change repository endpoints or Docker images, or include the 
separate download-retry change. It is independently mergeable against `main`.
   
   On a cache miss the existing wrapper still bootstraps normally; a successful 
job saves the distribution. A cold cache can still encounter remote throttling.
   
   ## 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.
   -->
   
   - `python3 -m unittest discover -s gluten-ut/src-ci/test/python -v`: all 
three tests pass. They execute the action's Bash version reader with a failing 
mock system Maven, cover missing/empty versions, distinguish 
version/OS/architecture cache keys, keep unrelated POM changes from changing 
the version, and verify restore placement and unconditional Maven execution in 
every covered job.
   - Offline Docker smoke checks in the actual `centos:8` image and 
`ubuntu:24.04`, using `--network none` and a fixture Maven archive/mock 
downloader: cache-miss bootstrap/extraction succeeds; a relative `build/.mvn` 
tar archive restores from a GitHub-style `/__w/gluten/gluten` workspace to 
`/work`; executable permissions survive; the unchanged wrapper reuses the 
restored distribution without a second fixture download. Bash/awk/tar/gzip 
availability was also checked in `centos:8`.
   - Black check, the repository license-header checker on all changed files, 
and `git diff --check` pass.
   - actionlint 1.7.12 passes for `velox_backend_x86.yml`. Comparing 
`code_format.yml` against `main` shows only its unchanged pre-existing 
undefined `matrix.command` diagnostic, with no new diagnostics.
   
   No live GitHub Actions cache hit or completed full native/Spark CI run is 
claimed.
   
   ## 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 1.0.106-8.unstable.r43566476370.g869eef3 
(GPT-6.1 Sol, 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]

Reply via email to