adoroszlai opened a new pull request, #7538: URL: https://github.com/apache/ozone/pull/7538
## What changes were proposed in this pull request? Summary: Add Maven cache in CI for more checks, which use Maven only for reading Ozone version from `pom.xml`. Background: Acceptance check intermittently seems to be [stuck](https://github.com/apache/ozone/actions/runs/12198919237/job/34037623484#step:5:1) before executing any tests: ``` Fri, 06 Dec 2024 14:42:43 GMT Run pushd hadoop-ozone/dist/target/ozone-* Fri, 06 Dec 2024 14:42:43 GMT pushd hadoop-ozone/dist/target/ozone-* Fri, 06 Dec 2024 14:42:43 GMT sudo mkdir .aws && sudo chmod 777 .aws && sudo chown 1000 .aws Fri, 06 Dec 2024 14:42:43 GMT popd Fri, 06 Dec 2024 14:42:43 GMT ./hadoop-ozone/dev-support/checks/acceptance.sh Fri, 06 Dec 2024 14:42:43 GMT shell: /usr/bin/bash -e {0} Fri, 06 Dec 2024 14:42:43 GMT env: Fri, 06 Dec 2024 14:42:43 GMT ... Fri, 06 Dec 2024 14:42:43 GMT ~/work/ozone/ozone/hadoop-ozone/dist/target/ozone-2.0.0-SNAPSHOT ~/work/ozone/ozone Fri, 06 Dec 2024 14:42:43 GMT ~/work/ozone/ozone Fri, 06 Dec 2024 16:10:56 GMT Error: The operation was canceled. ``` With `set -x` we can see it is [executing](https://github.com/adoroszlai/ozone/actions/runs/12202954381/job/34045955438#step:5:42) Maven: ``` ++ mvn help:evaluate -Dexpression=ozone.version -q -DforceStdout -Dscan=false Error: The operation was canceled. ``` It is downloading artifacts, which can sometimes be painfully slow (see also HDDS-11872). Even in the "normal" case this single Maven command takes [almost 1 minute](https://github.com/adoroszlai/ozone/actions/runs/12210172399/job/34065941115#step:3:830) vs. [less than 2 seconds](https://github.com/adoroszlai/ozone/actions/runs/12210176044/job/34065948974#step:4:154) when artifacts are available in local repo: ``` # no cache [INFO] Total time: 53.632 s ``` ``` # with cache [INFO] Total time: 1.817 s ``` https://issues.apache.org/jira/browse/HDDS-11877 ## How was this patch tested? https://github.com/adoroszlai/ozone/actions/runs/12210195782 -- 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]
