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

decentraland / social-service-ea / 24455772176 / 1
90%
main: 90%

Build:
Build:
LAST BUILD BRANCH: fix/oom-subscriber-leak-and-heap-limit
DEFAULT BRANCH: main
Ran 15 Apr 2026 01:02PM UTC
Files 384
Run time 12s
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

15 Apr 2026 12:57PM UTC coverage: 90.492% (-0.6%) from 91.14%
24455772176.1

Pull #407

github

kevinszuchet
fix: add cork wrapping, subscriber metrics, reconciliation, and sScan

Hardening changes to complement the critical OOM fixes:

1. Wrap all HTTP responses in res.cork() to prevent uWS warnings about
   writes outside corked callbacks. Under GC pressure these interleaved
   writes can hold object references longer than necessary.

2. Add subscriber monitoring metrics (gauges): subscribers_local_count,
   subscribers_generators_count, subscribers_redis_set_size, and a
   subscribers_stale_cleaned counter. Reported every 30s via setInterval.

3. Add periodic stale subscriber reconciliation (every 5 min, configurable
   via SUBSCRIBER_RECONCILIATION_INTERVAL_MS). Cross-references local
   subscribers against active WS connections from wsPool and removes any
   orphaned subscribers that the cleanup path missed.

4. Replace redis.sMembers() with redis.client.sScanIterator() in
   getSubscribersAddresses() to avoid loading the entire Redis SET at
   once. Adds a warning log when the set exceeds 10,000 entries.

5. Add redis.sCard() for O(1) subscriber count metric reporting.
6. Add wsPool.getAuthenticatedAddresses() for reconciliation.
Pull Request #407: fix: prevent OOM crashes from subscriber leak and duplicate subscriptions

2371 of 2772 branches covered (85.53%)

Branch coverage included in aggregate %.

10944 of 11942 relevant lines covered (91.64%)

35.71 hits per line

Source Files on job 24455772176.1
  • Tree
  • List 384
  • Changed 149
  • Source Changed 8
  • Coverage Changed 149
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 24455772176
  • 381e3af5 on github
  • Prev Job for on fix/oom-subscriber-leak-and-heap-limit (#23593170934.1)
  • Next Job for on fix/oom-subscriber-leak-and-heap-limit (#24456811103.1)
  • Delete
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