Skip to content

rules_python is broken with Bazel@HEAD #1185

Closed
@sgowroji

Description

@sgowroji

https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/2984#0187c5a7-8c82-4bf4-8edc-bc61496edab0

Platform : macOS

Logs:

ERROR: /Users/buildkite/builds/bk-imacpro-8/bazel-downstream-projects/rules_python/tools/build_defs/python/tests/py_test/BUILD.bazel:18:19: in test_non_mac_doesnt_require_darwin_for_execution_test rule //tools/build_defs/python/tests/py_test:test_non_mac_doesnt_require_darwin_for_execution:
--
  | Traceback (most recent call last):
  | File "/private/var/tmp/_bazel_buildkite/423e4bd8d06d193ec99dc7a74423eafe/external/rules_testing/lib/analysis_test.bzl", line 200, column 13, in wrapped_impl
  | impl(env, target)
  | File "/Users/buildkite/builds/bk-imacpro-8/bazel-downstream-projects/rules_python/tools/build_defs/python/tests/py_test/py_test_tests.bzl", line 89, column 28, in _test_non_mac_doesnt_require_darwin_for_execution_impl
  | ).requirements().keys().not_contains("requires-darwin")
  | Error: 'struct' value has no field or method 'not_contains'
  | Available attributes: actual, contains, contains_at_least, contains_at_least_predicates, contains_exactly, contains_exactly_predicates, contains_none_of, contains_predicate, has_size, not_contains_predicate
  | (04:20:02) ERROR: /Users/buildkite/builds/bk-imacpro-8/bazel-downstream-projects/rules_python/tools/build_defs/python/tests/py_test/BUILD.bazel:18:19: Analysis of target '//tools/build_defs/python/tests/py_test:test_non_mac_doesnt_require_darwin_for_execution' failed

Reference : bazelbuild/bazel#18170
Unable to reproduce in local setup.

CC @meteorcloudy, @rickeylev

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