fix(ci): drop stale Gradle journal locks on the shared /gradle volume #117
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/android-ci-gradle-journal-lock"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
android-ci on main died with
LockTimeoutException: Timeout waiting to lock journal cache (/gradle/caches/journal-1). Owner PID and our PID were a few numbers apart — two Gradle JVMs on the sharedonionwire-android-gradlevolume.Cause
GRADLE_USER_HOME=/gradleis a Docker volume reused across runs.docker rm, so the previousonionwire-android-*container keeps the volume (and the lock).android/gradle.propertiessetsorg.gradle.parallel=true.Fix
trap EXITplusdocker rm -fof leftoveronionwire-android-*containers before create.*.lockfiles,GRADLE_OPTSparallel=false.Does not change app code. After merge, re-run android-ci on main if the merge-of-116 job stayed red.