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

decentraland / comms-gatekeeper / 28041467667
85%

Build:
DEFAULT BRANCH: main
Ran 23 Jun 2026 04:41PM UTC
Jobs 1
Files 147
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

23 Jun 2026 04:39PM UTC coverage: 85.248% (+0.003%) from 85.245%
28041467667

push

github

web-flow
fix: suppress comms events for preview realms regardless of ALLOW_LOCAL_PREVIEW (#271)

The participant joined/left webhook handlers skipped publishing
UserJoinedRoom/UserLeftRoom events for local preview realms via
livekit.isLocalPreview(). That predicate is gated behind the
ALLOW_LOCAL_PREVIEW config flag, which is intentionally disabled in
production (it bypasses auth, scene-ban enforcement and authorization
for preview realms). As a result the suppression never ran in
production and preview sessions — which connect to production comms —
still produced events.

Split the overloaded predicate in the livekit adapter:

- isPreviewRealmName(realmName): name-only detection, independent of the
  config flag. Grants no privileges, so it is safe to evaluate in
  production. Used by the join/left handlers to suppress events.
- isLocalPreview(realmName): now layers the ALLOW_LOCAL_PREVIEW gate on
  top of isPreviewRealmName and remains the predicate for the
  privilege-granting code paths, which must stay gated in production.

The existing handler unit tests stayed green only because the livekit
mock modeled isLocalPreview as a name-only check, masking the gate.
Added regression tests that reproduce production (gate off,
isPreviewRealmName true) and assert events are still suppressed, plus
adapter coverage for isPreviewRealmName.

1087 of 1401 branches covered (77.59%)

Branch coverage included in aggregate %.

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

2987 of 3378 relevant lines covered (88.43%)

74.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28041467667.1 23 Jun 2026 04:41PM UTC 294
86.53
GitHub Action Run
Source Files on build 28041467667
  • Tree
  • List 147
  • Changed 96
  • Source Changed 3
  • Coverage Changed 96
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28041467667
  • dd343915 on github
  • Prev Build on main (#27975617693)
  • Next Build on main (#28047179576)
  • 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