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

   <!-- copilot-assessment:v1 -->
   ### Agent assessment
   
   Self-reported assessment, not an independent review.
   
   Assessed revision: `c847dfb1f9ce47b92eb514232cf7744cf453f294`
   
   | Dimension | Assessment | Rationale |
   |---|---|---|
   | Change confidence | 9.5/10 | ↑ Real Maven 3.9.16 started after one CDN 
request and from a cache with no downloader.<br>↑ Invalid pins and corrupt 
archives failed before `tar`; tarball retries and archive fallback still 
worked.<br>↓ Tested on Linux, not macOS. |
   | Diagnosis confidence | 10/10 | ↑ The previous wrapper discarded a newly 
downloaded tarball when the separate checksum request failed. A local transport 
fixture reproduced this on unmodified `main`. |
   | Evidence fit | 10/10 | ↑ The [failed 
job](https://github.com/felipepessoto/gluten/actions/runs/45705503410/job/139534473362)
 shows a complete CDN transfer, then curl exit 28 fetching the checksum, then 
another timeout fetching the archive fallback. |
   <!-- /copilot-assessment -->
   
   <!--
   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.
   -->
   
   Pin the SHA-512 of `apache-maven-3.9.16-bin.tar.gz` next to `maven.version` 
in the root POM. `build/mvn` verifies both newly downloaded and cached tarballs 
against that pin before extraction. A checksum failure is fatal; only tarball 
download failures retry and fall back to the Apache archive. Matching system 
and locally installed Maven are still reused.
   
   The pin comes from [Apache's archived release 
checksum](https://archive.apache.org/dist/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz.sha512).
 I independently hashed the [CDN 
tarball](https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz)
 and checked its [detached 
signature](https://archive.apache.org/dist/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz.asc)
 against [Apache Maven's KEYS](https://downloads.apache.org/maven/KEYS). The 
version and digest should be updated together.
   
   ## 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 reported failure on unmodified `main` with a fixture that 
served the tarball but rejected checksum and fallback requests. With the patch, 
`build/mvn --version` fetched the real CDN tarball once, made no checksum 
request, and printed `Apache Maven 3.9.16`.
   - With the authentic tarball cached and neither `curl` nor `wget` on `PATH`, 
`shasum -a 512` verified it and Maven started. A second invocation reused an 
existing installation without downloading or extracting. Also checked matching 
system Maven and, with a `wget` fixture, three failed CDN attempts followed by 
an archive download.
   - A wrong 128-digit pin and modified fresh or cached tarballs failed without 
invoking `tar` or attempting another source, including a corrupt cached tarball 
with a matching stale `.sha512` file. Missing and malformed pins were rejected 
without network access. Exercised both `sha512sum` and `shasum`.
   
   These were wrapper smoke tests on Linux (WSL); no full Spark build was run.
   
   ## 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.115-7 (GPT-6.2 Astra)


-- 
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