adoroszlai opened a new pull request, #7559:
URL: https://github.com/apache/ozone/pull/7559

   ## What changes were proposed in this pull request?
   
   _acceptance (s3a)_ runs some Hadoop AWS contract tests using Ozone as the 
object store.  Hadoop POM defines Apache snapshots repo without disabling it 
for release artifacts.  This is fixed in HADOOP-19360, but not yet released.
   
   This PR adds a workaround for HADOOP-19360 in Ozone, to disable access to 
snapshot repos while compiling and running Hadoop tests.  This is achieved by 
defining mirrors with `blocked=true` in Maven settings (see 
[MNG-7117](https://issues.apache.org/jira/browse/MNG-7117)).
   
   https://issues.apache.org/jira/browse/HDDS-11909
   
   ## How was this patch tested?
   
   1. Downloaded and extracted Hadoop 3.4.1 sources
   2. Compiled `hadoop-aws` pointing local Maven repo to an empty directory (to 
ensure dependencies are fetched from remote repo)
   3. Verified that no dependencies are downloaded from `repository.apache.org`
   
   ```
   $ curl -LOSs 
https://dlcdn.apache.org/hadoop/common/hadoop-3.4.1/hadoop-3.4.1-src.tar.gz
   $ tar zxf hadoop-3.4.1-src.tar.gz
   $ cd hadoop-3.4.1-src/hadoop-tools/hadoop-aws
   
   $ mvn --settings ${OZONE_DIR}/dev-support/ci/maven-settings.xml \
       -Dmaven.repo.local=$(pwd)/.m2 \
       --log-file maven.log \
       --batch-mode -DskipTests clean package
   
   $ grep BUILD maven.log 
   [INFO] BUILD SUCCESS
   
   $ grep -c repository.apache.org maven.log
   0
   ```
   
   CI:
   https://github.com/adoroszlai/ozone/actions/runs/12273977320


-- 
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: issues-unsubscr...@ozone.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org
For additional commands, e-mail: issues-h...@ozone.apache.org

Reply via email to