Skip to content

ci(plugin/test): added test infrastructure for the plugins - #25344

Merged
antobinary merged 9 commits into
bigbluebutton:v3.0.x-developfrom
GuiLeme:tests-official-plugins
Sep 8, 2026
Merged

antobinary merged 9 commits into
bigbluebutton:v3.0.x-developfrom
GuiLeme:tests-official-plugins

Conversation

@GuiLeme

@GuiLeme GuiLeme commented Jun 29, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Adds .github/ci-tested-plugins.yml, a central config file that lists which official plugins are included in CI testing
  • Adds CI steps to the run-tests job: 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.
  • Adds .github/README.md documenting 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

  • Trigger a CI run on this branch and verify the new steps ("Download official plugins with tests", "Build and deploy official plugins", "Run official plugin tests") appear and pass in the run-tests job - It has been tested in test pick-random-user GuiLeme/bigbluebutton#23 and passed.
  • To verify flaky test exclusion: add a test name under flakyTests in .github/ci-tested-plugins.yml and confirm it is skipped in the next run;

More

Need the merge of bigbluebutton/bbb-plugin-pick-random-user#116

@GuiLeme
GuiLeme requested review from Arthurk12 and Tainan404 June 29, 2026 20:57
@coderabbitai

coderabbitai Bot commented Jun 29, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

Adds .github/ci-tested-plugins.json as the source for official plugin CI configuration and documents its schema in .github/README.md. Updates .github/workflows/automated-tests.yml to download, build, and deploy each listed plugin, run Chromium tests with optional flaky-test exclusion, and upload blob reports, HTML reports, and logs.

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
Loading

Estimated code review effort: 3 (Moderate) | ~20 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding plugin test infrastructure to CI.
Description check ✅ Passed The description is related to the PR changes, describing the new plugin CI test pipeline and documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 3

🧹 Nitpick comments (1)
.github/README.md (1)

23-31: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use a concrete ref in the example.

The example repeats the v0.0.x placeholder. Documentation examples should use realistic values to avoid copy-paste errors. Consider main or a concrete tag like v1.2.3.

Also verify that the › separator (U+203A) in flakyTests entries matches exactly what your Playwright tests output, as the workflow's normalize_flaky expects 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

📥 Commits

Reviewing files that changed from the base of the PR and between 5e0e174 and 100f169.

📒 Files selected for processing (3)
  • .github/README.md
  • .github/ci-tested-plugins.yml
  • .github/workflows/automated-tests.yml

Comment thread .github/ci-tested-plugins.yml Resolved
Comment thread .github/workflows/automated-tests.yml Resolved
Comment thread .github/workflows/automated-tests.yml Resolved
@GuiLeme
GuiLeme force-pushed the tests-official-plugins branch from 5b2e83d to 31d66ee Compare June 30, 2026 14:14
@sonarqubecloud

sonarqubecloud Bot commented Jul 1, 2026

Copy link
Copy Markdown

@antobinary antobinary added this to the Release 3.0 milestone Jul 6, 2026

@Tainan404 Tainan404 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

Comment thread .github/README.md Resolved
Comment thread .github/workflows/automated-tests.yml Resolved
Comment thread .github/workflows/automated-tests.yml Resolved
@GuiLeme
GuiLeme force-pushed the tests-official-plugins branch from 1ee0776 to 617ac88 Compare August 5, 2026 21:26
@GuiLeme
GuiLeme requested a review from Tainan404 August 6, 2026 12:19
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

✅ Automated tests have passed!

@antobinary
antobinary merged commit e70ce9d into bigbluebutton:v3.0.x-develop Sep 8, 2026
106 of 110 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.

4 participants