Open linux4life798 opened 10 months ago
@linux4life798
Am I getting this right:
So the issue seems to be with the sccache binary on the newer macos? Is it the same binary that gets installed on macos-11 and macos-12?
This doesn't seem to be an issue with the action, however it is good to keep this issue as a warning for others.
this is caused by an upgrade of the macos runner from macos-11 to macos-12?
@hendrikmuhs, yes, I bumped the runner version from macOS-11
to macOS-12
, but the upgrade itself doesn't seem to be the issue. The different runners are configured to use different GitHub caches, which is fine. I tried to show in the above examples that the first builder on macOS-12 starts with no cache and then restores that cache on the next build.
So the issue seems to be with the sccache binary on the newer macos?
Very possible.
Is it the same binary that gets installed on macos-11 and macos-12?
It looks like brew is installing the same version, 0.7.4, on macOS-11 as it does on macOS-12, but it takes massively more time to install on macOS-11 (like 20 mins vs 20 seconds). See https://github.com/linux4life798/llvm-project-ci-test/actions/runs/7522258649/job/20474458939.
I was concerned that the restore and save actions might be somehow invoking different versions of sccache, like the error says:
sccache: caused by: Failed to send data to or receive data from server. Mismatch of client/server versions?
Or, maybe the save action is being invoked too close to the last compilation, causing corruption?
On macOS-12, sccache is not working after cache resuming and then fails to post stats during the cleanup. The latter issue causes the new cache to not be saved.
Checkout the following consecutive builds:
Build Job 48
This started with no prior cache and ran for 2h 7m 38s.
In between Jobs Canceled Without Starting
Build Job 50
This build started with Job 48's cache and ran for 2h 4m 11s.
In between Jobs Canceled Without Starting
Build Job 53
This build started with Job 48's cache, also, and ran for 2h 5m 4s.
These and more recent builds can be seen here.