Open nhubbard opened 1 month ago
Hello @nhubbard, Thank you for creating this issue and we will get back to you once we have some feedback on this :)
Not sure if it's related but I get occasional file access errors on Linux Maven. (because the FileSystem has been closed
) Error happens on the actual phase, not the post job in my case.
Error: Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Failed to access [/home/runner/work/userowl-api/userowl-api/domain/target/domain-0.23.3.native.jar] because the FileSystem has been closed
Error: at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
Error: at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
Error: at io.quarkus.deployment.steps.ClassTransformingBuildStep.handleClassTransformation(ClassTransformingBuildStep.java:275)
Error: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
Error: at java.base/java.lang.reflect.Method.invoke(Method.java:580)
Error: at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:849)
Error: ... 6 more
I think I have a potential solution. Should we even be attempting to cache the lock files? They are supposed to be cleaned up automatically by Gradle after all...
Description: On Windows runners, my
setup-java
consistently shows read errors for the following files in the.gradle
folder:.gradle/caches/8.7/fileContent/fileContent.lock
.gradle/caches/8.7/fileHashes/fileHashes.lock
.gradle/caches/8.7/generated-gradle-jars/generated-gradle-jars.lock
.gradle/caches/8.7/javaCompile/javaCompile.lock
.gradle/caches/jars-9/jars-9.lock
.gradle/caches/journal-1/journal-1.lock
.gradle/caches/modules-2/modules-2.lock
It also happened in older builds with Gradle 8.6.
Task version:
actions/setup-java@v4
Workflow file is as follows:
Platform:
Runner type:
Repro steps:
I already provided the exact workflow file above, but the repository is here: https://github.com/nhubbard/konf
Here are some example successful workflow runs where this issue is logged:
Expected behavior:
The cache is successfully generated for restoration on the next build with the Windows runner.
Actual behavior:
A
tar
error is reported under the "Post Set up JDK 21" action:Despite the "cache saved with the key" message, it doesn't actually save the cache correctly.