Skip to content

fix(cli): skip local vector bucket seeding when routes are unavailable#5512

Draft
jgoux wants to merge 1 commit into
developfrom
fix/local-vector-bucket-seeding
Draft

fix(cli): skip local vector bucket seeding when routes are unavailable#5512
jgoux wants to merge 1 commit into
developfrom
fix/local-vector-bucket-seeding

Conversation

@jgoux

@jgoux jgoux commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

What changed

Local bucket seeding now treats a 404 from POST /storage/v1/vector/ListVectorBuckets as a local vector-route-unavailable case. The command skips vector bucket seeding with a warning that tells users to restart their local stack and retry.

Why

The local storage image can include vector route source while a currently running storage container does not have /vector/* routes registered. Declarative schema and local stack flows can indirectly seed configured vector buckets, so that runtime 404 should not abort unrelated local workflows.

@jgoux jgoux marked this pull request as ready for review June 8, 2026 15:07
@jgoux jgoux requested a review from a team as a code owner June 8, 2026 15:07
@coveralls

coveralls commented Jun 8, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 27149869785

Coverage decreased (-0.005%) to 64.309%

Details

  • Coverage decreased (-0.005%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 8 coverage regressions across 2 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

8 previously-covered lines in 2 files lost coverage.

File Lines Losing Coverage Coverage
internal/utils/git.go 5 53.33%
internal/seed/buckets/buckets.go 3 75.41%

Coverage Stats

Coverage Status
Relevant Lines: 16161
Covered Lines: 10393
Line Coverage: 64.31%
Coverage Strength: 7.05 hits per line

💛 - Coveralls

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Supabase CLI preview

npx --yes https://pkg.pr.new/supabase@5512

Preview package for commit 0e47b59.

@jgoux jgoux force-pushed the fix/local-vector-bucket-seeding branch from 4c1d64a to 0e47b59 Compare June 8, 2026 15:53
@jgoux jgoux changed the title fix(cli): skip local vector bucket seeding when routes are disabled fix(cli): skip local vector bucket seeding when routes are unavailable Jun 8, 2026
@jgoux jgoux marked this pull request as draft June 8, 2026 15:54
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