Skip to content

CI: avoid using some external/3rd party assets - #24882

Merged
antobinary merged 6 commits into
bigbluebutton:v3.0.x-developfrom
ramonlsouza:issue-24849
Apr 13, 2026
Merged

antobinary merged 6 commits into
bigbluebutton:v3.0.x-developfrom
ramonlsouza:issue-24849

Conversation

@ramonlsouza

Copy link
Copy Markdown
Member

What does this PR do?

Adjusts the following tests to not use external assets:

  • Custom Styles: URL
  • Override default presentation on CREATE meeting API call
  • Display Branding Area
  • Set webcam background by passing URL

Closes Issue(s)

Closes #24849

@coderabbitai

coderabbitai Bot commented Apr 9, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 3b0c58b1-8c02-4a24-8ff1-a0bf2988cc43

📥 Commits

Reviewing files that changed from the base of the PR and between 70d1d77 and c758d82.

⛔ Files ignored due to path filters (2)
  • bigbluebutton-tests/playwright/parameters/parameters.spec.ts-snapshots/mod-page-overridden-default-presentation-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/parameters/parameters.spec.ts-snapshots/viewer-page-overridden-default-presentation-Chromium-linux.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • bigbluebutton-tests/playwright/parameters/constants.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • bigbluebutton-tests/playwright/parameters/constants.ts

Walkthrough

Added exported constants CUSTOM_STYLE_CSS and CUSTOM_STYLE_URL and derived serverOrigin in test parameters. Replaced hardcoded external asset URLs with origin-relative URLs (e.g., logo, customStyle, customStyleUrl, webcamBackgroundPassingURL) and switched preUploadedPresentation to the repository-hosted sample.pdf. overrideDefaultPresentation now includes moderator-page UI steps to open Actions → Manage Presentations and assert the uploaded presentation appears and is confirmed. The Custom Styles: URL Playwright test now intercepts requests to CUSTOM_STYLE_URL and fulfills them with text/css and the CUSTOM_STYLE_CSS body; the @flaky tag was removed.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: replacing external/third-party assets with local/stable alternatives in CI tests.
Description check ✅ Passed The description is directly related to the changeset, listing the specific tests being updated to avoid external assets and referencing the related issue #24849.
Linked Issues check ✅ Passed The PR addresses all requirements from issue #24849: replacing external asset references with stable alternatives (server-origin URLs and repo-hosted files) and adding request interception for custom styles.
Out of Scope Changes check ✅ Passed All changes are directly related to replacing external assets with stable alternatives in tests as specified in issue #24849; no out-of-scope modifications detected.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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 and usage tips.

@antobinary antobinary added this to the Release 3.0 milestone Apr 9, 2026
allowModsToEjectCameras: 'allowModsToEjectCameras=true',
notifyRecordingIsOn: 'notifyRecordingIsOn=true&notifyRecordingIsOn=true',
preUploadedPresentation: 'preUploadedPresentation=https://dagrs.berkeley.edu/sites/default/files/2020-01/sample.pdf',
preUploadedPresentation: `preUploadedPresentation=${serverOrigin}/default.pdf`,

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.

There was something peculiar about that specific presentation. Can we consider downloading it to ...
maybe a github repo and linking to there?

@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: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@bigbluebutton-tests/playwright/parameters/constants.ts`:
- Line 7: The module crashes because serverOrigin is computed with new
URL(parameters.server) without guarding against malformed BBB_URL; change the
initialization of serverOrigin (in
bigbluebutton-tests/playwright/parameters/constants.ts) to validate/parse
parameters.server safely—either call the existing parseHostname()/parsing helper
from parameters.ts or wrap URL parsing in a try/catch and fallback to '' on
error; ensure the symbol serverOrigin is set to '' for invalid or absent
parameters.server and preserve current behavior for valid URLs.
🪄 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: 83e8a614-0a98-4929-80c8-d296eeb59e08

📥 Commits

Reviewing files that changed from the base of the PR and between b4367e0 and 70d1d77.

⛔ Files ignored due to path filters (3)
  • bigbluebutton-tests/playwright/parameters/parameters.spec.ts-snapshots/mod-page-overridden-default-presentation-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/parameters/parameters.spec.ts-snapshots/viewer-page-overridden-default-presentation-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/parameters/parameters.spec.ts-snapshots/webcam-background-passing-url-Chromium-linux.png is excluded by !**/*.png
📒 Files selected for processing (3)
  • bigbluebutton-tests/playwright/parameters/constants.ts
  • bigbluebutton-tests/playwright/parameters/createParameters.ts
  • bigbluebutton-tests/playwright/parameters/parameters.spec.ts

@sonarqubecloud

sonarqubecloud Bot commented Apr 9, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown

✅ Automated tests have passed!

Copilot AI 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.

Pull request overview

This PR updates Playwright CI tests to avoid relying on externally hosted assets (CSS/image/PDF URLs), aiming to reduce CI flakiness caused by third-party/unreliable asset hosting.

Changes:

  • Stub the “Custom Styles: URL” stylesheet fetch via context.route() and a locally provided CSS body.
  • Replace some externally hosted URLs (logo/webcam background) with URLs pointing to the test server’s own origin.
  • Update “override default presentation” test flow and refresh related screenshot snapshots.

Reviewed changes

Copilot reviewed 3 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
bigbluebutton-tests/playwright/parameters/parameters.spec.ts-snapshots/webcam-background-passing-url-Chromium-linux.png Updated snapshot after switching webcam background asset source.
bigbluebutton-tests/playwright/parameters/parameters.spec.ts-snapshots/viewer-page-overridden-default-presentation-Chromium-linux.png Updated snapshot after presentation override flow change.
bigbluebutton-tests/playwright/parameters/parameters.spec.ts-snapshots/mod-page-overridden-default-presentation-Chromium-linux.png Updated snapshot after presentation override flow change.
bigbluebutton-tests/playwright/parameters/parameters.spec.ts-snapshots/mod-page-overridden-default-presentation-Chromium-linux.png Updated snapshot artifact for mod view.
bigbluebutton-tests/playwright/parameters/parameters.spec.ts Removes the flaky tag and stubs the custom-style URL response via context.route().
bigbluebutton-tests/playwright/parameters/createParameters.ts Adds UI steps/assertion around Manage Presentations before taking screenshots.
bigbluebutton-tests/playwright/parameters/constants.ts Introduces CUSTOM_STYLE_*, computes serverOrigin, and replaces some asset URLs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@antobinary
antobinary merged commit 7b81d26 into bigbluebutton:v3.0.x-develop Apr 13, 2026
85 of 89 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.

CI: avoid using some external/3rd party assets

4 participants