Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
Ozone source is checked out for acceptance and kubernetes checks to /mnt, outside of GITHUB_WORKSPACE, and only after Cache steps. Therefore no files are found for which hash would be computed to be included in cache keys.
- name: Cache for maven dependencies uses: actions/cache@v2 with: path: ~/.m2/repository key: maven-repo-${{ hashFiles('**/pom.xml') }}
Cache key is always maven-repo-:
Cache restored from key: maven-repo-
The same old cache is used for all builds, even if dependencies are changed in pom.xml, gradually resulting in more and more downloads during builds:
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/info/picocli/picocli/4.4.0/picocli-4.4.0.jar (389 kB at 2.4 MB/s) [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/ratis/ratis-server/1.0.0/ratis-server-1.0.0.jar (380 kB at 2.4 MB/s) [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-api/2.13.3/log4j-api-2.13.3.jar (292 kB at 1.9 MB/s) [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/ratis/ratis-proto/1.0.0/ratis-proto-1.0.0.jar (1.2 MB at 6.6 MB/s) [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.13.3/log4j-core-2.13.3.jar (1.7 MB at 8.5 MB/s)
Attachments
Issue Links
- links to