rules_kotlin
rules_kotlin copied to clipboard
[Bazel CI] Toolchain resolution filter parsing failure with Bash plugin
CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4170#019255c7-9a45-43d2-aa96-2f1970156c5e
Platform: Ubuntu
Logs:
ERROR: While parsing option --toolchain_resolution_debug --remote_download_toplevel: Failed to build filter: value looks like another flag (--remote_download_toplevel). Either escape the value with "\-\-", or pass an explicit value to the flag.
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_kotlin
git reset 40fecf58b5e6b6002c137fca7ea91c7cb4b5889b --hard
export USE_BAZEL_VERSION=166eaa09f9cd31836df898ea236e1e0633a73b12
bazel test //src/test/kotlin/io/bazel/kotlin/builder:builder_tests //src/test/kotlin/io/bazel/kotlin:KotlinJvmAssociatesBasicVisibilityTest //src/test/kotlin/io/bazel/kotlin:KotlinJvmBasicAssertionTest
CC Greenteam @mai93
... Was there a change in bazelci?
Looks like the flag is added to RBE requests 4 years ago: https://github.com/bazelbuild/continuous-integration/blame/513fa233da2fea25d393063f86fff9413fd1ba86/buildkite/bazelci.py#L2031
I guess bazel got strict.
We are currently closing this issue due to this PR https://github.com/bazelbuild/continuous-integration/pull/2101 and now they are tested in bcr-bazel-compatibility-test CI.