Skip to content

target '//python/cc:current_py_cc_headers' failed in Bazel CI #1324

@sgowroji

Description

@sgowroji
          Also seeing below errors for  https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3155#01893d8e-ea2e-4a6a-9b42-623bdab05f5f CI .

Logs :

ERROR: /var/lib/buildkite-agent/builds/bk-docker-28rd/bazel-downstream-projects/rules_python/python/cc/BUILD.bazel:14:22: in current_py_cc_headers rule //python/cc:current_py_cc_headers: non-test target '//python/cc:current_py_cc_headers' depends on testonly target '//tests/cc:fake_py_cc_toolchain_impl' and doesn't have testonly attribute set
(02:22:54) ERROR: /var/lib/buildkite-agent/builds/bk-docker-28rd/bazel-downstream-projects/rules_python/python/cc/BUILD.bazel:14:22: Analysis of target '//python/cc:current_py_cc_headers' failed

Steps :

git clone -v https://github.com/bazelbuild/rules_python.git
git reset b8f16458c1d785a24921e569cc6174e8e3f6b45e --hard
export USE_BAZEL_VERSION=7845acae9769a72dc507dc2f57c4e032ebf429d3
bazel build ... @rules_python//examples/wheel/...

Culprit : bazelbuild/bazel@18aeb52

Originally posted by @sgowroji in #1299 (comment)

Metadata

Metadata

Assignees

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