-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Bazel+RBE failure on Windows with target of length 89 or 90 #12310
Comments
Is this still a P1 bug? |
@jin Yep, this is still affecting gRPC debugging. |
@meteorcloudy Thank for the fix! I don't know how to use a custom build Bazel, though. Have you tried to build my reproduction case described here? |
I couldn't reproduce because I don't have access to required RBE resources. I prepared a branch with the fix based on Bazel 2.2.0: Can you fetch this branch and built a custom Bazel binary via |
Thanks for the fix and I tried to build it on kokoro winserver2016 but failed.
|
Can you try building it with Bazel 2.1.0? I managed to build this branch using this version. |
@veblush Yeah, like Mai said, can you try to build Bazel 2.2.0 with Bazel 2.1.0, the latest version of Bazel is sometimes unable to build old version of Bazel due to some breaking changes. |
Sorry for the late response. I tried it with bazel 2.1.0 but it wasn't able to build it.
|
You can reproduce this without using bazel_rbe which requires a right credential. Can you try it on windows?
|
Hmm, looks like your files may have the Windows line ending CRLF (\n\r), you can tell git to always use LF by @mai93 Do I understand correctly that you actually verified the fix worked in the RBE build, right? |
Yes, all tests passed with the fix but I was working with Bazel 3.7.2. With Bazel 2.2.0 + the fix, I get the following error:
|
Nice. The error with 2.2.0 should be caused by something else. I think we can merge your fix now. |
This PR applies the suggested fix for bazelbuild#12310. Although I could not reproduce it. Fixes: bazelbuild#12310 Closes bazelbuild#12941. PiperOrigin-RevId: 362327025
This PR applies the suggested fix for bazelbuild#12310. Although I could not reproduce it. Fixes: bazelbuild#12310 Closes bazelbuild#12941. PiperOrigin-RevId: 362327025
Description of the problem:
I ran into a weird error when running a test through Bazel RBE on Windows. There is the issue describing it in detail. Its summary is that SymInitialize (Windows Debug API) fails only when the length of the target is 89 or 90. When the target name is shortened or lengthened, this issue is fixed. So something related to the length should be there.
This is a PR to reproduce this simply and I haven't seen this problem when running Bazel directly on Windows. The Bazel RBE team investigated this problem and this might be a result of combination of bazel and docker so I like to get help from the Bazel team.
I guess changing the threshold (from 260 to 258) to use shortened paths on Windows can fix this issue. code
Internal bug with details: b/169902891
Feature requests: what underlying problem are you trying to solve with this feature?
SymInitialize failed only when the length of path is 89 and 90
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
grpc/grpc#24302
What operating system are you running Bazel on?
Windows server 2016
What's the output of
bazel info release
?I cannot run bazel info but the version of bazel is 2.2.0.
The text was updated successfully, but these errors were encountered: