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

Unleash / unleash / 19566022040
86%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 21 Nov 2025 09:33AM UTC
Jobs 1
Files 1219
Run time 2min
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 Nov 2025 09:27AM UTC coverage: 91.18% (-0.03%) from 91.214%
19566022040

push

github

web-flow
fix: invalid metrics should not crash (#11010)

## About the changes
Properly awaits all submitted promises, preventing the node's main
process from seeing rejected & unawaited promises.

What's going on?
- The bulk metrics handler pushes `registerBackendClient` promises into
promises.
- The next step (`clientMetricsEnvBulkSchema.validateAsync`) throws for
invalid metrics (e.g., `appName: null`), so we jump to catch and return
400.
- Because the code never reaches `Promise.all(...)`, the previously
spawned promises are never awaited. Node later detects the rejected
`registerBackendClient` promise as an **unhandled rejection** and
crashes the process. If that promise hadn’t been rejected, there’d be no
crash, but with invalid input, it does reject.
- **Fix:** always await the spawned tasks (using `Promise.allSettled`)
so every rejection is observed, even when validation later throws.

7250 of 7301 branches covered (99.3%)

10 of 26 new or added lines in 1 file covered. (38.46%)

12 existing lines in 2 files now uncovered.

69209 of 75904 relevant lines covered (91.18%)

436.31 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
16
88.93
-5.85% src/lib/features/metrics/instance/metrics.ts

Uncovered Existing Lines

Lines Coverage ∆ File
2
88.63
-0.78% src/lib/features/playground/feature-evaluator/client.ts
10
72.66
-7.81% src/lib/features/playground/feature-evaluator/constraint.ts
Jobs
ID Job ID Ran Files Coverage
1 19566022040.1 21 Nov 2025 09:33AM UTC 1219
91.18
GitHub Action Run
Source Files on build 19566022040
  • Tree
  • List 1219
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #19566022040
  • e9776895 on github
  • Prev Build on main (#19536993849)
  • Next Build on main (#19633092091)
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