Skip to content

fix(ci): check loaded images with docker image inspect - #490

Merged
hossain-rayhan merged 1 commit into
documentdb:mainfrom
hossain-rayhan:rayhan/fix-setup-image-check
Nov 5, 2026
Merged

hossain-rayhan merged 1 commit into
documentdb:mainfrom
hossain-rayhan:rayhan/fix-setup-image-check

Conversation

@hossain-rayhan

Copy link
Copy Markdown
Collaborator

Summary

setup-test-environment checked the loaded operator and sidecar images with docker images --format … | grep -q "$IMAGE". Composite bash steps run with -eo pipefail. When grep -q finds the match it exits immediately; docker images can then fail writing to the closed pipe (SIGPIPE), and pipefail makes 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) logged Loaded image: …/operator:0.2.0-test-41521111375-arm64 and then ❌ Required operator image not found for the same tag. Through matrix fail-fast, that cancelled every other E2E job.

Change

Use docker image inspect "$IMAGE" >/dev/null 2>&1, which has no pipeline.

Testing

  • Reproduced the mechanism locally: under bash -eo pipefail, { seq 1 200000; echo target; } | grep -q "^1$" reports a miss 200/200 times.
  • docker image inspect returns success for a present image and failure for a missing one under -eo pipefail.
  • The action YAML parses.

This unblocks a green E2E run on main for the 1.1.0 release gate.

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]>
Copilot AI balanced review requested due to automatic review settings November 2, 2026 21:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 inspect checks.
  • 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

@documentdb-triage-tool documentdb-triage-tool Bot added bug Something isn't working CI/CD labels Nov 3, 2026
@documentdb-triage-tool

Copy link
Copy Markdown

🤖 Auto-triaged by documentdb-triage-tool.

Applied: CI/CD, bug
Project fields suggested: Component ci · Priority P1 · Effort S · Status Needs Review
Confidence: 0.95 (mixed)

Reasoning

effort 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 @patty-chow so the rules can be tuned. The bot will not re-label items that already have component labels.

@hossain-rayhan
hossain-rayhan merged commit f6af3d1 into documentdb:main Nov 5, 2026
101 of 104 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants