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

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

Build:
DEFAULT BRANCH: main
Ran 04 Mar 2026 03:09PM UTC
Files 370
Run time 9s
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

04 Mar 2026 03:04PM UTC coverage: 90.974% (+0.08%) from 90.89%
22675218654.1

push

github

web-flow
fix: resolve RPC subscription generator memory leak (#389)

* fix: add destroy() method and valueQueue cap to emitterToGenerator

Adds a synchronous destroy() for external termination of the async
generator, and caps valueQueue at 1000 to prevent unbounded buffering.

* fix: track and destroy generators on subscriber removal

Registers active generators per subscriber and calls destroy() on all
of them before clearing emitter handlers, breaking the cleanup deadlock.

* fix: register/unregister generators in handleSubscriptionUpdates

Ensures every emitterToAsyncGenerator instance is tracked from creation
to cleanup so the subscriber context can destroy them on disconnect.

* fix: deduplicate cleanup logic and remove dead code in generator lifecycle

- Delegate return() to destroy() to avoid duplicated cleanup logic
- Add valueQueue clearing in throw() for consistency with destroy()
- Remove unreachable cleanup function after finally block in handleSubscriptionUpdates
- Replace timeout-based test with deterministic consume-then-destroy approach

* fix: add clarifying comments and improve finally block ordering

- Add TODO for MAX_VALUE_QUEUE_SIZE to calibrate from production metrics
- Document silent event drops with TODO for future metrics/logging
- Clarify why throw() does not delegate to destroy()
- Swap finally block to call return() before unregisterGenerator()

2311 of 2694 branches covered (85.78%)

Branch coverage included in aggregate %.

10560 of 11454 relevant lines covered (92.19%)

35.84 hits per line

Source Files on job 22675218654.1
  • Tree
  • List 370
  • Changed 143
  • Source Changed 3
  • Coverage Changed 143
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 22675218654
  • 651efa31 on github
  • Prev Job for on main (#22675199089.1)
  • Next Job for on main (#22873828381.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