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 'sh_test' #1300

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

[Bazel ci] Error no native function or rules 'sh_test' #1300

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-21c8-4482-9e04-0cb8ca65f999

Platform: Ubuntu

Logs:

 ERROR: Traceback (most recent call last):
	File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/43d2b301d343d6dc0d0d90f20a4a58dc/external/protobuf+/src/google/protobuf/compiler/BUILD.bazel", line 234, column 13, in <toplevel>
		aarch64_test(
	File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/43d2b301d343d6dc0d0d90f20a4a58dc/external/protobuf+/build_defs/arch_tests.bzl", line 44, column 20, in aarch64_test
		_arch_test_impl(
	File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/43d2b301d343d6dc0d0d90f20a4a58dc/external/protobuf+/build_defs/arch_tests.bzl", line 23, column 19, in _arch_test_impl
		inline_sh_test(
	File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/43d2b301d343d6dc0d0d90f20a4a58dc/external/protobuf+/build_defs/internal_shell.bzl", line 89, column 11, in inline_sh_test
		native.sh_test(
Error: no native function or rule 'sh_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:11:16) 

Culprit:

Steps:

git clone https://github.com/bazelbuild/buildtools
git reset be1c24cc9a44b4fd2410ec5356e4e21926dd206a  --hard
export USE_BAZEL_VERSION=00fdb673ba8276e83f1c821a7f93aab7038377e2
bazel test //... 

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