Skip to content

bazel: Update to v9#30341

Merged
StephanDollberg merged 3 commits intodevfrom
stephan/update-bazel-version
Apr 30, 2026
Merged

bazel: Update to v9#30341
StephanDollberg merged 3 commits intodevfrom
stephan/update-bazel-version

Conversation

@StephanDollberg
Copy link
Copy Markdown
Member

  • Update to v9
  • Set --experimental_remote_repo_contents_cache

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v26.1.x
  • v25.3.x
  • v25.2.x

Release Notes

  • none

Copilot AI review requested due to automatic review settings April 29, 2026 17:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the repository’s Bazel toolchain/configuration to Bazel v9 and aligns module dependencies and build settings to accommodate Bazel 9 behavior changes.

Changes:

  • Bump Bazel to 9.0.0 and add Bazel 9 compatibility flags in .bazelrc.
  • Update several Bzlmod dependencies and apply a zlib override/patch to expose unprefixed public headers.
  • Adjust the Iceberg REST catalog jar genrule to set a JDK/JAVA_HOME before invoking Gradle.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/java/iceberg-rest-catalog/BUILD Sets JAVA_HOME/PATH for the Gradle genrule that builds the test jar.
bazel/thirdparty/zlib-public-unprefixed-headers.patch Patches zlib’s BUILD to include unprefixed headers in hdrs.
MODULE.bazel Bumps module versions and adds a single_version_override to apply the zlib patch.
.bazelversion Updates Bazel version to 9.0.0.
.bazelrc Enables remote repo contents caching and adds Bazel 9-related build compatibility options.

Comment thread tests/java/iceberg-rest-catalog/BUILD Outdated
Comment thread tests/java/iceberg-rest-catalog/BUILD Outdated
Comment thread .bazelrc
Comment thread bazel/thirdparty/zlib-public-unprefixed-headers.patch Outdated
Comment thread .bazelversion Outdated
@StephanDollberg StephanDollberg force-pushed the stephan/update-bazel-version branch 4 times, most recently from 11a3fb1 to 5144cda Compare April 30, 2026 12:18
@vbotbuildovich
Copy link
Copy Markdown
Collaborator

CI test results

test results on build#83881
test_status test_class test_method test_arguments test_kind job_url passed reason test_history
FAIL RpkDebugBundleTest test_remote_debug_bundle_default null integration https://buildkite.com/redpanda/redpanda/builds/83881#019dde5c-578f-4cab-b66d-f5a399805d3e 0/1 https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=RpkDebugBundleTest&test_method=test_remote_debug_bundle_default

Hopefully this will allow us to cache github repositories and avoid
github flakiness.
@StephanDollberg StephanDollberg force-pushed the stephan/update-bazel-version branch from 5144cda to aa11945 Compare April 30, 2026 15:14
@redpanda-data redpanda-data deleted a comment from vbotbuildovich Apr 30, 2026
@StephanDollberg StephanDollberg merged commit cc999b6 into dev Apr 30, 2026
19 checks passed
@StephanDollberg StephanDollberg deleted the stephan/update-bazel-version branch April 30, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants