Skip to content

fix(ci): pin the Supabase CLI back to 2.117.0, and let a CLI bump trigger the job it breaks - #950

Merged
thinkclay merged 1 commit into
mainfrom
fix/pin-supabase-cli-2117
Oct 2, 2026
Merged

thinkclay merged 1 commit into
mainfrom
fix/pin-supabase-cli-2117

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

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 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 — 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 21b4dd300 passed — 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.yml is path-filtered to functions/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.yaml and scripts/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 types output 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 prepush green; both workflow path blocks parse.

🤖 Generated with Claude Code

…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]>
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

📊 Performance Benchmark Results


@thinkclay
thinkclay merged commit 7cd05e0 into main Oct 2, 2026
15 checks passed
@thinkclay
thinkclay deleted the fix/pin-supabase-cli-2117 branch October 2, 2026 19:20
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.

1 participant