-
Notifications
You must be signed in to change notification settings - Fork 136
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
Git on Windows is buggy on CI #649
Comments
Seems like it's our bug:
Our Buildkite Agent runs as SYSTEM. This also explains, why you can't repro it on your own machine. |
I guess there's no other fix available, so maybe we can try to change our setup again to run CI jobs as a different user - we had that in the past, but it was very complex. But maybe I can bring back the logic from that time... |
Hmm,, sounds like the only way. Thanks for helping on this! |
@philwo Thanks for the fix! Please ping me when the Windows slaves are updated. ;) |
@meteorcloudy Rolled out! |
Seems like we need to explicitly grant SECreateSymbolicLinkPrivilege to the Buildkite Agent user... rolling out a fix now: 8404c92 |
Verified that the fix worked - postsubmit is green again :) |
Context:
@irengrig has a PR to refactor the git_repository and new_git_repository rules so that the rules call git binary directly instead of executing git in a bash script.
But the tests fail on CI with weird error:
https://buildkite.com/bazel/bazel-bazel-github-presubmit/builds/2869#a74532d6-3819-49da-8b12-480613a55cbb
However, the test only fails on CI when running by the Buildkite agent. I tried to reproduce locally and logging into a CI machine, but in both situations, the test passed.
Following the error message, I found git-for-windows/git#1135, which described an extremely similar issue. But the solution doesn't look applicable in our case.
@philwo Any idea on this? I really don't know what we could do..
The text was updated successfully, but these errors were encountered: