Repository navigation
bazel: Compat for bazel 9 - #48608
Conversation
There was a problem hiding this comment.
🔵 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]>
| @@ -1,9 +1,15 @@ | |||
|
|
|||
| try-import %workspace%/../ci.bazelrc | |||
There was a problem hiding this comment.
so, this means these builds do not use the remote flags?
There was a problem hiding this comment.
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
| 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 |
There was a problem hiding this comment.
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
Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit 550b210) Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit 550b210) Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit 550b210) Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit 550b210) Signed-off-by: Ryan Northey <[email protected]>
No description provided.