-
Notifications
You must be signed in to change notification settings - Fork 522
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
Windows: tests fail with --incompatible_windows_native_test_wrapper #947
Comments
Complete list of failed tests with this flag: "Artifacts" tab on https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/1109#25b73074-7ffd-4925-8591-26da21731703 |
/cc @alexeagle |
ping |
Let me see if we can just remove this shell wrapping of nodejs_binary and nodejs_test - I added these for Windows initially, and they cause pain as macros usually do, eg by not forwarding the right attrs to the right underlying rules. |
Thanks! If the rules return |
Hey @alexeagle , any update on this? |
@meteorcloudy could you help out with this one? My #791 to remove the sh wrapper needs some windows help. Then I'm also not sure whether that change actually fixes this problem. |
Alex, you don't need to remove the sh wrapper. It's probably easiest to wrap the generated .sh file in a sh_test rule. That's perfectly fine and will fix this problem. Here's an example where I did exactly that: bazelbuild/bazel@77b9875 |
Sorry, I realized that all the while i thought your goal was to remove the generated .sh file. But I'm wondering, what problems do the sh_test / sh_binary wrappers cause?
|
I think generally we don't want MSYS as a dependency for Angular on Windows, so it's better to remove the .sh wrapper if we could. |
@alexeagle I took a closer look into #791, it won't fix this issue. But the The reason some tests are failing with I'll send a fix for this. Eventually, we want get rid of Bash dependency. But that requires us to find a replacement for node_launcher.sh. |
Close via #1034 |
🐞 bug report
Is this a regression?
no
Description
On Windows, some tests fail with
--incompatible_windows_native_test_wrapper
.🔬 Minimal Reproduction
Tests pass with
--noincompatible_windows_native_test_wrapper
:But fail with
--incompatible_windows_native_test_wrapper
:The
--incompatible_windows_native_test_wrapper
flag forces Bazel to run the test script directly (with CreateProcess) instead of running through Bash.Since
test.sh
is not a native executable, CreateProcess fails.🌍 Your Environment
Operating System:
Output of
bazel version
:Rules version (SHA):
Anything else relevant?
This is blocking bazelbuild/bazel#6622, which I really want to ship with Bazel 1.0 (September 2019 release).
The text was updated successfully, but these errors were encountered: