I tried doing this sometime back and got a lot of errors when trying to restore the cache on a new build - this could have to do with file permissions on the new instance.
This portion effectively says to only cache/restore these files for the current commit. Try removing this last portion to allow your cache to apply to {{ arch }}-{{ .Branch }}, which scopes to this Arch type and this branch.
Ah, apologies - I did not have anything further to add. I was asking for clarifications based on what I thought Kyle would ask you next, to save them having to ask.
If this issue really has been in flight for 24+ days, I would personally change track. That’s not to say it won’t work, just that it is sensible to timebox each approach, so you don’t spend more than a day or two on each approach. I would suggest getting an S3 bucket or an external SSH server, from/to where you can scp a cache tarball. Worth a try?
Linux/Unix specific steps
Running in a real OS environment
Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
Exited with code 100
This particular bug is one of the more annoying ones but unrelated to the original issue. This happens when a mirror from ubuntu has gone offline or is particularly slow for some reason. This also generally only affects the VM executor. The update process from the spinup step is still running (likely due to a mirror issue) and will need to be killed. This issue usually fixes itself within a few hours if it’s network related.
For the original issue you have posted. For a speedier response and for the nature of the issue, I would recommend opening up a ticket with the support team.
I see one of the builds above is attempting to pull a cache form a job that is over a month old. This cache likely no longer exists.
I would recommend rolling your cache keys. Could you take all of your keys and affix a number to them like this?
And if there is already a number, try incrementing it up one just to generate a new cache. This should result at first in the next commit having no cache at all, call this build X. Your next commit (Y), you should see that it restores the cache from build X.
If there is still a permission issue at this point it will be easy for us to identify.
All of the keys have a -v2- in their names, and it has just about failed to restore the first cache make-v2-arch1-linux-amd64-6_63-build-graalvm-suite.