Skip to content

Upgrade Bazel to 9.1.0#166

Merged
KushalP merged 1 commit into
apple:mainfrom
ma-oli:ma-oli/upgrade-bazel-9.1.0
May 26, 2026
Merged

Upgrade Bazel to 9.1.0#166
KushalP merged 1 commit into
apple:mainfrom
ma-oli:ma-oli/upgrade-bazel-9.1.0

Conversation

@ma-oli

@ma-oli ma-oli commented May 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Bump dev-time Bazel to 9.1.0 (root + all integration test workspaces) and add 9.x to the BCR presubmit matrix.
  • Bump direct module deps needed for Bazel 9: bazel_skylib 1.8.2, platforms 1.0.0, rules_java 9.1.0, rules_shell 0.6.1, rules_python 1.7.0, gazelle 0.51.0.
  • Enable --experimental_rule_extension_api in each example workspace .bazelrc so the Bazel 7.6.1 integration test matrix keeps passing (required by rules_java 9.x's java_single_jar.bzl under Bazel 7; default-on in Bazel 8+).
  • Migrate tests/integration_tests/example_workspaces/pkl_package python tests off the removed @bazel_tools//tools/python/runfiles to @rules_python//python/runfiles.

Test plan

  • bazel test //... — all 53 tests pass locally (integration tests run against both Bazel 7.6.1 and 9.1.0).

Bumps the dev-time Bazel version (root and all integration test
workspaces) to 9.1.0, and adds 9.x to the BCR presubmit matrix. The
bazel_binaries integration test matrix now exercises 7.6.1, 8.7.0, and
9.1.0.

Updates direct module deps required for Bazel 9 (bazel_skylib 1.8.2,
platforms 1.0.0, rules_java 9.1.0, rules_shell 0.6.1, rules_python
1.7.0, gazelle 0.51.0).

To keep the Bazel 7 integration test matrix passing, the example
workspaces enable --experimental_rule_extension_api (required by
rules_java 9.x's java_single_jar.bzl under Bazel 7; default-on in
Bazel 8+). The pkl_package tests are migrated off the removed
@bazel_tools//tools/python/runfiles to @rules_python//python/runfiles.
@ma-oli ma-oli force-pushed the ma-oli/upgrade-bazel-9.1.0 branch from de50e01 to 1752cb0 Compare May 26, 2026 09:53
@KushalP KushalP merged commit 745b15e into apple:main May 26, 2026
7 checks passed
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.

2 participants