-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
GitHub binary cache not stored (insufficient error message?) #31072
GitHub binary cache not stored (insufficient error message?) #31072
Comments
I think it may be caused by permission problems or network problems.
If it can be verified that it is due to the |
Could be the case as well. Though I don't think it is a permission problem, since all other ports in the same workflow got stored successfully. That's why I think the error message would be helpful: it should tell us why GitHub actually rejected the cache.
Please note that I am building the release version only (using the community triplet
I would hope that printing the response of the cache reservation API call in the case that it does not include the |
It's not the cache reservation, but rather GitHub rejecting uploads bigger than something like 500MB. The solution is to split the upload into chunks, just like the official actions/cache action. I'll fix it, thanks for reporting! 😄 |
Note that vcpkg CI has the same problem with AZP. |
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. |
I am trying to use the new binary caching using GitHub actions cache (
x-gha
). It mostly works as expected, but for LLVM on Windows I do just seewithout any further explanation why the binaries have not been stored. When running with
--debug
I getso it seems that it stops after trying to reserve the cache entry. My guess is that GitHub rejects the cache because it is to big?! But it is hard to tell, because there is no error message generated.
From reading the vcpkg-tool source, I would guess that it stops at
https://github.com/microsoft/vcpkg-tool/blob/b709fcce3734beddd0d0d75289443ca09e2a04a1/src/vcpkg/binarycaching.cpp#L1025
and then the
if
athttps://github.com/microsoft/vcpkg-tool/blob/b709fcce3734beddd0d0d75289443ca09e2a04a1/src/vcpkg/binarycaching.cpp#L1130
does not have an
else
and hence no meaningful error is generated.I would suggest to at least create a debug message with the response from the GitHub API call when no
cacheId
could be found in the response. My guess is that GitHub will actually send a meaningful error here.If more information on the actual failure case is needed, the complete GitHub action workflow log can be found here:
https://github.com/albertziegenhagel/snail-server/actions/runs/4778662169/jobs/8495225986#step:8:1120
The text was updated successfully, but these errors were encountered: