Skip to content
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

[ci] No cache hits on Bazel Windows cache. #75

Open
agutkin opened this issue May 4, 2021 · 3 comments · Fixed by #100
Open

[ci] No cache hits on Bazel Windows cache. #75

agutkin opened this issue May 4, 2021 · 3 comments · Fixed by #100
Assignees
Labels
bug Something isn't working

Comments

@agutkin
Copy link
Collaborator

agutkin commented May 4, 2021

We don't get any cache hits on the Bazel cache on Windows. Fix.

@agutkin agutkin added the bug Something isn't working label May 4, 2021
@agutkin agutkin self-assigned this May 11, 2021
copybara-service bot pushed a commit that referenced this issue May 12, 2021
copybara-service bot pushed a commit that referenced this issue May 12, 2021
copybara-service bot pushed a commit that referenced this issue May 12, 2021
@agutkin
Copy link
Collaborator Author

agutkin commented May 12, 2021

This may need to be reopened: The cache is now hit correctly, but the cache posting by tar.exe fails:

Post job cleanup.
C:\Windows\System32\tar.exe --posix -z -cf cache.tgz -P -C D:/a/mozolm/mozolm --files-from manifest.txt
tar.exe: Couldn't open C:/Users/runneradmin/_bazel_runneradmin/jcqm7o2t/java.log.fv-az171-286.runneradmin.log.java.20210512-222522.1120: Permission denied
tar.exe: Error exit delayed from previous errors.
Warning: Tar failed with error: The process 'C:\Windows\System32\tar.exe' failed with exit code 1

See actions/toolkit#632.

@agutkin agutkin reopened this May 12, 2021
@agutkin
Copy link
Collaborator Author

agutkin commented May 13, 2021

The presubmit run for #101 looks better now:

Post job cleanup.
C:\msys64\usr\bin\tar.exe --posix --use-compress-program "zstd -T0" -cf cache.tzst -P -C D:/a/mozolm/mozolm --files-from manifest.txt --force-local
Cache Size: ~1197 MB (1255091279 B)
Cache saved successfully
Cache saved with key: Windows-bazel-f4cbf5a91f93d09549716b4533757e19cdfe152eabb430876f4a33d3b3d5f584

@agutkin agutkin linked a pull request May 13, 2021 that will close this issue
@agutkin
Copy link
Collaborator Author

agutkin commented May 13, 2021

Cache is now generated and hit upon the next build. However it looks like when it's restored, tar cannot create symbolic links. Keeping this issue open for further investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant