rules_swift icon indicating copy to clipboard operation
rules_swift copied to clipboard

[Bazel CI] Build fails with "no such target '@@rules_java//toolchains:bootstrap_runtime_toolchain_type' in rules_java"

Open sgowroji opened this issue 1 year ago • 0 comments

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4128#0191f902-7309-46ac-b90b-cdf9351eb199

Platform: Ubuntu

Logs:

ERROR: [0m/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/361c28ee73570ea54c6890228c2c1f11/external/rules_java/toolchains/BUILD: no such target '@@rules_java//toolchains:bootstrap_runtime_toolchain_type': target 'bootstrap_runtime_toolchain_type' not declared in package 'toolchains' defined by /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/361c28ee73570ea54c6890228c2c1f11/external/rules_java/toolchains/BUILD
ERROR: [0m/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/361c28ee73570ea54c6890228c2c1f11/external/remote_jdk8_linux_aarch64_toolchain_config_repo/BUILD.bazel:27:10: no such target '@@rules_java//toolchains:bootstrap_runtime_toolchain_type': target 'bootstrap_runtime_toolchain_type' not declared in package 'toolchains' defined by /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/361c28ee73570ea54c6890228c2c1f11/external/rules_java/toolchains/BUILD and referenced by '@@remote_jdk8_linux_aarch64_toolchain_config_repo//:bootstrap_runtime_toolchain'
ERROR: [0m/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/361c28ee73570ea54c6890228c2c1f11/external/io_bazel_stardoc/src/main/java/com/google/devtools/build/skydoc/renderer/BUILD:17:12: Analysis failed
ERROR: [0mAnalysis of target '//doc:test_api' failed; build aborted: Analysis failed
ERROR: [0mBuild did NOT complete successfully
FAILED:[0m 
FAILED:[0m 
ERROR: [0mNo test targets were found, yet testing was requested
FAILED:[0m 
Error: The command exited with status 1[0m
error: The plugin docker command hook exited with status 1

Culprit:

Steps:

git clone https://github.com/bazelbuild/rules_swift
git reset 86dc0f046269b3001f6f20cec38342c03120a209  --hard
export USE_BAZEL_VERSION=7b8d07253adf84d5e3d46ac915a1440e518fab3c
bazel test  doc/... 

CC Greenteam @comius

sgowroji avatar Sep 16 '24 15:09 sgowroji