Open thsfs opened 1 year ago
This is minor, it didn't affect the build, only affected saving the cache for the run it failed.
Is this an actual issue? Looks like the intended behaviour, since both caches are for the same build type one needs to be discarded and one stored.
In one of the recent runs, both caches were discarded for some reason, it's definitely a problem if that happens. https://github.com/nanocurrency/nano-node/actions/runs/4720247737/jobs/8372055401
From the warning "Unable to reserve cache with key macOS-build-cache, another job may be creating this cache". For MacOS there are two jobs in parallel and for Linux, four jobs, all trying to save a cache for the same key for each OS type.
Fix suggestion: for MacOS and for Windows we just need one of the jobs saving the cache. For Linux we need one from each compiler type. This won't avoid collisions with jobs from other workflows if they happen to be running at the same time, but would avoid them for jobs in the same workflow. Dealing with the concurrency problems from only within the workflow should be enough to avoid most of the conflicts.
I don't think the error message is accurate in this case, since both actions were not running concurrently in a run I linked. There is more info in a discussion regarding this exact problem here https://github.com/actions/toolkit/issues/658
Got this error message when running the unit test action for Windows:
The actions try to save the build cache for the same key.