Repository navigation
fix(common-web): use semver-compatible main version for plugin SDK placeholder - #25990
Conversation
…aceholder %%HTML5_PLUGIN_SDK_MAIN_VERSION%% was always replaced by major.minor, so SDK 1.0.0-beta.3 resolved to "1.0" and a 1.1 SDK would land in a different folder even though it is compatible. Under semver, from 1.0 on the major alone defines compatibility, while in 0.x every minor is a breaking line. The placeholder now resolves to the major only for 1.0 and later (1.0.0-beta.3 and 1.1.0 both give "1") and keeps "0.<minor>" for 0.x versions (0.1.26 gives "0.1"). %%BBB_MAIN_VERSION%% keeps major.minor, since server lines are not compatible across minors. Co-Authored-By: Guilherme Pereira Leme <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. WalkthroughThe HTML5 Plugin SDK main-version placeholder now uses the major version alone for SDK versions from 1.0 onward. For 0.x versions, it uses the major and minor versions. The plugin documentation describes this rule. BBB main-version expansion continues to use its existing major-and-minor rule. Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to SDK manifest paths follow the documented compatibility rule, while BBB version paths retain their existing behavior. No actionable merge risk is established. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 1 files. (1 skipped: 1 unsupported.)
✨ 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 |
🚨 Automated tests failed |
cae0957
into
bigbluebutton:v4.0.x-develop
What does this PR do?
Changes how
%%HTML5_PLUGIN_SDK_MAIN_VERSION%%is resolved in plugin manifest URLs so it follows semver compatibility:0.1.260.10.11.0.0-beta.31.011.1.01.112.5.32.52PluginUtilsgets a dedicatedgetPluginSdkMainVersion: major only from1.0on,0.<minor>for0.x.%%BBB_MAIN_VERSION%%is unchanged (still major.minor, e.g.4.0), since BigBlueButton server lines are not compatible across minors.docs/docs/plugins.mdupdated with the new rule.Closes Issue(s)
None.
Motivation
Under semver, from
1.0on the major alone defines compatibility: a plugin built for SDK1.0also works with1.1, so both should share the folder1. Before1.0, every minor is a breaking line of its own, so0.1and0.2must stay apart. The previous major.minor rule would split compatible1.xSDKs into different folders. This should land before the next 4.0 release candidate, since 4.0 ships SDK1.0.0-beta.3.How to test
pluginManifests=[{"url":"https://<host>/plugins/%%HTML5_PLUGIN_SDK_MAIN_VERSION%%/sdk-%%HTML5_PLUGIN_SDK_VERSION%%/bbb-%%BBB_MAIN_VERSION%%/manifest.json"}], and check the URL bbb-web fetches (bbb-web log or nginx access log). It should be/plugins/1/sdk-1.0.0-beta.3/bbb-4.0/manifest.json. Before this change it was/plugins/1.0/sdk-1.0.0-beta.3/....Validation was done this way on a 4.0 server built from source: with this change the meeting fetched
/plugins/1/sdk-1.0.0-beta.3/bbb-4.0/manifest.json, and without it/plugins/1.0/sdk-1.0.0-beta.3/bbb-4.0/manifest.json. Prerelease suffixes do not affect the result, since only major and minor are read from the parsed version: with thejava-semver0.10.2 that bbb-web ships,1.0.0-beta.1,1.0.0-rc.1,1.0.0-rc.2and1.1.0-beta.1all give1, and0.1.0-beta.1gives0.1.No unit tests are included, per team preference.
More