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

cameri / nostream / 46055586263
80%

Build:
DEFAULT BRANCH: main
Ran 27 Nov 2026 07:21PM UTC
Jobs 2
Files 352
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

27 Nov 2026 07:16PM UTC coverage: 80.45% (+0.03%) from 80.419%
46055586263

push

github

web-flow
fix(peering): retry serialization failures in invoice settlement (#1261)

<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->


## Problem

Peering settlement runs in a serializable transaction. A concurrent
writer can abort it with SQLSTATE 40001. Neither the callback path nor
the maintenance worker retried, so a valid payment failed immediately
and waited for the next
maintenance pass.

## Fix

- Detect PostgreSQL 40001 through wrapped `original`/`cause` errors.
- Retry the whole confirmation transaction up to three times with a
short delay.
- Recreate the transaction on each attempt.
- Do not retry deterministic failures: missing peer, missing term
snapshot, underpayment, validation, or non-serialization errors.
- Do not count transient serialization conflicts toward the peering
settlement failure counter/alert.

## Related Issue
<!--- This project only accepts pull requests related to open issues -->
<!--- If suggesting a new feature or change, please discuss it in an
issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps
to reproduce -->
<!--- Please link to the issue here: -->
Closes #1154
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->

## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->

## Screenshots (if appropriate):

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [ ] Non-functional change (docs, style, minor refactor)
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)

##... (continued)

6308 of 8459 branches covered (74.57%)

Branch coverage included in aggregate %.

24 of 25 new or added lines in 2 files covered. (96.0%)

12729 of 15204 relevant lines covered (83.72%)

712.18 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
96.68
-0.1% src/services/payments-service.ts
Jobs
ID Job ID Ran Files Coverage
1 Integration - 46055586263.1 27 Nov 2026 07:21PM UTC 352
36.42
GitHub Action Run
2 Unit - 46055586263.2 27 Nov 2026 07:22PM UTC 352
78.46
GitHub Action Run
Source Files on build 46055586263
  • Tree
  • List 352
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #46055586263
  • a4246b91 on github
  • Prev Build on main (#46051195700)
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