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

supabase / supavisor / 22906196335 / 1
77%
main: 77%

Build:
DEFAULT BRANCH: main
Ran 10 Mar 2026 02:08PM UTC
Files 110
Run time 3s
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

10 Mar 2026 01:59PM UTC coverage: 43.015% (-0.2%) from 43.211%
22906196335.1

push

github

web-flow
feat: improve errors, add error codes (#841)

This changes a lot of errors from being atoms handled ad-hoc to be
structured errors. Structured errors allow us to have more
error-associated behavior, for example, every error can have a code, and
associated information to be used in logs. These structured errors also
allow us to have shared code paths in the caller code, reducing the
complexity of error handling in core parts of the codebase (e.g.: the
connection state machines).

This PR introduces an error behaviour (which is used alongside the
Exception behaviour) which has callbacks for log message and protocol
message (to be sent on the wire if this error happens for a client
connection), and an Error use-macro which makes the behaviour
implementation simple and does basic validation (does this error have a
code?).

It also introduces a new assertion, which we can use on returned errors,
to ensure that they are loggable and won't crash with the behaviour 
implementation. I haven't implemented it everywhere yet, but I think
it's a good addition for coverage.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Standardized, structured error types with machine-readable codes and a
new API to expose the max startup packet size.

* **Bug Fixes**
* More explicit, consistent error responses for auth, SSL/handshake,
subscription, pool/worker not-found, checkout timeouts and client-limit
conditions.
* Improved PostgreSQL protocol error formatting and unified
error-handling pathways.

* **Tests**
* Expanded test coverage to assert new error shapes and startup/checkout
edge cases; added validation helpers for error formatting.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

1281 of 2978 relevant lines covered (43.02%)

3708.86 hits per line

Source Files on job run-integration - 22906196335.1
  • Tree
  • List 110
  • Changed 25
  • Source Changed 18
  • Coverage Changed 24
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 22906196335
  • 71eb86b7 on github
  • Prev Job for on main (#22808171081.2)
  • Next Job for on main (#22924226985.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc