bazel-contrib / rules_bazel_integration_test

Rules and macros for executing integration tests that use Bazel. Supports running integration tests with multiple versions of Bazel.
Apache License 2.0
47 stars 9 forks source link

Tests fail on windows due to issues in bazel-starlib #330

Open peakschris opened 3 months ago

peakschris commented 3 months ago

Around 16 test cases are failing with the error below. The root cause is https://github.com/cgrindel/bazel-starlib/issues/447. There is a possible fix: https://github.com/cgrindel/bazel-starlib/pull/446

ERROR: src/main/native/windows/process.cc(202): CreateProcessW("D:\udu\b\n2fuxwdi\execroot\_main\bazel-out\x64_windows-fastbuild\bin\bazel_integration_test\private\bzlformat_lint_test.sh.runfiles\_main\bazel_integration_test\private\bzlformat_lint_test.sh"): %1 is not a valid Win32 application

Full message:

INFO: From Testing //bazel_integration_test/private:bzlformat_lint_test:
==================== Test output for //bazel_integration_test/private:bzlformat_lint_test:
ERROR(tools/test/windows/tw.cc:1302) ERROR: src/main/native/windows/process.cc(202): CreateProcessW("D:\udu\b\n2fuxwdi\execroot\_main\bazel-out\x64_windows-fastbuild\bin\bazel_integration_test\private\bzlformat_lint_test.sh.runfiles\_main\bazel_integration_test\private\bzlformat_lint_test.sh"): %1 is not a valid Win32 application.
 (error: 193)
ERROR(tools/test/windows/tw.cc:1479) Failed to start test process (arg: D:\udu\b\n2fuxwdi\execroot\_main\bazel-out\x64_windows-fastbuild\bin\bazel_integration_test\private\bzlformat_lint_test.sh.runfiles\_main\bazel_integration_test\private\bzlformat_lint_test.sh)
================================================================================

To reproduce:

git clone
cd rules_bazel_integration_test
bazel test //tests/tools_tests:bzlformat_lint_test
bazel clean
bazel --windows_enable_symlinks test //tests/tools_tests:bzlformat_lint_test
bazel clean
bazel --windows_enable_symlinks test //tests/tools_tests:bzlformat_lint_test --enable_runfiles