Skip to content

ci(plugins): load the SDK sample plugins against the 1.0 pre-release - #25901

Closed
germanocaumo wants to merge 2 commits into
bigbluebutton:v4.0.x-developfrom
germanocaumo:u40d/ci/plugin-sdk-sample-manifests
Closed

germanocaumo wants to merge 2 commits into
bigbluebutton:v4.0.x-developfrom
germanocaumo:u40d/ci/plugin-sdk-sample-manifests

Conversation

@germanocaumo

@germanocaumo germanocaumo commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes the install-and-run-plugin-tests job, which fails on every v4.0.x-develop PR.

  • Adds a step that sets each SDK sample's manifest.json requiredSdkVersion to the version of the SDK under test, before the samples are built.
  • Replaces sample-action-button-dropdown-plugin with sample-media-area-plugin in SAMPLES_WITH_TESTS. The SDK renamed that sample (bigbluebutton-html-plugin-sdk@a1dc9b8), so the old name matched nothing ("Sample not found") and the media-area test was always skipped because its manifest was never built (404).
  • Drops the stale Action button dropdown › … entry from sdk-flaky-tests.txt. That suite no longer exists.
  • Adds Media area › should display and log when clicked to sdk-flaky-tests.txt. Its plugin now loads and the click logs, but the test fails in waitForPluginLogger() like every other test on that list (see More).

Closes Issue(s)

Closes #

Motivation

Since 8942409 bumped the client to plugin SDK 1.0.0-beta.2, akka-apps checks each plugin's requiredSdkVersion with npm pre-release rules. A pre-release only matches a range that names it. The samples on the SDK's v1.0.0-beta.2 tag still declare ~0.1.5, so akka rejects them:

ERROR o.b.core.models.PluginModel$ - Cannot load plugin [SampleActionsBarPlugin]: system SDK version [1.0.0-beta.2] does not satisfy plugin requirement [~0.1.5].

The client never requests the plugin bundle. "Action bar › should verify selector icon has correct class" is the only sample test not in the flaky list, so it is the one that fails. Example: https://github.com/bigbluebutton/bigbluebutton/actions/runs/36583046582/job/109459234537

The samples are built from the same SDK tarball whose version the server is pinned to, so requiring that exact version is correct for CI. The sample manifests in the SDK repo still need the same update so that plugins copied from them load on 4.0.

How to test

The plugins job on this PR should load the sample plugins and pass. "Action bar › should verify selector icon has correct class" passed on this PR's earlier run.

More

The tests in sdk-flaky-tests.txt are not really flaky. They all wait on the SDK's waitForPluginLogger() (tests/core/sessionPage.ts), which looks for a console message containing PluginLogger. The client names each plugin logger pluginLogger(<plugin name>) (fe3da47), so the case-sensitive match never succeeds, even when the plugin logs as expected:

pluginLogger(SampleMediaAreaPlugin) ... Log that the button from sample-media-area-plugin has been clicked

Once that helper is fixed in the SDK and the pin is bumped, the list can most likely be emptied.

  • Added/updated documentation

Since the html5 client moved to plugin SDK 1.0.0-beta.2, akka-apps
rejects every sample plugin built in the plugins job: the samples on the
SDK's v1.0.0-beta.2 tag still declare "requiredSdkVersion": "~0.1.5",
and a pre-release only satisfies ranges that name it. The client never
loads the plugin, so the only sample test left out of the flaky list,
"Action bar › should verify selector icon has correct class", fails on
every v4.0.x PR.

Before building, set each sample manifest's requiredSdkVersion to the
version of the SDK under test, which is the same SDK the samples are
built from.

Also replace sample-action-button-dropdown-plugin, which the SDK renamed
to sample-media-area-plugin, in SAMPLES_WITH_TESTS. The old name matched
no sample and the media-area test was always skipped because its
manifest was never built. Drop its stale "Action button dropdown" entry
from the flaky list.
@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: d2ea0e3d-d71b-415f-8fb7-775137694a6a

📥 Commits

Reviewing files that changed from the base of the PR and between 30c477e and 77df54a.

📒 Files selected for processing (1)
  • bigbluebutton-tests/playwright/sdk-flaky-tests.txt
🚧 Files skipped from review as they are similar to previous changes (1)
  • bigbluebutton-tests/playwright/sdk-flaky-tests.txt

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.


Walkthrough

The plugin test job adds sample-media-area-plugin and removes sample-action-button-dropdown-plugin. It sets requiredSdkVersion in each sample manifest to the downloaded SDK version. The SDK flaky-test skip list removes the action button dropdown test and adds the media area click test.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 77df5

The change aligns sample manifests with the SDK under test and builds the media-area sample while temporarily skipping its logger-dependent test. No actionable merge-blocking issue was identified; merge after normal CI checks pass.

Architecture Summary

Architecture risk: 🔵 Low · up to 30c47

The change affects 1 system.

Changed systems: bigbluebutton-tests

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — bigbluebutton-tests (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in bigbluebutton-tests/playwright/sdk-flaky-tests.txt: Removed Action button dropdown › should display and log when clicked from the CI skip list.
  • observed — Modified behavior in .github/workflows/automated-tests.yml: The plugin test sample list removes sample-action-button-dropdown-plugin and adds sample-media-area-plugin; sample-custom-subscription-hook remains included.
  • observed — Modified behavior in .github/workflows/automated-tests.yml: Adds a step that reads the downloaded SDK version and writes it as requiredSdkVersion in each samples/*/manifest.json, replacing each manifest via a temporary file.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the CI change and the SDK pre-release version used by the plugin samples.
Description check ✅ Passed The description directly explains the plugin CI failure, the manifest version update, sample replacement, and flaky-test list changes.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

The media-area sample now builds and its plugin loads, but the test
times out in waitForPluginLogger(). The SDK's helper waits for a console
message containing "PluginLogger", while the client names each plugin
logger "pluginLogger(<plugin name>)" (fe3da47), so the helper never
matches. That is why every other test in sdk-flaky-tests.txt is listed
there too. Skip this one alongside them until the helper is fixed in the
SDK.
@github-actions

Copy link
Copy Markdown

🚨 Automated tests failed

@germanocaumo

germanocaumo commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor Author

This is a temporary fix: it gets the plugin tests passing on 4.0 now, with the SDK version that's already pinned.

The real fix is #25902 together with the SDK change bigbluebutton/bigbluebutton-html-plugin-sdk#298. #25902 can only merge after that SDK change is released and the core's SDK version is bumped. At that point this PR's changes are no longer needed, and #25902's version of sdk-flaky-tests.txt should be kept.

@antobinary antobinary added this to the Release 4.0 milestone Oct 1, 2026
@germanocaumo
germanocaumo requested a review from lfzawacki October 5, 2026 11:13
@ramonlsouza
ramonlsouza requested a review from GuiLeme October 5, 2026 13:23

@GuiLeme GuiLeme left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this PR does essentially the same thing as #25902, except for the block that updates requiredVersion. That was a workaround that is no longer needed after #298 in the SDK.

I'd suggest closing this PR in favor of #25902. That PR will be merged as soon as we release a new version of the SDK, which I'm currently holding back while we do some housekeeping there.

Any objection?

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@germanocaumo

Copy link
Copy Markdown
Contributor Author

closed in favor of #25902

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants