You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
incompatible_windows_native_test_wrapper: enables Bash-less test execution on Windows #6622
P1I'll work on this now. (Assignee required)area-WindowsWindows-specific issues and feature requestsincompatible-changeIncompatible/breaking changeplatform: windowsteam-OSSIssues for the Bazel OSS team: installation, release processBazel packaging, website
The option --incompatible_windows_native_test_wrapper enables using the Bash-less test wrapper on Windows. This flag has NO effect on other platforms.
When using bazel test, Bazel does not execute tests directly. Instead Bazel runs a "test wrapper" as a subprocess, which sets up the environment for the test and runs the test.
By default, Bazel uses a Bash script (@bazel_tools//tools/test:test-setup.sh) as the test wrapper, on all platforms. The new flag allows using an alternative test wrapper written in C++ that does not depend on Bash.
When the flag is enabled, Bazel uses the C++ test wrapper from @bazel_tools//tools/test:tw. This test wrapper does not depend on Bash, but it's new and has not yet been battle-tested.
When the flag is disabled, Bazel uses the Bash script test wrapper also used on every other platform, from @bazel_tools//tools/test:test-setup.sh. This script requires Bash. It has always been the way to run tests with Bazel, so it's battle-tested.
The new test wrapper is designed to be backwards-compatible with the Bash-script based one. We do not expect any incompatibilities.
Migration recipe
None, as of 2019-03-06.
If you do find that this flag breaks your tests, please let us know so we can find a solution.
Rollout plan
Bazel 0.24.0 will not support this flag.
Bazel 0.25.0 is expected to support this flag, with default value being false.
Bazel 0.26.0 is expected to flip this flag to true.
Bazel 0.27.0 is expected to remove this flag.
changed the title [-]Windows: enable `--incompatible_windows_native_test_wrapper` by default[/-][+]--incompatible_windows_native_test_wrapper: enables Bash-less test execution on Windows[/+]on Feb 18, 2019
changed the title [-]--incompatible_windows_native_test_wrapper: enables Bash-less test execution on Windows[/-][+]incompatible_windows_native_test_wrapper: enables Bash-less test execution on Windows[/+]on Feb 18, 2019
P1I'll work on this now. (Assignee required)area-WindowsWindows-specific issues and feature requestsincompatible-changeIncompatible/breaking changeplatform: windowsteam-OSSIssues for the Bazel OSS team: installation, release processBazel packaging, website
Activity
laszlocsomor commentedon Nov 7, 2018
Current status:
Windows, test-wrapper: rename flag in Bazel
Windows, test-wrapper: rename flag in Bazel
Windows, test-wrapper: write undeclared outputs mf
Windows, test-wrapper: write undeclared outputs mf
[-]Windows: enable `--incompatible_windows_native_test_wrapper` by default[/-][+]--incompatible_windows_native_test_wrapper: enables Bash-less test execution on Windows[/+][-]--incompatible_windows_native_test_wrapper: enables Bash-less test execution on Windows[/-][+]incompatible_windows_native_test_wrapper: enables Bash-less test execution on Windows[/+]72 remaining items
laszlocsomor commentedon Jul 29, 2019
Status:
--incompatible_windows_native_test_wrapperto every downstream project that is ready, and migrate the rest one by onelaszlocsomor commentedon Jul 30, 2019
Blockers:
//internal:testis broken with Bazel's Windows native test wrapper rules_typescript#452dslomov commentedon Sep 2, 2019
What are the ETA for the flag flip?
dslomov commentedon Sep 3, 2019
ping @meteorcloudy
meteorcloudy commentedon Sep 3, 2019
We have one last broken project, fix is here: bazelbuild/rules_typescript#469
I think we can flip this now to catch up the 1.0 cut.
dslomov commentedon Sep 3, 2019
lovely, let's do it.
Flip --incompatible_windows_native_test_wrapper
laszlocsomor commentedon Sep 6, 2019
Thank you 😂
incompatible_windows_native_test_wrapper: remove
Update rules_nodejs to 0.28.0
Update rules_nodejs to 0.28.0
Windows: fix tests for native test wrapper (#129)