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

raystack / frontier / 30974231368
48%
main: 48%

Build:
Build:
LAST BUILD BRANCH: feat/billing-plan-reconciler
DEFAULT BRANCH: main
Ran 05 Aug 2026 04:12AM UTC
Jobs 1
Files 300
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

05 Aug 2026 04:06AM UTC coverage: 47.59% (+0.03%) from 47.564%
30974231368

Pull #1851

github

whoAbhishekSah
fix(api): map billing errors to actionable codes instead of internal

Billing handlers used a bare CodeInternal for every unrecognized
error, so account-state problems looked like Frontier bugs to the
caller. All billing handlers now fall back to a shared mapBillingError:

- provider record missing -> failed_precondition, "billing account is
  no longer linked to the payment provider"
- payment failures -> failed_precondition with the provider's message
- provider rate limits and outages -> unavailable
- plan change in progress, pending dues, subscription gone on the
  provider -> failed_precondition
- everything else -> internal, as before

Fixes #1836.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Pull Request #1851: fix(api): map billing errors to actionable codes instead of internal

56 of 116 new or added lines in 10 files covered. (48.28%)

79 existing lines in 3 files now uncovered.

18753 of 39405 relevant lines covered (47.59%)

15.4 hits per line

Uncovered Changes

Lines Coverage ∆ File
21
6.61
0.0% internal/api/v1beta1connect/billing_customer.go
11
65.16
0.16% internal/api/v1beta1connect/billing_product.go
8
17.81
-0.08% internal/api/v1beta1connect/billing_subscription.go
6
52.81
0.0% internal/api/v1beta1connect/billing_invoice.go
6
64.04
0.36% internal/api/v1beta1connect/billing_usage.go
5
91.94
0.0% internal/api/v1beta1connect/billing_checkout.go
1
97.78
0.0% internal/api/v1beta1connect/billing_check.go
1
95.0
internal/api/v1beta1connect/billing_errors.go
1
93.0
0.0% internal/api/v1beta1connect/billing_plan.go

Coverage Regressions

Lines Coverage ∆ File
39
17.81
-0.08% internal/api/v1beta1connect/billing_subscription.go
24
64.04
0.36% internal/api/v1beta1connect/billing_usage.go
16
65.16
0.16% internal/api/v1beta1connect/billing_product.go
Jobs
ID Job ID Ran Files Coverage
1 30974231368.1 05 Aug 2026 04:12AM UTC 300
47.59
GitHub Action Run
Source Files on build 30974231368
  • Tree
  • List 300
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1851
  • PR Base - fix/billing-services-stripe-errors (#30974219068)
  • 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