Skip to content

Commit c2d6d15

Browse files
authored
chore: migrate showcase tests job for graalvm from GA to kokoro (#1625)
* chore: migrate showcase tests job for graalvm from GA to kokoro
1 parent 3e85c4b commit c2d6d15

File tree

3 files changed

+23
-57
lines changed

3 files changed

+23
-57
lines changed

.github/workflows/downstream-native-image.yaml

-55
This file was deleted.

.kokoro/presubmit/downstream-build.sh

+21
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
set -eo pipefail
1717

18+
SHOWCASE_VERSION=0.26.1
19+
1820
## Get the directory of the build script
1921
scriptDir=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
2022
## cd to the parent directory, i.e. the root of the git repo
@@ -61,11 +63,30 @@ echo
6163
popd
6264

6365
### Round 3
66+
# Run showcase tests in GraalVM
67+
68+
# Start showcase server
69+
mkdir -p /usr/src/showcase
70+
curl --location https://github.com/googleapis/gapic-showcase/releases/download/v"${SHOWCASE_VERSION}"/gapic-showcase-"${SHOWCASE_VERSION}"-linux-amd64.tar.gz --output /usr/src/showcase/showcase-"${SHOWCASE_VERSION}"-linux-amd64.tar.gz
71+
pushd /usr/src/showcase/
72+
tar -xf showcase-*
73+
./gapic-showcase run &
74+
75+
# Run showcase tests with `native` profile
76+
popd
77+
pushd showcase
78+
mvn test -Pnative,-showcase -Denforcer.skip=true -ntp -B
79+
popd
80+
81+
### Round 4
6482
# Run the updated java-shared-dependencies BOM against google-cloud-java
6583
pushd google-cloud-java
6684
source ./.kokoro/common.sh
6785
RETURN_CODE=0
6886
setup_application_credentials
6987
setup_cloud "$MODULES_UNDER_TEST"
7088
run_graalvm_tests "$MODULES_UNDER_TEST"
89+
90+
91+
7192
exit $RETURN_CODE

renovate.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"datasourceTemplate": "maven"
2929
},
3030
{
31-
"fileMatch": ["^\\.github/workflows/.*\\.yaml$"],
32-
"matchStrings": ["SHOWCASE_VERSION: (?<currentValue>.+?)\\n"],
31+
"fileMatch": ["^\\.kokoro/presubmit/.*\\.sh"],
32+
"matchStrings": ["SHOWCASE_VERSION=(?<currentValue>.+?)\\n"],
3333
"datasourceTemplate": "go"
3434
},
3535
{

0 commit comments

Comments
 (0)