Repository navigation
ci(plugins): load the SDK sample plugins against the 1.0 pre-release - #25901
germanocaumo wants to merge 2 commits into
Conversation
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.
|
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 configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review. WalkthroughThe plugin test job adds Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to 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 SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
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.
🚨 Automated tests failed |
|
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 |
There was a problem hiding this comment.
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?
|
This pull request has conflicts ☹ |
|
closed in favor of #25902 |
What does this PR do?
Fixes the
install-and-run-plugin-testsjob, which fails on everyv4.0.x-developPR.manifest.jsonrequiredSdkVersionto the version of the SDK under test, before the samples are built.sample-action-button-dropdown-pluginwithsample-media-area-plugininSAMPLES_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).Action button dropdown › …entry fromsdk-flaky-tests.txt. That suite no longer exists.Media area › should display and log when clickedtosdk-flaky-tests.txt. Its plugin now loads and the click logs, but the test fails inwaitForPluginLogger()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'srequiredSdkVersionwith npm pre-release rules. A pre-release only matches a range that names it. The samples on the SDK'sv1.0.0-beta.2tag still declare~0.1.5, so akka rejects them: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.txtare not really flaky. They all wait on the SDK'swaitForPluginLogger()(tests/core/sessionPage.ts), which looks for a console message containingPluginLogger. The client names each plugin loggerpluginLogger(<plugin name>)(fe3da47), so the case-sensitive match never succeeds, even when the plugin logs as expected:Once that helper is fixed in the SDK and the pin is bumped, the list can most likely be emptied.