bazel-contrib / bazel-contrib/rules_bazel_integration_test

Tests fail on windows due to issues in bazel-starlib

Open
#330 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
65
Forks
16
Avg merge
1d 9h
Merged PRs (30d)
9

Description

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
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with `bazel test //tests/tools_tests:bzlformat_lint_test` and the Windows command variants listed in the issue. Read bazel-starlib issue 447 and pull request 446 alongside the failing `bzlformat_lint_test` output; done means the Windows test cases start successfully and pass.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.