-
Notifications
You must be signed in to change notification settings - Fork 77
Description
Hi there!
We've started getting build failures with this message since updating to gradle 8.6 while using this action:
Execution failed for task ':AnkiDroid:testPlayDebugUnitTest'.
> A build operation failed.
Immutable workspace contents have been modified: /home/runner/.gradle/caches/transforms-4/f46cf63d0a549c8bc814e25133f449eb. These workspace directories are not supposed to be modified once they are created. Deleting the directory in question can allow the content to be recreated.
> Immutable workspace contents have been modified: /home/runner/.gradle/caches/transforms-4/f46cf63d0a549c8bc814e25133f449eb. These workspace directories are not supposed to be modified once they are created. Deleting the directory in question can allow the content to be recreated.
Here's a sample run: https://github.com/ankidroid/Anki-Android/actions/runs/7932349193/job/21658645926?pr=15520
It reproduced originally in windows runners, and on a hunch it was windows file locking I disabled caching there and it worked
Now it is reproducing on ubuntu runners as well so I suppose it is an incompatibility?
Unfortunately it is persistent across runs - once whatever the incompatibility is triggers, the cache is saved with the problem latent in it, and any future runs that restore that gradle cache will fail with the error above.
This never happened prior to updating our gradle from 8.5 to 8.6 so perhaps that is the source of the incompatibility?