From c218d033707e464dc1740a11b8c8fe227fec38e7 Mon Sep 17 00:00:00 2001 From: Richard Levasseur Date: Sat, 24 Jan 2026 19:52:11 -0800 Subject: [PATCH] chore: remove testing of Bazel 7 --- .bazelci/presubmit.yml | 18 +++++++++--------- MODULE.bazel | 2 -- .../compile_pip_requirements/.bazelrc | 1 - .../.bazelrc | 1 - tests/integration/local_toolchains/.bazelrc | 1 - tests/integration/pip_parse/.bazelrc | 2 -- .../py_cc_toolchain_registered/.bazelrc | 1 - 7 files changed, 9 insertions(+), 17 deletions(-) diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index 6a5102d4f6..eaa5df9076 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -18,12 +18,12 @@ buildifier: # Use a specific version to avoid skew issues when new versions are released. version: 8.2.1 warnings: "all" -# NOTE: Minimum supported version is 7.x +# NOTE: Minimum supported version is 8.x .minimum_supported_version: &minimum_supported_version # For testing minimum supported version. # NOTE: Keep in sync with //:version.bzl - bazel: 7.x - skip_in_bazel_downstream_pipeline: "Bazel 7 required" + bazel: 8.x + skip_in_bazel_downstream_pipeline: "Bazel 8 required" .reusable_config: &reusable_config build_targets: - "--" @@ -56,7 +56,7 @@ buildifier: - "--noenable_bzlmod" - "--enable_workspace" - "--build_tag_filters=-integration-test" - bazel: 7.x + bazel: 8.x # NOTE: The Mac and Windows bazelinbazel jobs override parts of this config. .common_bazelinbazel_config: &common_bazelinbazel_config build_flags: @@ -117,7 +117,7 @@ matrix: - debian11 - macos_arm64 - windows - bazel: [7.*, 8.*, 9.*] + bazel: [8.*, 9.*] tasks: # Keep in sync with .bcr/presubmit.yml @@ -183,7 +183,7 @@ tasks: <<: *reusable_config name: "Default: Ubuntu, bzlmod, minimum Bazel" platform: ubuntu2204 - bazel: 7.x + bazel: 8.x ubuntu: <<: *reusable_config name: "Default: Ubuntu" @@ -282,7 +282,7 @@ tasks: platform: rbe_ubuntu2204 # TODO @aignas 2024-12-11: get the RBE working in CI for bazel 8.0 # See https://github.com/bazelbuild/rules_python/issues/2499 - bazel: 7.x + bazel: 8.x test_flags: - "--test_tag_filters=-integration-test,-acceptance-test" - "--extra_toolchains=@buildkite_config//config:cc-toolchain" @@ -371,7 +371,7 @@ tasks: name: "examples/pip_parse: Ubuntu, bzlmod, minimum supported Bazel version" working_directory: examples/pip_parse platform: ubuntu2204 - bazel: 7.x + bazel: 8.x integration_test_pip_parse_ubuntu: <<: *reusable_build_test_all name: "examples/pip_parse: Ubuntu" @@ -587,7 +587,7 @@ tasks: name: "compile_pip_requirements_test_from_external_repo: Ubuntu, bzlmod, minimum Bazel" working_directory: tests/integration/compile_pip_requirements_test_from_external_repo platform: ubuntu2204 - bazel: 7.x + bazel: 8.x shell_commands: # Assert that @compile_pip_requirements//:requirements_test does the right thing. - "bazel test @compile_pip_requirements//..." diff --git a/MODULE.bazel b/MODULE.bazel index 6486634370..b8a8a7d8cc 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -356,7 +356,6 @@ bazel_binaries.local( name = "self", path = "tests/integration/bazel_from_env", ) -bazel_binaries.download(version = "7.4.1") bazel_binaries.download(version = "8.0.0") bazel_binaries.download(version = "9.0.0rc1") use_repo( @@ -365,7 +364,6 @@ use_repo( # These don't appear necessary, but are reported as direct dependencies # that should be use_repo()'d, so we add them as requested "bazel_binaries_bazelisk", - "build_bazel_bazel_7_4_1", "build_bazel_bazel_8_0_0", "build_bazel_bazel_9_0_0rc1", # "build_bazel_bazel_rolling", diff --git a/tests/integration/compile_pip_requirements/.bazelrc b/tests/integration/compile_pip_requirements/.bazelrc index b85f03bcb6..8a42e6405b 100644 --- a/tests/integration/compile_pip_requirements/.bazelrc +++ b/tests/integration/compile_pip_requirements/.bazelrc @@ -2,4 +2,3 @@ test --test_output=errors # Windows requires these for multi-python support: build --enable_runfiles -common:bazel7.x --incompatible_python_disallow_native_rules diff --git a/tests/integration/compile_pip_requirements_test_from_external_repo/.bazelrc b/tests/integration/compile_pip_requirements_test_from_external_repo/.bazelrc index ab10c8caf7..b98fc09774 100644 --- a/tests/integration/compile_pip_requirements_test_from_external_repo/.bazelrc +++ b/tests/integration/compile_pip_requirements_test_from_external_repo/.bazelrc @@ -1,2 +1 @@ test --test_output=errors -common:bazel7.x --incompatible_python_disallow_native_rules diff --git a/tests/integration/local_toolchains/.bazelrc b/tests/integration/local_toolchains/.bazelrc index aed08b0790..4cedadd752 100644 --- a/tests/integration/local_toolchains/.bazelrc +++ b/tests/integration/local_toolchains/.bazelrc @@ -3,6 +3,5 @@ common --lockfile_mode=off test --test_output=errors # Windows requires these for multi-python support: build --enable_runfiles -common:bazel7.x --incompatible_python_disallow_native_rules build --//:py=local common --announce_rc diff --git a/tests/integration/pip_parse/.bazelrc b/tests/integration/pip_parse/.bazelrc index a74909297d..bd29865b95 100644 --- a/tests/integration/pip_parse/.bazelrc +++ b/tests/integration/pip_parse/.bazelrc @@ -4,5 +4,3 @@ build --enable_runfiles # https://docs.bazel.build/versions/main/best-practices.html#using-the-bazelrc-file try-import %workspace%/user.bazelrc - -common:bazel7.x --incompatible_python_disallow_native_rules diff --git a/tests/integration/py_cc_toolchain_registered/.bazelrc b/tests/integration/py_cc_toolchain_registered/.bazelrc index fb31561892..741d758a4f 100644 --- a/tests/integration/py_cc_toolchain_registered/.bazelrc +++ b/tests/integration/py_cc_toolchain_registered/.bazelrc @@ -1,3 +1,2 @@ # This aids debugging on failure build --toolchain_resolution_debug=python -common:bazel7.x --incompatible_python_disallow_native_rules