adoroszlai opened a new pull request #1364:
URL: https://github.com/apache/hadoop-ozone/pull/1364


   ## What changes were proposed in this pull request?
   
   Checkout project to its regular location (inside `GITHUB_WORKSPACE`) before 
attempting to restore cache.  This allows calculation of hash of cache key 
files (`pom.xml`, `pnpm-lock.yaml`)
   
   https://issues.apache.org/jira/browse/HDDS-4165
   
   ## How was this patch tested?
   
   Verified that cache key now includes hash of files:
   
   ```
   Cache not found for input keys: 
maven-repo-78a78691596adf599a9afd1481471aa13fb05402873415b8199d404fd937eae2
   ...
   Cache not found for input keys: 
Linux-pnpm-17a93e576bec6596513e8336af475af9b856a1ba83ab27dd39d06fe763dac835, 
Linux-pnpm-
   ```
   
   https://github.com/adoroszlai/hadoop-ozone/runs/1042731167#step:3:5
   https://github.com/adoroszlai/hadoop-ozone/runs/1042730953#step:4:9
   
   and subsequent build on same branch reuses cache:
   
   ```
   Cache restored from key: 
maven-repo-78a78691596adf599a9afd1481471aa13fb05402873415b8199d404fd937eae2
   ...
   Cache restored from key: 
Linux-pnpm-17a93e576bec6596513e8336af475af9b856a1ba83ab27dd39d06fe763dac835
   ```
   
   https://github.com/adoroszlai/hadoop-ozone/runs/1042919167#step:3:10
   https://github.com/adoroszlai/hadoop-ozone/runs/1042919016#step:4:13


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

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



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

Reply via email to