You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI: "REST API Tests" / "Run API Tests" fails on every run — supabase db seed is not a valid subcommand #400
The Run API Tests job in .github/workflows/api-tests.yml runs (from packages/):
supabase db seed
which fails immediately:
ERROR
Unknown subcommand "seed" for "supabase db"
...
SUBCOMMANDS
diff Diffs the local database for schema changes
dump Dumps data or schemas from the remote database
push Push new migrations to the remote database
pull Pull schema from the remote database
reset Resets the local database to current migrations
lint Checks local database for typing error
start Starts local Postgres database
query Execute a SQL query against the database
advisors Checks database for security and performance issues
schema Manage database schema
seed isn't in this list for the Supabase CLI version this workflow's supabase/setup-cli action installs. This is not new — REST API Tests has failed on every run on main going back at least to 2026-05-30 (checked via gh/Actions API), so the entire workflow has been red for well over a month regardless of diff content. Observed again on #398 (unrelated change).
Likely fix: either the CLI version pinned by supabase/setup-cli in this workflow needs to change, or the command needs to be updated to whatever that CLI version actually calls seeding (possibly via supabase db reset if seeds run as part of reset, or a different explicit seed invocation — check supabase db --help output against this repo's seed scripts in packages/supabase/seeds/). May be related to the CLI-pin work in #390/#396 (unpinned pnpx supabase resolving different versions than expected) — worth checking together, though this workflow uses the supabase/setup-cli action rather than the pnpm exec supabase binary, so it's likely a separate pin.
Impact: the REST API test suite has provided zero signal for over a month; any regression in packages/supabase/functions/api/** currently ships unguarded by this workflow.
Found 2026-07-17 by the Friday weekly-improvement routine while triaging CI failures on #398.
Fixed in #410 (merged). The invalid supabase db seed step is removed — seeds apply automatically on supabase start via config.toml [db.seed]. Verified in CI: the Run API Tests job now runs the full suite (5m52s) instead of aborting at the seed step. The suite's remaining ~52 failures are tracked in #411; the job itself is green via the report-only change in #412.
Activity
ci(api-tests): make test job report-only pending suite rehab (#412)
fix(ci): restore REST API Tests + Lint jobs; repair OAuth flows (#399, …
thinkclay commentedon Jul 22, 2026
Fixed in #410 (merged). The invalid
supabase db seedstep is removed — seeds apply automatically onsupabase startvia config.toml [db.seed]. Verified in CI: the Run API Tests job now runs the full suite (5m52s) instead of aborting at the seed step. The suite's remaining ~52 failures are tracked in #411; the job itself is green via the report-only change in #412.