Repository navigation
ci(plugin/test): added test infrastructure for the plugins - #25344
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:
WalkthroughAdds Sequence Diagram(s)sequenceDiagram
participant automated-tests.yml
participant ci-tested-plugins.json
participant plugin repo
participant npm run test-chromium-ci
participant GitHub artifacts
automated-tests.yml->>ci-tested-plugins.json: read plugin entries and flakyTests
automated-tests.yml->>plugin repo: download source at ref
automated-tests.yml->>automated-tests.yml: build bundle and deploy dist
automated-tests.yml->>npm run test-chromium-ci: run Chromium tests with optional --grep-invert
npm run test-chromium-ci-->>automated-tests.yml: pass/fail results
automated-tests.yml->>GitHub artifacts: upload blob-report, playwright-report, and logs
Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 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 |
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (1)
.github/README.md (1)
23-31: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse a concrete
refin the example.The example repeats the
v0.0.xplaceholder. Documentation examples should use realistic values to avoid copy-paste errors. Considermainor a concrete tag likev1.2.3.Also verify that the
›separator (U+203A) inflakyTestsentries matches exactly what your Playwright tests output, as the workflow'snormalize_flakyexpects this specific character sequence.🤖 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/README.md around lines 23 - 31, Update the example in README so the plugin entry uses a concrete, realistic ref instead of the v0.0.x placeholder, and keep the repo/servePath example aligned with an actual tag or branch such as main or a versioned release. Also verify the flakyTests strings in the same example use the exact Playwright separator expected by normalize_flaky, especially the › character sequence, so copied examples match workflow input precisely.
🤖 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/ci-tested-plugins.yml:
- Line 3: The ci-tested-plugins workflow is pointing at a placeholder git ref
instead of a real branch, tag, or commit, which will break archive downloads.
Update the ref value in the workflow to a concrete, existing git reference such
as a valid branch name or released tag, and keep the change localized to the
ci-tested-plugins configuration.
In @.github/workflows/automated-tests.yml:
- Around line 605-612: The FLAKY_PATTERN assignment in the automated-tests
workflow is happening inside a pipeline, so it is lost before the later check in
the same job. Update the shell logic in the workflow step that builds
FLAKY_PATTERN to use command substitution instead of piping into read, so the
value persists for the subsequent if [ -n "$FLAKY_PATTERN" ] condition. Keep the
change localized to the FLAKY_PATTERN construction block.
- Around line 592-620: The official-plugins test loop stops on the first failing
npm run test-chromium-ci because this step runs under bash -e, so later plugins
never get tested. Update the loop around yq, normalize_flaky, and the per-plugin
test invocation to capture each plugin’s exit status, continue iterating through
the remaining NAME entries, and only fail the overall job after all plugins have
run by tracking a cumulative failure flag.
---
Nitpick comments:
In @.github/README.md:
- Around line 23-31: Update the example in README so the plugin entry uses a
concrete, realistic ref instead of the v0.0.x placeholder, and keep the
repo/servePath example aligned with an actual tag or branch such as main or a
versioned release. Also verify the flakyTests strings in the same example use
the exact Playwright separator expected by normalize_flaky, especially the ›
character sequence, so copied examples match workflow input precisely.
🪄 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: f614a9b9-98b6-4c79-bf15-c436e6b05443
📒 Files selected for processing (3)
.github/README.md.github/ci-tested-plugins.yml.github/workflows/automated-tests.yml
…orkflow use jq instead of yq.
5b2e83d to
31d66ee
Compare
|
Tainan404
left a comment
There was a problem hiding this comment.
Reviewed the CI infra for official-plugin tests — nice data-driven approach, and I like that every plugin runs before the job fails (overall_exit). Three points below: one that I'd treat as a blocker (the .github/README.md placement) plus two worth addressing. The flaky-test filtering, the nginx servePath mapping, and the aggregated exit logic all check out.
1ee0776 to
617ac88
Compare
✅ Automated tests have passed! |
e70ce9d
into
bigbluebutton:v3.0.x-develop



What does this PR do?
Extends the automated CI pipeline to download, build, and run Playwright tests for official BigBlueButton plugins alongside the core SDK tests.
.github/ci-tested-plugins.yml, a central config file that lists which official plugins are included in CI testingrun-testsjob: download each plugin from its repository, build and deploy the bundle, install Playwright browsers, run tests, and upload blob/HTML reports and browser logs on failure..github/README.mddocumenting the config file format and fields.Motivation
Official plugins have their own Playwright test suites but were not being exercised in BBB's CI. This makes it possible to catch regressions in the plugin integration layer as part of every CI run, without requiring each plugin repo to set up its own full BBB environment.
How to test
run-testsjob - It has been tested in test pick-random-user GuiLeme/bigbluebutton#23 and passed.flakyTestsin.github/ci-tested-plugins.ymland confirm it is skipped in the next run;More
Need the merge of bigbluebutton/bbb-plugin-pick-random-user#116