Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 8211205

Browse files
authored
Merge branch 'main' into streaming-retry-showcase-tests
2 parents 9dc4725 + c561b26 commit 8211205

File tree

143 files changed

+7861
-2725
lines changed

Some content is hidden

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

143 files changed

+7861
-2725
lines changed

.bazelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# New boringssl requires C++14
2-
build --repo_env=BAZEL_CXXOPTS="-std=c++14"
1+
# New protobuf requires C++17
2+
build --repo_env=BAZEL_CXXOPTS="-std=c++17"

.dockerignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
.git
33
.gitignore
44

5-
# Docker scaffolding
6-
Dockerfile
7-
.dockerignore
8-
95
# Python scaffolding
106
*.py[cod]
117
*.egg

.github/workflows/tests.yaml

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
docs:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v5
2525
- name: Set up Python
2626
uses: actions/setup-python@v5
2727
# Use python 3.10 for docs to match the version for the sphinx plugin
@@ -33,6 +33,21 @@ jobs:
3333
run: python -m pip install nox
3434
- name: Build the documentation.
3535
run: nox -s docs
36+
docfx:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v5
40+
- name: Set up Python
41+
uses: actions/setup-python@v5
42+
# Use python 3.10 for docs to match the version for the sphinx plugin
43+
# https://github.com/googleapis/synthtool/pull/1891
44+
with:
45+
python-version: "3.10"
46+
cache: 'pip'
47+
- name: Install nox.
48+
run: python -m pip install nox
49+
- name: Build the documentation.
50+
run: nox -s docfx
3651
mypy:
3752
strategy:
3853
matrix:
@@ -41,7 +56,7 @@ jobs:
4156
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
4257
runs-on: ubuntu-latest
4358
steps:
44-
- uses: actions/checkout@v4
59+
- uses: actions/checkout@v5
4560
- name: Set up Python "${{ matrix.python }}"
4661
uses: actions/setup-python@v5
4762
with:
@@ -64,7 +79,7 @@ jobs:
6479
# Use ubuntu-22.04 until Python 3.7 is removed from the test matrix
6580
runs-on: ubuntu-22.04
6681
steps:
67-
- uses: actions/checkout@v4
82+
- uses: actions/checkout@v5
6883
- name: Set up Python "${{ matrix.python }}"
6984
uses: actions/setup-python@v5
7085
with:
@@ -106,7 +121,7 @@ jobs:
106121
max-parallel: 1
107122
runs-on: ubuntu-latest
108123
steps:
109-
- uses: actions/checkout@v4
124+
- uses: actions/checkout@v5
110125
- name: Setup temp directory
111126
run: |
112127
sudo mkdir -p /tmp/workspace/tests/cert/
@@ -156,7 +171,7 @@ jobs:
156171
# Use ubuntu-22.04 until Python 3.7 is removed from the test matrix
157172
runs-on: ubuntu-22.04
158173
steps:
159-
- uses: actions/checkout@v4
174+
- uses: actions/checkout@v5
160175
- name: Set up Python "${{ matrix.python }}"
161176
uses: actions/setup-python@v5
162177
with:
@@ -184,7 +199,7 @@ jobs:
184199
showcase-unit-add-iam-methods:
185200
runs-on: ubuntu-latest
186201
steps:
187-
- uses: actions/checkout@v4
202+
- uses: actions/checkout@v5
188203
- name: Set up Python "3.13"
189204
uses: actions/setup-python@v5
190205
with:
@@ -212,7 +227,7 @@ jobs:
212227
matrix:
213228
variant: ['', _alternative_templates]
214229
steps:
215-
- uses: actions/checkout@v4
230+
- uses: actions/checkout@v5
216231
- name: Set up Python "3.13"
217232
uses: actions/setup-python@v5
218233
with:
@@ -237,7 +252,7 @@ jobs:
237252
snippetgen:
238253
runs-on: ubuntu-latest
239254
steps:
240-
- uses: actions/checkout@v4
255+
- uses: actions/checkout@v5
241256
- name: Set up Python "3.13"
242257
uses: actions/setup-python@v5
243258
with:
@@ -260,7 +275,7 @@ jobs:
260275
# Use ubuntu-22.04 until Python 3.7 is removed from the test matrix
261276
runs-on: ubuntu-22.04
262277
steps:
263-
- uses: actions/checkout@v4
278+
- uses: actions/checkout@v5
264279
- name: Set up Python ${{ matrix.python }}
265280
uses: actions/setup-python@v5
266281
with:
@@ -285,7 +300,7 @@ jobs:
285300
# Use ubuntu-22.04 until Python 3.7 is removed from the test matrix
286301
runs-on: ubuntu-22.04
287302
steps:
288-
- uses: actions/checkout@v4
303+
- uses: actions/checkout@v5
289304
- name: Set up Python ${{ matrix.python }}
290305
uses: actions/setup-python@v5
291306
with:
@@ -304,7 +319,7 @@ jobs:
304319
runs-on: ubuntu-latest
305320
container: gcr.io/gapic-images/googleapis
306321
steps:
307-
- uses: actions/checkout@v4
322+
- uses: actions/checkout@v5
308323
- name: Cache Bazel files
309324
id: cache-bazel
310325
uses: actions/cache@v4
@@ -332,7 +347,7 @@ jobs:
332347
goldens-lint:
333348
runs-on: ubuntu-latest
334349
steps:
335-
- uses: actions/checkout@v4
350+
- uses: actions/checkout@v5
336351
- name: Set up Python 3.13
337352
uses: actions/setup-python@v5
338353
with:
@@ -351,7 +366,7 @@ jobs:
351366
goldens-unit:
352367
runs-on: ubuntu-latest
353368
steps:
354-
- uses: actions/checkout@v4
369+
- uses: actions/checkout@v5
355370
- name: Set up Python 3.13
356371
uses: actions/setup-python@v5
357372
with:
@@ -372,7 +387,7 @@ jobs:
372387
goldens-prerelease:
373388
runs-on: ubuntu-latest
374389
steps:
375-
- uses: actions/checkout@v4
390+
- uses: actions/checkout@v5
376391
- name: Set up Python 3.13
377392
uses: actions/setup-python@v5
378393
with:
@@ -393,7 +408,7 @@ jobs:
393408
lint:
394409
runs-on: ubuntu-latest
395410
steps:
396-
- uses: actions/checkout@v4
411+
- uses: actions/checkout@v5
397412
- name: Set up Python "3.13"
398413
uses: actions/setup-python@v5
399414
with:

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,47 @@
11
# Changelog
22

33

4+
## [1.26.1](https://github.com/googleapis/gapic-generator-python/compare/v1.26.0...v1.26.1) (2025-08-28)
5+
6+
7+
### Bug Fixes
8+
9+
* Temporarily disable `test_<service>_api_version_header_async` which is not marked as async ([9382ac3](https://github.com/googleapis/gapic-generator-python/commit/9382ac3546f335116665e10c4132369bc7637a67))
10+
11+
## [1.26.0](https://github.com/googleapis/gapic-generator-python/compare/v1.25.0...v1.26.0) (2025-05-28)
12+
13+
14+
### Features
15+
16+
* Add client debug logging support for server side streaming REST calls ([#2340](https://github.com/googleapis/gapic-generator-python/issues/2340)) ([8a705c5](https://github.com/googleapis/gapic-generator-python/commit/8a705c513fe63b025eca738feb64a1e414f9f4b6))
17+
18+
## [1.25.0](https://github.com/googleapis/gapic-generator-python/compare/v1.24.1...v1.25.0) (2025-05-06)
19+
20+
21+
### Features
22+
23+
* Add protobuf runtime version to `x-goog-api-client` header ([#2368](https://github.com/googleapis/gapic-generator-python/issues/2368)) ([9c05dbe](https://github.com/googleapis/gapic-generator-python/commit/9c05dbeb9285919f45924be09c445b707cb85b54))
24+
25+
## [1.24.1](https://github.com/googleapis/gapic-generator-python/compare/v1.24.0...v1.24.1) (2025-04-17)
26+
27+
28+
### Bug Fixes
29+
30+
* Update generated docs to match synthtool templates ([3f62f31](https://github.com/googleapis/gapic-generator-python/commit/3f62f31d5146147c4bc6393fbeef18ce1d9a1a42))
31+
32+
## [1.24.0](https://github.com/googleapis/gapic-generator-python/compare/v1.23.6...v1.24.0) (2025-04-11)
33+
34+
35+
### Features
36+
37+
* Adds augmented pagination to account for BQ family of APIs ([#2372](https://github.com/googleapis/gapic-generator-python/issues/2372)) ([30cd1a4](https://github.com/googleapis/gapic-generator-python/commit/30cd1a49353048fc190114cfb7a73e14ec2eff31))
38+
39+
40+
### Bug Fixes
41+
42+
* Fixed internal method generation naming issues ([#2365](https://github.com/googleapis/gapic-generator-python/issues/2365)) ([868f201](https://github.com/googleapis/gapic-generator-python/commit/868f201957b271c9390bf41374897a2ce728a5e2))
43+
* Missing DEFAULT_HOST should still result in compiling code ([#2051](https://github.com/googleapis/gapic-generator-python/issues/2051)) ([dc6d4f7](https://github.com/googleapis/gapic-generator-python/commit/dc6d4f7ec0853557bb7c25a8276fbe262c5bda5d))
44+
445
## [1.23.6](https://github.com/googleapis/gapic-generator-python/compare/v1.23.5...v1.23.6) (2025-03-17)
546

647

Dockerfile

Lines changed: 0 additions & 20 deletions
This file was deleted.

WORKSPACE

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ gapic_generator_python()
6060

6161
gapic_generator_register_toolchains()
6262

63-
_grpc_version = "1.67.1"
63+
_grpc_version = "1.71.0"
6464

65-
_grpc_sha256 = "f83aedc91b84d4c396d30b0b2a30f7113c651fe5bc180c8ac08a5f0ff7dcffd2"
65+
_grpc_sha256 = "9313c3f8f4dd3341597f152d506a50caf571fe40f886e24ea9078891990df285"
6666

6767
http_archive(
6868
name = "com_github_grpc_grpc",
@@ -71,29 +71,38 @@ http_archive(
7171
urls = ["https://github.com/grpc/grpc/archive/v%s.zip" % _grpc_version],
7272
)
7373
# instantiated in grpc_deps().
74+
75+
_protobuf_version = "30.2"
76+
77+
_protobuf_sha256 = "07a43d88fe5a38e434c7f94129cad56a4c43a51f99336074d0799c2f7d4e44c5"
78+
7479
http_archive(
7580
name = "com_google_protobuf",
76-
sha256 = "008a11cc56f9b96679b4c285fd05f46d317d685be3ab524b2a310be0fbad987e",
77-
strip_prefix = "protobuf-29.3",
78-
urls = ["https://github.com/protocolbuffers/protobuf/archive/v29.3.tar.gz"],
81+
sha256 = _protobuf_sha256,
82+
strip_prefix = "protobuf-%s" % _protobuf_version,
83+
urls = ["https://github.com/protocolbuffers/protobuf/archive/v%s.tar.gz" % _protobuf_version],
7984
)
8085
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
8186

8287
grpc_deps()
8388

84-
# Pin the version of rules_cc to the version that is present in
85-
# https://github.com/protocolbuffers/protobuf/blob/29.x/protobuf_deps.bzl#L92-L98
8689
http_archive(
8790
name = "rules_cc",
88-
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.16/rules_cc-0.0.16.tar.gz"],
89-
sha256 = "bbf1ae2f83305b7053b11e4467d317a7ba3517a12cef608543c1b1c5bf48a4df",
90-
strip_prefix = "rules_cc-0.0.16",
91+
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.1.1/rules_cc-0.1.1.tar.gz"],
92+
sha256 = "712d77868b3152dd618c4d64faaddefcc5965f90f5de6e6dd1d5ddcd0be82d42",
93+
strip_prefix = "rules_cc-0.1.1",
9194
)
9295

9396
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps", "PROTOBUF_MAVEN_ARTIFACTS")
9497
# This is actually already done within grpc_deps but calling this for Bazel convention.
9598
protobuf_deps()
9699

100+
# Add rules_java to resolve the following error
101+
# `The repository '@compatibility_proxy' could not be resolved: Repository '@compatibility_proxy' is not defined`
102+
load("@rules_java//java:rules_java_deps.bzl", "rules_java_dependencies")
103+
104+
rules_java_dependencies()
105+
97106
# gRPC enforces a specific version of Go toolchain which conflicts with our build.
98107
# All the relevant parts of grpc_extra_deps() are imported in this WORKSPACE file
99108
# explicitly, that is why we do not call grpc_extra_deps() here and call

docker-entrypoint.sh

Lines changed: 0 additions & 50 deletions
This file was deleted.

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
# If your documentation needs a minimal Sphinx version, state it here.
4242
#
43-
# needs_sphinx = '1.0'
43+
needs_sphinx = "4.5.0"
4444

4545
# Add any Sphinx extension module names here, as strings. They can be
4646
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom

docs/getting-started/_verifying.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Verifying the Library
22
---------------------
33

4-
Once you have compiled a client library, whether using a Docker image,
5-
local installation or bazel, it is time for the fun part: actually running it!
4+
Once you have compiled a client library, whether using a local installation
5+
or bazel, it is time for the fun part: actually running it!
66

77
Create a virtual environment for the library:
88

0 commit comments

Comments
 (0)