Pingperf test failed to build the local docker image, but test didn't exit
- Dominant language
- HTML
- Stars
- 155
- Forks
- 346
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 36
Description
When building the local docker image, since the arch was not supported, so exited with 1 ([link](hyc_jenkins/job/Test_openjdk21_j9_dev.external_aarch64_linux_imageUpload/14/)).
```
13:00:43 + case "${ARCH}" in
13:00:43 + echo 'Unsupported arch: aarch64'
13:00:43 Unsupported arch: aarch64
13:00:43 + exit 1
13:00:44 Error: building at STEP "RUN set -eux; set -eux; ARCH="$(uname -m)"; case "${ARCH}" in amd64|x86_64) ESUM='e52dbc5513d83f4823e0a7bb317a6aeda8b87aef4f2b951eae9541d4b301a061'; BINARY_URL='https://github.com/ibmruntimes/semeru21-binaries/releases/download/jdk-21%2B35_openj9-0.42.0-m0/ibm-semeru-open-jdk_x64_linux_21_35_openj9-0.42.0-m0.tar.gz'; ;; ppc64el|ppc64le) ESUM='4971910522c00909c20b29d7684a0c5b385e97006b628236aa21252502edc1e1'; BINARY_URL='https://github.com/ibmruntimes/semeru21-binaries/releases/download/jdk-21%2B35_openj9-0.42.0-m0/ibm-semeru-open-jdk_ppc64le_linux_21_35_openj9-0.42.0-m0.tar.gz'; ;; *) echo "Unsupported arch: ${ARCH}"; exit 1; ;; esac; mkdir -p /opt/java/java-ea;": while running runtime: exit status 1
```
However, the test didn't exit, and continue to build the next image, so it failed to find the local docker image, then look for docker registries for it:
```
13:00:44 [1/2] STEP 1/8: FROM local-ibm-semeru-runtimes:latest AS getRuntime
13:00:44 Resolving "local-ibm-semeru-runtimes" using unqualified-search registries (/etc/containers/registries.conf)
13:00:44 Trying to pull registry.access.redhat.com/local-ibm-semeru-runtimes:latest...
13:00:46 Trying to pull registry.redhat.io/local-ibm-semeru-runtimes:latest...
13:00:46 Trying to pull docker.io/library/local-ibm-semeru-runtimes:latest...
13:00:47 Error: creating build container: 3 errors occurred while pulling:
```
We need to add the function to stop the test if the first step of building local image fails.
Contributor guide
Research direction
Locate the Pingperf test entry point and the code that builds the first local Docker image. Trace how that build's nonzero exit status is handled; done means the test stops immediately after the local image build fails instead of attempting the next image or pulling the missing image from registries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, shell
- Domain
- build-system, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100