• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 38547725046
67%
develop: 46%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/develop/pr-7380-74d4774766936b6e6141a58d061c3396a01c85c9
DEFAULT BRANCH: develop
Ran 14 Oct 2026 10:11AM UTC
Jobs 1
Files 79
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Oct 2026 10:10AM UTC coverage: 66.737%. Remained the same
38547725046

push

github

web-flow
chore(cli): map db dump, pull, diff and declarative command permissions (#7136)

Maps `db dump`, `db pull`, `db remote commit`, `db diff`, `db schema
declarative generate` and `db schema declarative sync` to the Management
API operations they can call, so scoped PATs can be granted per command.
Drift tests keep each declaration in step with what the command does.
Stacked on the previous db PR.

**Shared changes.**
- `dbConfigPoolerFallback` (new block): the pooler retry after a linked
dump, declarative export or pull diff fails with an IPv6 error against
the direct host. `dbConfig` is now built from a shared entries list with
the linked target prepended; its declaration is unchanged.
- `dbConfigLinked` (new block): the same calls without the target
condition, for commands that reach the linked path some other way.
- `withContext` (new builder): records a prompt choice or other non-flag
prerequisite on every entry of a fragment.

**Defaults.** `db dump`, `db pull` and `db remote commit` default to the
linked project; `db diff` defaults to local. `db dump`, `db pull` and
`db remote commit` declare `dbConfig`, the fallback block and the
linked-project cache. `db diff` declares `dbConfig` and the cache for
`--linked`, plus the linked calls for a `--from` or `--to` side set to
`linked`, which resolves the project without `--linked`. `generate`
declares them for `--linked` and for the target prompt (no target flag,
migrations present). `sync` has no target flags, so it declares them for
the bootstrap prompt only.

**Tests.** Each command runs the real database-config resolver and the
real linked-project cache and checks the recorded requests, including
`--password` skipping the login role and `--local` making no request.
Dump and pull also run the container IPv6 retry (login role, pooler
config, login role). `db diff` covers `--from linked`, `--to linked` and
both. The `node:net` mock gains a scoped `withReachableDirectHost`
helper for the direct-host path.... (continued)

4097 of 6139 relevant lines covered (66.74%)

7.37 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38547725046.1 14 Oct 2026 10:11AM UTC 79
66.74
GitHub Action Run
Source Files on build 38547725046
  • Tree
  • List 79
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38547725046
  • cb2985f8 on github
  • Prev Build on develop (#38545091365)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc