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

Commit 9f99ad4

Browse files
committed
Merge branch 'main' into chore/remove-beta-httpjson
2 parents df57dac + f92e19e commit 9f99ad4

1,827 files changed

Lines changed: 11743 additions & 7534 deletions

File tree

Some content is hidden

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

.cloudbuild/cloudbuild-test-a.yaml

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

1515
timeout: 7200s # 2 hours
1616
substitutions:
17-
_SHARED_DEPENDENCIES_VERSION: '3.23.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current}
17+
_SHARED_DEPENDENCIES_VERSION: '3.25.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current}
1818
_JAVA_SHARED_CONFIG_VERSION: '1.7.1'
1919

2020
steps:

.cloudbuild/cloudbuild-test-b.yaml

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

1515
timeout: 7200s # 2 hours
1616
substitutions:
17-
_SHARED_DEPENDENCIES_VERSION: '3.23.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current}
17+
_SHARED_DEPENDENCIES_VERSION: '3.25.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current}
1818
_JAVA_SHARED_CONFIG_VERSION: '1.7.1'
1919

2020
steps:

.cloudbuild/cloudbuild.yaml

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

1515
timeout: 7200s # 2 hours
1616
substitutions:
17-
_SHARED_DEPENDENCIES_VERSION: '3.23.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current}
17+
_SHARED_DEPENDENCIES_VERSION: '3.25.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current}
1818
_JAVA_SHARED_CONFIG_VERSION: '1.7.1'
1919
steps:
2020
# GraalVM A build

.github/snippet-bot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ ignoreFiles:
44
- src/test/**
55
- test/**
66
- showcase/**
7+
- library_generation/owlbot/templates/java_library/samples/install-without-bom/pom.xml

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ jobs:
295295
run: |
296296
mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip
297297
- name: Validate gapic-generator-java-bom
298-
uses: googleapis/java-cloud-bom/tests/validate-bom@8bc17e9ae3c6354f04df2fdf2d57aeafa63add66
298+
uses: googleapis/java-cloud-bom/tests/validate-bom@ac9893c4ba759cda192b11c2e8bac0d5a6bd60a5
299299
with:
300300
bom-path: gapic-generator-java-bom/pom.xml
301301

.github/workflows/verify_library_generation.yaml

Lines changed: 37 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
java: [ 11 ]
16-
os: [ ubuntu-22.04, macos-12 ]
17-
post_processing: [ 'true', 'false' ]
18-
runs-on: ${{ matrix.os }}
16+
runs-on: ubuntu-22.04
1917
steps:
2018
- uses: actions/checkout@v3
2119
- uses: actions/setup-java@v3
@@ -44,36 +42,15 @@ jobs:
4442
set -ex
4543
pushd library_generation
4644
pip install -r requirements.in
45+
pip install .
4746
popd
48-
49-
- name: install utils (macos)
50-
if: matrix.os == 'macos-12'
51-
shell: bash
52-
run: |
53-
brew update --preinstall
54-
# we need the `realpath` command to be available
55-
brew install coreutils
56-
- name: install docker (ubuntu)
57-
if: matrix.os == 'ubuntu-22.04'
58-
shell: bash
59-
run: |
60-
set -x
61-
# install docker
62-
sudo apt install containerd -y
63-
sudo apt install -y docker.io docker-compose
64-
65-
# launch docker
66-
sudo systemctl start docker
6747
- name: Run integration tests
68-
# we don't run ITs with postprocessing on macos because one of its dependencies "synthtool" is designed to run on linux only
69-
if: matrix.os == 'ubuntu-22.04' || matrix.post_processing == 'false'
7048
shell: bash
7149
run: |
50+
set -x
7251
git config --global user.email "github-workflow@github.com"
7352
git config --global user.name "Github Workflow"
74-
library_generation/test/generate_library_integration_test.sh \
75-
--googleapis_gen_url https://cloud-java-bot:${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}@github.com/googleapis/googleapis-gen.git \
76-
--enable_postprocessing "${{ matrix.post_processing }}"
53+
python -m unittest library_generation/test/integration_tests.py
7754
unit_tests:
7855
strategy:
7956
matrix:
@@ -98,6 +75,21 @@ jobs:
9875
pushd library_generation
9976
pip install -r requirements.in
10077
popd
78+
- name: install synthtool
79+
shell: bash
80+
run: |
81+
set -ex
82+
mkdir -p /tmp/synthtool
83+
pushd /tmp/synthtool
84+
if [ ! -d "synthtool" ]; then
85+
git clone https://github.com/googleapis/synthtool.git
86+
fi
87+
pushd "synthtool"
88+
89+
git reset --hard origin/no-java-templates
90+
91+
python3 -m pip install -e .
92+
python3 -m pip install -r requirements.in
10193
- name: Run shell unit tests
10294
run: |
10395
set -x
@@ -106,7 +98,7 @@ jobs:
10698
run: |
10799
set -x
108100
python -m unittest library_generation/test/unit_tests.py
109-
lint:
101+
lint-shell:
110102
runs-on: ubuntu-22.04
111103
steps:
112104
- uses: actions/checkout@v3
@@ -116,3 +108,20 @@ jobs:
116108
scandir: 'library_generation'
117109
format: tty
118110
severity: error
111+
lint-python:
112+
runs-on: ubuntu-22.04
113+
steps:
114+
- uses: actions/checkout@v3
115+
- name: install python dependencies
116+
shell: bash
117+
run: |
118+
set -ex
119+
pushd library_generation
120+
pip install -r requirements.in
121+
popd
122+
- name: Lint
123+
shell: bash
124+
run: |
125+
# exclude generated golden files
126+
# exclude owlbot until further refaction
127+
black --check library_generation --exclude "(library_generation/test/resources/goldens)"

.gitignore

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ target/
1919

2020
# Python
2121
**/__pycache__/
22+
.venv
2223

2324
# library generation
24-
output/
25-
library_generation/output/
26-
showcase/scripts/output/
25+
**/output/
26+
**/googleapis
27+
library_generation/test/**/golden*/
28+
library_generation/test/resources/test_repo_level_postprocess/
29+
**/*egg-info/
30+
**/build/

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "2.33.0"
2+
".": "2.35.0"
33
}

CHANGELOG.md

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

3+
## [2.35.0](https://github.com/googleapis/sdk-platform-java/compare/v2.34.0...v2.35.0) (2024-02-13)
4+
5+
6+
### Features
7+
8+
* add `generate_repo.py` ([#2431](https://github.com/googleapis/sdk-platform-java/issues/2431)) ([47b632a](https://github.com/googleapis/sdk-platform-java/commit/47b632aa011874abe04212168ccc74dae50f5fbe))
9+
* move synthtool templates to `library_generation/owlbot` ([#2443](https://github.com/googleapis/sdk-platform-java/issues/2443)) ([5c95472](https://github.com/googleapis/sdk-platform-java/commit/5c95472ffd9085a6eac3d227f96c0b25097c60ec))
10+
11+
12+
### Bug Fixes
13+
14+
* Apiary Host returns user set host if set ([#2455](https://github.com/googleapis/sdk-platform-java/issues/2455)) ([5f17e62](https://github.com/googleapis/sdk-platform-java/commit/5f17e62a7b0f10035205ec4197b8f77388b059f8))
15+
* Cancel the Timeout Task for HttpJson ([#2360](https://github.com/googleapis/sdk-platform-java/issues/2360)) ([b177d9e](https://github.com/googleapis/sdk-platform-java/commit/b177d9e40fd7107bbed67506da0acb021c8f346d))
16+
17+
18+
### Dependencies
19+
20+
* update dependency commons-codec:commons-codec to v1.16.1 ([#2473](https://github.com/googleapis/sdk-platform-java/issues/2473)) ([8c6e91d](https://github.com/googleapis/sdk-platform-java/commit/8c6e91df765b4e42d0d4de77eaf73936fa43895a))
21+
* update google api dependencies ([#2469](https://github.com/googleapis/sdk-platform-java/issues/2469)) ([ad4d4e6](https://github.com/googleapis/sdk-platform-java/commit/ad4d4e65c0afae0e13905fe78b8ea711253dcab3))
22+
* update google auth library dependencies to v1.23.0 ([#2466](https://github.com/googleapis/sdk-platform-java/issues/2466)) ([349a5d3](https://github.com/googleapis/sdk-platform-java/commit/349a5d3b6e31e6184f71d3470a406b2e78eb0775))
23+
* update google auth library dependencies to v1.23.0 ([#2476](https://github.com/googleapis/sdk-platform-java/issues/2476)) ([6c9127c](https://github.com/googleapis/sdk-platform-java/commit/6c9127cf177ed1965ac2d7823808c9f4a835a44f))
24+
* update google http client dependencies to v1.44.1 ([#2467](https://github.com/googleapis/sdk-platform-java/issues/2467)) ([87d1435](https://github.com/googleapis/sdk-platform-java/commit/87d143569e3e2fee5050a905b1841995fc20c528))
25+
* update googleapis/java-cloud-bom digest to ac9893c ([#2472](https://github.com/googleapis/sdk-platform-java/issues/2472)) ([7fff34a](https://github.com/googleapis/sdk-platform-java/commit/7fff34ab3a8e6e0a77b638be81d67fcb4f061686))
26+
* update grpc dependencies to v1.61.1 ([#2463](https://github.com/googleapis/sdk-platform-java/issues/2463)) ([9ec575b](https://github.com/googleapis/sdk-platform-java/commit/9ec575bae059a96ed3d68af4abc372031d9c4dc7))
27+
28+
## [2.34.0](https://github.com/googleapis/sdk-platform-java/compare/v2.33.0...v2.34.0) (2024-01-31)
29+
30+
31+
### Features
32+
33+
* autopopulate fields in the request ([#2353](https://github.com/googleapis/sdk-platform-java/issues/2353)) ([b28235a](https://github.com/googleapis/sdk-platform-java/commit/b28235ab20fd174deddafc0426b8d20352af6e85))
34+
* enable generation with postprocessing of multiple service versions ([#2342](https://github.com/googleapis/sdk-platform-java/issues/2342)) ([363e35e](https://github.com/googleapis/sdk-platform-java/commit/363e35e46e41c88b810e4b0672906f73cb7c38b6))
35+
* MetricsTracer implementation ([#2421](https://github.com/googleapis/sdk-platform-java/issues/2421)) ([5c291e8](https://github.com/googleapis/sdk-platform-java/commit/5c291e8786b8e976979ec2e26b13f0327333bb02))
36+
* move new client script ([#2333](https://github.com/googleapis/sdk-platform-java/issues/2333)) ([acdde47](https://github.com/googleapis/sdk-platform-java/commit/acdde47445916dd306ce8b91489fab45c9c2ef50))
37+
38+
39+
### Bug Fixes
40+
41+
* Endpoint resolution uses user set endpoint from ClientSettings ([#2429](https://github.com/googleapis/sdk-platform-java/issues/2429)) ([46b0a85](https://github.com/googleapis/sdk-platform-java/commit/46b0a857eaa4484c5f1ebe1170338fc90a994375))
42+
* Move direct path misconfiguration log to before creating the first channel ([#2430](https://github.com/googleapis/sdk-platform-java/issues/2430)) ([9916540](https://github.com/googleapis/sdk-platform-java/commit/99165403902ff91ecb0b14b858333855e7a10c60))
43+
344
## [2.33.0](https://github.com/googleapis/sdk-platform-java/compare/v2.32.0...v2.33.0) (2024-01-24)
445

546

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ maven_install(
6060
repositories = ["https://repo.maven.apache.org/maven2/"],
6161
)
6262

63-
_gapic_generator_java_version = "2.33.1-SNAPSHOT" # {x-version-update:gapic-generator-java:current}
63+
_gapic_generator_java_version = "2.35.1-SNAPSHOT" # {x-version-update:gapic-generator-java:current}
6464

6565
maven_install(
6666
artifacts = [

0 commit comments

Comments
 (0)