From cb1bd881919af685667b8f77a1d4484b04b13a56 Mon Sep 17 00:00:00 2001 From: Derek Mauro Date: Thu, 8 Jan 2026 11:36:22 -0800 Subject: [PATCH] Bump Abseil version used by GoogleTest Making this change requires an update to the CI scripts to ignore warnings coming from external repositories so we don't error on deprecation warnings (RE2 has warnings about deprecated Mutex methods) PiperOrigin-RevId: 853824282 Change-Id: Ic79663943d3b7c8cfa95e9a73b49a7ad761e1eae --- MODULE.bazel | 2 +- ci/linux-presubmit.sh | 3 +++ ci/macos-presubmit.sh | 1 + ci/windows-presubmit.bat | 2 ++ googletest_deps.bzl | 6 +++--- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index 5b32557f..c07e6a93 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -41,7 +41,7 @@ module( bazel_dep( name = "abseil-cpp", - version = "20250814.0", + version = "20260107.0", ) bazel_dep( name = "platforms", diff --git a/ci/linux-presubmit.sh b/ci/linux-presubmit.sh index c4ad5791..9842f4c2 100644 --- a/ci/linux-presubmit.sh +++ b/ci/linux-presubmit.sh @@ -113,6 +113,7 @@ time docker run \ --enable_bzlmod=false \ --features=external_include_paths \ --keep_going \ + --per_file_copt=\"external/.*@-w\" \ --show_timestamps \ --test_output=errors \ ${BAZEL_EXTRA_ARGS:-}" @@ -138,6 +139,7 @@ for std in ${STD}; do --enable_bzlmod=true \ --features=external_include_paths \ --keep_going \ + --per_file_copt=\"external/.*@-w\" \ --show_timestamps \ --test_output=errors \ ${BAZEL_EXTRA_ARGS:-}" @@ -167,6 +169,7 @@ for std in ${STD}; do --features=external_include_paths \ --keep_going \ --linkopt=\"--gcc-toolchain=/usr/local\" \ + --per_file_copt=\"external/.*@-w\" \ --show_timestamps \ --test_output=errors \ ${BAZEL_EXTRA_ARGS:-}" diff --git a/ci/macos-presubmit.sh b/ci/macos-presubmit.sh index 12c8d2bd..4278ec27 100644 --- a/ci/macos-presubmit.sh +++ b/ci/macos-presubmit.sh @@ -81,6 +81,7 @@ for absl in 0 1; do --enable_bzlmod=true \ --features=external_include_paths \ --keep_going \ + --per_file_copt="external/.*@-w" \ --show_timestamps \ --test_output=errors \ ${BAZEL_EXTRA_ARGS:-} diff --git a/ci/windows-presubmit.bat b/ci/windows-presubmit.bat index 267e2e97..de3de5a8 100644 --- a/ci/windows-presubmit.bat +++ b/ci/windows-presubmit.bat @@ -65,6 +65,7 @@ IF EXIST "%KOKORO_GFILE_DIR%\distdir\googletest_vendor.tar.gz" ( --copt=/WX ^ --enable_bzlmod=true ^ --keep_going ^ + --per_file_copt=external/.*@/w ^ --test_output=errors ^ --test_tag_filters=-no_test_msvc2017 ^ %VENDOR_FLAG% @@ -79,6 +80,7 @@ IF %errorlevel% neq 0 EXIT /B 1 --copt=/WX ^ --enable_bzlmod=true ^ --keep_going ^ + --per_file_copt=external/.*@/w ^ --test_output=errors ^ --test_tag_filters=-no_test_msvc2017 ^ %VENDOR_FLAG% diff --git a/googletest_deps.bzl b/googletest_deps.bzl index 9b5c041e..13770005 100644 --- a/googletest_deps.bzl +++ b/googletest_deps.bzl @@ -17,9 +17,9 @@ def googletest_deps(): if not native.existing_rule("abseil-cpp"): http_archive( name = "abseil-cpp", - sha256 = "9b2b72d4e8367c0b843fa2bcfa2b08debbe3cee34f7aaa27de55a6cbb3e843db", - strip_prefix = "abseil-cpp-20250814.0", - urls = ["https://github.com/abseil/abseil-cpp/releases/download/20250814.0/abseil-cpp-20250814.0.tar.gz"], + sha256 = "4c124408da902be896a2f368042729655709db5e3004ec99f57e3e14439bc1b2", + strip_prefix = "abseil-cpp-20260107.0", + urls = ["https://github.com/abseil/abseil-cpp/releases/download/20260107.0/abseil-cpp-20260107.0.tar.gz"], ) if not native.existing_rule("bazel_features"):