adoroszlai opened a new pull request, #251: URL: https://github.com/apache/ratis-thirdparty/pull/251
## What changes were proposed in this pull request? Adapt Ozone's approach of dependency caching: - reusable `setup-java-with-cache` action: runs built-in `setup-java` and handles cache for both Maven dependencies (restore-only) and Maven Wrapper (restore/save) - `populate-cache` workflow: builds the cache from scratch, delegates to a new helper script that can be tested locally Trigger `populate-cache` before each CI run, and on schedule (once every day). https://issues.apache.org/jira/browse/RATIS-2855 ## How was this patch tested? Dev branch with this change (RATIS-2855): cache created, no jars downloaded in CI checks. https://github.com/adoroszlai/ratis-thirdparty/actions/runs/47642733878 ``` Artifact maven-repo-c2dd97d4ea3661fe8528d0739c7c2e57785931e6515056756222817099615412-17-RATIS-2855 has been successfully uploaded! Final size is 240432002 bytes. Artifact ID is 15985185311 ... Restoring maven-repo-c2dd97d4ea3661fe8528d0739c7c2e57785931e6515056756222817099615412-17-RATIS-2855 from branch RATIS-2855. ``` Same commit on `master`: cache created, CI skipped. ``` Artifact maven-repo-c2dd97d4ea3661fe8528d0739c7c2e57785931e6515056756222817099615412-17-master has been successfully uploaded! Final size is 240431768 bytes. Artifact ID is 15985486005 Artifact maven-repo-master has been successfully uploaded! Final size is 240431768 bytes. Artifact ID is 15985735100 ``` https://github.com/adoroszlai/ratis-thirdparty/actions/runs/47643622345 Other branch changing `pom.xml`: cache created, used in CI checks. https://github.com/adoroszlai/ratis-thirdparty/actions/runs/47645019750 ``` Artifact maven-repo-3d703738aa9439880a8b9b7aad8fea48ef3821262bf27f4e8470a4d6bc132674-17-grpc-1.86.0 has been successfully uploaded! Final size is 240444339 bytes. Artifact ID is 15985891813 ... Restoring maven-repo-3d703738aa9439880a8b9b7aad8fea48ef3821262bf27f4e8470a4d6bc132674-17-grpc-1.86.0 from branch grpc-1.86.0. ``` PR from the same branch: cache skipped, generic cache found from `master`. https://github.com/adoroszlai/ratis-thirdparty/actions/runs/47646039141 ``` Restoring maven-repo-master from branch master. ``` Other branch not changing `pom.xml`: exact cache found from `master`. https://github.com/adoroszlai/ratis-thirdparty/actions/runs/47647943382 ``` Restoring maven-repo-c2dd97d4ea3661fe8528d0739c7c2e57785931e6515056756222817099615412-17-master from branch master. ``` PR from same branch: cache skipped, exact cache found from `master`. https://github.com/adoroszlai/ratis-thirdparty/actions/runs/47648843776 ``` Restoring maven-repo-c2dd97d4ea3661fe8528d0739c7c2e57785931e6515056756222817099615412-17-master from branch master. ``` -- 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]
