Skip to content

Commit d983df4

Browse files
Merge branch 'main' into centralize-native-config
2 parents f9f6536 + 69ffd72 commit d983df4

File tree

789 files changed

+75238
-22402
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

789 files changed

+75238
-22402
lines changed

.github/generated-files-bot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ externalManifests:
66
file: '.github/readme/synth.metadata/synth.metadata'
77
jsonpath: '$.generatedFiles[*]'
88
ignoreAuthors:
9+
- 'cloud-java-bot'
910
- 'renovate-bot'
1011
- 'yoshi-automation'
1112
- 'release-please[bot]'

.github/release-please.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,7 @@ branches:
4646
bumpMinorPreMajor: true
4747
handleGHRelease: true
4848
branch: 6.88.x
49+
- releaseType: java-backport
50+
bumpMinorPreMajor: true
51+
handleGHRelease: true
52+
branch: 6.96.x

.github/scripts/update_generation_config.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,15 @@ set -e
1515
function get_latest_released_version() {
1616
local group_id=$1
1717
local artifact_id=$2
18-
latest=$(curl -s "https://search.maven.org/solrsearch/select?q=g:${group_id}+AND+a:${artifact_id}&core=gav&rows=500&wt=json" | jq -r '.response.docs[] | select(.v | test("^[0-9]+(\\.[0-9]+)*$")) | .v' | sort -V | tail -n 1)
19-
echo "${latest}"
18+
json_content=$(curl -s "https://search.maven.org/solrsearch/select?q=g:${group_id}+AND+a:${artifact_id}&core=gav&rows=500&wt=json")
19+
latest=$(jq -r '.response.docs[] | select(.v | test("^[0-9]+(\\.[0-9]+)*$")) | .v' <<< "${json_content}" | sort -V | tail -n 1)
20+
if [[ -z "${latest}" ]]; then
21+
echo "The latest version of ${group_id}:${artifact_id} is empty."
22+
echo "The returned json from maven.org is invalid: ${json_content}"
23+
exit 1
24+
else
25+
echo "${latest}"
26+
fi
2027
}
2128

2229
# Update a key to a new value in the generation config.

.github/sync-repo-settings.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,27 @@ branchProtectionRules:
182182
- units-with-multiplexed-session (11)
183183
- unmanaged_dependency_check
184184
- library_generation
185+
- pattern: 6.96.x
186+
isAdminEnforced: true
187+
requiredApprovingReviewCount: 1
188+
requiresCodeOwnerReviews: true
189+
requiresStrictStatusChecks: false
190+
requiredStatusCheckContexts:
191+
- dependencies (17)
192+
- lint
193+
- javadoc
194+
- units (8)
195+
- units (11)
196+
- 'Kokoro - Test: Integration'
197+
- 'Kokoro - Test: Integration with Multiplexed Sessions'
198+
- cla/google
199+
- checkstyle
200+
- compile (8)
201+
- compile (11)
202+
- units-with-multiplexed-session (8)
203+
- units-with-multiplexed-session (11)
204+
- unmanaged_dependency_check
205+
- library_generation
185206
permissionRules:
186207
- team: yoshi-admins
187208
permission: admin

.github/trusted-contribution.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
trustedContributors:
22
- renovate-bot
33
- gcf-owl-bot[bot]
4+
5+
annotations:
6+
- type: comment
7+
text: "/gcbrun"
8+
- type: label
9+
text: "kokoro:force-run"

.github/workflows/ci.yaml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,25 @@ jobs:
5252
- run: .kokoro/build.sh
5353
env:
5454
JOB_TYPE: test
55-
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS: true
5655
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_PARTITIONED_OPS: true
5756
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_FOR_RW: true
57+
units-with-regular-session:
58+
runs-on: ubuntu-latest
59+
strategy:
60+
fail-fast: false
61+
matrix:
62+
java: [ 11, 17, 21 ]
63+
steps:
64+
- uses: actions/checkout@v4
65+
- uses: actions/setup-java@v3
66+
with:
67+
distribution: temurin
68+
java-version: ${{matrix.java}}
69+
- run: java -version
70+
- run: .kokoro/build.sh
71+
env:
72+
JOB_TYPE: test
73+
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS: false
5874
units-java8:
5975
# Building using Java 17 and run the tests with Java 8 runtime
6076
name: "units (8)"
@@ -96,6 +112,26 @@ jobs:
96112
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS: true
97113
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_PARTITIONED_OPS: true
98114
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_FOR_RW: true
115+
units-with-regular-session8:
116+
# Building using Java 17 and run the tests with Java 8 runtime
117+
name: "units-with-regular-session (8)"
118+
runs-on: ubuntu-latest
119+
steps:
120+
- uses: actions/checkout@v4
121+
- uses: actions/setup-java@v3
122+
with:
123+
java-version: 8
124+
distribution: temurin
125+
- run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java" >> $GITHUB_ENV
126+
shell: bash
127+
- uses: actions/setup-java@v3
128+
with:
129+
java-version: 17
130+
distribution: temurin
131+
- run: .kokoro/build.sh
132+
env:
133+
JOB_TYPE: test
134+
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS: false
99135
windows:
100136
runs-on: windows-latest
101137
steps:

.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.54.0
40+
- uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0
4141
if: env.SHOULD_RUN == 'true'
4242
with:
4343
base_ref: ${{ github.base_ref }}

.github/workflows/integration-tests-against-emulator-with-multiplexed-session.yaml renamed to .github/workflows/integration-tests-against-emulator-with-regular-session.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ jobs:
3939
env:
4040
JOB_TYPE: test
4141
SPANNER_EMULATOR_HOST: localhost:9010
42-
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS: true
42+
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS: false

.github/workflows/renovate_config_check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
renovate_bot_config_validation:
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-24.04
1111

1212
steps:
1313
- name: Checkout code
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Node.js
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: '20'
19+
node-version: '22'
2020

2121
- name: Install Renovate and Config Validator
2222
run: |

.github/workflows/samples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
- uses: actions/checkout@v4
99
- uses: actions/setup-java@v1
1010
with:
11-
java-version: 8
11+
java-version: 11
1212
- name: Run checkstyle
1313
run: mvn -P lint --quiet --batch-mode checkstyle:check
1414
working-directory: samples/snippets

0 commit comments

Comments
 (0)