Gradle caching post-task consistently fails on Windows with "device or resource busy" #633
Open
2 of 5 tasks
Labels
bug
Something isn't working
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.
The text was updated successfully, but these errors were encountered: