Skip to content

test(cli): resolve e2e images via the production resolver - #6049

Merged
Coly010 merged 1 commit into
supabase:developfrom
7ttp:fix/ts-ensure-image-resolver
Aug 4, 2026
Merged

test(cli): resolve e2e images via the production resolver#6049
Coly010 merged 1 commit into
supabase:developfrom
7ttp:fix/ts-ensure-image-resolver

Conversation

@7ttp

@7ttp 7ttp commented Aug 3, 2026

Copy link
Copy Markdown
Member

TL;DR

Follow-up to the design note on #6030: tests/helpers/docker-image.ts hand-rolled ~130 lines of the candidate/cache-check/retry algorithm that already exists as legacyMakeDockerImageResolver, so the two could silently drift. The helper now
drives the production resolver through a real ChildProcessSpawner, and the one
piece that couldn't move, #6030's per-candidate budget split, which stops a stalled registry starving
the ECR → GHCR → Docker Hub fallbacks, is ported into
the resolver as an opt-in deadline. One implementation of everything; nothing left to drift....

The deadline is inert in production: both callers pass one argument, every new path is gated on it, and the pre-existing resolver tests pass untouched — the only other production edit reverts #6030's export-widening of the retry
constant. The helper keeps only test policy (memoization, serialized resolves, a docker-CLI probe, a wedged-daemon backstop), with unit coverage it never had...

Refs

basically fixes: (ss) image

@7ttp
7ttp requested a review from a team as a code owner August 3, 2026 21:45
@7ttp

7ttp commented Aug 3, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: cb43ccd0c4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@7ttp 7ttp self-assigned this Aug 3, 2026
@Coly010
Coly010 added this pull request to the merge queue Aug 4, 2026
Merged via the queue into supabase:develop with commit d602f48 Aug 4, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants