fix(ci): pin supabase CLI to 2.105.0 — v2.106.0 breaks local gen types#298
Merged
Conversation
supabase CLI v2.106.0 (released 2026-06-11 12:01 UTC) ported `gen types` to the new TypeScript CLI (supabase/cli#5514); the ported command demands an access token even for `--local` generation, so the types-drift step fails with "Access token not provided" on runners without SUPABASE_ACCESS_TOKEN. Both jobs installed `version: latest` and picked the release up within minutes (PR #297's run, two minutes after publish). Pin both setup-cli steps to 2.105.0 (last release before the port) and bump deliberately once upstream restores token-free local generation.
The verify job's readiness poll resolved API_URL with a third
`supabase status` call that runs concurrently with the backgrounded
`functions serve`. The two CLI processes can race on
~/.supabase/telemetry.json ("error: NotFound: FileSystem.rename"),
crashing status, leaving API_URL empty, and failing the poll with
HTTP 000 for 30s (observed on this PR's first run; main passed the
same script 40 minutes earlier — nondeterministic).
Reuse the URL already captured into .env.local instead of calling
status again, and set DO_NOT_TRACK=1 job-wide — the CLI's documented
telemetry opt-out — so no two CLI invocations contend on the
telemetry file anywhere in the job.
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.
CI on #297 failed at the types-drift step with
Access token not providedfromsupabase gen types typescript --local— a command that needs no token.Cause: supabase CLI v2.106.0 (published 2026-06-11 12:01 UTC, two minutes before the failing run) ported
gen typesto the new TypeScript CLI (supabase/cli#5514), and the ported version demands an access token even for--localgeneration. Both CI jobs installversion: latest, so the regression landed the moment upstream released. Main's run at 11:39 (pre-release, v2.105.0) passed the identical step.Fix: pin both
supabase/setup-clisteps to 2.105.0 — the last release before the port — with a comment stating the unpin condition. This also removes weather-dependence from CI generally; future CLI bumps become deliberate.Once merged, re-running #297's checks picks the pin up automatically (PR CI runs against the merge ref).