Skip to content

[Bazel CI] Test Failed for current_py_cc_headers:test_current_toolchain_headers : expected include paths missing from includes: #3239

@satyanandak

Description

@satyanandak

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4915#019912ea-279e-4aae-a72d-dc0ab35783fa

Platform: MacOs, Ubuntu, Windows

Logs:

FAILED: //tests/cc/current_py_cc_headers:test_current_toolchain_headers (Summary)
//tests/cc/current_py_cc_headers:test_current_toolchain_headers          FAILED in 3 out of 3 in 0.7s
FAILED: //tests/cc/py_cc_toolchain:test_py_cc_toolchain (Summary)
      C:/b/yi3ketzp/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/tests/cc/py_cc_toolchain/test_py_cc_toolchain/test.log
      C:/b/yi3ketzp/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/tests/cc/py_cc_toolchain/test_py_cc_toolchain/test_attempts/attempt_1.log
      C:/b/yi3ketzp/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/tests/cc/py_cc_toolchain/test_py_cc_toolchain/test_attempts/attempt_2.log
(04:14:27) INFO: From Testing //tests/cc/py_cc_toolchain:test_py_cc_toolchain:
==================== Test output for //tests/cc/py_cc_toolchain:test_py_cc_toolchain:
In test test_py_cc_toolchain_impl: in test: @@//tests/cc/py_cc_toolchain:test_py_cc_toolchain
value of: py_cc_toolchain_info.headers().providers_map().get(CcInfo).compilation_context().includes()
1 expected include paths missing from includes:
The syntax of the command is incorrect.
Executing tests from //tests/cc/py_cc_toolchain:test_py_cc_toolchain
-----------------------------------------------------------------------------
In test test_py_cc_toolchain_impl: in test: @@//tests/cc/py_cc_toolchain:test_py_cc_toolchain
value of: py_cc_toolchain_info.headers().providers_map().get(CcInfo).compilation_context().includes()
1 expected include paths missing from includes:
  0: <matches '*/fake_include'>
actual includes:
  <empty>

Executing tests from //tests/cc/current_py_cc_headers:test_current_toolchain_headers
-----------------------------------------------------------------------------
In test test_current_toolchain_headers_impl: in test: @@//tests/cc/current_py_cc_headers:test_current_toolchain_headers
value of: target(@@//python/cc:current_py_cc_headers).provider(<Unknown provider>).compilation_context().includes()
1 expected include paths missing from includes:
  0: <matches '*/fake_include'>
actual includes:
  <empty>
where... (most recent context last)
  target: @@//python/cc:current_py_cc_headers

Culprit:

Steps:

git clone https://github.com/bazel-contrib/rules_python
git reset 2523c1e76d38586e9fe99498758381a03c29f8bc --hard
export USE_BAZEL_VERSION=78919af2a2df302548e48fd261590fcb81c19dad
bazel  build --show_progress_rate_limit=5  --announce_rc --experimental_repository_cache_hardlinks /repos/v1  --test_env=JAVA_TOOL_OPTIONS --test_env=SSL_CERT_FILE --lockfile_mode=off -- ...

CC Greenteam @Wyverald

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions