Skip to content

Bazel issues when trying to run the test suite on Windows #16632

Open
@ramarivera

Description

@ramarivera

What is the expected behavior?

The tests should run without failing

What is the current behavior?

PS C:\DEV\components> yarn run test
yarn run v1.15.2
$ bazel test //src/... --test_tag_filters=-e2e,-browser:firefox-local --build_tag_filters=-browser:firefox-local --build_tests_only
DEBUG: C:/users/rrivera/_bazel_rrivera/ylcne4dw/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:256:5: rbe_default is using checked-in configs 'struct(config_repos = [], create_cc_configs = True, create_java_configs = True, env = {"ABI_LIBC_VERSION": "glibc_2.19", "ABI_VERSION": "clang", "BAZEL_COMPILER": "clang", "BAZEL_HOST_SYSTEM": "i686-unknown-linux-gnu", "BAZEL_TARGET_CPU": "k8", "BAZEL_TARGET_LIBC": "glibc_2.19", "BAZEL_TARGET_SYSTEM": "x86_64-unknown-linux-gnu", "CC": "clang", "CC_TOOLCHAIN_NAME": "linux_gnu_x86"}, java_home = "/usr/lib/jvm/java-8-openjdk-amd64", name = "9.0.0")'
INFO: Call stack for the definition of repository 'io_bazel_rules_docker' which is a git_repository (rule definition at C:/users/rrivera/_bazel_rrivera/ylcne4dw/external/bazel_tools/tools/build_defs/repo/git.bzl:252:18):
 - C:/users/rrivera/_bazel_rrivera/ylcne4dw/external/bazel_toolchains/repositories/repositories.bzl:37:9
 - C:/dev/components/WORKSPACE:94:1
ERROR: An error occurred during the fetch of repository 'io_bazel_rules_docker':
   Traceback (most recent call last):
        File "C:/users/rrivera/_bazel_rrivera/ylcne4dw/external/bazel_tools/tools/build_defs/repo/git.bzl", line 234
                _clone_or_update(ctx)
        File "C:/users/rrivera/_bazel_rrivera/ylcne4dw/external/bazel_tools/tools/build_defs/repo/git.bzl", line 74, in _clone_or_update
                fail(("error cloning %s:\n%s" % (ctx....)))
error cloning io_bazel_rules_docker:
java.io.IOException: ERROR: src/main/native/windows/process.cc(184): CreateProcessW("bash" -c "
cd C:/users/rrivera/_bazel_rrivera/ylcne4dw/external
set -ex
( cd C:/users/rrivera/_bazel_rrivera/ylcne4dw/external &&
    if ! ( cd 'C:/users/rrivera/_bazel_rrivera/ylcne4dw/external(...)): The system cannot find the file specified.
INFO: Call stack for the definition of repository 'org_chromium_chromedriver' which is a platform_http_file (rule definition at C:/users/rrivera/_bazel_rrivera/ylcne4dw/external/io_bazel_rules_webtesting/web/internal/platform_http_file.bzl:52:22):
 - C:/users/rrivera/_bazel_rrivera/ylcne4dw/external/npm_bazel_karma/browser_repositories.bzl:56:5
 - C:/dev/components/WORKSPACE:72:1
INFO: Call stack for the definition of repository 'org_chromium_chromium' which is a platform_http_file (rule definition at C:/users/rrivera/_bazel_rrivera/ylcne4dw/external/io_bazel_rules_webtesting/web/internal/platform_http_file.bzl:52:22):
 - C:/users/rrivera/_bazel_rrivera/ylcne4dw/external/npm_bazel_karma/browser_repositories.bzl:23:5
 - C:/dev/components/WORKSPACE:72:1
ERROR: While resolving toolchains for target @bazel_tools//tools/test/CoverageOutputGenerator/java/com/google/devtools/coverageoutputgenerator:Main: invalid registered toolchain '@io_bazel_rules_docker//toolchains/docker:default_linux_toolchain': no such package '@io_bazel_rules_docker//toolchains/docker': Traceback (most recent call last):
        File "C:/users/rrivera/_bazel_rrivera/ylcne4dw/external/bazel_tools/tools/build_defs/repo/git.bzl", line 234
                _clone_or_update(ctx)
        File "C:/users/rrivera/_bazel_rrivera/ylcne4dw/external/bazel_tools/tools/build_defs/repo/git.bzl", line 74, in _clone_or_update
                fail(("error cloning %s:\n%s" % (ctx....)))
error cloning io_bazel_rules_docker:
java.io.IOException: ERROR: src/main/native/windows/process.cc(184): CreateProcessW("bash" -c "
cd C:/users/rrivera/_bazel_rrivera/ylcne4dw/external
set -ex
( cd C:/users/rrivera/_bazel_rrivera/ylcne4dw/external &&
    if ! ( cd 'C:/users/rrivera/_bazel_rrivera/ylcne4dw/external(...)): The system cannot find the file specified.
ERROR: Analysis of target '//src/cdk-experimental/dialog:unit_tests_chromium-local' failed; build aborted: invalid registered toolchain '@io_bazel_rules_docker//toolchains/docker:default_linux_toolchain': no such package '@io_bazel_rules_docker//toolchains/docker': Traceback (most recent call last):
        File "C:/users/rrivera/_bazel_rrivera/ylcne4dw/external/bazel_tools/tools/build_defs/repo/git.bzl", line 234
                _clone_or_update(ctx)
        File "C:/users/rrivera/_bazel_rrivera/ylcne4dw/external/bazel_tools/tools/build_defs/repo/git.bzl", line 74, in _clone_or_update
                fail(("error cloning %s:\n%s" % (ctx....)))
error cloning io_bazel_rules_docker:
java.io.IOException: ERROR: src/main/native/windows/process.cc(184): CreateProcessW("bash" -c "
cd C:/users/rrivera/_bazel_rrivera/ylcne4dw/external
set -ex
( cd C:/users/rrivera/_bazel_rrivera/ylcne4dw/external &&
    if ! ( cd 'C:/users/rrivera/_bazel_rrivera/ylcne4dw/external(...)): The system cannot find the file specified.
INFO: Elapsed time: 1.146s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (2 packages loaded, 0 targets configured)
FAILED: Build did NOT complete successfully (2 packages loaded, 0 targets configured)
error Command failed with exit code 1.

What are the steps to reproduce?

I just ran yarn run test after following the steps for setting up dev environment.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

I am trying to run tests on Windows 10 1809.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/platform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions