Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ jobs:
# 2. Java code changes in upstream modules: Auth Library and Sdk-Platform-Java
# 3. Upstream dependency version changes: Shared-Deps and Gapic-Generator-Pom-Parent
filters: |
google-auth-library-java:
- 'google-auth-library-java/**'
grpc-gcp-java:
- 'grpc-gcp-java/**'
- 'java-shared-config/**/pom.xml'
Expand Down Expand Up @@ -217,17 +215,6 @@ jobs:
- 'google-cloud-pom-parent/pom.xml'
- 'java-shared-config/**/pom.xml'
- 'pom.xml'
java-pubsub:
- 'java-pubsub/**'
- 'google-auth-library-java/**/*.java'
- 'google-auth-library-java/**/pom.xml'
- 'sdk-platform-java/**/*.java'
- 'sdk-platform-java/java-shared-dependencies/**/pom.xml'
- 'sdk-platform-java/gapic-generator-java-pom-parent/pom.xml'
- 'google-cloud-jar-parent/pom.xml'
- 'google-cloud-pom-parent/pom.xml'
- 'java-shared-config/**/pom.xml'
- 'pom.xml'
java-bigtable:
- 'java-bigtable/**'
- 'google-auth-library-java/**/*.java'
Expand All @@ -239,19 +226,6 @@ jobs:
- 'google-cloud-pom-parent/pom.xml'
- 'java-shared-config/**/pom.xml'
- 'pom.xml'
java-firestore:
- 'java-firestore/**'
- 'google-auth-library-java/**/*.java'
- 'google-auth-library-java/**/pom.xml'
- 'sdk-platform-java/**/*.java'
- 'sdk-platform-java/java-shared-dependencies/**/pom.xml'
- 'sdk-platform-java/gapic-generator-java-pom-parent/pom.xml'
- 'google-cloud-jar-parent/pom.xml'
- 'google-cloud-pom-parent/pom.xml'
- 'java-shared-config/**/pom.xml'
- 'pom.xml'
java-shared-config:
- 'java-shared-config/**'
split-units:
runs-on: ubuntu-latest
timeout-minutes: 90
Expand Down
71 changes: 70 additions & 1 deletion .github/workflows/google-auth-library-java-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,75 @@ jobs:
library:
- 'google-auth-library-java/**'
- '.github/workflows/google-auth-library-java-ci.yaml'
units:
needs: filter
if: ${{ needs.filter.outputs.library == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
java: [11, 17, 21, 25, 26]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
with:
distribution: temurin
java-version: ${{matrix.java}}
cache: maven
- run: java -version
- run: .kokoro/build.sh
env:
BUILD_SUBDIR: google-auth-library-java
JOB_TYPE: test
units-java8:
needs: filter
if: ${{ needs.filter.outputs.library == 'true' }}
name: "units (8)"
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
java-version: 11
distribution: temurin
cache: maven
- run: java -version
- name: Install all modules using Java 11
shell: bash
run: .kokoro/build.sh
env:
BUILD_SUBDIR: google-auth-library-java
JOB_TYPE: install
- name: Cache Temurin JDK 8
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.*
key: ${{ runner.os }}-temurin-jdk8
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
java-version: 8
distribution: temurin
- run: java -version
- name: Run tests in Java 8 with the source compiled in Java 11
run: |
mvn test \
-B -ntp \
-Pquick-build \
-Dorg.slf4j.simpleLogger.showDateTime=true \
-Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS \
-Dmaven.wagon.http.retryHandler.count=5 \
--also-make \
-T 1C
env:
BUILD_SUBDIR: google-auth-library-java
JOB_TYPE: test
working-directory: google-auth-library-java
units-logging:
needs: filter
if: ${{ needs.filter.outputs.library == 'true' }}
Expand Down Expand Up @@ -110,7 +179,7 @@ jobs:
- run: .kokoro/dependencies.sh

required:
needs: [ units-logging, clirr, dependencies ]
needs: [ filter, units, units-java8, units-logging, clirr, dependencies ]
name: conditional-required-check
if: ${{ !cancelled() }} # Run even if any "needs" jobs fail or are skipped, unless cancelled
runs-on: ubuntu-22.04
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/java-firestore-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ jobs:
filters: |
library:
- 'java-firestore/**'
- '.github/workflows/java-firestore-ci.yaml'
- 'google-auth-library-java/**/*.java'
- 'google-auth-library-java/**/pom.xml'
- 'sdk-platform-java/**/*.java'
- 'sdk-platform-java/java-shared-dependencies/**/pom.xml'
- 'sdk-platform-java/gapic-generator-java-pom-parent/pom.xml'
- 'google-cloud-jar-parent/pom.xml'
- 'google-cloud-pom-parent/pom.xml'
- 'java-shared-config/**/pom.xml'
- 'pom.xml'
units:
needs: filter
if: ${{ needs.filter.outputs.library == 'true' }}
Expand Down Expand Up @@ -198,3 +208,15 @@ jobs:
env:
JOB_TYPE: clirr
BUILD_SUBDIR: java-firestore
required:
needs: [ filter, units, units-java8, windows, dependencies, lint, clirr ]
name: conditional-required-check
if: ${{ !cancelled() }} # Run even if any "needs" jobs fail or are skipped, unless cancelled
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- name: Fail if any previous failure or cancellation
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: exit 1
- name: Success otherwise
run: echo "Success!"
22 changes: 22 additions & 0 deletions .github/workflows/java-pubsub-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ jobs:
filters: |
library:
- 'java-pubsub/**'
- '.github/workflows/java-pubsub-ci.yaml'
- 'google-auth-library-java/**/*.java'
- 'google-auth-library-java/**/pom.xml'
- 'sdk-platform-java/**/*.java'
- 'sdk-platform-java/java-shared-dependencies/**/pom.xml'
- 'sdk-platform-java/gapic-generator-java-pom-parent/pom.xml'
- 'google-cloud-jar-parent/pom.xml'
- 'google-cloud-pom-parent/pom.xml'
- 'java-shared-config/**/pom.xml'
- 'pom.xml'
units:
needs: filter
if: ${{ needs.filter.outputs.library == 'true' }}
Expand Down Expand Up @@ -198,3 +208,15 @@ jobs:
env:
JOB_TYPE: clirr
BUILD_SUBDIR: java-pubsub
required:
needs: [ filter, units, units-java8, windows, dependencies, lint, clirr ]
name: conditional-required-check
if: ${{ !cancelled() }} # Run even if any "needs" jobs fail or are skipped, unless cancelled
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- name: Fail if any previous failure or cancellation
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: exit 1
- name: Success otherwise
run: echo "Success!"
15 changes: 14 additions & 1 deletion .github/workflows/java-shared-config-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
filters: |
library:
- 'java-shared-config/**'
- '.github/workflows/java-shared-config-ci.yaml'
units:
needs: filter
if: ${{ needs.filter.outputs.library == 'true' }}
Expand All @@ -57,7 +58,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [11, 17, 21]
java: [11, 17, 21, 25, 26]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
Expand Down Expand Up @@ -198,3 +199,15 @@ jobs:
env:
JOB_TYPE: clirr
BUILD_SUBDIR: java-shared-config
required:
needs: [ filter, units, units-java8, windows, dependencies, lint, clirr ]
name: conditional-required-check
if: ${{ !cancelled() }} # Run even if any "needs" jobs fail or are skipped, unless cancelled
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- name: Fail if any previous failure or cancellation
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: exit 1
- name: Success otherwise
run: echo "Success!"
Loading