Skip to content
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 that require cross-compilation are failing in CI #2507

Closed
jayconrod opened this issue May 15, 2020 · 0 comments · Fixed by #2509
Closed

Windows tests that require cross-compilation are failing in CI #2507

jayconrod opened this issue May 15, 2020 · 0 comments · Fixed by #2509
Labels
code-health windows Affects Windows hosts or targets

Comments

@jayconrod
Copy link
Contributor

Example: https://buildkite.com/bazel/rules-go-golang/builds/2090#7229061d-be81-4468-b462-2967a7e7348a

Executing tests from //tests/core/race:race_test
-----------------------------------------------------------------------------
--- FAIL: Test (56.86s)
    --- FAIL: Test/cmd_attr (12.63s)
        race_test.go:218: running: bazel run //:racy_cmd_race_mode -- -wantrace=true
        race_test.go:226: unexpected build failure: exit status 1
            stderr:
            Loading: 
            Loading: 0 packages loaded
            Analyzing: target //:racy_cmd_race_mode (0 packages loaded, 0 targets configured)
            INFO: Analyzed target //:racy_cmd_race_mode (0 packages loaded, 133 targets configured).
            INFO: Found 1 target...
            [0 / 6] [Prepa] BazelWorkspaceStatusAction stable-status.txt
            [3 / 6] [Sched] GoStdlib external/io_bazel_rules_go/stdlib_/pkg
            [3 / 6] GoStdlib external/io_bazel_rules_go/stdlib_/pkg; 1s local
            [3 / 6] GoStdlib external/io_bazel_rules_go/stdlib_/pkg; 10s local
            ERROR: C:/b/ps2zsfvs/external/io_bazel_rules_go/BUILD.bazel:29:1: GoStdlib external/io_bazel_rules_go/stdlib_/pkg failed (Exit 1)
            # runtime/cgo
            exec: "C:\\Program": file does not exist
            filterbuildid: exit status 2
            stdlib: error running subcommand: exit status 2
            Target //:racy_cmd_race_mode failed to build
            Use --verbose_failures to see the command lines of failed build steps.
            INFO: Elapsed time: 12.582s, Critical Path: 11.99s
            INFO: 0 processes.
            FAILED: Build did NOT complete successfully
            ERROR: Build failed. Not running target
            FAILED: Build did NOT complete successfully

These tests don't fail when I run them locally. May be a configuration issue in CI or something that go_bazel_test is not accounting for.

@jayconrod jayconrod added code-health windows Affects Windows hosts or targets labels May 15, 2020
jayconrod pushed a commit to jayconrod/rules_go that referenced this issue May 17, 2020
go_bazel_tests that require cgo have been failing on Windows since the
test environment hasn't been passing additional flags needed to
configure the C toolchain on Windows.

This CL adds GO_BAZEL_TEST_BAZELFLAGS, an environment variable to be
set with --test_env, which provides a list of additional flags to
Bazel.

Fixes bazel-contrib#2507
jayconrod pushed a commit that referenced this issue May 27, 2020
…ts (#2509)

go_bazel_tests that require cgo have been failing on Windows since the
test environment hasn't been passing additional flags needed to
configure the C toolchain on Windows.

This CL adds GO_BAZEL_TEST_BAZELFLAGS, an environment variable to be
set with --test_env, which provides a list of additional flags to
Bazel.

Fixes #2507
jayconrod pushed a commit that referenced this issue May 27, 2020
…ts (#2509)

go_bazel_tests that require cgo have been failing on Windows since the
test environment hasn't been passing additional flags needed to
configure the C toolchain on Windows.

This CL adds GO_BAZEL_TEST_BAZELFLAGS, an environment variable to be
set with --test_env, which provides a list of additional flags to
Bazel.

Fixes #2507
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-health windows Affects Windows hosts or targets
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant