Skip to content

Commit b1414a4

Browse files
committed
Merge remote-tracking branch 'googleapis/main' into spanner-read-lock-mode
2 parents d918e1a + 2f8d7f4 commit b1414a4

File tree

1,400 files changed

+135301
-6735
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,400 files changed

+135301
-6735
lines changed

.bazelrc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,13 @@ build --experimental_convenience_symlinks=ignore
3535
# We mirror critical tarballs from several sources in case the canonical source
3636
# is temporarily unavailable, e.g., github.com being down. This option and flag
3737
# automatically rewrites the URLs.
38-
build --experimental_downloader_config=bazel/downloader.cfg
38+
# TODO(#15549) - re-enable once the downloader config is fixed.
39+
# build --experimental_downloader_config=bazel/downloader.cfg
3940

4041
# It is frustrating when long-running builds/tests fail, but it is even more
4142
# frustrating when they fail and don't give any output. So, remove the limit.
4243
build --experimental_ui_max_stdouterr_bytes=-1
4344

44-
# TODO(#13311) - remove once gRPC works with Bazel v7 or when gRPC stops using
45-
# `apple_rules`.
46-
common:macos --repo_env=BAZEL_NO_APPLE_CPP_TOOLCHAIN=1
47-
4845
# Inject ${GTEST_SHUFFLE} and ${GTEST_RANDOM_SEED} into the test environment
4946
# if they are set in the enclosing environment. This allows for running tests
5047
# in a random order to help expose undesirable interdependencies.

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222

2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
25+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
2626
- name: Checkout vcpkg
27-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
27+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
2828
with:
2929
path: "build/vcpkg"
3030
repository: "microsoft/vcpkg"

.github/workflows/external-account-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
id-token: write
2727

2828
steps:
29-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
29+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
3030
with:
3131
ref: ${{ inputs.checkout-ref }}
3232
- id: auth

.github/workflows/macos-bazel.yml

Lines changed: 1 addition & 153 deletions
Original file line numberDiff line numberDiff line change
@@ -31,165 +31,13 @@ jobs:
3131
matrix:
3232
os: [ macos-14 ]
3333
shard:
34-
- Core
35-
- Bigtable
36-
- Pub/Sub
37-
- Spanner
3834
- Storage
39-
- Compute
40-
- AIPlatform
41-
- Shard1
42-
- Shard2
43-
- Other
4435
include:
45-
- shard: Core
46-
targets:
47-
- //google/cloud:all
48-
# - //generator/... # Does not build on macOS
49-
# - //docfx/... # Does not build on macOS
50-
- +//examples/...
51-
- shard: Bigtable
52-
targets:
53-
- //google/cloud/bigtable/...
54-
- shard: Pub/Sub
55-
targets:
56-
- //google/cloud/pubsub/...
57-
- +//google/cloud/pubsublite/...
58-
- shard: Spanner
59-
targets:
60-
- //google/cloud/spanner/...
6136
- shard: Storage
6237
targets:
6338
- //google/cloud/storage/...
64-
# Include the top-level examples because they require the libs anyway.
65-
- shard: Compute
66-
targets:
67-
- //google/cloud/compute/...
68-
- shard: AIPlatform
69-
targets:
70-
- //google/cloud/aiplatform/...
71-
- shard: Shard1
72-
targets:
73-
# Run this:
74-
#
75-
# git grep -l 'class.*Client' 'google/cloud/**_client.h' |
76-
# egrep -v "(bigtable/|internal/|pubsub/|spanner/|storage/)" |
77-
# cut -f -3 -d/| sort | uniq -c | sort -n |
78-
# awk '{ s += $1; print s, $0}'
79-
#
80-
# and pick the approximate midpoint
81-
#
82-
# Also, it is a good idea to keep `sql` and `bigquerycontrol`
83-
# together, as they both require our internal REST libraries.
84-
- //google/cloud/bigquerycontrol/...
85-
- +//google/cloud/appengine/...
86-
- +//google/cloud/dataproc/...
87-
- +//google/cloud/monitoring/...
88-
- +//google/cloud/retail/...
89-
- +//google/cloud/discoveryengine/...
90-
- +//google/cloud/sql/...
91-
- +//google/cloud/dialogflow_cx/...
92-
- +//google/cloud/dialogflow_es/...
93-
- shard: Shard2
94-
targets:
95-
- //google/cloud/networkconnectivity/...
96-
- +//google/cloud/networkservices/...
97-
- +//google/cloud/policytroubleshooter/...
98-
- +//google/cloud/profiler/...
99-
- +//google/cloud/redis/...
100-
- +//google/cloud/securitycenter/...
101-
- +//google/cloud/servicedirectory/...
102-
- +//google/cloud/tpu/...
103-
- +//google/cloud/trace/...
104-
- +//google/cloud/vision/...
105-
- +//google/cloud/workflows/...
106-
- +//google/cloud/beyondcorp/...
107-
- +//google/cloud/billing/...
108-
- +//google/cloud/binaryauthorization/...
109-
- +//google/cloud/gkemulticloud/...
110-
- +//google/cloud/logging/...
111-
- +//google/cloud/notebooks/...
112-
- +//google/cloud/osconfig/...
113-
- +//google/cloud/servicecontrol/...
114-
- +//google/cloud/speech/...
115-
- +//google/cloud/support/...
116-
- +//google/cloud/video/...
117-
- +//google/cloud/datacatalog/...
118-
- +//google/cloud/iam/...
119-
- +//google/cloud/run/...
120-
- +//google/cloud/talent/...
121-
- +//google/cloud/contentwarehouse/...
122-
- +//google/cloud/dataplex/...
123-
- +//google/cloud/kms/...
124-
- +//google/cloud/bigquery/...
125-
- +//google/cloud/resourcemanager/...
126-
- shard: Other
127-
targets:
128-
- //...
129-
# Skip top-level targets (e.g. //:bigtable).
130-
- -//:all
131-
# From Core
132-
- -//generator/...
133-
- -//docfx/...
134-
- -//google/cloud:all
135-
- -//examples/...
136-
# From Bigtable
137-
- -//google/cloud/bigtable/...
138-
# From Pub/Sub
139-
- -//google/cloud/pubsub/...
140-
- -//google/cloud/pubsublite/...
141-
# From Spanner
142-
- -//google/cloud/spanner/...
143-
# From Storage
144-
- -//google/cloud/storage/...
145-
# From Compute
146-
- -//google/cloud/compute/...
147-
# From AIPlatform
148-
- -//google/cloud/aiplatform/...
149-
# From Shard1
150-
- -//google/cloud/appengine/...
151-
- -//google/cloud/dataproc/...
152-
- -//google/cloud/monitoring/...
153-
- -//google/cloud/retail/...
154-
- -//google/cloud/discoveryengine/...
155-
- -//google/cloud/sql/...
156-
- -//google/cloud/dialogflow_cx/...
157-
- -//google/cloud/dialogflow_es/...
158-
# From Shard2
159-
- -//google/cloud/networkconnectivity/...
160-
- -//google/cloud/networkservices/...
161-
- -//google/cloud/policytroubleshooter/...
162-
- -//google/cloud/profiler/...
163-
- -//google/cloud/redis/...
164-
- -//google/cloud/securitycenter/...
165-
- -//google/cloud/servicedirectory/...
166-
- -//google/cloud/tpu/...
167-
- -//google/cloud/trace/...
168-
- -//google/cloud/vision/...
169-
- -//google/cloud/workflows/...
170-
- -//google/cloud/beyondcorp/...
171-
- -//google/cloud/billing/...
172-
- -//google/cloud/binaryauthorization/...
173-
- -//google/cloud/gkemulticloud/...
174-
- -//google/cloud/logging/...
175-
- -//google/cloud/notebooks/...
176-
- -//google/cloud/osconfig/...
177-
- -//google/cloud/servicecontrol/...
178-
- -//google/cloud/speech/...
179-
- -//google/cloud/support/...
180-
- -//google/cloud/video/...
181-
- -//google/cloud/datacatalog/...
182-
- -//google/cloud/iam/...
183-
- -//google/cloud/run/...
184-
- -//google/cloud/talent/...
185-
- -//google/cloud/contentwarehouse/...
186-
- -//google/cloud/dataplex/...
187-
- -//google/cloud/kms/...
188-
- -//google/cloud/bigquery/...
189-
- -//google/cloud/bigquerycontrol/...
190-
- -//google/cloud/resourcemanager/...
19139
steps:
192-
- uses: actions/checkout@v4
40+
- uses: actions/checkout@v5
19341
with:
19442
ref: ${{ inputs.checkout-ref }}
19543
- uses: google-github-actions/auth@v2

.github/workflows/macos-cmake.yml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
matrix:
4040
exclude-from-full-trick: [ true ]
4141
os: [ macos-14 ]
42-
shard: [ Core1, Core2, Compute, AIPlatform, Shard1, Shard2, Shard3, Shard4, Shard5, Other ]
42+
shard: [ Core2 ]
4343
exclude:
4444
# Only full builds include shards with generated code.
4545
- exclude-from-full-trick: ${{ ! inputs.full-matrix }}
@@ -59,7 +59,7 @@ jobs:
5959
- exclude-from-full-trick: ${{ ! inputs.full-matrix }}
6060
shard: Other
6161
steps:
62-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
62+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
6363
with:
6464
ref: ${{ inputs.checkout-ref }}
6565
- uses: google-github-actions/auth@v2
@@ -89,6 +89,10 @@ jobs:
8989
storage
9090
storage_grpc
9191
)
92+
core3_features=(
93+
pubsub
94+
pubsublite
95+
)
9296
# These are the libraries with the most "clients". To build the list
9397
# run something like this and find the midpoint:
9498
#
@@ -214,6 +218,9 @@ jobs:
214218
elif [[ "${{ matrix.shard }}" == "Core2" ]]; then
215219
features="$(printf ",%s" "${core2_features[@]}")"
216220
echo "features=${features:1}" >> "${GITHUB_OUTPUT}"
221+
elif [[ "${{ matrix.shard }}" == "Core3" ]]; then
222+
features="$(printf ",%s" "${core3_features[@]}")"
223+
echo "features=${features:1}" >> "${GITHUB_OUTPUT}"
217224
elif [[ "${{matrix.shard}}" == "Compute" ]]; then
218225
echo "features=compute" >> "${GITHUB_OUTPUT}"
219226
elif [[ "${{matrix.shard}}" == "AIPlatform" ]]; then
@@ -236,6 +243,7 @@ jobs:
236243
else
237244
skipped_features=("${core1_features[@]}")
238245
skipped_features+=("${core2_features[@]}")
246+
skipped_features+=("${core3_features[@]}")
239247
skipped_features+=(compute)
240248
skipped_features+=(aiplatform)
241249
skipped_features+=("${shard1_features[@]}")
@@ -255,9 +263,26 @@ jobs:
255263
run: |
256264
# Remove the older CMake version
257265
brew unlink cmake
266+
267+
# Create a temporary local tap
268+
cd "${{runner.temp}}"
269+
mkdir -p user/homebrew-tap/Formula
270+
cd user/homebrew-tap
271+
git init
272+
258273
# Download the Homebrew formula for CMake==3.27.2
259274
curl -fsSL -o cmake.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/fd21fcf239bcd0231c9fed5719403ec128151af4/Formula/cmake.rb
260-
brew install cmake.rb
275+
mv cmake.rb ./Formula/
276+
277+
git add .
278+
git commit -m "Add CMake formula"
279+
280+
# Tap the local repository
281+
brew tap user/homebrew-tap "${{runner.temp}}/user/homebrew-tap"
282+
283+
# Uninstall existing CMake and install CMake from the local tap
284+
brew uninstall cmake
285+
brew install --build-from-source user/homebrew-tap/cmake
261286
- name: Download and Install sccache
262287
if: ${{ inputs.sccache-mode != 'DISABLED' }}
263288
working-directory: "${{runner.temp}}"

.github/workflows/test-runner-untrusted.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
# `ref` of the pull request, so downstream jobs know what to checkout.
2929
environment: 'external'
3030
name: Require Approval for External PRs
31-
if: ${{ github.event.pull_request.author_association != 'MEMBER' && github.event.pull_request.author_association != 'COLLABORATOR' }}
31+
if: ${{ github.event.pull_request.author_association != 'OWNER' && github.event.pull_request.author_association != 'MEMBER' && github.event.pull_request.author_association != 'COLLABORATOR' }}
3232
runs-on: ubuntu-latest
3333
outputs:
3434
checkout-sha: ${{ steps.save-pull-request.outputs.sha }}

.github/workflows/test-runner.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ jobs:
5454
needs: [debug]
5555
if: >-
5656
${{
57-
((github.event.pull_request.author_association == 'MEMBER' ||
57+
((github.event.pull_request.author_association == 'OWNER' ||
58+
github.event.pull_request.author_association == 'MEMBER' ||
5859
github.event.pull_request.author_association == 'COLLABORATOR') &&
5960
github.event_name == 'pull_request_target') ||
6061
github.event_name == 'push' ||
@@ -112,6 +113,8 @@ jobs:
112113
execute-integration-tests: true
113114
secrets: inherit
114115
macos-cmake:
116+
# Disabled
117+
if: false
115118
name: macOS-CMake
116119
needs: [pre-flight]
117120
uses: ./.github/workflows/macos-cmake.yml
@@ -154,7 +157,7 @@ jobs:
154157
# Wait until all the other jobs have completed.
155158
needs:
156159
- macos-bazel
157-
- macos-cmake
160+
# macos-cmake is disabled
158161
- windows-bazel
159162
- windows-cmake
160163
# Run even if the other jobs failed or were skipped.

.github/workflows/windows-bazel.yml

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -29,48 +29,18 @@ jobs:
2929
# Continue other builds even if one fails
3030
fail-fast: false
3131
matrix:
32+
exclude-from-full-trick: [ true ]
3233
msvc: [ msvc-2022 ]
3334
# - dbg creates very large debugging files and GHA has limited storage.
3435
# - fastbuild also takes too much storage.
3536
compilation_mode: [ opt ]
36-
shard: [ Core, Compute, AIPlatform, Other ]
37+
shard: [ Core ]
3738
include:
3839
- shard: Core
3940
targets:
40-
- //google/cloud:all
41-
# - //generator/... # Does not build on Windows
42-
# - //docfx/... # Does not build on Windows
43-
- //google/cloud/bigtable/...
44-
- //google/cloud/pubsub/...
45-
- //google/cloud/pubsublite/...
46-
- //google/cloud/spanner/...
4741
- //google/cloud/storage/...
48-
- shard: Compute
49-
targets:
50-
- //google/cloud/compute/...
51-
- shard: AIPlatform
52-
targets:
53-
- //google/cloud/aiplatform/...
54-
- shard: Other
55-
targets:
56-
- //...
57-
# Skip top-level targets (e.g. //:bigtable).
58-
- -//:all
59-
# From Core
60-
- -//google/cloud:all
61-
- -//generator/...
62-
- -//docfx/...
63-
- -//google/cloud/bigtable/...
64-
- -//google/cloud/pubsub/...
65-
- -//google/cloud/pubsublite/...
66-
- -//google/cloud/spanner/...
67-
- -//google/cloud/storage/...
68-
# From Compute
69-
- -//google/cloud/compute/...
70-
# From AIPlatform
71-
- -//google/cloud/aiplatform/...
7242
steps:
73-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@v5
7444
with:
7545
ref: ${{ inputs.checkout-ref }}
7646
- uses: google-github-actions/auth@v2

.github/workflows/windows-cmake.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ jobs:
3939
matrix:
4040
exclude-from-full-trick: [ true ]
4141
msvc: [ msvc-2022 ]
42-
build_type: [ Debug, Release ]
43-
arch: [ x64, x86 ]
44-
shard: [Core1, Core2, Core3, Core4, Core5, Compute, AIPlatform, Shard1, Shard2, Shard3, Shard4, Other]
42+
build_type: [ Release ]
43+
arch: [ x64 ]
44+
shard: [ Core3, Core4 ]
4545
exclude:
4646
# Also skip shards (Compute and Other) that contain only generated code.
4747
- exclude-from-full-trick: ${{ ! inputs.full-matrix }}
@@ -65,7 +65,7 @@ jobs:
6565
- shard: Core4
6666
build_type: Debug
6767
steps:
68-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
68+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
6969
with:
7070
ref: ${{ inputs.checkout-ref }}
7171
- uses: google-github-actions/auth@v2

0 commit comments

Comments
 (0)