-
Notifications
You must be signed in to change notification settings - Fork 94
//internal:test
is broken with Bazel's Windows native test wrapper
#452
Comments
Looks like this will NOT happen :( |
Next time you can just ping me to unwind the silly sync sandwich between this repo and rules_nodejs Sounds like the right thing is for us to pair a bit to remove the need for the wrapper macro on nodejs_test and nodejs_binary? |
Sure, and thanks. |
Ping -- sorry for the long silence, I'm just now picking this up. The test still fails:
|
Linking to bazelbuild/bazel#6622, which is blocked by this |
ping |
dupe of bazel-contrib/rules_nodejs#947, let's fix them together |
Thanks! |
🐞 bug report
Affected Rule
The issue is caused by the rule://internal:test
, which is ajasmine_node_test
from@npm_bazel_jasmine//:index.bzl
Is this a regression?
Not really, I think it's always been there.
Description
A clear and concise description of the problem...Bazel 0.27 will enable a feature by default: to use a new test execution mechanism on Windows. Currently (in Bazel 0.26) this features is disabled. The new feature allows faster test execution, and doesn't use Bash. See bazelbuild/bazel#6622 for details.
The bad news is, rules_typescript breaks with this planned change 😢 I fixed it in the past (e50c806), but it's broken again 😿
Currently, I'm stuck: can't figure out where I have to update what.
I think I know the problem. It looks similar to that fixed by bazel-contrib/rules_nodejs@76609c7
And I believe I have to update
@npm_bazel_jasmine//src/jasmine_node_test.bzl
to usenodejs_test_macro
instead ofnodejs_test
.But I can't find where to update this file, or how it's pulled in as a dependency :(
🔬 Minimal Reproduction
With Bazel 0.26.0, check out rules_typescript c160db9, and run:
It fails because the test rule tries to execute a
.sh
file, which is not an executable file on Windows.🔥 Exception or Error
🌍 Your Environment
Operating System:
Windows 10
Output of
bazel version
:0.26 release
Rules version (SHA):
Anything else relevant?
The text was updated successfully, but these errors were encountered: