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

   ## What changes were proposed in this pull request?
   
   (see also #11600)
   
   `target/classes/...-version-info.properties` in `hdds-common` and 
`ozone-common` includes SHA of the git commit.  This causes cache miss for 
`surefire:test` in these modules and dependent ones even if the commit only 
touches irrelevant files.
   
   Example 
[commit|https://github.com/apache/ozone/commit/ccd3dfa20b4f65e61a2554bed90a2a4cf0cad6db],
 [cache 
timeline|https://develocity.apache.org/s/pdtzbyrmsafje/timeline?hide-timeline&sort=execution&type=org.apache.maven.plugin.surefire.SurefireMojo].
   
   Proposed fix: delete `.git` directory in CI before build/test.
   
   https://issues.apache.org/jira/browse/HDDS-17095
   
   ## How was this patch tested?
   
   Downloaded binary tarball from CI build, and verified that revision in 
`ozone version` is constant:
   
   ```
   $ bin/ozone version
   ...
   2.3.0-SNAPSHOT(Kenai Fjords)
   
   Source code repository Unknown -r Unknown
   ...
   ```
   
   CI:
   https://github.com/adoroszlai/ozone/actions/runs/39153944871
   


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