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

decentraland / comms-gatekeeper / 28039749028
85%
main: 85%

Build:
Build:
LAST BUILD BRANCH: 2.27.1
DEFAULT BRANCH: main
Ran 23 Jun 2026 04:13PM 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:10PM UTC coverage: 85.248% (+0.003%) from 85.245%
28039749028

Pull #271

github

LautaroPetaccio
fix: suppress comms events for preview realms regardless of ALLOW_LOCAL_PREVIEW

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.
Pull Request #271: fix: suppress comms events for preview realms regardless of ALLOW_LOCAL_PREVIEW

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 28039749028.1 23 Jun 2026 04:13PM UTC 294
86.53
GitHub Action Run
Source Files on build 28039749028
  • 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 #28039749028
  • Pull Request #271
  • PR Base - main (#27975617693)
  • 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