bazelbuild / rules_kotlin

Bazel rules for Kotlin
Apache License 2.0
334 stars 211 forks source link

[Bazel CI] Toolchain resolution filter parsing failure with Bash plugin #1224

Open sgowroji opened 1 month ago

sgowroji commented 1 month ago

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
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

restingbull commented 1 month ago

... Was there a change in bazelci?

restingbull commented 1 month ago

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.