File tree Expand file tree Collapse file tree 9 files changed +132
-13
lines changed Expand file tree Collapse file tree 9 files changed +132
-13
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ externalManifests:
66 file : ' .github/readme/synth.metadata/synth.metadata'
77 jsonpath : ' $.generatedFiles[*]'
88ignoreAuthors :
9+ - ' cloud-java-bot'
910- ' renovate-bot'
1011- ' yoshi-automation'
1112- ' release-please[bot]'
Original file line number Diff line number Diff line change @@ -15,8 +15,15 @@ set -e
1515function 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.
Original file line number Diff line number Diff line change 77
88jobs :
99 renovate_bot_config_validation :
10- runs-on : ubuntu-22 .04
10+ runs-on : ubuntu-24 .04
1111
1212 steps :
1313 - name : Checkout code
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 : |
Original file line number Diff line number Diff line change 2121
2222jobs :
2323 update-generation-config :
24- runs-on : ubuntu-22 .04
24+ runs-on : ubuntu-24 .04
2525 env :
2626 # the branch into which the pull request is merged
2727 base_branch : main
2828 steps :
2929 - uses : actions/checkout@v4
3030 with :
31+ fetch-depth : 0
3132 token : ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
3233 - name : Update params in generation config to latest
3334 shell : bash
3637 [ -z "$(git config user.email)" ] && git config --global user.email "[email protected] " 3738 [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot"
3839 bash .github/scripts/update_generation_config.sh \
39- --base_branch "${base_branch}"\
40+ --base_branch "${base_branch}" \
4041 --repo ${{ github.repository }}
4142 env :
4243 GH_TOKEN : ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
44+
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTI
4242 export GOOGLE_APPLICATION_CREDENTIALS=$( realpath ${KOKORO_GFILE_DIR} /${GOOGLE_APPLICATION_CREDENTIALS} )
4343fi
4444
45+
4546RETURN_CODE=0
4647set +e
4748
@@ -75,11 +76,6 @@ graalvm)
7576 mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
7677 RETURN_CODE=$?
7778 ;;
78- graalvm17)
79- # Run Unit and Integration Tests with Native Image
80- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
81- RETURN_CODE=$?
82- ;;
8379samples)
8480 SAMPLES_DIR=samples
8581 # only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise.
132128fi
133129
134130echo " exiting with ${RETURN_CODE} "
135- exit ${RETURN_CODE}
131+ exit ${RETURN_CODE}
Original file line number Diff line number Diff line change 1+ # Format: //devtools/kokoro/config/proto/build.proto
2+
3+ # Configure the docker image for kokoro-trampoline.
4+ env_vars: {
5+ key: " TRAMPOLINE_IMAGE"
6+ value: " gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.45.1"
7+ }
8+
9+ env_vars: {
10+ key: " JOB_TYPE"
11+ value: " graalvm"
12+ }
13+
14+ # TODO: remove this after we've migrated all tests and scripts
15+ env_vars: {
16+ key: " GCLOUD_PROJECT"
17+ value: " gcloud-devel"
18+ }
19+
20+ env_vars: {
21+ key: " GOOGLE_CLOUD_PROJECT"
22+ value: " gcloud-devel"
23+ }
24+
25+ env_vars: {
26+ key: " GOOGLE_APPLICATION_CREDENTIALS"
27+ value: " secret_manager/java-it-service-account"
28+ }
29+
30+ env_vars: {
31+ key: " SECRET_MANAGER_KEYS"
32+ value: " java-it-service-account"
33+ }
34+
35+ env_vars: {
36+ key: " IT_SERVICE_ACCOUNT_EMAIL"
37+ 38+ }
Original file line number Diff line number Diff line change 1+ # Format: //devtools/kokoro/config/proto/build.proto
2+
3+ # Configure the docker image for kokoro-trampoline.
4+ env_vars: {
5+ key: " TRAMPOLINE_IMAGE"
6+ value: " gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.45.1"
7+ }
8+
9+ env_vars: {
10+ key: " JOB_TYPE"
11+ value: " graalvm"
12+ }
13+
14+ # TODO: remove this after we've migrated all tests and scripts
15+ env_vars: {
16+ key: " GCLOUD_PROJECT"
17+ value: " gcloud-devel"
18+ }
19+
20+ env_vars: {
21+ key: " GOOGLE_CLOUD_PROJECT"
22+ value: " gcloud-devel"
23+ }
24+
25+ env_vars: {
26+ key: " GOOGLE_APPLICATION_CREDENTIALS"
27+ value: " secret_manager/java-it-service-account"
28+ }
29+
30+ env_vars: {
31+ key: " SECRET_MANAGER_KEYS"
32+ value: " java-it-service-account"
33+ }
34+
35+ env_vars: {
36+ key: " IT_SERVICE_ACCOUNT_EMAIL"
37+ 38+ }
Original file line number Diff line number Diff line change 1+ # Format: //devtools/kokoro/config/proto/build.proto
2+
3+ # Configure the docker image for kokoro-trampoline.
4+ env_vars: {
5+ key: " TRAMPOLINE_IMAGE"
6+ value: " gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.45.1"
7+ }
8+
9+ env_vars: {
10+ key: " JOB_TYPE"
11+ value: " graalvm"
12+ }
13+
14+ # TODO: remove this after we've migrated all tests and scripts
15+ env_vars: {
16+ key: " GCLOUD_PROJECT"
17+ value: " gcloud-devel"
18+ }
19+
20+ env_vars: {
21+ key: " GOOGLE_CLOUD_PROJECT"
22+ value: " gcloud-devel"
23+ }
24+
25+ env_vars: {
26+ key: " GOOGLE_APPLICATION_CREDENTIALS"
27+ value: " secret_manager/java-it-service-account"
28+ }
29+
30+ env_vars: {
31+ key: " SECRET_MANAGER_KEYS"
32+ value: " java-it-service-account"
33+ }
34+
35+ env_vars: {
36+ key: " IT_SERVICE_ACCOUNT_EMAIL"
37+ 38+ }
Original file line number Diff line number Diff line change 6363 " ^org.jacoco:" ,
6464 " ^org.codehaus.mojo:" ,
6565 " ^org.sonatype.plugins:" ,
66- " ^com.coveo:" ,
6766 " ^com.google.cloud:google-cloud-shared-config"
6867 ],
6968 "semanticCommitType" : " build" ,
You can’t perform that action at this time.
0 commit comments