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

decentraland / social-service-ea / 22675218654
90%

Build:
DEFAULT BRANCH: main
Ran 04 Mar 2026 03:09PM UTC
Jobs 1
Files 185
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

04 Mar 2026 03:04PM UTC coverage: 90.028% (+0.08%) from 89.945%
22675218654

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

2159 of 2536 branches covered (85.13%)

Branch coverage included in aggregate %.

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

5280 of 5727 relevant lines covered (92.19%)

71.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22675218654.1 04 Mar 2026 03:09PM UTC 370
90.97
GitHub Action Run
Source Files on build 22675218654
  • Tree
  • List 185
  • Changed 143
  • Source Changed 3
  • Coverage Changed 143
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #22675218654
  • 651efa31 on github
  • Prev Build on main (#22675199089)
  • Next Build on main (#22873828381)
  • 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