Skip to content

Commit a6a34dc

Browse files
authored
Merge branch 'main' into feat/channelpool-resizing
2 parents 856f3f2 + dea45de commit a6a34dc

6 files changed

Lines changed: 31 additions & 17 deletions

File tree

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,13 @@ jobs:
180180
with:
181181
java-version: 17
182182
distribution: temurin
183-
- name: Compile with Java 17 and run tests with Java 8
183+
- name: Install all modules using Java 17
184+
shell: bash
185+
run: .kokoro/build.sh
186+
env:
187+
BUILD_SUBDIR: sdk-platform-java
188+
JOB_TYPE: install
189+
- name: Run tests with Java 8
184190
shell: bash
185191
run: |
186192
set -x
@@ -192,7 +198,7 @@ jobs:
192198
-Djvm="${JAVA8_HOME}/bin/java"
193199
working-directory: sdk-platform-java
194200
# The `envVarTest` profile runs tests that require an environment variable
195-
- name: Compile with Java 17 and run tests with Java 8 (Env Var Tests)
201+
- name: Run tests with Java 8 (Env Var Tests)
196202
shell: bash
197203
run: |
198204
set -x

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

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
filters: |
2121
library:
2222
- 'sdk-platform-java/**'
23+
- '.github/workflows/sdk-platform-java-sonar.yaml'
2324
build:
2425
needs: filter
2526
if: needs.filter.outputs.library == 'true' && (github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request')
@@ -46,13 +47,18 @@ jobs:
4647
path: ~/.m2
4748
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
4849
restore-keys: ${{ runner.os }}-m2
49-
- name: Install modules to local maven
50-
run: |
51-
mvn install -T 1C -DskipTests -ntp -B
52-
cd java-showcase
53-
mvn install -T 1C -DskipTests -ntp -B
50+
- name: Install sdk-platform-modules
51+
shell: bash
52+
run: .kokoro/build.sh
53+
env:
54+
BUILD_SUBDIR: sdk-platform-java
55+
JOB_TYPE: install
56+
- name: Install java-showcase
57+
shell: bash
58+
run: mvn install -T 1C -DskipTests -ntp -B
59+
working-directory: sdk-platform-java/java-showcase
5460
- name: Parse showcase version
55-
working-directory: java-showcase/gapic-showcase
61+
working-directory: sdk-platform-java/java-showcase/gapic-showcase
5662
run: echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV"
5763
- name: Install showcase server
5864
run: |
@@ -68,28 +74,29 @@ jobs:
6874
# step for a few tests (env var tests) may be overkill and should be better covered
6975
# when we can upgrade to JUnit 5 (https://github.com/googleapis/sdk-platform-java/issues/1611#issuecomment-1970079325)
7076
- name: Build and analyze for full test coverage
77+
working-directory: sdk-platform-java
7178
env:
7279
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
73-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
80+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_FOR_GENERATOR }}
7481
run: |
7582
mvn -B verify -Pquick-build \
7683
-DenableFullTestCoverage \
7784
-Penable-integration-tests \
7885
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
79-
-Dsonar.projectKey=googleapis_gapic-generator-java \
86+
-Dsonar.projectKey=googleapis_google-cloud-java_generator \
8087
-Dsonar.organization=googleapis \
8188
-Dsonar.host.url=https://sonarcloud.io
8289
- name: Build and analyze Showcase Integration Tests Coverage
90+
working-directory: sdk-platform-java
8391
env:
8492
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
85-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
93+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_FOR_SHOWCASE }}
8694
run: |
8795
mvn -B clean verify -Pquick-build \
8896
-DskipUnitTests \
8997
-Penable-integration-tests \
9098
-DenableShowcaseTestCoverage \
9199
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
92-
-Dsonar.projectKey=googleapis_gapic-generator-java_integration_tests \
100+
-Dsonar.projectKey=googleapis_google-cloud-java_showcase \
93101
-Dsonar.organization=googleapis \
94-
-Dsonar.host.url=https://sonarcloud.io \
95-
-Dsonar.projectName=java_showcase_integration_tests
102+
-Dsonar.host.url=https://sonarcloud.io

.kokoro/common.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ function install_modules() {
408408
always_install_deps_list=(
409409
'google-auth-library-java/appengine'
410410
'google-auth-library-java/bom'
411+
'google-auth-library-java/cab-token-generator'
411412
'google-auth-library-java/credentials'
412413
'google-auth-library-java/oauth2_http'
413414
'sdk-platform-java/java-shared-dependencies'

sdk-platform-java/hermetic_build/library_generation/tests/resources/test_monorepo_postprocessing/java-dns/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
<groupId>com.google.cloud</groupId>
55
<artifactId>google-cloud-dns</artifactId>
66
<packaging>jar</packaging>
7-
<version>2.33.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-dns:current} -->
7+
<version>2.33.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-dns-golden:current} -->
88
<name>Google Cloud DNS Parent</name>
99
</project>

sdk-platform-java/hermetic_build/library_generation/tests/resources/test_monorepo_postprocessing/java-service-control/google-cloud-service-control-bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.google.cloud</groupId>
55
<artifactId>google-cloud-service-control-bom</artifactId>
6-
<version>1.35.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-service-control:current} -->
6+
<version>1.35.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-service-control-golden:current} -->
77
<packaging>pom</packaging>
88
</project>

sdk-platform-java/hermetic_build/library_generation/tests/resources/test_monorepo_postprocessing/java-tasks/google-cloud-tasks-bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.google.cloud</groupId>
55
<artifactId>google-cloud-tasks-bom</artifactId>
6-
<version>2.35.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-tasks:current} -->
6+
<version>2.35.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-tasks-golden:current} -->
77
<packaging>pom</packaging>
88
</project>

0 commit comments

Comments
 (0)