Closed quyykk closed 2 years ago
Seems like causing a deliberate cache miss fixed the issue for some reason. Sorry for this unnecessary issue.
Nevermind, now it's the MinGW action. I figured out the problem though. It seems like the cache uses the Windows version and some other ids as cache id, but since the two jobs are both using Windows, the cache id is the same and only one cache is active.
The other doesn't get saved: https://github.com/quyykk/endless-sky/runs/7222856466?check_suite_focus=true#step:15:6
Warning: reserveCache failed: Cache already exists. Scope: refs/heads/cmake, Key: runnerOS=win2220220626.1-vcpkgGitCommit=944c880fcbeaaf41a11f3ed8099f22528b38dbf3_vcpkgJson=872885daeddf2fdbf652ce45167027a4bb411b4a366a0eeca5bea7c37987be21, Version: e2e62879311cf67fd97e14628b1f3ddba385beab6e373154a593b82a118a7806
I've found the appendedCacheKey
input for run-vcpkg. Sorry for the noise.
I have 4 jobs: Linux, MacOS, Windows MinGW and Windows MSVC. All using get-cmake, run-vcpkg and run-cmake. In fact, the job is basically identical for all four of them. But for the MSVC build the packages from vcpkg are being rebuilt every single time, even though there's a cache hit. So I'm really not sure what is going wrong.
From run-vcpkg:
Which as far as I understand successfully downloads the cache. But then in run-cmake:
It starts building. It seems to have found 2 packages, but the rest is gone or something. (--debug would be helpful but I don't know how to specify it).
Here's a run (all green) that erroneously rebuilds the packages: https://github.com/quyykk/endless-sky/runs/7221991331 Here's the run right after that one that also fails to rebuild: https://github.com/quyykk/endless-sky/runs/7222278448
What could be going wrong? Is it an error on my end? Thanks!