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

cameri / nostream / 44772541683
80%

Build:
DEFAULT BRANCH: main
Ran 20 Nov 2026 04:25PM UTC
Jobs 2
Files 342
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

20 Nov 2026 04:21PM UTC coverage: 79.545% (+0.1%) from 79.447%
44772541683

push

github

web-flow
feat(peering): decide and pay peer invoices within budgets (#1168)

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

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

Second slice of #938. Implements the buyer policy on top of PR 1.

- Validate per-peer and optional global budgets plus the auto-pay master
switch.
- Add `PeeringBuyerService`: trusted-peer/term checks, payment-hash
dedupe,
atomic budget reservation, auto-pay, held reasons, manual approve/reject
and
  budget summaries.
- Add `PaymentsService.payInvoice`; processor implementations come in PR
3.
- Instrument every decision path with unit tests: paid, over budget,
mismatch,
  duplicate, unsupported processor, payment failure and manual actions.


## 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: -->
Stacked PR2 of #938 

## 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)

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
- [ ] My code follows the code style of this pro... (continued)

5739 of 7830 branches covered (73.3%)

Branch coverage included in aggregate %.

288 of 321 new or added lines in 6 files covered. (89.72%)

1 existing line in 1 file now uncovered.

11932 of 14385 relevant lines covered (82.95%)

661.1 hits per line

Uncovered Changes

Lines Coverage ∆ File
23
83.22
src/services/peering-buyer-service.ts
6
84.67
-1.7% src/repositories/peering-invoice-repository.ts
4
87.62
0.12% src/utils/settings-config.ts

Coverage Regressions

Lines Coverage ∆ File
1
87.62
0.12% src/utils/settings-config.ts
Jobs
ID Job ID Ran Files Coverage
1 Integration - 44772541683.1 20 Nov 2026 04:25PM UTC 342
35.68
GitHub Action Run
2 Unit - 44772541683.2 20 Nov 2026 04:26PM UTC 342
77.42
GitHub Action Run
Source Files on build 44772541683
  • Tree
  • List 342
  • Changed 7
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44772541683
  • 6b8f67c4 on github
  • Prev Build on main (#44570856473)
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