Repository navigation
chore(repo): sync develop into next #7198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
cfcff5a
ci(cli): fail mirror detection on registry errors instead of re-pushi…
jgoux 724ce54
chore(stack): bump storage to v1.83.5-r0 (#7197)
supabase-cli-releaser[bot] 31b7b4f
Merge remote-tracking branch 'origin/next' into sync/develop-into-next
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 MINOR ·
error-handling· source: claudeBackfilling a previously nonexistent mirror repository may fail if GHCR or ECR Public reports its absence as an authorization or repository-unknown error rather than stderr ending in ': not found'. The detector throws for those responses, preventing the mirror job from running.
Evidence: apps/cli/scripts/detect-unmirrored-images.ts:77-83 accepts successful probes and ': not found' failures only. Errors propagate through partitionUnmirroredImages at lines 52-59 and its top-level invocation at line 101. .github/workflows/mirror-template-images.yml:40-68 grants packages:read, logs into GHCR, and runs detection without an ECR login; lines 70-83 make mirroring depend on detection. detect-unmirrored-images.unit.test.ts:64-78 covers a synthetic not-found response and a network timeout, but no actual missing-repository response.
Suggested fix: Capture missing-repository responses from both registries under the workflow's authentication conditions. Add regression cases for any verified absence responses and handle them narrowly while retaining failures for genuine authentication, rate-limit, and network errors.
Adjudication (uncertain): The surrounding code confirms that any nonmatching error aborts detection and prevents backfilling. However, neither the implementation nor its tests establishes that GHCR or ECR Public returns the alleged authorization or repository-unknown response for an absent repository under these credentials. No registry reproduction was performed, so the central premise cannot be confirmed or refuted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
developadded this strict error handling indetect-unmirrored-images.tsin #7194, so the merge did not introduce it and it is out of scope for this sync. If GHCR or ECR Public really do report missing repositories in another way, a follow-up PR againstdevelopshould handle that.