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

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

Build:
Build:
LAST BUILD BRANCH: feat/subscription-stream-close-reason
DEFAULT BRANCH: main
Ran 10 Jul 2026 02:08PM UTC
Files 404
Run time 23s
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

10 Jul 2026 02:02PM UTC coverage: 91.285% (+0.02%) from 91.262%
29098302998.1

Pull #432

github

LautaroPetaccio
feat: inform clients why a subscription stream is closed

Uses the new SubscriptionStreamClosed message from @dcl/protocol: before a
server-initiated close, the stream now yields a final message carrying a
close reason (and optional detail) instead of ending silently.

- emitterToGenerator: destroy() accepts an optional close reason, exposed
  via getCloseReason() so the consumer loop can act on it after draining.
- subscribers-context: teardown paths tag their reason — SERVER_SHUTTING_DOWN
  on stop, STALE_SUBSCRIPTION on both reconciliation sweeps — and
  removeConnection() forwards an optional caller-provided reason.
- handleSubscriptionUpdates: rejected duplicate subscriptions now tell the
  client why (DUPLICATE_SUBSCRIPTION) before closing, and destroys with a
  reason yield a final stream-closed message when the service provides a
  builder for it.
- All six subscribe services build the final message with fromPartial so it
  is protobuf-complete (zero-value defaults plus the notice).

Delivery is best-effort by nature: the final message only reaches clients
whose connection is still alive (duplicate rejection, shutdown drain);
teardowns triggered by an already-dead socket have no one to inform.
Pull Request #432: feat: inform clients why a subscription stream is closed

2535 of 2951 branches covered (85.9%)

Branch coverage included in aggregate %.

11774 of 12724 relevant lines covered (92.53%)

40.35 hits per line

Source Files on job 29098302998.1
  • Tree
  • List 404
  • Changed 160
  • Source Changed 9
  • Coverage Changed 160
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 29098302998
  • e0e96192 on github
  • Prev Job for on feat/subscription-stream-close-reason (#29029690638.1)
  • Next Job for on feat/subscription-stream-close-reason (#29103608044.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