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

supabase / cli / 40941415979
47%
develop: 46%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/develop/pr-7380-74d4774766936b6e6141a58d061c3396a01c85c9
DEFAULT BRANCH: develop
Ran 29 Oct 2026 07:36PM UTC
Jobs 1
Files 119
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

29 Oct 2026 07:34PM UTC coverage: 46.568%. Remained the same
40941415979

push

github

web-flow
fix(cli): stop `db reset` failing at random (CLI-2312, CLI-2563) (#7380)

## TL;DR

stops `supabase db reset` randomly failing at `Initialising schema...`

## whats hurting the user(s)?

`supabase db reset` fails at random with `error running container: exit
1`, mostly in CI

it recreated the db while realtime kept running, so docker restarted
realtime mid reset and its migrations collided with the reset's own on
`schema_migrations_pkey`

## now fixed by:

storage, auth, realtime and the pooler are stopped before the db is
removed and started once at the end,
even when the reset fails...

```mermaid
sequenceDiagram
    participant R as db reset
    participant S as storage, auth, realtime, pooler
    participant D as docker
    participant DB as db
    participant J as init jobs

    Note over R,J: before
    R->>DB: remove and recreate
    DB--xS: connection lost
    D->>S: restart (unless-stopped)
    par
        S->>DB: realtime migrations
    and
        J->>DB: realtime migrations
    end
    DB-->>J: schema_migrations_pkey
    J-->>R: exit 1, reset fails

    Note over R,J: now
    R->>S: stop
    R->>DB: remove and recreate
    J->>DB: init migrations
    R->>DB: your migrations + seed
    R->>S: start once, reload kong
    Note over R,S: same restart on failure or ctrl-c
```

## ref:

- closes: https://github.com/supabase/cli/issues/6915
- closes: https://github.com/supabase/cli/issues/6445

5591 of 12006 relevant lines covered (46.57%)

25.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 40941415979.1 29 Oct 2026 07:36PM UTC 119
46.57
GitHub Action Run
Source Files on build 40941415979
  • Tree
  • List 119
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40941415979
  • 3e64f6cb on github
  • Prev Build on develop (#40921241928)
  • Next Build on gh-readonly-queue/develop/pr-7380-74d4774766936b6e6141a58d061c3396a01c85c9 (#40944629445)
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