Open
Description
Description:
Caching is not working
Task version:
99b8673
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Repro steps:
Run a normal maven build
Expected behavior:
Maven caches should be restored within 10-30 seconds
Actual behavior:
Sometimes the cache fails with a timeout after 5 minutes, sometimes it fails more quickly with a 500 error. This may be related to the fact that setup-java is using an old version of the setup-cache action and their backend has moved to v2. The minimum version of setup-cache now seems to be 4.2.0.
Run actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9
with:
java-version: 17
distribution: temurin
cache: maven
java-package: jdk
check-latest: false
server-id: github
server-username: GITHUB_ACTOR
server-password: GITHUB_TOKEN
overwrite-settings: true
job-status: success
token: ***
Installed distributions
Resolved Java 17.0.15+6 from tool-cache
Setting Java 17.0.15+6 as the default
Creating toolchains.xml for JDK version 17 from temurin
Writing to /home/runner/.m2/toolchains.xml
Java configuration:
Distribution: temurin
Version: 17.0.15+6
Path: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.15-6/x64
Creating settings.xml with server-id: github
Writing to /home/runner/.m2/settings.xml
Warning: Failed to restore: getCacheEntry failed: Cache service responded with 503
maven cache is not found