Skip to content

Commit c31e66a

Browse files
authored
Merge branch 'main' into cindy/vector-search-1
2 parents d03f9a1 + 2a82de0 commit c31e66a

File tree

37 files changed

+281
-69
lines changed

37 files changed

+281
-69
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/dependabot.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,15 @@ updates:
1717
# If a security vulnerability comes in, we will be notified about
1818
# it via template in the synthtool repository.
1919
ignore:
20-
- dependency-name: "*"
20+
- dependency-name: "*"
21+
22+
# rules for the `grpc-experimental` branch
23+
- package-ecosystem: maven
24+
directory: "/"
25+
schedule:
26+
interval: daily
27+
commit-message:
28+
# Prefix all commit messages with "deps: "
29+
prefix: "deps"
30+
open-pull-requests-limit: 10
31+
target-branch: "grpc-experimental"

.github/release-please.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ branches:
3434
handleGHRelease: true
3535
releaseType: java-backport
3636
branch: 2.19.x
37+
- bumpMinorPreMajor: true
38+
handleGHRelease: true
39+
releaseType: java-backport
40+
branch: 2.26.x

.github/sync-repo-settings.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,22 @@ branchProtectionRules:
109109
- cla/google
110110
- 'Kokoro - Test: Java GraalVM Native Image'
111111
- 'Kokoro - Test: Java 17 GraalVM Native Image'
112+
- pattern: grpc-experimental
113+
isAdminEnforced: true
114+
requiredApprovingReviewCount: 1
115+
requiresCodeOwnerReviews: true
116+
requiresStrictStatusChecks: false
117+
requiredStatusCheckContexts:
118+
- dependencies (17)
119+
- lint
120+
- clirr
121+
- units (8)
122+
- units (11)
123+
- 'Kokoro - Test: Integration'
124+
- cla/google
125+
- 'Kokoro - Test: Java GraalVM Native Image'
126+
- 'Kokoro - Test: Java 17 GraalVM Native Image'
127+
- javadoc
112128
- pattern: 2.15.x
113129
isAdminEnforced: true
114130
requiredApprovingReviewCount: 1
@@ -172,6 +188,24 @@ branchProtectionRules:
172188
- 'Kokoro - Test: Java GraalVM Native Image'
173189
- 'Kokoro - Test: Java 17 GraalVM Native Image'
174190
- javadoc
191+
- pattern: 2.26.x
192+
isAdminEnforced: true
193+
requiredApprovingReviewCount: 1
194+
requiresCodeOwnerReviews: true
195+
requiresStrictStatusChecks: false
196+
requiredStatusCheckContexts:
197+
- dependencies (17)
198+
- lint
199+
- clirr
200+
- units (8)
201+
- units (11)
202+
- 'Kokoro - Test: Integration'
203+
- cla/google
204+
- 'Kokoro - Test: Java GraalVM Native Image'
205+
- 'Kokoro - Test: Java 17 GraalVM Native Image'
206+
- javadoc
207+
- library_generation
208+
- unmanaged_dependency_check
175209
permissionRules:
176210
- team: yoshi-admins
177211
permission: admin

.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.55.1
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.45.1
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.45.1"
77
}
88

99
env_vars: {

0 commit comments

Comments
 (0)