From 1bdd9bdcfb8576e6e392d9b33a9d1435cc8fd88d Mon Sep 17 00:00:00 2001 From: Paul Wankadia Date: Sun, 30 Jun 2024 14:51:33 +0000 Subject: [PATCH] Add RE2 release `2024-07-01`. (#2337) --- modules/re2/2024-07-01/MODULE.bazel | 29 +++++++++++++++++ modules/re2/2024-07-01/presubmit.yml | 48 ++++++++++++++++++++++++++++ modules/re2/2024-07-01/source.json | 7 ++++ modules/re2/metadata.json | 3 +- 4 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 modules/re2/2024-07-01/MODULE.bazel create mode 100644 modules/re2/2024-07-01/presubmit.yml create mode 100644 modules/re2/2024-07-01/source.json diff --git a/modules/re2/2024-07-01/MODULE.bazel b/modules/re2/2024-07-01/MODULE.bazel new file mode 100644 index 00000000000..da0642af18f --- /dev/null +++ b/modules/re2/2024-07-01/MODULE.bazel @@ -0,0 +1,29 @@ +# Copyright 2009 The RE2 Authors. All Rights Reserved. +# Use of this source code is governed by a BSD-style +# license that can be found in the LICENSE file. + +# Bazel (http://bazel.build/) MODULE file for RE2. + +module( + name = "re2", + version = "2024-07-01", + compatibility_level = 1, +) + +bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "apple_support", version = "1.15.1") +bazel_dep(name = "rules_cc", version = "0.0.9") +bazel_dep(name = "abseil-cpp", version = "20240116.2") +bazel_dep(name = "rules_python", version = "0.33.2") +bazel_dep(name = "pybind11_bazel", version = "2.12.0") + +# This is a temporary hack for `x64_x86_windows`. +# TODO(junyer): Remove whenever no longer needed. +cc_configure = use_extension("@bazel_tools//tools/cpp:cc_configure.bzl", "cc_configure_extension") +use_repo(cc_configure, "local_config_cc") + +# These dependencies will be ignored when the `re2` module is not +# the root module (or when `--ignore_dev_dependency` is enabled). +bazel_dep(name = "google_benchmark", version = "1.8.4", dev_dependency = True) +bazel_dep(name = "googletest", version = "1.14.0.bcr.1", dev_dependency = True) +bazel_dep(name = "abseil-py", version = "2.1.0", dev_dependency = True) diff --git a/modules/re2/2024-07-01/presubmit.yml b/modules/re2/2024-07-01/presubmit.yml new file mode 100644 index 00000000000..3a624a28cc1 --- /dev/null +++ b/modules/re2/2024-07-01/presubmit.yml @@ -0,0 +1,48 @@ +matrix: + platform: + - centos7_java11_devtoolset10 + - debian10 + - ubuntu2004 + - macos + - windows + bazel: + - 6.x + - 7.x +tasks: + build: + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=-std=c++14' + build_targets: + - '@re2//:re2' + - '@re2//python:re2' + +bcr_test_module: + module_path: '.' + + matrix: + platform: + - centos7_java11_devtoolset10 + - debian10 + - ubuntu2004 + - macos + - windows + bazel: + - 6.x + - 7.x + tasks: + test: + platform: ${{ platform }} + bazel: ${{ bazel }} + test_flags: + - '--cxxopt=-std=c++14' + test_targets: + - '//:all' + - '-//:dfa_test' + - '-//:exhaustive1_test' + - '-//:exhaustive2_test' + - '-//:exhaustive3_test' + - '-//:exhaustive_test' + - '-//:random_test' + - '//python:all' diff --git a/modules/re2/2024-07-01/source.json b/modules/re2/2024-07-01/source.json new file mode 100644 index 00000000000..38c863019cd --- /dev/null +++ b/modules/re2/2024-07-01/source.json @@ -0,0 +1,7 @@ +{ + "integrity": "sha256-7/vjTfccMT0/5LmiaE6NHMJbkMB8u2e+Om97v1Cqt1M=", + "strip_prefix": "re2-2024-07-01", + "url": "https://github.com/google/re2/releases/download/2024-07-01/re2-2024-07-01.zip", + "patch_strip": 0, + "patches": {} +} diff --git a/modules/re2/metadata.json b/modules/re2/metadata.json index a8a377d39c9..0cbc9b70c8b 100644 --- a/modules/re2/metadata.json +++ b/modules/re2/metadata.json @@ -20,7 +20,8 @@ "2024-03-01", "2024-04-01", "2024-05-01", - "2024-06-01" + "2024-06-01", + "2024-07-01" ], "yanked_versions": { "2023-06-02": "bad compatibility_level, upgrade to 2023-09-01 or newer",