Skip to content

fix(samples): make the sample plugin tests pass on BigBlueButton 4.0 (SDK 1.x) - #298

Merged
GuiLeme merged 5 commits into
bigbluebutton:v1.xfrom
GuiLeme:claudio-fix-sample-tests-sdk-1x
Oct 2, 2026
Merged

GuiLeme merged 5 commits into
bigbluebutton:v1.xfrom
GuiLeme:claudio-fix-sample-tests-sdk-1x

Conversation

@GuiLeme

@GuiLeme GuiLeme commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

It makes the nine sample plugin tests on the 1.x line pass against BigBlueButton 4.0. Today all nine fail; the core CI shows only one because the other eight are listed as flaky there. There are four causes, each fixed in its own commit:

  1. Manifests declare a range 4.0 rejects. Since feat(plugins)!: support pre-release plugin SDK versions and bump SDK to 1.0.0-beta.2 bigbluebutton#25864 the core runs SDK 1.0.0-beta.2, which does not satisfy ~0.1.5, so bbb-apps-akka refuses every sample (system SDK version [1.0.0-beta.2] does not satisfy plugin requirement [~0.1.5]). The "data-test not found" in CI comes from this: the plugin never loads, the data-test itself exists. The 23 manifests and the README examples now declare ^1.0.0-beta.2.
  2. Tests wait for the wrong log name. They filter on 'PluginLogger', but the client prints pluginLogger(<PluginName>). The name now lives in PLUGIN_LOGGER_NAME; a follow-up commit sets it to the bare pluginLogger the client defines.
  3. The data channel sample hid its own log. Its manifest capped the console at error; it is now info.
  4. The audio test predated LiveKit. Closing the audio modal now auto-joins muted. The core suite's helpers are ported, with MEDIA_BRIDGE=bbb-webrtc-sfu for the legacy bridge.

Validation

  • Against BigBlueButton 4.0 built from source at a3a4d6989a, Chromium only.
  • Before: 9 of 9 fail, with the akka rejection above.
  • After: 9 of 9 pass with --retries=0 and no flaky exclusions in two runs at this head (one with CI=true), and in three earlier runs before the commit that drops the parenthesis from the log-name matcher. Lint and tsc are clean.

Known limitation

The core CI tests the SDK tag pinned in bigbluebutton-html5/package-lock.json (v1.0.0-beta.2), so these fixes reach it only after an SDK release and a core bump of bigbluebutton-html-plugin-sdk and html5PluginSdkVersion. The companion core change must land with or after that bump. The legacy bridge path (MEDIA_BRIDGE=bbb-webrtc-sfu) was not run.

Since BigBlueButton 4.0 runs SDK 1.0.0-beta.2, a pre-release only satisfies
ranges that name a pre-release of the same version, so the samples' ~0.1.5
range made the server reject every sample at meeting creation. The README
examples carried the same stale range.
The client prints plugin logs under pluginLogger(<PluginName>), so waiting
for 'PluginLogger' never matched and every test reading a plugin log timed
out.
Its manifest capped the console at error, which hid the info log its test
reads to check the data channel responses.
Under LiveKit, the 4.0 default bridge, closing the audio modal auto-joins
audio muted and the modal has no Microphone/Listen only step. Port the core
suite's handling: leave audio after closing the modal, skip the microphone
button, and allow MEDIA_BRIDGE=bbb-webrtc-sfu for the legacy bridge.
The client defines the logger name as 'pluginLogger' and appends the plugin
name in parentheses when printing, so the bare name is enough to match.
@GuiLeme
GuiLeme merged commit 646dc15 into bigbluebutton:v1.x Oct 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants