Repository navigation
fix(ci): pin the Supabase CLI back to 2.117.0, and let a CLI bump trigger the job it breaks - #950
Merged
Merged
Conversation
…gger the job it breaks #936 bumped the Supabase CLI 2.117.0 -> 2.118.0. 2.118.0 includes "rewrite managed local stack runtime" (supabase/cli#6440), and after it the api-tests step that runs `supabase gen types typescript --local` fails: no owned schemas found in /tmp/types-fresh.ts — the format changed, or the file is empty scripts/types-owned-schemas.mjs matches top-level schema blocks with `/^ {2}(\w+): \{$/`, so a change in the generated file's shape breaks it. ## How this was established It surfaced on #949, an unrelated id-verification change, and read as that PR's fault. Two runs failed identically at the same step. A control re-run of main's own api-tests at 21b4dd3 — which predates the bump — passed, which first looked like it convicted #949. It did not: that control commit is nine commits behind, and the gap contains #936. Nothing schema-related changed in between, and a TypeScript route file cannot affect a generator that introspects the database. ## Why nobody saw it on main api-tests is path-filtered to `functions/api/**`, migrations, `types.ts` and a couple of scripts. A CLI bump touches none of those, so the job has not run on main since 2026-10-01 — before the bump. main has been broken and silent. So the filter is widened: `pnpm-workspace.yaml`, `pnpm-lock.yaml` and `scripts/types-owned-schemas.mjs` now trigger it. The job shells out to the Supabase CLI; a change to the pin that selects that CLI is a change to the job. This is the same shape as #929 — a gate that could not run on the thing it guards — and the third time this session a path filter has hidden a broken check from itself. The cost is CI minutes on dependency PRs, which is the trade I declined in #929 for a cheap ratchet and accept here for a job that boots a full stack and is the only HTTP coverage the api has. ## Pin, not adapt Reverting is the conservative move and restores green now. Whether 2.118's `gen types` output is a deliberate format change or a side effect of the stack rewrite wants its own look, with the job actually run against it — the comment at the pin says so. Not independently reproduced locally: no stack was running and this checkout has 2.116.0, so the mechanism is inferred from the release contents, the error text and the control. If this PR goes green, that is the proof — it touches `pnpm-workspace.yaml`, which the widened filter now makes run api-tests. Co-Authored-By: Claude Opus 5 <[email protected]>
Contributor
📊 Performance Benchmark Results |
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.
main is broken and silent. #936 bumped the Supabase CLI 2.117.0 → 2.118.0, which includes
feat(stack): rewrite managed local stack runtime(supabase/cli#6440). After it, the api-tests step that runssupabase gen types typescript --localfails:scripts/types-owned-schemas.mjsmatches top-level schema blocks with/^ {2}(\w+): \{$/, so a change in the generated file's shape breaks it.How this was established — I got it wrong twice first
It surfaced on #949, an unrelated id-verification change, and read as that PR's fault. I said I'd treat a second identical failure as my change rather than the environment. Two runs failed identically at the same step.
A control re-run of main's own api-tests at
21b4dd300passed — which looked like it convicted #949.It didn't. That control commit is nine commits behind main, and the gap contains #936. Nothing schema-related changed in between, and a TypeScript route file cannot affect a generator that introspects the database. The control had quietly tested the old CLI.
Why nobody saw it on main
api-tests.ymlis path-filtered tofunctions/api/**, migrations,types.ts,tests/**and a couple of scripts. A CLI bump touches none of them, so the job has not run on main since 2026-10-01 — before the bump.So the filter now also includes
pnpm-workspace.yaml,pnpm-lock.yamlandscripts/types-owned-schemas.mjs. The job shells out to the Supabase CLI; a change to the pin that selects that CLI is a change to the job.This is the same shape as #929 and the third time this session a path filter has hidden a broken check from itself. The cost is CI minutes on dependency PRs — the trade I explicitly declined in #929 for a cheap 15-second ratchet, and accept here for a job that boots a full stack and is the only HTTP coverage the api has.
Pin rather than adapt
Reverting is conservative and restores green now. Whether 2.118's
gen typesoutput is a deliberate format change or a side effect of the stack rewrite deserves its own look, with the job actually run against it. The comment at the pin says so, and says what to check before moving it forward again.This PR is its own proof
Not independently reproduced locally — no stack was running and this checkout has 2.116.0, so the mechanism is inferred from the release contents, the error text, and the control.
But this PR touches
pnpm-workspace.yaml, which the widened filter now makes run api-tests. If it goes green, that is the proof: the only change is the CLI version. If it fails the same way, my diagnosis is wrong and #949 is back under suspicion.pnpm prepushgreen; both workflow path blocks parse.🤖 Generated with Claude Code