From 95ad191aa3c83d744f3c702f04ed4376701e9719 Mon Sep 17 00:00:00 2001 From: Alex Cook Date: Wed, 21 Jan 2026 10:07:07 -0500 Subject: [PATCH 1/4] fix: try updating bazel example to work with 9.0 --- docs/examples/BazelExample/BUILD | 2 ++ docs/examples/BazelExample/MODULE.bazel | 1 + 2 files changed, 3 insertions(+) diff --git a/docs/examples/BazelExample/BUILD b/docs/examples/BazelExample/BUILD index adb5bfc4f273..fef40b03884c 100644 --- a/docs/examples/BazelExample/BUILD +++ b/docs/examples/BazelExample/BUILD @@ -1,3 +1,5 @@ +load("@rules_java//java:defs.bzl", "java_binary", "java_plugin") + java_binary( name = "example", srcs = ["BazelExample.java"], diff --git a/docs/examples/BazelExample/MODULE.bazel b/docs/examples/BazelExample/MODULE.bazel index ed9feeac17ca..2c94bd1e2ac6 100644 --- a/docs/examples/BazelExample/MODULE.bazel +++ b/docs/examples/BazelExample/MODULE.bazel @@ -1,3 +1,4 @@ +bazel_dep(name = "rules_java", version = "8.6.1") bazel_dep(name = "rules_jvm_external", version = "6.6") maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") maven.install( From d8a2e53ba1211872f9e45b69e9e8e101fc19aa0a Mon Sep 17 00:00:00 2001 From: Alex Cook Date: Wed, 21 Jan 2026 11:41:22 -0500 Subject: [PATCH 2/4] ci: add USE_BAZEL_VERSION env var for pinning bazel versions --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6db7790bca91..397cbe8bee15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,7 @@ jobs: java_version: [21] env: JAVA_VERSION: ${{ matrix.java_version }} + USE_BAZEL_VERSION: "8.5.1" steps: - uses: actions/checkout@v6 - name: Set up JDK ${{ matrix.java_version }} @@ -177,6 +178,7 @@ jobs: env: JAVA_VERSION: ${{ matrix.java.version }} + USE_BAZEL_VERSION: "8.5.1" continue-on-error: ${{ matrix.java.experimental }} steps: - name: Check out sources From a2c3cba566a644707a7e5d0c9f7c53288f9baae5 Mon Sep 17 00:00:00 2001 From: Alex Cook Date: Wed, 21 Jan 2026 11:42:56 -0500 Subject: [PATCH 3/4] ci: add regex manager to renovate to check for bazel version updates --- .github/renovate.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/renovate.json b/.github/renovate.json index 69151a9046b8..1a96950f0995 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -18,5 +18,14 @@ "matchPackageNames": ["org.apache.spark:spark-sql_2.12"], "enabled": false } + ], + "regexManagers": [ + { + "description": "Update USE_BAZEL_VERSION in GitHub Actions", + "fileMatch": ["^\\.github/workflows/.*\\.yml$"], + "matchStrings": ["USE_BAZEL_VERSION: \"(?.*?)\""], + "datasourceTemplate": "github-releases", + "depNameTemplate": "bazelbuild/bazel" + } ] } From b606104d336565571c6793a0487f8ee6e5884b18 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 21 Jan 2026 16:49:51 +0000 Subject: [PATCH 4/4] chore(deps): update dependency bazelbuild/bazel to v9 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 397cbe8bee15..80f6bc5acbaf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: java_version: [21] env: JAVA_VERSION: ${{ matrix.java_version }} - USE_BAZEL_VERSION: "8.5.1" + USE_BAZEL_VERSION: "9.0.0" steps: - uses: actions/checkout@v6 - name: Set up JDK ${{ matrix.java_version }} @@ -178,7 +178,7 @@ jobs: env: JAVA_VERSION: ${{ matrix.java.version }} - USE_BAZEL_VERSION: "8.5.1" + USE_BAZEL_VERSION: "9.0.0" continue-on-error: ${{ matrix.java.experimental }} steps: - name: Check out sources