Repository navigation
!build: default media bridges to LiveKit - #25239
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughThis PR switches default media bridges for audio, camera, and screenshare to LiveKit across backend defaults, HTML5 client logic, and configuration files. Packaging and service scripts add Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR switches BigBlueButton 4.0’s default media stack to LiveKit (audio/camera/screenshare), ensures LiveKit packages/services are installed/managed by default, and updates Playwright CI to run media tests against both the new default (LiveKit) and the legacy bridge (bbb-webrtc-sfu).
Changes:
- Default bridge selection updated across server/web/client to prefer
livekit(with legacy bridges still supported). - Packaging/systemd changes to install/enable LiveKit components by default and wire them into
bigbluebutton.target. - Playwright suite made “bridge-aware” (new
MEDIA_BRIDGEknob, new@mediatagging, and a dedicated legacy-bridge CI job).
Reviewed changes
Copilot reviewed 48 out of 49 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/docs/new-features.md | Updates docs to reflect LiveKit default and legacy override options |
| docs/docs/development/architecture.md | Adds LiveKit to architecture documentation |
| docs/docs/administration/install.md | Updates install/status examples for LiveKit defaults/services |
| docs/docs/administration/customize.md | Updates bridge config defaults/options to LiveKit |
| docs/docs/administration/configure-firewall.md | Notes LiveKit RTP usage on existing UDP range |
| build/packages-template/bigbluebutton/build.sh | Installs bbb-livekit by default via meta-package build list |
| build/packages-template/bbb-webrtc-sfu/opts-noble.sh | Adds bbb-livekit dependency for builds |
| build/packages-template/bbb-webrtc-sfu/bbb-webrtc-sfu.service | Orders SFU after livekit-server |
| build/packages-template/bbb-webrtc-sfu/after-install.sh | Enables LiveKit module + provisions key/secret into SFU config |
| build/packages-template/bbb-webrtc-recorder/opts-noble.sh | Adds bbb-livekit/yq deps for recorder packaging |
| build/packages-template/bbb-webrtc-recorder/after-install.sh | Provisions LiveKit key/secret into recorder env file |
| build/packages-template/bbb-livekit/livekit-sip.service | Binds livekit-sip into bigbluebutton.target |
| build/packages-template/bbb-livekit/after-install.sh | Tightens perms and enables/starts livekit-sip |
| bigbluebutton-web/grails-app/conf/bigbluebutton.properties | Defaults audioBridge/cameraBridge/screenShareBridge to LiveKit |
| bigbluebutton-tests/playwright/webcam/webcam.ts | Masks dynamic overlays to reduce cross-bridge screenshot flakiness |
| bigbluebutton-tests/playwright/webcam/webcam.spec.ts | Tags webcam suite as @media |
| bigbluebutton-tests/playwright/user/user.spec.ts | Tags selected user/media tests as @media |
| bigbluebutton-tests/playwright/user/multiusers.ts | Routes mic selection through bridge-aware helper |
| bigbluebutton-tests/playwright/screenshare/screenshare.spec.ts | Tags screenshare suite as @media |
| bigbluebutton-tests/playwright/presentation/presentation.spec.ts | Tags camera-as-content test as @media |
| bigbluebutton-tests/playwright/parameters/parameters.spec.ts | Tags media-related parameter tests; skips listen-only under LiveKit |
| bigbluebutton-tests/playwright/parameters/customparameters.ts | Uses bridge-aware mic-click helper |
| bigbluebutton-tests/playwright/parameters/createParameters.ts | Uses bridge-aware mic-click helper |
| bigbluebutton-tests/playwright/options/options.spec.ts | Tags data-savings media settings tests as @media |
| bigbluebutton-tests/playwright/notifications/notifications.ts | Skips listen-only notification path for LiveKit |
| bigbluebutton-tests/playwright/notifications/notifications.spec.ts | Tags audio-related notification tests as @media; skips listen-only under LiveKit |
| bigbluebutton-tests/playwright/multifunctional-mode/multifunctionalMode.spec.ts | Tags camera-dragging tests as @media |
| bigbluebutton-tests/playwright/layouts/layouts.spec.ts | Adds @media tag to layout suite |
| bigbluebutton-tests/playwright/errorLogs/errorLogs.spec.ts | Tags audio/webcam error-log tests as @media |
| bigbluebutton-tests/playwright/core/setup/global.setup.ts | Logs selected media bridge during setup |
| bigbluebutton-tests/playwright/core/page.ts | Appends legacy bridge create params when MEDIA_BRIDGE=bbb-webrtc-sfu |
| bigbluebutton-tests/playwright/core/livekit.ts | Introduces MEDIA_BRIDGE selection + legacy create-param helper |
| bigbluebutton-tests/playwright/core/elements.ts | Adds selector for webcam user-status overlay |
| bigbluebutton-tests/playwright/breakout/join.ts | Uses bridge-aware mic-click helper in breakout join flow |
| bigbluebutton-tests/playwright/breakout/breakout.spec.ts | Tags breakout media tests as @media |
| bigbluebutton-tests/playwright/audio/util.ts | Uses bridge-aware mic-click helper in audio util |
| bigbluebutton-tests/playwright/audio/audio.ts | Uses bridge-aware mic-click helper in audio flows |
| bigbluebutton-tests/playwright/audio/audio.spec.ts | Tags audio suite as @media; handles LiveKit auto-join behavior; skips listen-only under LiveKit |
| bigbluebutton-tests/playwright/.env.template | Documents MEDIA_BRIDGE environment variable |
| bigbluebutton-html5/private/config/settings.yml | Switches deprecated audio bridge defaults to livekit |
| bigbluebutton-html5/imports/ui/services/audio-manager/index.js | Defaults audio bridges to LiveKit bridge implementation |
| bigbluebutton-html5/imports/ui/core/initial-values/meetingClientSettings.ts | Updates initial audio bridge defaults to livekit |
| bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/user-status/component.tsx | Adds test hook for webcam user-status overlay |
| bigbluebutton-html5/imports/ui/components/video-provider/container.tsx | Makes LiveKit camera bridge the default provider |
| bigbluebutton-html5/imports/ui/components/screenshare/service.js | Makes LiveKit screenshare bridge the default |
| bigbluebutton-config/bin/bbb-conf | Adds livekit-sip to status output; fixes config path display |
| bbb-common-web/src/main/java/org/bigbluebutton/api/ParamsProcessorUtil.java | Defaults meeting bridge params to livekit |
| bbb-common-web/src/main/java/org/bigbluebutton/api/domain/Meeting.java | Defaults meeting bridge fields to livekit |
| .github/workflows/automated-tests.yml | Installs bbb-livekit; adds legacy media test job; includes it in reporting |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
18e701f to
9a8feca
Compare
|
Requested review for @antobinary mainly for build + docs and the Requested review for @germanocaumo mainly for the CI/test changes. |
germanocaumo
left a comment
There was a problem hiding this comment.
Reviewed and tested a bit the tests locally, all good.
|
This pull request has conflicts ☹ |
9a8feca to
3cfdce4
Compare
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/automated-tests.yml:
- Around line 714-800: All GitHub Actions references in this workflow job use
floating version tags (v5 and v6) instead of pinned SHAs, and both checkout
steps are missing security hardening. Replace all floating refs like
actions/checkout@v5, actions/setup-node@v5, actions/cache@v5, and
actions/upload-artifact@v6 with their corresponding pinned SHA versions.
Additionally, add persist-credentials: false to both checkout steps (the one
checking out the PR merge ref and the one checking out the ref parameter) to
prevent credential persistence.
- Around line 727-737: The Playwright caches configured in the workflow (both
the npm cache via actions/setup-node and the Playwright binaries cache via
actions/cache) are currently enabled for pull_request runs from forks, allowing
cache poisoning that can affect trusted builds. To fix this, add conditions to
gate cache writes to trusted refs only by either: (1) adding an `if` condition
to both the setup-node step and the cache step to restrict writes to trusted
branches (such as checking that the event is not a pull_request or that the ref
matches your main branch), or (2) incorporate the GitHub ref or event context
into the cache keys for both steps so that fork pull requests use different
cache keys than trusted builds, preventing cross-contamination. Choose the
approach that best fits your CI/CD security model.
In `@bigbluebutton-tests/playwright/core/page.ts`:
- Around line 287-294: The visibility check for actionsBarBackground at line 291
uses checkElement() which only verifies DOM presence, not visibility, but line
292 calls waitForSelector() expecting a visible element, causing timeout if the
element is hidden. Change the visibility guard at line 291 to verify that
actionsBarBackground is actually visible (not just present in the DOM), ensuring
consistency with the visibility requirement of waitForSelector() on line 292.
This may involve using a different method that checks visibility state or
passing visibility parameters to the existing checkElement() call.
In `@docs/docs/development/architecture.md`:
- Around line 101-114: The current wording in the FreeSWITCH paragraph and the
"Joining a voice conference" section creates confusion about FreeSWITCH's role
with LiveKit dial-in. Clarify that FreeSWITCH remains available as an
alternative audio bridge for the HTML5 client (legacy path), but for dial-in
with LiveKit (the default), FreeSWITCH acts only as the SIP gateway through
livekit-sip, not as a separate telephony handler. Update the sentence starting
with "FreeSWITCH remains available" to distinguish between the legacy
alternative bridge role and the SIP gateway role in the LiveKit dial-in flow.
Similarly, revise the "Joining a voice conference" section to clarify that
dial-in goes through livekit-sip with FreeSWITCH as the gateway, not as a direct
alternative to LiveKit for telephony.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 2a7a323a-82ef-4265-a0d8-c0afebb20e49
⛔ Files ignored due to path filters (6)
bigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-with-home-background-Chromium-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-with-new-background-Chromium-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/mod-whiteboard-resize-initial-Chromium-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/mod-whiteboard-resize-shrunk-Chromium-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/user-whiteboard-resize-initial-Chromium-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/whiteboard/whiteboard.spec.ts-snapshots/user-whiteboard-resize-shrunk-Chromium-linux.pngis excluded by!**/*.png
📒 Files selected for processing (50)
.github/workflows/automated-tests.ymlbbb-common-web/src/main/java/org/bigbluebutton/api/ParamsProcessorUtil.javabbb-common-web/src/main/java/org/bigbluebutton/api/domain/Meeting.javabigbluebutton-config/bin/bbb-confbigbluebutton-html5/imports/ui/components/screenshare/service.jsbigbluebutton-html5/imports/ui/components/video-provider/container.tsxbigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/user-status/component.tsxbigbluebutton-html5/imports/ui/core/initial-values/meetingClientSettings.tsbigbluebutton-html5/imports/ui/services/audio-manager/index.jsbigbluebutton-html5/private/config/settings.ymlbigbluebutton-tests/playwright/.env.templatebigbluebutton-tests/playwright/audio/audio.spec.tsbigbluebutton-tests/playwright/audio/audio.tsbigbluebutton-tests/playwright/audio/util.tsbigbluebutton-tests/playwright/breakout/breakout.spec.tsbigbluebutton-tests/playwright/breakout/join.tsbigbluebutton-tests/playwright/core/elements.tsbigbluebutton-tests/playwright/core/livekit.tsbigbluebutton-tests/playwright/core/page.tsbigbluebutton-tests/playwright/core/setup/global.setup.tsbigbluebutton-tests/playwright/errorLogs/errorLogs.spec.tsbigbluebutton-tests/playwright/layouts/layouts.spec.tsbigbluebutton-tests/playwright/multifunctional-mode/multifunctionalMode.spec.tsbigbluebutton-tests/playwright/notifications/notifications.spec.tsbigbluebutton-tests/playwright/notifications/notifications.tsbigbluebutton-tests/playwright/options/options.spec.tsbigbluebutton-tests/playwright/parameters/createParameters.tsbigbluebutton-tests/playwright/parameters/customparameters.tsbigbluebutton-tests/playwright/parameters/parameters.spec.tsbigbluebutton-tests/playwright/presentation/presentation.spec.tsbigbluebutton-tests/playwright/screenshare/screenshare.spec.tsbigbluebutton-tests/playwright/user/multiusers.tsbigbluebutton-tests/playwright/user/user.spec.tsbigbluebutton-tests/playwright/webcam/webcam.spec.tsbigbluebutton-tests/playwright/webcam/webcam.tsbigbluebutton-tests/playwright/whiteboard/whiteboardResize.tsbigbluebutton-web/grails-app/conf/bigbluebutton.propertiesbuild/packages-template/bbb-livekit/after-install.shbuild/packages-template/bbb-livekit/livekit-sip.servicebuild/packages-template/bbb-webrtc-recorder/after-install.shbuild/packages-template/bbb-webrtc-recorder/opts-noble.shbuild/packages-template/bbb-webrtc-sfu/after-install.shbuild/packages-template/bbb-webrtc-sfu/bbb-webrtc-sfu.servicebuild/packages-template/bbb-webrtc-sfu/opts-noble.shbuild/packages-template/bigbluebutton/build.shdocs/docs/administration/configure-firewall.mddocs/docs/administration/customize.mddocs/docs/administration/install.mddocs/docs/development/architecture.mddocs/docs/new-features.md
| - name: Checkout PR's source merged into its target branch | ||
| if: github.event_name == 'pull_request' | ||
| uses: actions/checkout@v5 | ||
| with: | ||
| ref: refs/pull/${{ github.event.number }}/merge | ||
| - name: Checkout commit/branch | ||
| if: github.event_name != 'pull_request' | ||
| uses: actions/checkout@v5 | ||
| with: | ||
| ref: ${{ github.ref }} | ||
| - name: Install BBB | ||
| timeout-minutes: 60 | ||
| uses: ./.github/actions/install-bbb | ||
| - uses: actions/setup-node@v5 | ||
| name: PLAYWRIGHT CACHE - Restore Playwright node modules from cache | ||
| with: | ||
| cache: "npm" | ||
| cache-dependency-path: bigbluebutton-tests/playwright/package-lock.json | ||
| - name: PLAYWRIGHT CACHE - Restore Playwright binaries from cache | ||
| id: cache | ||
| uses: actions/cache@v5 | ||
| with: | ||
| path: /home/runner/.cache/ms-playwright/ | ||
| key: ${{ runner.os }}-playwright-bins-${{ hashFiles('bigbluebutton-tests/playwright/package-lock.json') }} | ||
| - name: Install test dependencies | ||
| working-directory: ./bigbluebutton-tests/playwright | ||
| timeout-minutes: 25 | ||
| run: | | ||
| npm ci | ||
| npx playwright install-deps | ||
| npx playwright install | ||
| # This job re-runs the @media-tagged tests against the legacy | ||
| # bbb-webrtc-sfu bridge, selected per-meeting via MEDIA_BRIDGE create params. | ||
| - name: Run legacy (bbb-webrtc-sfu) media tests | ||
| working-directory: ./bigbluebutton-tests/playwright | ||
| timeout-minutes: 25 | ||
| env: | ||
| NODE_EXTRA_CA_CERTS: /usr/local/share/ca-certificates/bbb-dev/bbb-dev-ca.crt | ||
| ACTIONS_RUNNER_DEBUG: true | ||
| BBB_URL: https://bbb-ci.test/bigbluebutton/ | ||
| BBB_SECRET: bbbci | ||
| MEDIA_BRIDGE: bbb-webrtc-sfu | ||
| run: npx playwright test --project=chromium --grep '(?=.*@ci)(?=.*@media)' --grep-invert '@flaky|@need-update|@only-headed|@setting-required' | ||
| - if: failure() | ||
| name: Upload blob report to GitHub Actions Artifacts | ||
| uses: actions/upload-artifact@v6 | ||
| with: | ||
| name: blob-report-legacy | ||
| path: bigbluebutton-tests/playwright/blob-report | ||
| if-no-files-found: ignore | ||
| - if: failure() | ||
| name: Generate legacy media HTML report from blob report | ||
| shell: bash | ||
| working-directory: ./bigbluebutton-tests/playwright | ||
| run: | | ||
| if [ -d "./blob-report" ]; then | ||
| npx playwright merge-reports --reporter html ./blob-report | ||
| else | ||
| echo "blob-report directory not found, skipping HTML report generation" | ||
| fi | ||
| - if: failure() | ||
| name: Upload legacy media HTML report to GitHub Actions Artifacts | ||
| uses: actions/upload-artifact@v6 | ||
| with: | ||
| name: test-report_legacy | ||
| path: bigbluebutton-tests/playwright/playwright-report | ||
| - if: always() | ||
| name: Upload logs folder | ||
| uses: actions/upload-artifact@v6 | ||
| with: | ||
| name: browser-logs-legacy | ||
| path: bigbluebutton-tests/playwright/logs | ||
| - if: failure() | ||
| name: Prepare artifacts | ||
| uses: ./.github/actions/prepare-artifacts | ||
| - if: failure() | ||
| name: Upload bbb-configs artifact | ||
| uses: actions/upload-artifact@v6 | ||
| with: | ||
| name: bbb-configs-legacy | ||
| path: configs | ||
| - if: failure() | ||
| name: Upload bbb-logs artifact | ||
| uses: actions/upload-artifact@v6 | ||
| with: | ||
| name: bbb-logs-legacy | ||
| path: ./bbb-logs.tar.gz |
There was a problem hiding this comment.
Pin the new job’s GitHub Actions and drop checkout credentials.
The added checkout, setup-node, cache, and upload-artifact steps all use floating refs, and the checkout steps still persist credentials by default. Pin them to SHAs and set persist-credentials: false on both checkouts.
🧰 Tools
🪛 zizmor (1.25.2)
[warning] 714-718: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
[warning] 719-723: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
[error] 716-716: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[error] 721-721: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[error] 727-727: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[error] 734-734: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[error] 759-759: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[error] 776-776: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[error] 782-782: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[error] 791-791: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[error] 797-797: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[error] 727-727: runtime artifacts potentially vulnerable to a cache poisoning attack (cache-poisoning): this step
(cache-poisoning)
[error] 734-734: runtime artifacts potentially vulnerable to a cache poisoning attack (cache-poisoning): enables caching by default
(cache-poisoning)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @.github/workflows/automated-tests.yml around lines 714 - 800, All GitHub
Actions references in this workflow job use floating version tags (v5 and v6)
instead of pinned SHAs, and both checkout steps are missing security hardening.
Replace all floating refs like actions/checkout@v5, actions/setup-node@v5,
actions/cache@v5, and actions/upload-artifact@v6 with their corresponding pinned
SHA versions. Additionally, add persist-credentials: false to both checkout
steps (the one checking out the PR merge ref and the one checking out the ref
parameter) to prevent credential persistence.
Source: Linters/SAST tools
| - uses: actions/setup-node@v5 | ||
| name: PLAYWRIGHT CACHE - Restore Playwright node modules from cache | ||
| with: | ||
| cache: "npm" | ||
| cache-dependency-path: bigbluebutton-tests/playwright/package-lock.json | ||
| - name: PLAYWRIGHT CACHE - Restore Playwright binaries from cache | ||
| id: cache | ||
| uses: actions/cache@v5 | ||
| with: | ||
| path: /home/runner/.cache/ms-playwright/ | ||
| key: ${{ runner.os }}-playwright-bins-${{ hashFiles('bigbluebutton-tests/playwright/package-lock.json') }} |
There was a problem hiding this comment.
Scope the Playwright caches to trusted refs.
actions/setup-node and the Playwright binary cache are enabled on pull_request runs, so a fork can poison a shared cache key and affect later trusted builds. Gate cache writes to trusted branches or fold the ref into the key.
🧰 Tools
🪛 zizmor (1.25.2)
[error] 727-727: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[error] 734-734: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[error] 727-727: runtime artifacts potentially vulnerable to a cache poisoning attack (cache-poisoning): this step
(cache-poisoning)
[error] 734-734: runtime artifacts potentially vulnerable to a cache poisoning attack (cache-poisoning): enables caching by default
(cache-poisoning)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @.github/workflows/automated-tests.yml around lines 727 - 737, The Playwright
caches configured in the workflow (both the npm cache via actions/setup-node and
the Playwright binaries cache via actions/cache) are currently enabled for
pull_request runs from forks, allowing cache poisoning that can affect trusted
builds. To fix this, add conditions to gate cache writes to trusted refs only by
either: (1) adding an `if` condition to both the setup-node step and the cache
step to restrict writes to trusted branches (such as checking that the event is
not a pull_request or that the ref matches your main branch), or (2) incorporate
the GitHub ref or event context into the cache keys for both steps so that fork
pull requests use different cache keys than trusted builds, preventing
cross-contamination. Choose the approach that best fits your CI/CD security
model.
Source: Linters/SAST tools
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@bigbluebutton-html5/imports/api/audio/client/bridge/livekit.ts`:
- Around line 918-921: The `shouldBeMuted` flag is only being updated via
`setSenderTrackEnabled`, creating a race condition where `joinAudio({ muted:
false })` can publish a track before `shouldBeMuted` is set to false, causing
`handleLocalTrackPublished` to immediately re-mute the track. Update
`shouldBeMuted` in the `joinAudio` method based on the `muted` parameter before
publishing the track, so the bridge state is synchronized and
`handleLocalTrackPublished` sees the correct intent value when invoked.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: ecca11a6-2a5a-414e-a71f-a1097934c6b7
📒 Files selected for processing (3)
bigbluebutton-html5/imports/api/audio/client/bridge/livekit.tsbigbluebutton-html5/imports/ui/services/livekit/index.tsbigbluebutton-tests/playwright/audio/muteReinforcement.spec.ts
b55a840 to
c840617
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@bigbluebutton-html5/imports/ui/services/livekit/index.ts`:
- Line 24: The condition checking window.BBB_EXPOSE_LIVEKIT_ROOM on line 24 uses
a truthy check which can unintentionally expose the liveKitRoom when the
variable is set to non-boolean truthy values. Change the condition from a truthy
check to a strict boolean equality check by adding === true to the
window.BBB_EXPOSE_LIVEKIT_ROOM check, ensuring only explicit boolean true values
will trigger the exposure gate.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: accccb2a-d20f-4cbb-92e4-8f86bb78dd29
📒 Files selected for processing (3)
bigbluebutton-html5/imports/api/audio/client/bridge/livekit.tsbigbluebutton-html5/imports/ui/services/livekit/index.tsbigbluebutton-tests/playwright/audio/muteReinforcement.spec.ts
🚧 Files skipped from review as they are similar to previous changes (2)
- bigbluebutton-html5/imports/api/audio/client/bridge/livekit.ts
- bigbluebutton-tests/playwright/audio/muteReinforcement.spec.ts
|
Test failures that popped up after rebasing this branch seem/are unrelated (see shard 6, presentation tests). |
antobinary
left a comment
There was a problem hiding this comment.
I've read through the documentation changes and the packaging changes. They look fine. I have not had a chance to test the packages on a server yet.
Feel free to merge and if anything, we'll adjust.
Nice work!! What a milestone!! 🍾
|
This pull request has conflicts ☹ |
c840617 to
dcabc80
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@build/packages-template/bbb-livekit/after-install.sh`:
- Around line 29-35: The upgrade flow in the after-install script only creates
the SIP config when the main livekit config heredoc runs, so an existing
livekit.yaml can prevent livekit-sip.yaml from ever being generated before
livekit-sip.service is enabled. Update the after-install logic around the
livekit/livekit-sip setup so the livekit-sip.yaml creation is independent of the
livekit.yaml existence check, and ensure the service enable/start block only
runs after the SIP credentials file has been created or verified. Use the
existing livekit-sip.yaml handling and livekit-sip.service startup code as the
place to separate this dependency.
In `@build/packages-template/bbb-webrtc-sfu/after-install.sh`:
- Around line 56-68: The LiveKit secret is being written into the generated
config that later gets chmod 644, which makes the credential world-readable. In
after-install.sh, update the bbb-webrtc-sfu LiveKit setup around the yq writes
to .livekit.key and .livekit.secret so the secret is not persisted in $TARGET
with broad permissions; instead keep the secret in a restricted location or set
tighter permissions before any chmod 644 step applies. Make sure the fix
preserves the existing webhook.api_key lookup and only changes how the secret is
stored/exposed.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: e924bcfa-06a7-4223-89af-9f650900aaa9
⛔ Files ignored due to path filters (2)
bigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-with-home-background-Chromium-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-with-new-background-Chromium-linux.pngis excluded by!**/*.png
📒 Files selected for processing (46)
.github/workflows/automated-tests.ymlbbb-common-web/src/main/java/org/bigbluebutton/api/ParamsProcessorUtil.javabbb-common-web/src/main/java/org/bigbluebutton/api/domain/Meeting.javabigbluebutton-config/bin/bbb-confbigbluebutton-html5/imports/ui/components/screenshare/service.jsbigbluebutton-html5/imports/ui/components/video-provider/container.tsxbigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/user-status/component.tsxbigbluebutton-html5/imports/ui/core/initial-values/meetingClientSettings.tsbigbluebutton-html5/imports/ui/services/audio-manager/index.jsbigbluebutton-html5/imports/ui/services/livekit/index.tsbigbluebutton-html5/private/config/settings.ymlbigbluebutton-tests/playwright/.env.templatebigbluebutton-tests/playwright/audio/audio.spec.tsbigbluebutton-tests/playwright/audio/audio.tsbigbluebutton-tests/playwright/audio/muteReinforcement.spec.tsbigbluebutton-tests/playwright/audio/util.tsbigbluebutton-tests/playwright/breakout/breakout.spec.tsbigbluebutton-tests/playwright/breakout/join.tsbigbluebutton-tests/playwright/core/elements.tsbigbluebutton-tests/playwright/core/livekit.tsbigbluebutton-tests/playwright/core/page.tsbigbluebutton-tests/playwright/core/setup/global.setup.tsbigbluebutton-tests/playwright/errorLogs/errorLogs.spec.tsbigbluebutton-tests/playwright/layouts/layouts.spec.tsbigbluebutton-tests/playwright/multifunctional-mode/multifunctionalMode.spec.tsbigbluebutton-tests/playwright/notifications/notifications.spec.tsbigbluebutton-tests/playwright/notifications/notifications.tsbigbluebutton-tests/playwright/options/options.spec.tsbigbluebutton-tests/playwright/parameters/createParameters.tsbigbluebutton-tests/playwright/parameters/customparameters.tsbigbluebutton-tests/playwright/parameters/parameters.spec.tsbigbluebutton-tests/playwright/presentation/presentation.spec.tsbigbluebutton-tests/playwright/screenshare/screenshare.spec.tsbigbluebutton-tests/playwright/user/multiusers.tsbigbluebutton-tests/playwright/user/user.spec.tsbigbluebutton-tests/playwright/webcam/webcam.spec.tsbigbluebutton-tests/playwright/webcam/webcam.tsbigbluebutton-web/grails-app/conf/bigbluebutton.propertiesbuild/packages-template/bbb-livekit/after-install.shbuild/packages-template/bbb-livekit/livekit-sip.servicebuild/packages-template/bbb-webrtc-recorder/after-install.shbuild/packages-template/bbb-webrtc-recorder/opts-noble.shbuild/packages-template/bbb-webrtc-sfu/after-install.shbuild/packages-template/bbb-webrtc-sfu/bbb-webrtc-sfu.servicebuild/packages-template/bbb-webrtc-sfu/opts-noble.shbuild/packages-template/bigbluebutton/build.sh
✅ Files skipped from review due to trivial changes (7)
- build/packages-template/bbb-webrtc-sfu/opts-noble.sh
- build/packages-template/bbb-webrtc-recorder/opts-noble.sh
- bigbluebutton-tests/playwright/.env.template
- bigbluebutton-tests/playwright/options/options.spec.ts
- bigbluebutton-tests/playwright/core/setup/global.setup.ts
- bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/user-status/component.tsx
- bigbluebutton-tests/playwright/user/user.spec.ts
🚧 Files skipped from review as they are similar to previous changes (35)
- bigbluebutton-tests/playwright/webcam/webcam.spec.ts
- build/packages-template/bigbluebutton/build.sh
- bigbluebutton-html5/imports/ui/core/initial-values/meetingClientSettings.ts
- bbb-common-web/src/main/java/org/bigbluebutton/api/ParamsProcessorUtil.java
- bigbluebutton-tests/playwright/presentation/presentation.spec.ts
- bigbluebutton-web/grails-app/conf/bigbluebutton.properties
- bigbluebutton-tests/playwright/screenshare/screenshare.spec.ts
- bigbluebutton-tests/playwright/multifunctional-mode/multifunctionalMode.spec.ts
- bigbluebutton-tests/playwright/audio/audio.ts
- bigbluebutton-tests/playwright/layouts/layouts.spec.ts
- bigbluebutton-html5/imports/ui/components/video-provider/container.tsx
- bigbluebutton-tests/playwright/audio/util.ts
- bigbluebutton-tests/playwright/core/elements.ts
- bigbluebutton-tests/playwright/audio/audio.spec.ts
- bbb-common-web/src/main/java/org/bigbluebutton/api/domain/Meeting.java
- bigbluebutton-html5/imports/ui/services/audio-manager/index.js
- bigbluebutton-html5/imports/ui/services/livekit/index.ts
- bigbluebutton-tests/playwright/errorLogs/errorLogs.spec.ts
- bigbluebutton-tests/playwright/core/livekit.ts
- bigbluebutton-html5/imports/ui/components/screenshare/service.js
- build/packages-template/bbb-webrtc-sfu/bbb-webrtc-sfu.service
- bigbluebutton-html5/private/config/settings.yml
- bigbluebutton-tests/playwright/breakout/breakout.spec.ts
- bigbluebutton-config/bin/bbb-conf
- bigbluebutton-tests/playwright/notifications/notifications.ts
- bigbluebutton-tests/playwright/webcam/webcam.ts
- bigbluebutton-tests/playwright/audio/muteReinforcement.spec.ts
- bigbluebutton-tests/playwright/notifications/notifications.spec.ts
- build/packages-template/bbb-livekit/livekit-sip.service
- bigbluebutton-tests/playwright/user/multiusers.ts
- bigbluebutton-tests/playwright/parameters/createParameters.ts
- bigbluebutton-tests/playwright/breakout/join.ts
- bigbluebutton-tests/playwright/core/page.ts
- bigbluebutton-tests/playwright/parameters/parameters.spec.ts
- bigbluebutton-tests/playwright/parameters/customparameters.ts
dcabc80 to
1956ae6
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (2)
build/packages-template/bbb-webrtc-sfu/after-install.sh (1)
60-60: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse
[[to clear the failing SonarCloud gate.The
[ ... ]tests on Lines 60, 65, and 66 are functionally safe (quoted variables), but SonarCloud is failing on them. Converting to[[ ... ]]clears the check.Also applies to: 65-66
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@build/packages-template/bbb-webrtc-sfu/after-install.sh` at line 60, Convert the shell test expressions in the after-install script from single-bracket tests to double-bracket tests to satisfy the SonarCloud gate; update the conditional that checks for livekit.yaml and the related quoted variable checks in the same block, using the existing shell logic around the file existence and variable comparisons so the behavior stays unchanged while matching the preferred [[ ... ]] syntax.Source: Linters/SAST tools
build/packages-template/bbb-livekit/after-install.sh (1)
23-23: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse
[[to clear the failing SonarCloud gate.These
[ ... ]tests are functionally safe here (variables are quoted), but SonarCloud is flagging them on Lines 23 and 39. Switching to[[ ... ]]clears the failing check.♻️ Suggested change
-if [ ! -f /etc/bigbluebutton/livekit-sip.yaml ]; then +if [[ ! -f /etc/bigbluebutton/livekit-sip.yaml ]]; then- if [ -f "$f" ]; then + if [[ -f "$f" ]]; thenAlso applies to: 39-39
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@build/packages-template/bbb-livekit/after-install.sh` at line 23, Update the shell conditionals in after-install.sh that use single-bracket tests so they use the Bash [[ ... ]] form instead; specifically adjust the checks around the livekit-sip.yaml and livekit_sip directory logic in the script. Keep the same test semantics, just replace the [ ... ] expressions with [[ ... ]] to satisfy SonarCloud while preserving behavior.Source: Linters/SAST tools
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@build/packages-template/bbb-webrtc-recorder/after-install.sh`:
- Around line 21-33: The bbb-webrtc-recorder credential sync logic only removes
stale BBBRECORDER_LIVEKIT_* entries after both LIVEKIT_KEY and LIVEKIT_SECRET
are present, so old values can persist when the LiveKit lookup fails. Update the
after-install.sh flow around the LIVEKIT_KEY/LIVEKIT_SECRET checks so
/etc/default/bbb-webrtc-recorder is always cleared of existing
BBBRECORDER_LIVEKIT_APIKEY and BBBRECORDER_LIVEKIT_APISECRET entries before
attempting to write new ones, and ensure the file remains empty of those keys
whenever either lookup is missing or invalid.
In `@build/packages-template/bbb-webrtc-sfu/after-install.sh`:
- Around line 56-70: Temporarily disable bash xtrace in the credential-handling
block of after-install.sh so the LiveKit secret does not get echoed into install
logs; wrap the LIVEKIT_KEY/LIVEKIT_SECRET extraction and the yq updates to
.livekit.key and .livekit.secret with set +x / set -x (or equivalent) while
keeping the rest of the script traced. Use the existing livekit.yaml sync logic
and the LIVEKIT_KEY/LIVEKIT_SECRET variables as the place to apply the change.
---
Nitpick comments:
In `@build/packages-template/bbb-livekit/after-install.sh`:
- Line 23: Update the shell conditionals in after-install.sh that use
single-bracket tests so they use the Bash [[ ... ]] form instead; specifically
adjust the checks around the livekit-sip.yaml and livekit_sip directory logic in
the script. Keep the same test semantics, just replace the [ ... ] expressions
with [[ ... ]] to satisfy SonarCloud while preserving behavior.
In `@build/packages-template/bbb-webrtc-sfu/after-install.sh`:
- Line 60: Convert the shell test expressions in the after-install script from
single-bracket tests to double-bracket tests to satisfy the SonarCloud gate;
update the conditional that checks for livekit.yaml and the related quoted
variable checks in the same block, using the existing shell logic around the
file existence and variable comparisons so the behavior stays unchanged while
matching the preferred [[ ... ]] syntax.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 23430e2b-a094-424c-b438-c2853aca3dcf
⛔ Files ignored due to path filters (2)
bigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-with-home-background-Chromium-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-with-new-background-Chromium-linux.pngis excluded by!**/*.png
📒 Files selected for processing (45)
.github/workflows/automated-tests.ymlbbb-common-web/src/main/java/org/bigbluebutton/api/ParamsProcessorUtil.javabbb-common-web/src/main/java/org/bigbluebutton/api/domain/Meeting.javabigbluebutton-html5/imports/ui/components/screenshare/service.jsbigbluebutton-html5/imports/ui/components/video-provider/container.tsxbigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/user-status/component.tsxbigbluebutton-html5/imports/ui/core/initial-values/meetingClientSettings.tsbigbluebutton-html5/imports/ui/services/audio-manager/index.jsbigbluebutton-html5/imports/ui/services/livekit/index.tsbigbluebutton-html5/private/config/settings.ymlbigbluebutton-tests/playwright/.env.templatebigbluebutton-tests/playwright/audio/audio.spec.tsbigbluebutton-tests/playwright/audio/audio.tsbigbluebutton-tests/playwright/audio/muteReinforcement.spec.tsbigbluebutton-tests/playwright/audio/util.tsbigbluebutton-tests/playwright/breakout/breakout.spec.tsbigbluebutton-tests/playwright/breakout/join.tsbigbluebutton-tests/playwright/core/elements.tsbigbluebutton-tests/playwright/core/livekit.tsbigbluebutton-tests/playwright/core/page.tsbigbluebutton-tests/playwright/core/setup/global.setup.tsbigbluebutton-tests/playwright/errorLogs/errorLogs.spec.tsbigbluebutton-tests/playwright/layouts/layouts.spec.tsbigbluebutton-tests/playwright/multifunctional-mode/multifunctionalMode.spec.tsbigbluebutton-tests/playwright/notifications/notifications.spec.tsbigbluebutton-tests/playwright/notifications/notifications.tsbigbluebutton-tests/playwright/options/options.spec.tsbigbluebutton-tests/playwright/parameters/createParameters.tsbigbluebutton-tests/playwright/parameters/customparameters.tsbigbluebutton-tests/playwright/parameters/parameters.spec.tsbigbluebutton-tests/playwright/presentation/presentation.spec.tsbigbluebutton-tests/playwright/screenshare/screenshare.spec.tsbigbluebutton-tests/playwright/user/multiusers.tsbigbluebutton-tests/playwright/user/user.spec.tsbigbluebutton-tests/playwright/webcam/webcam.spec.tsbigbluebutton-tests/playwright/webcam/webcam.tsbigbluebutton-web/grails-app/conf/bigbluebutton.propertiesbuild/packages-template/bbb-livekit/after-install.shbuild/packages-template/bbb-webrtc-recorder/after-install.shbuild/packages-template/bbb-webrtc-sfu/after-install.shdocs/docs/administration/configure-firewall.mddocs/docs/administration/customize.mddocs/docs/administration/install.mddocs/docs/development/architecture.mddocs/docs/new-features.md
✅ Files skipped from review due to trivial changes (13)
- bigbluebutton-tests/playwright/layouts/layouts.spec.ts
- bigbluebutton-tests/playwright/presentation/presentation.spec.ts
- bigbluebutton-tests/playwright/screenshare/screenshare.spec.ts
- bigbluebutton-tests/playwright/.env.template
- bigbluebutton-html5/imports/ui/core/initial-values/meetingClientSettings.ts
- bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/user-status/component.tsx
- bbb-common-web/src/main/java/org/bigbluebutton/api/domain/Meeting.java
- docs/docs/administration/configure-firewall.md
- bigbluebutton-tests/playwright/core/setup/global.setup.ts
- bigbluebutton-tests/playwright/user/user.spec.ts
- bigbluebutton-tests/playwright/webcam/webcam.ts
- docs/docs/administration/install.md
- docs/docs/new-features.md
🚧 Files skipped from review as they are similar to previous changes (27)
- bigbluebutton-tests/playwright/webcam/webcam.spec.ts
- bigbluebutton-web/grails-app/conf/bigbluebutton.properties
- bigbluebutton-tests/playwright/multifunctional-mode/multifunctionalMode.spec.ts
- bigbluebutton-tests/playwright/errorLogs/errorLogs.spec.ts
- bigbluebutton-tests/playwright/user/multiusers.ts
- bigbluebutton-tests/playwright/options/options.spec.ts
- bigbluebutton-tests/playwright/notifications/notifications.spec.ts
- bigbluebutton-tests/playwright/audio/util.ts
- bigbluebutton-tests/playwright/audio/audio.spec.ts
- bbb-common-web/src/main/java/org/bigbluebutton/api/ParamsProcessorUtil.java
- bigbluebutton-tests/playwright/core/elements.ts
- bigbluebutton-tests/playwright/breakout/breakout.spec.ts
- bigbluebutton-html5/imports/ui/services/livekit/index.ts
- bigbluebutton-tests/playwright/parameters/createParameters.ts
- bigbluebutton-tests/playwright/audio/audio.ts
- bigbluebutton-tests/playwright/breakout/join.ts
- bigbluebutton-tests/playwright/core/page.ts
- bigbluebutton-html5/imports/ui/services/audio-manager/index.js
- bigbluebutton-html5/private/config/settings.yml
- docs/docs/administration/customize.md
- bigbluebutton-tests/playwright/parameters/customparameters.ts
- bigbluebutton-html5/imports/ui/components/screenshare/service.js
- bigbluebutton-tests/playwright/audio/muteReinforcement.spec.ts
- bigbluebutton-tests/playwright/core/livekit.ts
- bigbluebutton-html5/imports/ui/components/video-provider/container.tsx
- bigbluebutton-tests/playwright/parameters/parameters.spec.ts
- bigbluebutton-tests/playwright/notifications/notifications.ts
1956ae6 to
fa08af4
Compare
|
This pull request has conflicts ☹ |
Add bbb-livekit to the bigbluebutton meta-package (local and CI builds) and make bbb-webrtc-sfu and bbb-webrtc-recorder depend on it, so LiveKit is installed and configured on every BigBlueButton install.
Bind livekit-sip to bigbluebutton.target and order bbb-webrtc-sfu after livekit-server. bbb-conf now reports livekit-sip and prints the correct /etc/bigbluebutton/livekit.yaml path.
Enable the bbb-webrtc-sfu LiveKit module by default and move the LiveKit API key/secret provisioning out of bbb-livekit into the SFU and recorder packages, which now depend on it. Enable and start livekit-sip, and restrict the dedicated LiveKit credential files (livekit.yaml, livekit-sip.yaml and the recorder env) to 0640.
Set cameraBridge, screenShareBridge and audioBridge to livekit in bbb-web's properties and in the bbb-common-web defaults (ParamsProcessorUtil, Meeting), so meetings use LiveKit unless overridden per meeting or server-wide.
Flip the hardcoded bbb-webrtc-sfu fallbacks in camera, screen share and audio bridge selection (and the legacy settings.yml audio defaults) to livekit, matching the new server default.
Adjust the LiveKit docs from experimental/opt-in to the default stack, flip the bridge default tables, note bbb-livekit ships by default, and explain how to switch back to bbb-webrtc-sfu/freeswitch.
LiveKit is the tentative defeault media bridge on 4.0, so run the Playwright suite with it by default and keep bbb-webrtc-sfu reachable as the legacy bridge through the MEDIA_BRIDGE env var (core/livekit.ts). LiveKit's audio modal does not expose the microphone/listen-only phase, so route mic clicks through a clickMicrophoneButton() no-op and skip the listen-only tests. Tag the A/V-dependent tests @media so a bridge-specific run can select them.
Re-run the @media-tagged tests against bbb-webrtc-sfu in a separate job that sets MEDIA_BRIDGE=bbb-webrtc-sfu, preserving legacy-bridge coverage.
The camera container's dropdown and user-status overlays vary with audio connection state, which differs between media bridges and flakes the webcam background screenshots. Mask them so a single baseline holds for both bridges, and tag the user-status element with a data-test for the selector. The home/custom background baselines are regenerated for the masked render and apply for both the LiveKit and bbb-webrtc-sfu bridges.
LiveKit auto-joins audio muted when the audio modal is closed, so closeAudioModal now leaves audio under LiveKit and ends with the user not in audio, as on the legacy bridge. This fixes the media tests that join audio after init (Mute On Start, Audio notifications, Allow Mods To Unmute, Shortcuts, ...). The redundant per-test leave in the audio spec is removed since it becomes stale after this change. Additionally, the audio notification test clears the 'left audio' toast resulting from that change so that its notification assertion only counts the join toast as expected.
- closeAudioModal: only leave audio when the actions bar is visible, so hideActionsBar no longer times out on the audio dropdown - breakout share-audio: drop the wait for the transient establishing audio label, which LiveKit can go past - breakout join-with-audio: verify the main-room audio leave via the Join Audio button reappearing; the left-audio toast isn't asserted, since under LiveKit the breakout-triggered leave doesn't raise it - recording not-in-audio: skip under LiveKit, where voice.joined stays true after leaving and the no-active-microphone warning never fires
Add a setup guide for telephone dial-in with the LiveKit audio bridge, via the bundled FreeSWITCH or an external call gateway, and note that the existing FreeSWITCH dial-in section applies only to audioBridge=bbb-webrtc-sfu.
Add a new regression test: an out-of-band track unmute while muted must be re-muted so no audio flows while BBB shows the user muted. Additionally, add a way to expose the client's liveKitRoom singleton at the window level for E2E tests to use it. This is controlled by the BBB_EXPOSE_LIVEKIT_ROOM flag, which is selective enabled by tests via Playwrights init scripts. It is _not_ exposed by default.
fa08af4 to
4459d17
Compare
|
✅ Automated tests have passed! |
The install-and-run-legacy-media-tests job re-ran the gate's @media tests on bbb-webrtc-sfu for every pull request and push, since #25239 made LiveKit the default bridge. Since #26190 the Nightly tests workflow runs the whole non-quarantined suite on bbb-webrtc-sfu every night (chromium-bbb-webrtc-sfu, 4 shards): on today's develop that is 620 tests, a strict superset of the 136 the job selected, so the job duplicated coverage the nightly already has. It was also the gate's longest unsharded job, 20 to 35 minutes on its own runner per run (install 4 to 8, tests 16 to 28), and the top source of pull requests red through no fault of their own: of the 20 red PR runs between 2026-10-30 and 11-04, 8 were red only in this job (4 times the bbb-webrtc-sfu timing race of the screenshare test "Hidden presentation stays hidden after screenshare ends when the slide has annotations", 3 step timeouts at 25 minutes on 4.1 pull requests, 1 at 40). None of them caught a bbb-webrtc-sfu regression the main shards had missed. publish-report no longer waits for the job or checks its result. The test-chromium-media-ci script stays for running the selection locally with MEDIA_BRIDGE=bbb-webrtc-sfu; the README says so, names the nightly workflow as where bbb-webrtc-sfu is covered, and drops the job from the "Passed only on retry" note. The v4.1.x-develop twin stays for now: the nightly's cron fires from the default branch only and tests v4.0.x-develop, so 4.1 would lose all automatic bbb-webrtc-sfu coverage. Release branches get it by dispatching the nightly with branch=v4.0.x-release before a tag.



What does this PR do?
tl;dr:
install-and-run-legacy-media-testsfor bbb-webrtc-sfu (allmediatagged tests)Pending:
[ ] Adjust default camera profiles=> Subsequent PRIn detail:
Build
and make bbb-webrtc-sfu and bbb-webrtc-recorder depend on it, so LiveKit
is installed and configured on every BigBlueButton install.
after livekit-server. bbb-conf now reports livekit-sip and prints
the correct /etc/bigbluebutton/livekit.yaml path.
API key/secret provisioning out of bbb-livekit into the SFU and recorder
packages, which now depend on it. Enable and start livekit-sip, and restrict
the dedicated LiveKit credential files (livekit.yaml, livekit-sip.yaml and
the recorder env) to 0640.
properties and in the bbb-common-web defaults (ParamsProcessorUtil, Meeting),
so meetings use LiveKit unless overridden per meeting or server-wide.
Docs
flip the bridge default tables, note bbb-livekit ships by default, and
explain how to switch back to bbb-webrtc-sfu/freeswitch.
via the bundled FreeSWITCH or an external call gateway, and note that
the existing FreeSWITCH dial-in section applies only to
audioBridge=bbb-webrtc-sfu.
Tests
Playwright suite with it by default and keep bbb-webrtc-sfu reachable
as the legacy bridge through the MEDIA_BRIDGE env var (core/livekit.ts).
job that sets MEDIA_BRIDGE=bbb-webrtc-sfu, preserving legacy-bridge
coverage.
connection state, which differs between media bridges and flakes the webcam
background screenshots.
closeAudioModal now leaves audio under LiveKit and ends with the user not in
audio, as on the legacy bridge.
so hideActionsBar no longer times out on the audio dropdown
label, which LiveKit can go past
Audio button reappearing; the left-audio toast isn't asserted, since
under LiveKit the breakout-triggered leave doesn't raise it
true after leaving and the no-active-microphone warning never fires
and the chat input caret, which vary run-to-run and pushed the diff
over the threshold. Mask those regions and regenerate the affected
baselines.
Closes Issue(s)
None