Repository navigation
fix(ci): check loaded images with docker image inspect - #490
Conversation
The setup action verified the operator and sidecar images with `docker images ... | grep -q`. Composite bash steps run with `-eo pipefail`, so when grep -q exits on the first match, docker images can fail with SIGPIPE and the pipeline reports a loaded image as missing. This intermittently failed E2E setup (e.g. E2E feature (arm64) on 7951db3) and, through fail-fast, cancelled the rest of the matrix. Use `docker image inspect`, which has no pipeline. Co-authored-by: Copilot <[email protected]> Copilot-Session: 6c85cd4b-f086-46f7-8823-7e63c33e4de7 Signed-off-by: Rayhan Hossain <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the Docker image-check changes.
No open issues 🎉
What changed in this PR
This PR fixes intermittent E2E setup failures caused by image-check pipelines reporting loaded Docker images as missing under Bash’s pipefail.
Changes:
- Replaces operator and sidecar image-list pipelines with direct
docker image inspectchecks. - Adds a comment explaining the SIGPIPE failure mechanism avoided by these checks.
| File | Description |
|---|---|
.github/actions/setup-test-environment/action.yml |
Checks required images directly, avoiding pipeline-related false failures. |
Review effort: Balanced
|
🤖 Auto-triaged by documentdb-triage-tool. Applied: Reasoningeffort from diff stats (6+2 LOC, 1 files); LLM: Intermittent SIGPIPE/pipefail race in CI image-check causes false negatives that cancel entire E2E matrix via fail-fast, blocking the 1.1.0 release gate. If a label is wrong, remove it manually and ping |
Summary
setup-test-environmentchecked the loaded operator and sidecar images withdocker images --format … | grep -q "$IMAGE". Compositebashsteps run with-eo pipefail. Whengrep -qfinds the match it exits immediately;docker imagescan then fail writing to the closed pipe (SIGPIPE), andpipefailmakes the pipeline fail, so a loaded image is reported as missing.This intermittently fails E2E setup. On
7951db3(TEST - E2E run 41521111375),E2E feature (arm64)loggedLoaded image: …/operator:0.2.0-test-41521111375-arm64and then❌ Required operator image not foundfor the same tag. Through matrixfail-fast, that cancelled every other E2E job.Change
Use
docker image inspect "$IMAGE" >/dev/null 2>&1, which has no pipeline.Testing
bash -eo pipefail,{ seq 1 200000; echo target; } | grep -q "^1$"reports a miss 200/200 times.docker image inspectreturns success for a present image and failure for a missing one under-eo pipefail.This unblocks a green E2E run on
mainfor the 1.1.0 release gate.