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

[Bazel CI] Error no native function or rules 'py_test' #1396

Open
sgowroji opened this issue Oct 14, 2024 · 0 comments
Open

[Bazel CI] Error no native function or rules 'py_test' #1396

sgowroji opened this issue Oct 14, 2024 · 0 comments

Comments

@sgowroji
Copy link
Member

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4198#01928934-47ee-4c84-9851-b07d174a3bbb

Platform: Ubuntu

Logs:

ERROR: Traceback (most recent call last):
	File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/8b36565493a31e266346114e39534731/external/protobuf+/src/google/protobuf/BUILD.bazel", line 185, column 15, in <toplevel>
		staleness_test(
	File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/8b36565493a31e266346114e39534731/external/protobuf+/upb/cmake/build_defs.bzl", line 49, column 11, in staleness_test
		native.py_test(
Error: no native function or rule 'py_test'
Available attributes: action_listener, alias, available_xcodes, cc_binary, cc_import, cc_libc_top_alias, cc_library, cc_proto_library, cc_shared_library, cc_static_library, cc_test, cc_toolchain, cc_toolchain_alias, cc_toolchain_suite, config_feature_flag, config_setting, constraint_setting, constraint_value, environment, existing_rule, existing_rules, exports_files, extra_action, fdo_prefetch_hints, fdo_profile, filegroup, genquery, genrule, glob, java_binary, java_import, java_library, java_lite_proto_library, java_package_configuration, java_plugin, java_plugins_flag_alias, java_proto_library, java_runtime, java_test, java_toolchain, label_flag, label_setting, legacy_globals, memprof_profile, module_name, module_version, objc_import, objc_library, package, package_group, package_name, package_relative_label, platform, propeller_optimize, proto_lang_toolchain, proto_library, repo_name, repository_name, starlark_doc_extract, subpackages, test_suite, toolchain, toolchain_type, xcode_config, xcode_config_alias, xcode_version
(04:20:23) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/8b36565493a31e266346114e39534731/external/protobuf+/BUILD.bazel:31:6: Target '@@protobuf+//src/google/protobuf:any_proto' contains an error and its package is in error and referenced by '@@protobuf+//:any_proto'
(04:20:23) ERROR: Analysis of target '//examples/xplatform/proto_library_group/request:request_proto' failed; build aborted: Analysis failed
(04:20:23) INFO: Elapsed time: 2.762s, Critical Path: 0.03s
(04:20:23) INFO: 1 process: 1 internal.
(04:20:23) ERROR: Build did NOT complete successfully
(04:20:23) FAILED:

Culprit:

Steps:

git clone https://github.com/bazelbuild/rules_swift
git reset 3b39bc7b36cf40fa0b451fa1af735ba2e691ee84  --hard
export USE_BAZEL_VERSION=00fdb673ba8276e83f1c821a7f93aab7038377e2
bazel build //examples/... //examples/apple/... 

CC Greenteam @meteorcloudy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant