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

Unleash / unleash / 34337989841
87%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 09 Sep 2026 10:06AM UTC
Jobs 1
Files 1219
Run time 3min
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

09 Sep 2026 10:01AM UTC coverage: 87.396% (+0.04%) from 87.356%
34337989841

push

github

web-flow
fix: make client registration writes resilient to deadlocks (#12619)

## About the changes

Concurrent registration flushes can acquire overlapping application and
instance row locks in different orders, causing deadlocks. A failed
flush also discards its buffered registrations.

Sort bulk writes by their conflict keys and coalesce application
observations by `app_name`, keeping the greatest `seen_at` within each
batch. Keep the original applications-first order: commit applications
and their usage rows together, then persist instance heartbeats
separately. Sorting addresses lock ordering; swapping these calls has no
demonstrated deadlock-prevention benefit.

Restore failed batches while preserving newer registrations received
during persistence. Correct application `lastSeen` mapping to the
persisted `seen_at` column and type the database row mappings.

Fixes #11390. Consistent ordering addresses opposite-order batch
deadlocks; it does not eliminate ordinary lock waits or reduce write
volume.

## OSS PR checklist

- [x] I have read and agree to the [Unleash Contributor License
Agreement](https://github.com/Unleash/unleash/blob/main/CLA.md).
- [x] I have added tests or explained why tests are not needed.
- [x] I have updated documentation where relevant. No configuration or
schema changes require documentation updates.

3970 of 5175 branches covered (76.71%)

34 of 35 new or added lines in 3 files covered. (97.14%)

1 existing line in 1 file now uncovered.

16204 of 18541 relevant lines covered (87.4%)

767.28 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
91.89
-0.19% src/lib/db/client-applications-store.ts

Coverage Regressions

Lines Coverage ∆ File
1
83.13
-1.2% src/lib/features/playground/feature-evaluator/client.ts
Jobs
ID Job ID Ran Files Coverage
1 34337989841.1 09 Sep 2026 10:06AM UTC 1219
87.4
GitHub Action Run
Source Files on build 34337989841
  • Tree
  • List 1219
  • Changed 7
  • Source Changed 3
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #34337989841
  • 1bebbafe on github
  • Prev Build on main (#34333860587)
  • Next Build on main (#34343056355)
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