Skip to content

bazel: Compat for bazel 9 - #48608

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:bazel-9-compat
Oct 23, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:bazel-9-compat

Conversation

@phlax

@phlax phlax commented Oct 22, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Cross-workspace rule loading and platform configuration changes need Bazel 9 build validation across CI, mobile, and downstream consumers before approval.

No open issues 🎉

What changed in this PR

Updates Envoy’s build configuration for Bazel 9 compatibility across the main, API, mobile, and CodeQL workspaces, with supporting C++ and test adjustments.

Changes:

  • Adds explicit rule and provider loads required by newer Bazel versions.
  • Updates host-platform references and workspace configuration, and removes an obsolete build flag.
  • Suppresses a vendored macro’s cast warning, uses a certificate hash constant in a TLS test, and adds module-update logging.
File Description
tools/​spelling/​spelling_dictionary.txt Adds “vendored” for the new source comment.
test/​common/​tls/​context_impl_test.cc Replaces a literal certificate hash with the test-data constant.
source/​common/​http/​http1/​legacy_parser_impl.cc Locally suppresses the vendored macro’s old-style-cast warning.
mobile/​bazel/​extensions.bzl Adds explicit Objective-C and C++ rule loads.
ci/​bazel_fun.sh Logs the module being updated.
ci.bazelrc Overrides the remote-execution host platform for bazel info.
bazel/​tests/​codeql/​.bazelrc Replaces parent configuration imports with local CI output settings.
bazel/​repo.bzl Loads sh_binary explicitly in generated build content.
bazel/​rbe/​toolchains/​configs/​linux/​gcc/​config/​BUILD Uses @platforms//host as the platform parent.
bazel/​rbe/​toolchains/​configs/​linux/​gcc/​cc/​cc_toolchain_config.bzl Explicitly loads CcToolchainConfigInfo.
bazel/​rbe/​toolchains/​configs/​linux/​gcc/​cc/​armeabi_cc_toolchain_config.bzl Explicitly loads the provider for the ARM stub toolchain.
bazel/​external/​BUILD Explicitly loads cc_static_library.
bazel/​extensions.bzl Prepends a C++ rule load to generated LLVM build content.
api/​.bazelrc Replaces parent configuration imports with local CI output settings.
.bazelrc Removes the shell-environment compatibility flag.

Review effort: Balanced

Signed-off-by: Ryan Northey <[email protected]>
Comment thread api/.bazelrc
@@ -1,9 +1,15 @@

try-import %workspace%/../ci.bazelrc

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, this means these builds do not use the remote flags?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in this case - its kinda a non build - there is no ci that uses it

in the codeql case we specifically dont want remote ci

Comment thread ci.bazelrc
common:remote-exec --jobs=200
common:remote-exec --define=engflow_rbe=true
common:remote-exec --host_platform=@clang_platform
info:remote-exec --host_platform=@platforms//host

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious what this does

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worksaround the info bug where it cant handle the clang_platform (apparent names in host platform)

we could possibly also prevent the info call in do_ci for the bazel stuff - but i think this is still correct

@phlax
phlax merged commit 550b210 into envoyproxy:main Oct 23, 2026
32 checks passed
phlax added a commit to phlax/envoy that referenced this pull request Nov 9, 2026
Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 550b210)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 550b210)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 550b210)
Signed-off-by: Ryan Northey <[email protected]>
jwendell pushed a commit that referenced this pull request Nov 11, 2026
Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 550b210)
Signed-off-by: Ryan Northey <[email protected]>
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

Successfully merging this pull request may close these issues.

3 participants