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

raystack / frontier / 32449812362
49%
main: 54%

Build:
Build:
LAST BUILD BRANCH: bootstrap-secret-update-in-place
DEFAULT BRANCH: main
Ran 21 Aug 2026 05:19AM UTC
Jobs 1
Files 305
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

21 Aug 2026 05:14AM UTC coverage: 48.919% (+0.2%) from 48.735%
32449812362

Pull #1857

github

whoAbhishekSah
feat(deleter): clear or report org delete blockers up front

The delete first checks everything that blocks it and returns all the
reasons together as one failed_precondition response: a running
subscription on a paid plan (the caller downgrades it to the standard
plan), invoices that still ask for money, and a negative token balance
which support has to settle. Plans resolve lazily, only when a running
subscription references one. When nothing blocks, subscriptions still
running on a free plan are canceled immediately with unbilled usage
invoiced on the spot — tolerating copies already gone on the provider —
and the invoice check runs again so a final invoice still blocks. The
plan is judged again in that pass, so a paid subscription created
mid-delete blocks instead of being canceled. Unused tokens do not
block: the delete forfeits them and writes the amount to an audit
record. An already-deleted org returns not found before any checks run.

Invoices are judged straight from the billing provider through a new
cheap ListPayableOnProvider (three status-filtered pages, no local
writes) instead of a full sync, and drafts with a non-zero amount now
block too: the provider finalizes them shortly, and deleting inside
that window would silently lose the charge.
Pull Request #1857: feat(deleter): clear or report org delete blockers up front

172 of 244 new or added lines in 5 files covered. (70.49%)

201 existing lines in 10 files now uncovered.

19728 of 40328 relevant lines covered (48.92%)

15.71 hits per line

Uncovered Changes

Lines Coverage ∆ File
37
8.02
-0.5% billing/invoice/service.go
27
80.0
2.97% core/deleter/service.go
6
0.0
core/deleter/deleter.go
1
0.0
0.0% cmd/serve.go
1
96.97
-3.03% internal/api/v1beta1connect/deleter.go

Coverage Regressions

Lines Coverage ∆ File
110
68.31
0.71% billing/product/service.go
30
61.22
1.43% internal/api/v1beta1connect/permission.go
16
7.75
0.0% cmd/seed.go
12
80.43
0.24% internal/reconcile/permission_reconciler.go
9
83.7
0.0% internal/reconcile/platformuser_reconciler.go
9
89.58
2.77% internal/reconcile/reconcile.go
8
40.88
14.05% internal/bootstrap/schema/schema.go
4
98.21
0.06% internal/reconcile/billingproduct.go
2
80.0
2.97% core/deleter/service.go
1
98.36
2.59% internal/reconcile/permission.go
Jobs
ID Job ID Ran Files Coverage
1 32449812362.1 21 Aug 2026 05:19AM UTC 305
48.92
GitHub Action Run
Source Files on build 32449812362
  • Tree
  • List 305
  • Changed 15
  • Source Changed 0
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1857
  • PR Base - org-delete-preflight-mocks (#32124085071)
  • Delete
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