-
Notifications
You must be signed in to change notification settings - Fork 140
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
RBE platform uses outdated options #1820
Comments
Related: bazelbuild#1820. Also re-enable more tests un Ubuntu platform, after openssh-client package was installed in base ubuntu docker image.
Related: #1820. Also re-enable more tests un Ubuntu platform, after openssh-client package was installed in base ubuntu docker image.
Updating the flags won't fix the actual failure. You'll have to specify relevant toolchain flags in your repo, check how Bazel does it: https://github.com/bazelbuild/bazel/blob/78f6b9494762674895e8d17f884ecc0c22d7cbf1/.bazelrc#L17-L29 |
Thanks for the pointer.
^^^ Why it's saying this? Bazel@HEAD is newer then 7.0.0rc2 isn't it?
It's already done in Gerrit, nevertheless, the build on RBE platform on Buildkite was failing: https://gerrit.googlesource.com/gerrit/+/refs/heads/master/tools/remote-bazelrc#33 # Set several flags related to specifying the platform, toolchain and java
# properties.
build:remote_shared --crosstool_top=@rbe_jdk11//cc:toolchain
build:remote_shared --extra_toolchains=@rbe_jdk11//config:cc-toolchain
build:remote_shared --extra_execution_platforms=@rbe_jdk11//config:platform
build:remote_shared --host_platform=@rbe_jdk11//config:platform
build:remote_shared --platforms=@rbe_jdk11//config:platform
build:remote_shared --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 On Gerrit@CI we are calling something like this for RBE@GCP $ bazel test --config=remote --remote_instance_name=projects/$PROJECT/instances/default_instance javatests/... |
How is the |
It's loaded in WORKSPACE file. I maintain this repository to populate rbe_autoconfig: See the instruction there. Then I upload the tarball to Google Bucket, conduct GitHub release and consume it in the WORKSPACE like this: http_archive(
name = "ubuntu2204_jdk17",
sha256 = "8ea82b81c9707e535ff93ef5349d11e55b2a23c62bcc3b0faaec052144aed87d",
strip_prefix = "rbe_autoconfig-5.1.0",
urls = [
"https://gerrit-bazel.storage.googleapis.com/rbe_autoconfig/v5.1.0.tar.gz",
"https://github.com/davido/rbe_autoconfig/releases/download/v5.1.0/v5.1.0.tar.gz",
],
) See this CL, where I updated the RBE image to use Ubuntu2204, you've recently updated. |
OK, I found the problem of continuous-integration/buildkite/bazelci.py Lines 2050 to 2056 in 387688a
The ci script check if you have certain flags specified to decide whether to append rbe flags. You actually have RBE flags already defined in your .bazelrc file, but the ci script won't expand all the configs, to fix that, you have to put Just like Bazel: https://github.com/bazelbuild/bazel/blob/d8ed53897c1f0e13918a31a68b4013730a351670/.bazelci/postsubmit.yml#L353C72-L353C72 |
Closes bazelbuild#1820. To correctly activate RBE platfor--remote_executor option must be specified in gerrit.yml: --remote_executor=grpcs://remotebuildexecution.googleapis.com
@meteorcloudy Thanks for the analysis and for the pointer. I tried once again to re-add RBE platform to gerrit pipeline in this PR. PTAL. Thank you. |
Closes bazelbuild#1820. To correctly activate RBE platfor--remote_executor option must be specified in gerrit.yml: --remote_executor=grpcs://remotebuildexecution.googleapis.com
Closes #1820. To correctly activate RBE platfor--remote_executor option must be specified in gerrit.yml: --remote_executor=grpcs://remotebuildexecution.googleapis.com
Trying to activate Gerrit pipeline on RBE platform is failing with outdated options:
https://buildkite.com/bazel/gerrit/builds/12730#018c16a9-892d-4449-b76e-08709e838102
Note, that we are building on RBE@GCP downstream for years now and all looks good. So that this must be a
buildkite
related issue.As pointed out by @meteorcloudy in another comment, the logic is here:
continuous-integration/buildkite/bazelci.py
Lines 2027 to 2034 in 387688a
The text was updated successfully, but these errors were encountered: