ci: make Azure emulator Docker pulls resilient#10191
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR hardens the Azure provider CI jobs against flaky/blocked pulls from Microsoft Container Registry by centralizing emulator image references, pinning them by digest, and adding a reusable pull retry/backoff helper before container startup.
Changes:
- Centralized Azurite, Event Hubs emulator, and Cosmos DB emulator image references as workflow-level env vars and pinned Azurite/Event Hubs by digest.
- Added a shared
docker pullretry/backoff script and switched manualdocker runinvocations to--pull=neverafter a successful pull. - Made emulator container cleanup best-effort so teardown failures don’t mask test/startup failures.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/ci.yml | Centralizes emulator image refs, uses pull-with-retry before docker run --pull=never, and makes cleanup best-effort. |
| .github/scripts/docker-pull-with-retry.sh | New Bash helper providing retry/backoff for docker pull operations. |
| .gitattributes | Ensures LF line endings for GitHub Actions Bash helper scripts. |
Copilot's findings
- Files reviewed: 3/3 changed files
- Comments generated: 0
This was referenced Jun 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes CI flakes in Azure provider jobs caused by blocked or denied Microsoft Container Registry pulls for emulator images.
The workflow now centralizes the Docker image references at the workflow env level, pins Azurite and the Event Hubs emulator by digest, preserves the existing Cosmos DB emulator digest pin, and pulls each manual
docker runimage through a shared retry/backoff helper before starting containers with--pull=never.Cleanup remains best-effort so teardown errors do not mask the original startup or test failure, and the centralized image variables make it straightforward to switch to GHCR mirrors later.
Microsoft Reviewers: Open in CodeFlow