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

supabase / cli / 28782050508
65%
develop: 65%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/develop/pr-5904-82dc21b8840ac5f825069e7f7625267e3d66d772
DEFAULT BRANCH: develop
Ran 06 Jul 2026 09:37AM UTC
Jobs 1
Files 229
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

06 Jul 2026 09:34AM UTC coverage: 65.166%. Remained the same
28782050508

push

github

web-flow
fix(cli): resolve network-bans project ref before validating --db-unban-ip (#5769)

## Current Behavior

`supabase network-bans remove --project-ref <bad-ref> --db-unban-ip
<bad-ip>` surfaces the invalid-IP error first, because the TS handler
validated `--db-unban-ip` before resolving the project ref.

## Expected Behavior

Go resolves the project ref in `PersistentPreRunE`, which cobra always
runs before `RunE`'s IP validation (`cmd/root.go:108-114` vs
`internal/bans/update/update.go:12-25`). So an invalid ref must surface
before an invalid IP, matching Go. The handler now resolves the ref
first, and the IP validation loop runs inside the same
`Effect.ensuring(linkedProjectCache.cache(ref))` scope that Go's
`ensureProjectGroupsCached` mirrors.

Added regression tests covering both the unresolved-ref (no linked
project) and invalid-ref (`--project-ref BADREF`) cases combined with an
invalid `--db-unban-ip`, asserting the ref error wins and no API call is
made.

Fixes CLI-1856

11041 of 16943 relevant lines covered (65.17%)

10.47 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
82.41
0.0% internal/storage/rm/rm.go
Jobs
ID Job ID Ran Files Coverage
1 28782050508.1 06 Jul 2026 09:37AM UTC 229
65.17
GitHub Action Run
Source Files on build 28782050508
  • Tree
  • List 229
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28782050508
  • c62b558a on github
  • Prev Build on gh-readonly-queue/develop/pr-5766-9a9a83d41fb64e022e160ffad765a1a33e0a9e33 (#28782049516)
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