Skip to content

Commit f5d4abc

Browse files
committed
chore(spanner): apply manual changes
1 parent 903688a commit f5d4abc

File tree

8 files changed

+165
-356
lines changed

8 files changed

+165
-356
lines changed

.github/workflows/java-spanner-integration-tests-against-emulator.yaml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
- main
55
pull_request:
66
name: java-spanner integration-tests-against-emulator
7-
env:
8-
BUILD_SUBDIR: java-spanner
97
jobs:
108
filter:
119
runs-on: ubuntu-latest
@@ -33,26 +31,15 @@ jobs:
3331

3432
steps:
3533
- uses: actions/checkout@v6
36-
- uses: stCarolas/setup-maven@v5
37-
with:
38-
maven-version: 3.8.1
39-
# Build with JDK 11 and run tests with JDK 8
40-
- uses: actions/setup-java@v5
41-
with:
42-
java-version: 11
43-
distribution: temurin
44-
- name: Compiling main library
45-
run: .kokoro/build.sh
4634
- uses: actions/setup-java@v5
4735
with:
48-
java-version: 8
4936
distribution: temurin
37+
java-version: 11
5038
- name: Running tests
51-
run: |
52-
mvn -V -B -Dspanner.testenv.instance="" -Penable-integration-tests \
53-
-DtrimStackTrace=false -Dclirr.skip=true -Denforcer.skip=true \
54-
-Dmaven.main.skip=true -fae verify
39+
run: .kokoro/build.sh
5540
env:
5641
JOB_TYPE: test
42+
BUILD_SUBDIR: java-spanner
5743
SPANNER_EMULATOR_HOST: localhost:9010
5844
GOOGLE_CLOUD_PROJECT: emulator-test-project
45+
SUREFIRE_JVM_OPT: '-Penable-integration-tests -DskipUnitTests=true -Dspanner.testenv.instance="" -Dmaven.main.skip=true'

.kokoro/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,12 @@ case ${JOB_TYPE} in
245245
if [ -f "${dir}/pom.xml" ] && [ "${dir}" != "." ]; then
246246
# Filter out directories not participating in the default formatting reactor:
247247
# - samples are handwritten by developers
248+
# - benchmarks are handwritten by developers
248249
# - proto-*/grpc-* are generated code and should use the compiler format
249250
# - *-bom/parents are POM-only and contain no Java source
250251
if [[ "${dir}" != *"samples"* ]] && \
251252
[[ "${dir}" != *"java-showcase"* ]] && \
253+
[[ "$(basename "${dir}")" != *"benchmark"* ]] && \
252254
[[ "$(basename "${dir}")" != "proto-google-"* ]] && \
253255
[[ "$(basename "${dir}")" != "grpc-google-"* ]] && \
254256
[[ "$(basename "${dir}")" != *"-bom" ]] && \

.kokoro/presubmit/spanner-integration.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Configure the docker image for kokoro-trampoline.
44
env_vars: {
55
key: "TRAMPOLINE_IMAGE"
6-
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/java11"
77
}
88

99
env_vars: {

gapic-libraries-bom/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,6 +1242,13 @@
12421242
<type>pom</type>
12431243
<scope>import</scope>
12441244
</dependency>
1245+
<dependency>
1246+
<groupId>com.google.cloud</groupId>
1247+
<artifactId>google-cloud-spanner-bom</artifactId>
1248+
<version>6.111.2-SNAPSHOT</version><!-- {x-version-update:google-cloud-spanner:current} -->
1249+
<type>pom</type>
1250+
<scope>import</scope>
1251+
</dependency>
12451252
<dependency>
12461253
<groupId>com.google.cloud</groupId>
12471254
<artifactId>google-cloud-spanneradapter-bom</artifactId>

generation_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2486,7 +2486,7 @@ libraries:
24862486
requires_billing: true
24872487
codeowner_team: '@googleapis/spanner-team'
24882488
library_type: GAPIC_COMBO
2489-
excluded_poms: google-cloud-spanner-bom
2489+
excluded_poms: google-cloud-spanner-bom,google-cloud-spanner
24902490
recommended_package: com.google.cloud.spanner
24912491
GAPICs:
24922492
- proto_path: google/spanner/admin/database/v1

java-spanner/.github/scripts/update_generation_config.sh

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

java-spanner/.repo-metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"transport": "grpc",
99
"language": "java",
1010
"repo": "googleapis/google-cloud-java",
11-
"repo_short": "google-cloud-java",
11+
"repo_short": "java-spanner",
1212
"distribution_name": "com.google.cloud:google-cloud-spanner",
1313
"api_id": "spanner.googleapis.com",
1414
"library_type": "GAPIC_COMBO",
@@ -18,4 +18,4 @@
1818
"issue_tracker": "https://issuetracker.google.com/issues?q=componentid:190851%2B%20status:open",
1919
"recommended_package": "com.google.cloud.spanner",
2020
"min_java_version": 8
21-
}
21+
}

0 commit comments

Comments
 (0)