Skip to content

Commit 69cf83b

Browse files
authored
Merge branch 'main' into renovate/com.google.cloud-google-cloud-datastore-2.x
2 parents 67fe9a0 + 7a7a203 commit 69cf83b

File tree

24 files changed

+162
-55
lines changed

24 files changed

+162
-55
lines changed

.cloudbuild/samples_build.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
steps:
2-
- name: gcr.io/cloud-devrel-public-resources/java8
2+
- name: gcr.io/cloud-devrel-public-resources/java11
33
entrypoint: ls
44
args: [
55
'-alt',
66
]
7-
- name: gcr.io/cloud-devrel-public-resources/java8
7+
- name: gcr.io/cloud-devrel-public-resources/java11
88
entrypoint: curl
99
args: [
1010
'--header',
1111
'Metadata-Flavor: Google',
1212
'http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/email'
1313
]
14-
- name: gcr.io/cloud-devrel-public-resources/java8
14+
- name: gcr.io/cloud-devrel-public-resources/java11
1515
entrypoint: pwd
16-
- name: gcr.io/cloud-devrel-public-resources/java8
16+
- name: gcr.io/cloud-devrel-public-resources/java11
1717
entrypoint: bash
1818
args: [
1919
'.kokoro/build.sh'
@@ -22,7 +22,7 @@ steps:
2222
- 'JOB_TYPE=samples'
2323
- 'GOOGLE_CLOUD_PROJECT=cloud-java-ci-sample'
2424
- 'KOKORO_GITHUB_PULL_REQUEST_NUMBER=$_PR_NUMBER'
25-
- name: gcr.io/cloud-devrel-public-resources/java8
25+
- name: gcr.io/cloud-devrel-public-resources/java11
2626
entrypoint: echo
2727
args: [
2828
'Sample job succeeded',

.github/workflows/ci.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,23 @@ jobs:
5959
env:
6060
JOB_TYPE: test
6161
windows:
62+
# Building using Java 11 and run the tests with Java 8 runtime
6263
runs-on: windows-latest
6364
steps:
6465
- name: Support longpaths
6566
run: git config --system core.longpaths true
6667
- uses: actions/checkout@v4
6768
- uses: actions/setup-java@v4
6869
with:
69-
distribution: temurin
7070
java-version: 8
71+
distribution: temurin
72+
- name: "Set jvm system property environment variable for surefire plugin (unit tests)"
73+
run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}\bin\java" >> $GITHUB_ENV
74+
shell: bash
75+
- uses: actions/setup-java@v4
76+
with:
77+
distribution: temurin
78+
java-version: 11
7179
- run: java -version
7280
- run: .kokoro/build.bat
7381
env:

.github/workflows/hermetic_library_generation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
fetch-depth: 0
3939
token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
40-
- uses: googleapis/sdk-platform-java/.github/scripts@v2.51.1
40+
- uses: googleapis/sdk-platform-java/.github/scripts@v2.52.0
4141
if: env.SHOULD_RUN == 'true'
4242
with:
4343
base_ref: ${{ github.base_ref }}

.github/workflows/unmanaged_dependency_check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
shell: bash
1515
run: .kokoro/build.sh
1616
- name: Unmanaged dependency check
17-
uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.41.1
17+
uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.42.0
1818
with:
1919
bom-path: google-cloud-datastore-bom/pom.xml

.kokoro/build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ javadoc)
6060
RETURN_CODE=$?
6161
;;
6262
integration)
63+
# Kokoro integration tests use both JDK 11 and JDK 8. Integration
64+
# tests require JDK 11 export as JAVA env variable to run cloud datastore
65+
# emulator (https://cloud.google.com/sdk/docs/release-notes#39300_2022-07-12).
66+
# For Java 8 environment, we will still run the tests using Java 8 with
67+
# SUREFIRE_JVM_OPT for Maven surefire plugin:
68+
# https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm
69+
if [[ -n "${JAVA11_HOME}" && -n "${JAVA8_HOME}" ]]
70+
then
71+
export JAVA=${JAVA11_HOME}/bin/java
72+
export SUREFIRE_JVM_OPT=-Djvm=${JAVA8_HOME}/bin/java
73+
fi
74+
6375
mvn -B ${INTEGRATION_TEST_ARGS} \
6476
-ntp \
6577
-Penable-integration-tests \

.kokoro/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function retry_with_backoff {
5252
return $exit_code
5353
}
5454

55-
## Helper functionss
55+
## Helper functions
5656
function now() { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n'; }
5757
function msg() { println "$*" >&2; }
5858
function println() { printf '%s\n' "$(now) $*"; }

.kokoro/presubmit/graalvm-native-17.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-public-resources/graalvm_sdk_platform_b:3.41.1"
6+
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.42.0"
77
}
88

99
env_vars: {

.kokoro/presubmit/graalvm-native.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-public-resources/graalvm_sdk_platform_a:3.41.1"
6+
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.42.0"
77
}
88

99
env_vars: {

.kokoro/presubmit/integration.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ env_vars: {
3535
env_vars: {
3636
key: "SECRET_MANAGER_KEYS"
3737
value: "java-it-service-account"
38-
}
38+
}

CHANGELOG.md

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

3+
## [2.26.1](https://github.com/googleapis/java-datastore/compare/v2.26.0...v2.26.1) (2025-02-05)
4+
5+
6+
### Bug Fixes
7+
8+
* **deps:** Update the Java code generator (gapic-generator-java) to 2.52.0 ([9594024](https://github.com/googleapis/java-datastore/commit/95940241de9f324000d52dc80b3106aedefd481e))
9+
10+
11+
### Dependencies
12+
13+
* Update dependency com.google.cloud:gapic-libraries-bom to v1.51.0 ([#1726](https://github.com/googleapis/java-datastore/issues/1726)) ([89f31a8](https://github.com/googleapis/java-datastore/commit/89f31a88d346193c9a5533de3e38c9088db30043))
14+
15+
## [2.26.0](https://github.com/googleapis/java-datastore/compare/v2.25.4...v2.26.0) (2025-01-29)
16+
17+
18+
### Features
19+
20+
* Add firestoreInDatastoreMode for datastore emulator ([#1698](https://github.com/googleapis/java-datastore/issues/1698)) ([50f106d](https://github.com/googleapis/java-datastore/commit/50f106d4c50884ce471a66c00df322270fe4a91c))
21+
22+
23+
### Dependencies
24+
25+
* Update dependency com.google.cloud:sdk-platform-java-config to v3.42.0 ([#1725](https://github.com/googleapis/java-datastore/issues/1725)) ([1cbaf22](https://github.com/googleapis/java-datastore/commit/1cbaf22cf557aec606dce7a5ca5d3ebe620a9339))
26+
27+
## [2.25.4](https://github.com/googleapis/java-datastore/compare/v2.25.3...v2.25.4) (2025-01-22)
28+
29+
30+
### Dependencies
31+
32+
* Update dependency org.easymock:easymock to v5.5.0 ([#1666](https://github.com/googleapis/java-datastore/issues/1666)) ([0333b07](https://github.com/googleapis/java-datastore/commit/0333b0744bab87afe78dad1c17f6811d3dec47e6))
33+
334
## [2.25.3](https://github.com/googleapis/java-datastore/compare/v2.25.2...v2.25.3) (2025-01-15)
435

536

0 commit comments

Comments
 (0)