Skip to content

Commit 2318c6c

Browse files
authored
Merge branch 'main' into freeze-vertexai
2 parents 28a3873 + 1c53451 commit 2318c6c

File tree

291 files changed

+114966
-10709
lines changed

Some content is hidden

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

291 files changed

+114966
-10709
lines changed

.github/workflows/ci.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,33 @@ on:
2020
pull_request:
2121
name: ci
2222
jobs:
23+
# detect whether or note we should run "bulk" (non-handwritten) unit tests
24+
bulk-filter:
25+
runs-on: ubuntu-latest
26+
permissions:
27+
pull-requests: read
28+
# Set job outputs to values from filter step
29+
outputs:
30+
src: ${{ steps.filter.outputs.src }}
31+
ci: ${{ steps.filter.outputs.ci }}
32+
steps:
33+
- uses: actions/checkout@v4
34+
- uses: dorny/paths-filter@v3
35+
id: filter
36+
with:
37+
# we want to run tests if source code is changed or the scripts
38+
# used to run the unit tests
39+
filters: |
40+
src:
41+
- '**/*.java'
42+
- '**/pom.xml'
43+
ci:
44+
- '.github/workflows/ci.yaml'
45+
- '.kokoro/**'
46+
# these unit tests are "bulk" (non-handwritten) libraries
2347
units:
2448
runs-on: ubuntu-latest
49+
needs: bulk-filter
2550
strategy:
2651
fail-fast: false
2752
matrix:
@@ -42,11 +67,13 @@ jobs:
4267
path: ~/.m2/repository
4368
key: ${{ runner.os }}-maven-unified-${{ steps.date.outputs.week_of_year }}
4469
- run: .kokoro/build.sh
70+
if: ${{ needs.bulk-filter.outputs.src == 'true' || needs.bulk-filter.outputs.ci == 'true' }}
4571
env:
4672
JOB_TYPE: test
4773
JOB_NAME: units-${{matrix.java}}
4874
units-8-runtime:
4975
runs-on: ubuntu-latest
76+
needs: bulk-filter
5077
name: "units (8)"
5178
steps:
5279
- name: Get current week within the year
@@ -73,6 +100,7 @@ jobs:
73100
path: ~/.m2/repository
74101
key: ${{ runner.os }}-maven-unified-${{ steps.date.outputs.week_of_year }}
75102
- run: .kokoro/build.sh
103+
if: ${{ needs.bulk-filter.outputs.src == 'true' || needs.bulk-filter.outputs.ci == 'true' }}
76104
shell: bash
77105
env:
78106
JOB_TYPE: test

.github/workflows/hermetic_library_generation.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ jobs:
4343
base_ref: ${{ github.base_ref }}
4444
head_ref: ${{ github.head_ref }}
4545
token: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}
46+
force_regenerate_all: ${{ github.event.pull_request.head.ref == 'generate-libraries-main' }}
4647
image_tag: 2.68.1-SNAPSHOT # {x-version-update:gapic-generator-java:current}

.github/workflows/sdk-platform-java-downstream_protobuf_compatibility_check_nightly.yaml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,25 @@ on:
1212
schedule:
1313
- cron: '0 1 * * *' # Nightly at 1am
1414

15+
# This job intends to test the compatibility of the Protobuf version against repos not in the
16+
# monorepo. As repos are migrated to the monorepo, this job will be obsolete and turned off.
1517
name: sdk-platform-java Downstream Protobuf Compatibility Check Nightly
16-
env:
17-
BUILD_SUBDIR: sdk-platform-java
1818
jobs:
19-
filter:
20-
runs-on: ubuntu-latest
21-
outputs:
22-
library: ${{ steps.filter.outputs.library }}
23-
steps:
24-
- uses: actions/checkout@v4
25-
- uses: dorny/paths-filter@v3
26-
id: filter
27-
with:
28-
filters: |
29-
library:
30-
- 'sdk-platform-java/**'
3119
downstream-protobuf-test:
32-
needs: filter
3320
# This job runs if any of the three conditions match:
3421
# 1. PR is raised from Release-Please (PR comes from branch: release-please--branches-main)
3522
# 2. Job is invoked by the nightly job (scheduled event)
3623
# 3. Job is manually invoked via Github UI (workflow_dispatch event)
37-
if: needs.filter.outputs.library == 'true' && (github.head_ref == 'release-please--branches--main' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
24+
if: github.head_ref == 'release-please--branches--main' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
3825
runs-on: ubuntu-22.04
3926
strategy:
4027
fail-fast: false
4128
matrix:
4229
repo:
43-
- google-cloud-java
4430
- java-bigtable
45-
- java-bigquery
4631
- java-firestore
4732
- java-pubsub
4833
- java-pubsublite
49-
- java-spanner-jdbc
50-
- java-spanner
51-
- java-storage
52-
- java-storage-nio
5334
# Default Protobuf-Java versions to use are specified here. Without this, the nightly workflow won't know
5435
# which values to use and would resolve to ''.
5536
protobuf-version: ${{ fromJSON(format('[{0}]', inputs.protobuf_runtime_versions || '"4.33.5"')) }}
@@ -70,7 +51,7 @@ jobs:
7051
- name: Print Protobuf-Java testing version
7152
run: echo "Testing with Protobuf-Java v${{ matrix.protobuf-version }}"
7253
- name: Perform downstream source compatibility testing
73-
run: REPOS_UNDER_TEST="${{ matrix.repo }}" PROTOBUF_RUNTIME_VERSION="${{ matrix.protobuf-version }}" ./.kokoro/nightly/downstream-protobuf-source-compatibility.sh
54+
run: REPOS_UNDER_TEST="${{ matrix.repo }}" PROTOBUF_RUNTIME_VERSION="${{ matrix.protobuf-version }}" ./sdk-platform-java/.kokoro/nightly/downstream-protobuf-source-compatibility.sh
7455
- name: Perform downstream binary compatibility testing
75-
run: REPOS_UNDER_TEST="${{ matrix.repo }}" PROTOBUF_RUNTIME_VERSION="${{ matrix.protobuf-version }}" ./.kokoro/nightly/downstream-protobuf-binary-compatibility.sh
56+
run: REPOS_UNDER_TEST="${{ matrix.repo }}" PROTOBUF_RUNTIME_VERSION="${{ matrix.protobuf-version }}" ./sdk-platform-java/.kokoro/nightly/downstream-protobuf-binary-compatibility.sh
7657

generation_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
gapic_generator_version: 2.68.0
2-
googleapis_commitish: 456866bff20ee005cbc248b3478c577d28304e60
2+
googleapis_commitish: 8d52a0bd5332bec365647fd792102a25a665e9fe
33
libraries_bom_version: 26.79.0
44
libraries:
55
- api_shortname: accessapproval

0 commit comments

Comments
 (0)