Skip to content

Commit 367f2c4

Browse files
authored
test(itest): ensure correct latest built image is tested (#1572)
* test(itest): never pull Cryostat container from registry, require one present locally * test(itest): use os/arch-specific image tag for testing * test(run.sh): include image os/arch in default image to run * remove bad image version override
1 parent c675a2e commit 367f2c4

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/ci-build-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
with:
116116
step: restore
117117
- name: Run integration tests
118-
run: POD_NAME=cryostat-itests CONTAINER_NAME=cryostat-itest ITEST_IMG_VERSION=latest bash repeated-integration-tests.bash
118+
run: POD_NAME=cryostat-itests CONTAINER_NAME=cryostat-itest bash repeated-integration-tests.bash
119119
- name: Print itest logs
120120
if: failure()
121121
run: ls -1dt target/cryostat-itest-*.log | head -n1 | xargs cat

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@
550550
<executable>${imageBuilder}</executable>
551551
<arguments>
552552
<argument>run</argument>
553+
<argument>--pull=never</argument>
553554
<argument>--pod=${cryostat.itest.podName}</argument>
554555
<argument>--name=${cryostat.itest.containerName}</argument>
555556
<argument>--health-cmd</argument>
@@ -614,7 +615,7 @@
614615
<argument>GRAFANA_DASHBOARD_URL=http://${cryostat.itest.webHost}:${cryostat.itest.grafana.port}</argument>
615616
<argument>--detach</argument>
616617
<argument>--rm</argument>
617-
<argument>${cryostat.imageStream}:${cryostat.imageVersionLower}</argument>
618+
<argument>${cryostat.imageStream}:${cryostat.imageVersionLower}-${build.os}-${build.arch}</argument>
618619
</arguments>
619620
<skip>${skipITs}</skip>
620621
</configuration>

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ cleanup() {
2424
trap cleanup EXIT
2525

2626
if [ -z "$CRYOSTAT_IMAGE" ]; then
27-
CRYOSTAT_IMAGE="quay.io/cryostat/cryostat:$(${MVN} validate help:evaluate -o -B -q -DforceStdout -Dexpression=cryostat.imageVersionLower)"
27+
CRYOSTAT_IMAGE="quay.io/cryostat/cryostat:$(${MVN} validate help:evaluate -o -B -q -DforceStdout -Dexpression=cryostat.imageVersionLower)-$(getPomProperty build.os)-$(getPomProperty build.arch)"
2828
fi
2929

3030
printf "\n\nRunning %s ...\n\n", "$CRYOSTAT_IMAGE"

0 commit comments

Comments
 (0)