-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Immutable workspace contents have been modified with current gradle (8.6) and this action #47
Comments
There are significant changes to the way artifact transforms are used with Gradle 8.6. The I've never seen the message Can you please disable cache cleanup, reset all cache entries and see if the problem reappears? |
Looking at the code in question, it's not obvious how setting timestamps will be causing the problem. So it would be really useful to compare the exact contents of the directory in question (eg |
Okay - thanks for looking in to this I'm usually pretty handy with workflow yaml, I'll try to make a test jig for this 1- I'll add an upload-artifact step to save caches/transforms-4 so it is inspectable and make it so that step runs even on workflow failure Then I'll think about it to see how I can get some combination of workflow dispatch arguments (for manual runs) that allow cache restore / cleanup / save behavior to be manipulated on successive runs so it can hopefully be triggered and cleaned and then the uploaded artifacts examined to hopefully shed light on it |
@mikehardy Were you able to reproduce this issue? If not, I guess we'll just close it and assume it was anomalous. |
Oh yes we had to disable caching as it doesn't just fail it poisons the cache and fails all future runs when it happens. The Gradle action is broken with Gradle 8.5 unless work has been specifically done here in this repo. I just haven't had time to pack up a repro to demonstrate |
By "disable caching" do you mean Yes please if you are able to reproduce and help us identify the difference in We haven't had other reports of the same issue with Gradle 8.6. Without a reproducer or more evidence it's difficult to get the Build Tool team responsible to investigate further. |
Error logs can be found on the following actions runs & should be reproducible via GitHub Actions on the following commits:
Caches have been disabled using Commits disabling the cache: GitHub Actions workflow (at ankidroid/Anki-Android@0ab90ba) with failures on macos/ubuntu. Cache disabled on Windows |
Thanks @david-allison . Using a fork of the repository, I can execute the workflow multiple times with bigdaz/Anki-Android@0ab90ba and have not been able to reproduce the failure. I'll continue to investigate, but any hints as to a reliable process to reproduce would be helpful. |
I'm not going to have the capacity for significant investigation. The following lines may be relevant. ankidroid/Anki-Android@8174898 -> ankidroid/Anki-Android@0ab90ba The https://github.com/ankidroid/Anki-Android/actions/runs/8041286323/job/21960377455
|
Thanks. I don't think that error is relevant. |
In Gradle 8.7-rc-4 we'll release this that is going to allow builds to proceed even when Gradle detects modifications: |
I'm going to close this issue now that Gradle 8.7 has been released with a fix. |
Hi there!
We've started getting build failures with this message since updating to gradle 8.6 while using this action:
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?
The text was updated successfully, but these errors were encountered: