Repository navigation
chore: production deploy - #7653
Merged
Merged
Conversation
supabase-cli-releaser
Bot
commented
Nov 17, 2026
Contributor
- feat(cli): build the Swift generator from source with @supabase/typegen 0.4.0 (feat(cli): build the Swift generator from source with @supabase/typegen 0.4.0 #7608)
- chore(stack): bump storage to v1.96.2-r0 (chore(stack): bump storage to v1.96.2-r0 #7651)
…en 0.4.0 (#7608) ## Summary `supabase gen types --lang swift` now builds the `supabase-typegen` generator from supabase-swift's source, through `@supabase/typegen` 0.4.0 (SDK-3045, supabase/sdk#361). This PR does two things: 1. **Passes `HOME` and `XDG_CACHE_HOME` to the Swift driver.** The driver reads them from the filtered environment the generator layer gives it, to find its cache of built binaries. Before this PR, the layer passed only `PATH`, `PATHEXT` and `ComSpec`. The cache path became relative and resolved against the working directory, so binaries landed inside the user's project. Other languages do not change: the spawned tool already inherits the full environment, and the Dart driver reads nothing from this object. 2. **Bumps `@supabase/typegen` from 0.3.4 to 0.4.0.** With it, the Swift driver: - builds `supabase-typegen` from source at a supabase-swift commit, and caches the binary by commit. It no longer downloads a prebuilt binary; - picks the commit from the new `--swift-typegen-source <version|branch|sha|path>` flag, else from the supabase-swift pin in the nearest `Package.resolved`, else from the latest 3.x release (with a notice on stderr); - drops `SUPABASE_TYPEGEN` and the `PATH` fallback. The flag's local-path form covers what `SUPABASE_TYPEGEN` did. The CLI needs no code for the new flag. It renders language flags from the registry's option specs, so `--swift-typegen-source` appears with the bump, like `--swift-access-control`. Like every language flag, it is in the mutex group with `--remote`, `--linked` and `--project-ref`. The driver change is not marked as breaking. The Swift generator is still alpha in supabase-swift, so 0.4.0 is a minor bump. ## Linked issue Linear: CLI-3138 (replaces CLI-3134). Driver: SDK-3045. - [x] The linked issue is **open** and carries the `open-for-contribution` label (or I'm a Supabase maintainer). ## How it was tested - End to end, with the CLI from this branch (`bun apps/cli/src/main.ts gen types --lang swift --db-url …`), a Postgres 17 container with a table, an enum, a view and a function, and Swift 6.4 on macOS. The cache was a fresh `XDG_CACHE_HOME`. | Case | Result | | -- | -- | | `--swift-typegen-source main`, no `Package.resolved` | Built supabase-swift `main` (`f4f132a`) from source in 212 s, cached it, and printed the `@Table` structs, the enum and the function. | | Same, again, with `--swift-access-control public` | Used the cached binary in 2 s. The output is `public`. | | `Package.resolved` two levels up pins `main` at `f4f132a` | `Using branch main at f4f132a…, pinned in ../../Package.resolved.` Cached, 2 s, same output. | | No pin, no flag | Fails: supabase-swift has no 3.x release yet. The message names `--swift-typegen-source`. | | `--swift-typegen-source f4f132a` | Fails before git runs: an abbreviated SHA is refused. | | `--swift-typegen-source 3.0.0-alpha.1` | Fails: no tag `v3.0.0-alpha.1` yet. | | `--swift-typegen-source ./supabase-swift` (a clone) | Built in the checkout in 203 s. Same output as the other builds. The checkout has no git changes after the build. | No run wrote files into the project folders, and no scratch folders were left in `$TMPDIR`. - Unit and integration tests: - `types.generator.integration.test.ts` runs a fake `supabase-typegen` from the cache under `XDG_CACHE_HOME`, and under `HOME`. The cache is now keyed by the pinned commit SHA. - `types.integration.test.ts` checks that `--swift-typegen-source` reaches the generator, and that it is rejected with `--project-ref`. - `types.generator.unit.test.ts` checks that only the Swift generator gets the flag. - All unit tests pass (7655). The integration tests for `src/commands/gen` pass (271). - In the full integration run, 3 TLS tests in `db-connection.sql-pg.integration.test.ts` fail on my machine. They passed in CI on the previous head, and this PR does not touch that code. A compute logs test failed once and passes when run alone. - `oxfmt`, `oxlint`, `tsc` and `knip` are clean. A frozen `pnpm install` passes. ## Checklist - [x] The PR title follows [Conventional Commits](https://www.conventionalcommits.org/) (e.g. `fix(cli): …`). - [x] Tests added or updated for the change. - [x] Relevant package tests pass for every touched workspace, and the touched TypeScript workspace type-checks. Locally, `lint:check`, `fmt:check` and `knip:check` pass. `lint:actions:check` did not run, because `jactionlint` is not installed, and this PR changes no workflow. ## Why now supabase-swift v3 launches as Public Alpha on 2026-12-11. Its demo flow is `supabase gen types --lang swift`. This PR must ship in a CLI release before that date. <!-- ci retrigger --> --------- Co-authored-by: Andrew Valleteau <avallete@users.noreply.github.com> Co-authored-by: avallete <8771783+avallete@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This bumps storage from v1.96.0-r0 to v1.96.2-r0. https://github.com/supabase/slim-services/releases/tag/storage-v1.96.2-r0 Planned after supabase/slim-services published v1.96.2-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
supabase-cli-releaser
Bot
requested a review
from supabase-oss
as a code owner
November 17, 2026 02:16
This bumps realtime from v2.167.0-r0 to v2.168.0-r0. https://github.com/supabase/slim-services/releases/tag/realtime-v2.168.0-r0 Planned after supabase/slim-services published v2.168.0-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
`functions deploy`, `projects create` and `bootstrap` call the Management API with `executeRaw` and build their own status errors, so a plan-gate denial (`entitlement_required`) reached the user without the upgrade hint, the JSON `error.entitlement` or the `cli_upgrade_suggested` event that `mapHttpError` callers already get. I moved the envelope read into one shared function, `planGateFromResponse`, and both paths now use it. **Changed:** - **Plan-gated project create**: I made `projects create` and `bootstrap` (which shares the create step) handle a 4xx that carries the envelope: each prints the upgrade hint once, adds `entitlement` to the JSON error, fires `cli_upgrade_suggested` and classifies the error as `plan_limit`. - **Plan-gated function deploy**: I applied the same handling to function create, update, API deploy and bulk update. - **`mapHttpError`**: I switched it to read the envelope from the body text it already holds, through the same shared function. Its behavior is unchanged. **Note:** a `--use-api` deploy of several functions still reports its failures as one aggregate error with no entitlement. I left that path for a follow-up. ## Linear - fixes GROWTH-1484
The gateway CORS live test intermittently failed on the live job in two ways, both from a brief 403 on the freshly created staging project: - Staging answered the two \`OPTIONS /rest/v1/\` probes with a bare 403 and no CORS headers, so the stack-versus-staging comparison failed. - \`functions deploy\` got a 403 from the Management API's list-functions call. The staging readiness gate now also waits for both REST preflight probes to stop answering 403 before staging is recorded, and \`functions deploy\` is retried (5s apart, up to 12 times) when it fails with a 403. Other deploy failures still fail immediately, and the stack-versus-staging assertion is unchanged. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
This bumps postgrest from v16.5-r0 to v16.6-r0. https://github.com/supabase/slim-services/releases/tag/postgrest-v16.6-r0 Planned after supabase/slim-services published v16.6-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## TL;DR The routed-peer plain probe now ignores SIGPIPE, so it reports the proxy's close instead of dying. - `HttpProxy.integration.test.ts › gives a routed peer inside the bridge network no plain byte, but TLS`: the namespace `bash` probe failed with `Process interrupted due to receipt of signal: 'SIGPIPE'`. The proxy closes a plain connection from a non-loopback peer. When that close arrives before `printf >&3` writes the request, bash dies of SIGPIPE, and the `&&` chain never reaches the read. The probe now uses the api.tls probe pattern from #7590: `trap '' PIPE`, a write that can fail without stopping the chain, and the read that reports the close. ## ref spotted in: https://github.com/supabase/cli/actions/runs/43972802044/job/133669050994 --- _Generated by [Claude Code](https://claude.ai/code/session_01MBEk1LoYxzbfzYDtuz4z4F)_ Co-authored-by: Claude <noreply@anthropic.com>
This PR was automatically created to sync the generated `@supabase/api` package with the latest Management API OpenAPI document. Changes were detected in the upstream OpenAPI documents exposed by `https://api.supabase.com/api/v1-json` and `https://api.supabase.com/api/v2-json`. Co-authored-by: jgoux <1443499+jgoux@users.noreply.github.com>
This bumps storage from v1.96.2-r0 to v1.96.3-r0. https://github.com/supabase/slim-services/releases/tag/storage-v1.96.3-r0 Planned after supabase/slim-services published v1.96.3-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This bumps realtime from v2.168.0-r0 to v2.170.0-r0. https://github.com/supabase/slim-services/releases/tag/realtime-v2.170.0-r0 Planned after supabase/slim-services published v2.169.0-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This bumps storage from v1.96.3-r0 to v1.96.4-r0. https://github.com/supabase/slim-services/releases/tag/storage-v1.96.4-r0 Planned after supabase/slim-services published v1.96.4-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## Summary The published config schema (`https://supabase.com/schemas/config/v1.json`) sets `additionalProperties: false` at the root but never declared `$schema`. VS Code's JSON validator doesn't exempt `$schema`, so a `config.json` or `config.jsonc` that points at our schema shows `Property $schema is not allowed.` on that line. The same applies to a top-level `$schema` key in TOML for editors that read the schema. The CLI itself already accepts the key; only the editor schema rejected it. This declares `$schema` as the first root property: an optional string with the hosted URL in `examples`. `examples` still gives completions in VS Code and a hint to agents reading the schema, without rejecting other values such as a local copy or a `node_modules` path. `CliConfigSchema` is unchanged, so `$schema` doesn't become a decoded config field. - `toCliConfigJsonSchema()` adds the property - `apps/cli/schemas/config/v1.json` is regenerated with `pnpm build` (config) and `pnpm schemas:generate` (cli). The diff is only the new property; project-config and lock outputs are unchanged - A new unit test checks the property shape, that it isn't required, and validates a document with `$schema` against the published schema via the existing Ajv helper The lock schema's `$schema` handling is discussed separately in CLI-3145. ## Linked issue No issue; found while discussing CLI-3145. - [x] The linked issue is **open** and carries the `open-for-contribution` label (or I'm a Supabase maintainer). ## Checklist - [x] The PR title follows [Conventional Commits](https://www.conventionalcommits.org/) (e.g. `fix(cli): …`). - [x] Tests added or updated for the change. - [x] From the repository root, `pnpm check:all` passes; relevant package tests pass for every touched workspace, and `pnpm types:check` passes for each touched TypeScript workspace (or workspace declaring it).
This bumps pgmeta from v0.100.0-r0 to v0.100.1-r0. https://github.com/supabase/slim-services/releases/tag/pgmeta-v0.100.1-r0 Planned after supabase/slim-services published v0.100.1-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
… release (#7666) ## What Moves the `supabase/setup-cli` smoke test out of the release pipeline and into a daily scheduled workflow. ## Why The post-release smoke test installed through setup-cli seconds after the npm publish, while the registry could still serve an older package list. npm then skipped the new `@supabase/cli-<platform>` optional dependency without failing, the npm shim could not find a binary, and setup-cli fell back to the GitHub release. Slack reported this as a setup-cli npm fallback on most releases, although it was only propagation delay and the release itself was fine. ## How - `setup-cli-smoke-test.yml` runs daily. It resolves the newest version on each npm dist-tag that ships the `@supabase/cli-*` platform packages (`latest`, `beta`, `next`, `v<N>.stable`) and skips versions published less than an hour earlier. Each version runs the existing setup-cli v1/v2/v3 matrix on Linux, macOS, Windows and Alpine, plus the forced GitHub release fallback job. - Scheduled runs post to Slack when a job fails or when setup-cli v3 falls back from npm. `workflow_dispatch` with a `version` tests one release without posting. - The release pipeline no longer calls the smoke test: the `setup-cli-smoke` job, its fallback output, and the separate fallback Slack notice are removed, along with the fallback notice on success messages. - `wait-for-npm-version.sh` is removed, since tested versions are already an hour old. - The release process doc describes the daily check. `v2.x` still runs the post-release smoke test from its own copy of the release pipeline; a backport that removes the `setup-cli-smoke` job there stops the same alerts on maintenance releases. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
## TL;DR Owner integration tests that start real services ran on the virtual `TestClock`, so any retry in their path could hang until the test timeout. - `Owner.integration.test.ts › credential lookup leaves a fresh stack untouched for custom database credentials`: hung until its 30s timeout once, green on rerun of the same SHA. The test ran under `it.effect`, whose `TestClock` never advances, while the database readiness probe (`Database.ts`) and the lock and port-reservation acquisitions retry on `Schedule.spaced`. When the first probe or lock attempt failed, the retry waited forever. The tests in this file that do real owner, SQLite, file and process I/O now run under `it.live`, like their siblings. No test in the file relies on virtual time. ## ref spotted in: - https://github.com/supabase/cli/actions/runs/42807806171/job/129801375563 (failing) - https://github.com/supabase/cli/actions/runs/42807806171/job/129803236031 (green rerun) --- _Generated by [Claude Code](https://claude.ai/code/session_01MBEk1Pf3phzjWscZfmvHZY)_ Co-authored-by: Claude <noreply@anthropic.com>
This bumps storage from v1.96.4-r0 to v1.97.0-r0. https://github.com/supabase/slim-services/releases/tag/storage-v1.97.0-r0 Planned after supabase/slim-services published v1.97.0-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## Summary Extend the existing AI review with advisory feedback on changed CLI reference prose, using the Supabase docs team’s current style guide rather than the retired prose linter. A trusted preparation job resolves one upstream revision and supplies the same readable guidance snapshot to both reviewers and adjudication. Findings must quote changed prose and cite a rule at that revision. Retrieval and delivery failures are reported without blocking ordinary code review or claiming a style pass. A local CLI reference skill shares the review procedure without copying upstream style rules. Existing review authorization and trigger behavior remain unchanged. Closes [CLI-2681](https://linear.app/supabase/issue/CLI-2681/apply-upstream-docs-guidance-in-cli-reference-ai-review).
## Summary Validate the generated CLI reference before writing a local preview or starting Git operations for the docs-site PR. The publisher now checks nested document fields and compares command IDs and subcommand links against the documented command tree, replacing the fixed command-count threshold. Missing, duplicate, unexpected, or malformed entries stop publishing with an error. Unlisted and explicitly excluded commands remain outside the reference. Closes [CLI-2680](https://linear.app/supabase/issue/CLI-2680/validate-generated-files-before-pushing).
<!-- Before opening this PR, confirm the linked issue is open and carries the `open-for-contribution` label. PRs from external contributors that don't follow the workflow in CONTRIBUTING.md are closed automatically. @supabase members working from Linear tickets are exempt. --> ## Summary addresses a few `mise` housekeeping tasks that i noticed when running `mise install`: - [x] updates to the recommended backend for `jactionlint` installations - [x] upgrades our `mise.lock` lockfile version - [x] updates our `mise` `min_version` and our `mise` version in CI ## Checklist - [x] The PR title follows [Conventional Commits](https://www.conventionalcommits.org/) (e.g. `fix(cli): …`). - [x] Tests added or updated for the change. - [x] From the repository root, `pnpm check:all` passes; relevant package tests pass for every touched workspace, and `pnpm types:check` passes for each touched TypeScript workspace (or workspace declaring it).
This bumps realtime from v2.170.0-r0 to v2.171.0-r0. https://github.com/supabase/slim-services/releases/tag/realtime-v2.171.0-r0 Planned after supabase/slim-services published v2.171.0-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This PR was automatically created to sync the generated `@supabase/api` package with the latest Management API OpenAPI document. Changes were detected in the upstream OpenAPI documents exposed by `https://api.supabase.com/api/v1-json` and `https://api.supabase.com/api/v2-json`. Co-authored-by: jgoux <1443499+jgoux@users.noreply.github.com>
## Summary Switches the Codex side of the AI review from `gpt-6.1-sol` to `gpt-6.2-sol`. - `.github/ai-models.json`: `codex.sol` is now `gpt-6.2-sol` - `ai-review.yml`: Codex CLI pin goes from 0.159.2 to 0.169.1, the first stable release whose model catalog carries `gpt-6.2-sol` (0.169.0 doesn't have it) The codex-action v1.11 pin and its Dependabot ignore are untouched. `codex-rs/exec/src/cli.rs` only gained flags between 0.159.2 and 0.169.1, so everything the action passes still parses. `effort: high` stays explicit - 6.2-sol's catalog default is `low`. Its default context window is 500k (max 872k), so very large diffs have less headroom than before. This hasn't run against a real PR yet. I'd like a `workflow_dispatch` run on one before we trust it on the automatic path, which also confirms our `OPENAI_API_KEY` has access to the model. ## Linked issue N/A - [x] The linked issue is **open** and carries the `open-for-contribution` label (or I'm a Supabase maintainer). ## Checklist - [x] The PR title follows [Conventional Commits](https://www.conventionalcommits.org/) (e.g. `fix(cli): …`). - [ ] Tests added or updated for the change. - [x] From the repository root, `pnpm check:all` passes; relevant package tests pass for every touched workspace, and `pnpm types:check` passes for each touched TypeScript workspace (or workspace declaring it).
This bumps realtime from v2.171.0-r0 to v2.172.0-r0. https://github.com/supabase/slim-services/releases/tag/realtime-v2.172.0-r0 Planned after supabase/slim-services published v2.171.1-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
## Summary Mirrors supabase/supabase#53589 and refreshes the rest of the mise-managed toolchain: - Node 24 → 26 LTS (26.13.1), including the npm-only publish job in `release-config.yml` - pnpm 12.15.0 → 12.19.0 - jactionlint 2.3.0 → 2.5.0 - `jdx/mise-action` v5.2.2 → v5.2.7 - `mise.lock` regenerated Each version is the newest release past the repository's 7-day cooldown (Dependabot `cooldown` / pnpm `minimumReleaseAge`). mise 2026.11.6, Bun 1.4.4 and shellcheck 0.11.0 are already current under that rule. This touches `.github/actions/setup`, which is release infrastructure, but only the `mise-action` pin changes; `v2.x` does not need a backport.
This bumps storage from v1.98.1-r0 to v1.98.2-r0. https://github.com/supabase/slim-services/releases/tag/storage-v1.98.2-r0 Planned after supabase/slim-services published v1.98.2-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
… live test (#7710) ## Summary The `ssl-enforcement update` live test has failed on every live e2e run since 2026-11-18, on `develop`, `main` and `next` alike, with: ``` database reboot after ssl-enforcement update: the postmaster started at … is still running ``` #7016 made the test wait for a new postmaster after each toggle, because an SSL enforcement change used to restart the database after `ssl-enforcement get` had already reported it applied, and that late restart killed the next live file's `migration up` with `57P01`. The platform now applies the change without a restart: the same `main` commit passed and then failed a day later, and the failing runs show no restart afterwards either. So the wait never ends. This drops the postmaster-start check. The test still proves the toggle through `ssl-enforcement get`, restores the captured posture, and reports toggle and restore failures together. `queryLiveDb`'s handling of a dropped idle client from #7016 stays, since other live tests use it. If the platform goes back to restarting on this change, the original leak would show up again as `57P01` in the next file's `migration up`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This PR was automatically created to sync the generated `@supabase/api` package with the latest Management API OpenAPI document. Changes were detected in the upstream OpenAPI documents exposed by `https://api.supabase.com/api/v1-json` and `https://api.supabase.com/api/v2-json`. --------- Co-authored-by: jgoux <1443499+jgoux@users.noreply.github.com> Co-authored-by: Julien Goux <hi@jgoux.dev>
Removes the per-command `SIDE_EFFECTS.md` files and `apps/cli/src/SIDE_EFFECTS_TEMPLATE.md`. They duplicated what the handlers, tests and user docs already state, and they drifted out of date. - Rationale that existed only in those files now lives next to the code as short comments, or in the existing guides (`apps/cli/docs/compute-commands.md`, `stack-commands.md`, `command-target.md`). - `apps/cli/AGENTS.md` names tests, the error-tag fixture, the telemetry event catalog and shipped behavior as the source of truth. - The automated review prompts judge breaking changes against what the stable release ships and what the tests at the merge base assert, instead of the old `SIDE_EFFECTS.md`. - ADRs are left unchanged as historical records.
This PR was automatically created to sync the generated `@supabase/api` package with the latest Management API OpenAPI document. Changes were detected in the upstream OpenAPI documents exposed by `https://api.supabase.com/api/v1-json` and `https://api.supabase.com/api/v2-json`. Co-authored-by: jgoux <1443499+jgoux@users.noreply.github.com>
This bumps realtime from v2.172.1-r0 to v2.174.0-r0. https://github.com/supabase/slim-services/releases/tag/realtime-v2.174.0-r0 Planned after supabase/slim-services published v2.174.0-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This PR was automatically created to sync the generated `@supabase/api` package with the latest Management API OpenAPI document. Changes were detected in the upstream OpenAPI documents exposed by `https://api.supabase.com/api/v1-json` and `https://api.supabase.com/api/v2-json`. Co-authored-by: jgoux <1443499+jgoux@users.noreply.github.com>
## TL;DR the local gateway no longer drops live connections once more than 512 are open ## prob the local Kong template hard coded its nginx main and events lines, so nginx fell back to 512 `worker_connections` and closed sockets still in use under parallel load ## sol use Kong's own `nginx_main_*` and `nginx_events_*` injection, so `worker_connections` and `worker_rlimit_nofile` follow Kong's `auto` default (up to 16384) also set `KONG_NGINX_USER=nobody` so the restored main loop skips Kong's `user` directive, which nginx ignores with a warning in the non-root image > [!NOTE] > if you applied the workaround from #7734, drop it after upgrading and restarting the stack > > the directives now render by default, and adding them again makes `nginx -t` fail as duplicates ## ref - closes CLI-3166
…7738) ## Summary `convertCliConfigTomlToJsonc` does synchronous text-to-text work, but it returned an Effect and was only exported from `./internal`. A caller outside the CLI, such as the docs site in supabase/supabase#53449, had to install `effect` just to call `Effect.runPromise` on it once. The converter never needed Effect: Effect only wrapped its control flow, a few parse calls and its error type. This adds `@supabase/config/convert`, a public entry point with a plain version: ```ts import { CliConfigConvertError, convertCliConfigTomlToJsonc } from "@supabase/config/convert"; try { const { text } = convertCliConfigTomlToJsonc(toml); } catch (error) { if (error instanceof CliConfigConvertError) { // error.reason, error.detail, error.sourceLine } throw error; } ``` - The converter is now a plain synchronous function that throws `CliConfigConvertError`. That error is now a plain `Error` subclass that keeps its `_tag`, so `catchTag` and the telemetry error tag don't change. - `./internal` keeps an Effect wrapper with the old name and signature. A refusal fails with the typed error and anything else is a defect. `config convert` in the CLI is unchanged. - The converter used to load `effect` and the whole schema through two small helpers. `setOwnProperty` came through `sparse.ts`, and `isObject`/`cliConfigSchemaKey` came through `config-document.ts`. These now live in effect-free `lib/` modules. - `entrypoint-purity.unit.test.ts` walks the import graph of `./convert` and fails if anything in it imports `effect`, `@effect/*` or a `node:`/`bun:` builtin. - The pack-and-install smoke test in `scripts/build.ts` now has a second consumer that installs only `smol-toml` and `jsonc-parser`. It runs `./convert` with no `effect` available. The smoke test was also missing `jsonc-parser` from its symlinked dependencies. - The error-tag stability scan now also recognises plain classes that declare `readonly _tag = "…"`. `effect` stays a required peer for now, because `.`, `./internal`, `./io` and `./effect` still load it through the `effect/Schema` config schema. Making it optional depends on the schema question in CLI-3169. This PR is the first step that doesn't need that answer. After a config release, the docs can switch to `./convert` and drop `effect`. ## Linked issue CLI-3169 - [x] The linked issue is **open** and carries the `open-for-contribution` label (or I'm a Supabase maintainer). ## Checklist - [x] The PR title follows [Conventional Commits](https://www.conventionalcommits.org/) (e.g. `fix(cli): …`). - [x] Tests added or updated for the change. - [x] From the repository root, `pnpm check:all` passes; relevant package tests pass for every touched workspace, and `pnpm types:check` passes for each touched TypeScript workspace (or workspace declaring it).
This bumps edge-runtime from v1.79.2-r0 to v1.79.3-r0. https://github.com/supabase/slim-services/releases/tag/edge-runtime-v1.79.3-r0 Planned after supabase/slim-services published v1.79.3-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…7737) ## TL;DR explains postgres shared memory limit failures on native stacks and names the stacks to stop ## whats hurting the user? on macOS every running native stack keeps one postgres shared memory segment and the system allows 32 in total once about 30 stacks are left running, `supabase start`, `stack restart` and `supabase db start` fail with `could not create shared memory segment`, and postgres's own hint only says to raise the system limit ## now improved by? on that exact error the three commands now say the running stacks hold the segments and suggest `supabase stack list`, `supabase stack stop --stack <id>` for stacks no longer in use, and `supabase stack prune --dry-run` for stacks whose project directory is gone ## ref: - related: #7269
…ts own deadline (#7683) ## TL;DR The native Pooler start deadline now excludes the artifact prepare, so a stall names the step that ran out of time. - `Pooler.integration.test.ts › serves Pooler SQL against the owned database`: `native transaction pooler start` exceeded its 60s deadline. That deadline covered the native artifact download, the `prepare`/`provision-tenant` startup commands and the server boot together. The test now runs the recipe's artifact prepare as its own phase before start, and the test guard is widened to fit both budgets. ## ref spotted in: https://github.com/supabase/cli/actions/runs/44085628022/job/134047177808 --- _Generated by [Claude Code](https://claude.ai/code/session_01MBEk1Pbmd87VhSdE6Rb9aF)_ Co-authored-by: Claude <noreply@anthropic.com>
…container running (#7655) ## TL;DR When `docker start` times out but the container is already running, the launch now goes on to its readiness checks instead of failing. - `start.container-limits.integration.test.ts › applies configured limits to each service, keeps them across restarts, and reports limit edits as drift`: the launch failed with `Engine command 'start' did not finish within 30s; container state: status=running started=… pid=17492`. The container state added in #7602 shows that a loaded engine started the process about a second after the call and then kept the `start` CLI call waiting past 30s. This is the case #7600 handled, and it was closed because the earlier log could not show a running container. After a `start` timeout, the launch now reads the container state. If the status is `running`, it logs a warning and continues. Any other state still fails with the timeout error and the state. A new adapter test covers the running case. The existing test still covers the failure path. ## ref spotted in: https://github.com/supabase/cli/actions/runs/43894270470/job/133393454575 (green rerun on the same SHA: https://github.com/supabase/cli/actions/runs/43893640481/job/133391185187) --- _Generated by [Claude Code](https://claude.ai/code/session_01MBEk1LoYxzbfzYDtuz4z4F)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
## Summary `config convert` only goes one way, TOML → JSONC. Once `init` writes `config.jsonc`, someone who runs into trouble with JSONC has no supported way back. For example, their editor or LSP might not handle it well, a third-party tool might only look for `config.toml`, or a teammate might be on an older CLI. This adds that way back, and records why people take it so we can see what's going wrong with JSONC. ```bash supabase config convert --to toml ``` - `--to json|toml` picks the target. `json` is the default and writes `config.jsonc`, so plain `supabase config convert` behaves exactly as before. I went with a value flag over `--to-toml` so another target can be added later without another flag. - `--to toml` turns `config.jsonc` (or `config.json`) into `config.toml` and moves the JSON file to a `.bak` backup, numbered if one already exists. This mirrors the forward direction: - `$schema` becomes the `#:schema` directive - `env()` strings are left untouched - comments are carried over, and commented-out keys become commented-out TOML - comments TOML has no place for, such as one inside an array, move to a nearby line and are listed in the output - `--dry-run` prints the TOML and the undo command and writes nothing - it refuses if `config.toml` already sits next to the JSON file - it leaves `.vscode/settings.json` alone - The converter is `convertCliConfigJsoncToToml` in `@supabase/config`. It's effect-free like the TOML → JSONC one from #7738: it's exported from `./convert` and has an Effect wrapper in `./internal`. It refuses rather than writing something lossy, for example on a `null` value, a `$schema` that the `#:schema` line can't hold, or a config nested too deeply. It also checks that the TOML it renders parses back to the same document before anything is written. - The file handling that both directions share (backup naming, permission copying, rollback when a write fails) now lives in `convert.shared.ts`, so the two handlers don't drift. Telemetry on `cli_command_executed`: - `convert_target`: `toml` or `jsonc`. `config_format` from CLI-2988 already gives the source format. - `convert_reason`: a closed list (`editor`, `third-party-tool`, `older-cli`, `ci-or-deploy`, `ai-agent`, `preference`, `other`), so no free text ends up in telemetry. It comes from `--reason` or from a select prompt on an interactive terminal. The prompt isn't shown when telemetry is opted out. Skip is the first option, and a skipped or non-interactive run still converts and leaves the reason out. `--reason` without `--to toml` is an error. - `convert_moved_comment_count` in both directions, so we can tell if conversion quality is part of why people switch back. The docs change is in supabase/supabase, stacked on supabase/supabase#53449. ## Linked issue CLI-3170 - [x] The linked issue is **open** and carries the `open-for-contribution` label (or I'm a Supabase maintainer). ## Checklist - [x] The PR title follows [Conventional Commits](https://www.conventionalcommits.org/) (e.g. `fix(cli): …`). - [x] Tests added or updated for the change. - [x] From the repository root, `pnpm check:all` passes; relevant package tests pass for every touched workspace, and `pnpm types:check` passes for each touched TypeScript workspace (or workspace declaring it).
REST preflights without requested headers can receive either no `Access-Control-Allow-Headers` header or the known fallback list. Accept these two responses in the gateway parity comparison instead of requiring identical optional headers. Reject unexpected values and preserve exact comparisons for preflights with requested headers, function routes, and all other recorded response fields. Production gateway behavior is unchanged.
… (#7742) ## TL;DR `db diff`, `db pull`, `migration squash` and `db schema declarative sync` now show the same stack hint as `stack start` when the shadow database hits postgres's shared memory error ## whats missing? with a bunch of native stacks running, the shadow database fails to start and the error only carries postgres's own hint, so nothing points at which stacks to stop #7737 added the hint for `stack start`, `stack restart` and `db start` but missed the shadow paths ## now fixed by: the shadow error reuses `sharedMemorySuggestion` and the declarative shadow wrappers pass it through, so the error ends with the `supabase stack list`, `supabase stack stop --stack <id>` and `supabase stack prune --dry-run` hint in text and json output ## ref: - extends: #7737
…LI-2686) (#7723) Generate the docs-site CLI sidebar from command annotations. A top-level command declares its sidebar category with `withSidebar({ category })`, and its subcommands inherit that category. A sidebar title defaults to the command's short description, and `withSidebar({ title })` overrides it. Overrides are added only where the current sidebar already uses a different, still accurate title or where the short description is longer than 50 characters, so no short descriptions change. `pnpm docs:sidebar` (from `apps/cli`) writes the content for `common-cli-sections.json`. Categories are a compile-time union of `DOCS_SIDEBAR_CATEGORIES`, which also sets their order. The build fails when a top-level command has no category, a subcommand declares one, a title is longer than 50 characters, or a category has no commands. The spec no longer carries section tags: `DOCS_TAGS` is removed and every `tags` array is empty. Differences from the current sidebar: - Seven commands are added: `inspect db collation-drift`, `inspect db toast-sizes`, `inspect db xid-age`, `logs`, `logs sources`, `config convert` and `config validate`. - Every command is listed flat under its category, including `inspect db`. - The `inspect db role-stats` slug becomes `supabase-inspect-db-role-stats`. - Commands within each category are alphabetical, matching `--help`, instead of the hand-picked order. 17 of 30 categories change order; for example, General now lists `link` before `login`, and Migrations starts with `migration down`. - The `inspect db role-stats` slug change needs a redirect from `/docs/reference/cli/supabase-inspect-db-role-connections` and an update to the link in `guides/observability/inspect.mdx` in the supabase/supabase PR that first publishes this sidebar. - Eight titles use the command's short description instead of the current sidebar title, which misstated the command: `start`, `stop`, `db`, `db diff`, `db dump`, `db pull`, `storage ls` and `postgres-config delete`. - The `ssl-enforcement get` title drops a trailing "s" to fit the 50-character limit. Linear: CLI-2686
This bumps storage from v1.98.2-r0 to v1.98.5-r0. https://github.com/supabase/slim-services/releases/tag/storage-v1.98.5-r0 Planned after supabase/slim-services published v1.98.5-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
#7657) ## TL;DR An engine command timeout now says whether the daemon still answered `info`. That shows whether the whole daemon stalled or only one call did. - `Container.integration.test.ts › falls back to host-gateway without reprobing when the gateway has no IPv4 address`: the launch failed with `Engine command 'inspect' did not finish within 30s` on a running container. The error did not say whether the daemon was stuck as a whole or only on that container. The cause is still unknown, so this PR only adds a diagnostic. When an engine command times out, a probe runs `info` with a 2s limit and adds one of these to the error: `; daemon: responsive (<version> running=<n>)`, `; daemon: info failed: <stderr>`, or `; daemon: unresponsive to info within 2 seconds`. The probe uses each engine's own `info` fields for Docker and Podman. The span records only the outcome (`responsive` / `failed` / `unresponsive`). The timeout stays the same. ## ref spotted in: https://github.com/supabase/cli/actions/runs/43844188654/job/133220090737 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01MBEk1LoYxzbfzYDtuz4z4F --------- Co-authored-by: Claude <noreply@anthropic.com>
This bumps realtime from v2.174.0-r0 to v2.174.1-r0. https://github.com/supabase/slim-services/releases/tag/realtime-v2.174.1-r0 Planned after supabase/slim-services published v2.174.1-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This bumps realtime from v2.174.1-r0 to v2.174.5-r0. https://github.com/supabase/slim-services/releases/tag/realtime-v2.174.5-r0 Planned after supabase/slim-services published v2.174.5-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This bumps studio from 2026.11.16-sha-51bd16d-r0 to 2026.11.23-sha-4a73166-r0. https://github.com/supabase/slim-services/releases/tag/studio-2026.11.23-sha-4a73166-r0 Planned after supabase/slim-services published 2026.11.23-sha-4a73166-r0. A newer relevant release rewrites this branch from develop and replays any commits others pushed to it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Adds a `--dedicated-scope` flag to `supabase sso add`, which sets the SAML `dedicated_scope` option so the provider gets its own entity ID, metadata URL and ACS URL. - The field is create-only, so `sso update` does not accept it. - `saml.dedicated_scope` is included in provider output (`sso show`, `sso list`, and the json/yaml/toml formats). - `sso show`, `add`, `remove` and `update` print the provider's own ACS URL and entity ID in the text table when its scope is dedicated. `update` takes the scope from the provider it fetches first, since its response omits the field. - `sso info` is unchanged. - The Management API spec gets the field through `openapi-overrides.json` until the published spec documents it. Related: supabase/auth#2893, supabase/platform#42021 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…#7747) ## TL;DR adds `--fail-on-destructive` to `db schema declarative sync` so CI can stop when sync finds destructive changes. ## whats introduced? With `--fail-on-destructive`, `db schema declarative sync` fails when it finds destructive changes, the same ones listed in the `Found destructive changes` warning (like `DROP TABLE` or `DROP COLUMN`), before the migration name prompt and before any migration file is written. The drop statements are in the error detail, so the `--output-format json` error carries them too. The flag is off by default, so safe plans and runs without it behave exactly as before. ## why? sync only printed destructive changes as a stderr warning, then wrote the migration and exited 0, so scripts and agents had no way to catch a destructive plan. ## ref - closes: #7026
## TL;DR parallel test suites no longer get resets from the local gateway on linux docker and colima ## whats missing? these hosts start containers at 1024 open files since Docker 29, so Kong's `auto` lands on 1024 `worker_connections`, and with two connections per proxied call the gateway resets calls past about 500 in flight ## now improved by: `supabase start` sizes Kong's nginx from the container's hard limit, up to Kong's own 16384 ceiling ## ref: - related: #7734 - spotted while working on: #7735
Coly010
approved these changes
Nov 23, 2026
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.