Commit ca7d3f3
authored
fix(ci): pin supabase CLI to 2.105.0 — v2.106.0 breaks local gen types (#298)
* fix(ci): pin supabase CLI to 2.105.0 — v2.106.0 breaks local gen types
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.
* fix(ci): de-flake CLI telemetry race in the function-serve step
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.1 parent 611ded9 commit ca7d3f3
1 file changed
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
| |||
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
36 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
37 | 47 | | |
38 | 48 | | |
39 | 49 | | |
| |||
53 | 63 | | |
54 | 64 | | |
55 | 65 | | |
56 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
57 | 71 | | |
58 | 72 | | |
59 | 73 | | |
| |||
81 | 95 | | |
82 | 96 | | |
83 | 97 | | |
| 98 | + | |
| 99 | + | |
84 | 100 | | |
85 | 101 | | |
86 | 102 | | |
| |||
90 | 106 | | |
91 | 107 | | |
92 | 108 | | |
93 | | - | |
| 109 | + | |
| 110 | + | |
94 | 111 | | |
95 | 112 | | |
0 commit comments