Repository navigation
Conversation
- validate server variables before running tests - .env.template and README updated
|
""" WalkthroughThe changes update the handling and validation of the Sequence Diagram(s)sequenceDiagram
participant Developer
participant GitHub Actions
participant Playwright Tests
participant BBB Server
Developer->>GitHub Actions: Push code / PR triggers workflow
GitHub Actions->>Playwright Tests: Set BBB_URL (ending with /bigbluebutton/)
Playwright Tests->>Playwright Tests: Validate BBB_URL and BBB_SECRET
Playwright Tests->>BBB Server: Make API calls to /bigbluebutton/api/...
BBB Server-->>Playwright Tests: Respond to API requests
Playwright Tests-->>GitHub Actions: Report test results
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (5)
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
bigbluebutton-tests/playwright/README.md (1)
17-17: Good documentation simplification - removes format duplication.Removing the specific BBB_URL format requirement from the README eliminates duplication since the format is already documented in
.env.template. This makes the documentation more maintainable.The LanguageTool hints suggest minor stylistic improvements:
-To run these tests with an existing BigBlueButton server, you need to find the server's URL and secret (can be done with `bbb-conf --secret` command). You need to put them into the `.env` file inside `bigbluebutton-tests/playwright` folder (variables `BBB_URL` and `BBB_SECRET`). +To run these tests with an existing BigBlueButton server, you must find the server's URL and secret (can be done with `bbb-conf --secret` command). You must put them into the `.env` file inside the `bigbluebutton-tests/playwright` folder (variables `BBB_URL` and `BBB_SECRET`).
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (9)
.github/workflows/automated-tests.yml(3 hunks)bigbluebutton-tests/playwright/.env.template(1 hunks)bigbluebutton-tests/playwright/README.md(1 hunks)bigbluebutton-tests/playwright/connectionFailure/util.js(1 hunks)bigbluebutton-tests/playwright/core/helpers.js(3 hunks)bigbluebutton-tests/playwright/core/parameters.js(1 hunks)bigbluebutton-tests/playwright/fixtures.js(2 hunks)bigbluebutton-tests/playwright/package.json(1 hunks)bigbluebutton-tests/playwright/reconnection/util.js(1 hunks)
🧰 Additional context used
🪛 LanguageTool
bigbluebutton-tests/playwright/README.md
[style] ~17-~17: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...h an existing BigBlueButton server, you need to find the server's URL and secret (can b...
(REP_NEED_TO_VB)
[style] ~17-~17: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ... with bbb-conf --secret command). You need to put them into the .env file inside `b...
(REP_NEED_TO_VB)
[uncategorized] ~17-~17: You might be missing the article “the” here.
Context: ...to put them into the .env file inside bigbluebutton-tests/playwright folder (...
(AI_EN_LECTOR_MISSING_DETERMINER_THE)
🪛 Biome (1.9.4)
bigbluebutton-tests/playwright/core/parameters.js
[error] 3-3: A global variable should not be reassigned.
Assigning to a global variable can override essential functionality.
(lint/suspicious/noGlobalAssign)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: build-package (others)
- GitHub Check: build-package (bbb-graphql-server)
- GitHub Check: build-package (bbb-playback-record)
🔇 Additional comments (14)
bigbluebutton-tests/playwright/.env.template (1)
2-2: LGTM! Clear documentation update.The updated comment clearly specifies the new URL format and provides helpful context by referencing the
bbb-conf --secretcommand. This aligns well with the PR objective to standardize the BBB_URL pattern.bigbluebutton-tests/playwright/core/parameters.js (3)
1-2: Good refactoring to reduce repeated environment variable access.Extracting
BBB_URLto a local constant improves code efficiency and readability.
4-4: Consistent with the local constant optimization.Using the local
bbbUrlconstant instead of repeatedly accessingprocess.env.BBB_URLis a good practice.
10-10: Verify hostname extraction handles edge cases.The hostname extraction logic looks correct for valid URLs. However, consider edge cases where
bbbUrlmight be malformed.#!/bin/bash # Description: Check if there are any existing validation patterns for BBB_URL format in the codebase # Test: Search for BBB_URL validation patterns. Expect: Find validation logic that might already handle malformed URLs. rg -A 5 -B 2 'BBB_URL.*valid|valid.*BBB_URL|BBB_URL.*format|format.*BBB_URL'.github/workflows/automated-tests.yml (3)
137-137: Consistent workflow update for new BBB_URL format.The BBB_URL environment variable is correctly updated to the new format ending with
/bigbluebutton/instead of/bigbluebutton/api.
148-148: Consistent with the main test job.Firefox test job correctly uses the same BBB_URL format as the main test job.
267-267: Plugin test job updated consistently.Plugin test job correctly uses the new BBB_URL format, maintaining consistency across all test jobs.
bigbluebutton-tests/playwright/connectionFailure/util.js (1)
4-4: Excellent refactoring - leverages centralized hostname extraction.Directly importing
hostnamefrom parameters.js eliminates code duplication and leverages the centralized URL parsing. This improves maintainability and consistency across the codebase.bigbluebutton-tests/playwright/reconnection/util.js (1)
3-3: LGTM! Good simplification by using the pre-extracted hostname.This change eliminates redundant URL parsing by directly importing the hostname from the parameters module, which now exports it as a separate property. This is more efficient and cleaner than the previous approach of parsing the URL locally.
bigbluebutton-tests/playwright/package.json (1)
4-4: LGTM! Correctly removes the/apisuffix appending.This change aligns perfectly with the new
BBB_URLformat. The removed sed expression was appending/apito the URL extracted frombbb-conf --secret, which is no longer needed since the base URL format has been standardized to end with/bigbluebutton/and API paths are now handled explicitly in the helper functions.bigbluebutton-tests/playwright/core/helpers.js (1)
42-42: LGTM! Correctly adds explicit/api/path to maintain proper API endpoints.These changes are essential to ensure API calls continue to work correctly with the new
BBB_URLformat. Since the base URL no longer includes/api, it must be explicitly added when constructing API endpoint URLs. The implementation is consistent across all three functions (apiCallUrl,createMeetingUrl, andgetJoinURL) that build BigBlueButton API URLs.Also applies to: 60-60, 84-84
bigbluebutton-tests/playwright/fixtures.js (3)
3-3: LGTM! Excellent addition of environment variable validation.The new validation logic ensures tests fail fast with clear error messages when environment variables are missing or incorrectly formatted. This provides a much better developer experience than cryptic failures later in the test execution.
Also applies to: 19-25
5-16: ```shell
#!/bin/bashRe-run search for the old hook name across all file types to ensure no lingering references
rg -i "sharedEachTestHook"
--- `20-20`: **Verify the regex pattern handles all valid domain formats.** The regex pattern looks correct for the new BBB_URL format, but let's verify it handles edge cases properly. ```shell #!/bin/bash # Test the regex pattern against various URL formats python3 -c " import re pattern = r'^https:\/\/[^\/]+\/bigbluebutton\/$' # Valid URLs that should match valid_urls = [ 'https://example.com/bigbluebutton/', 'https://bbb.example.com/bigbluebutton/', 'https://example-test.com/bigbluebutton/', 'https://192.168.1.100/bigbluebutton/', 'https://localhost:8080/bigbluebutton/' ] # Invalid URLs that should not match invalid_urls = [ 'https://example.com/bigbluebutton/api', 'https://example.com/bigbluebutton', 'http://example.com/bigbluebutton/', 'https://example.com/bigbluebutton//', 'https://example.com/', 'https:/example.com/bigbluebutton/', 'https://example.com/bigbluebutton/extra' ] print('Testing valid URLs:') for url in valid_urls: match = bool(re.match(pattern, url)) print(f'{url}: {\"PASS\" if match else \"FAIL\"}') print('\nTesting invalid URLs:') for url in invalid_urls: match = bool(re.match(pattern, url)) print(f'{url}: {\"PASS\" if not match else \"FAIL\"}') "
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
bigbluebutton-html5/package.json (1)
60-60: Pin plugin SDK dependency for reproducibilityThe tarball URL targets the mutable PR head and may change as new commits land. For stable, repeatable installs, pin to a specific commit SHA or tag instead:
- "bigbluebutton-html-plugin-sdk": "https://codeload.github.com/bigbluebutton/bigbluebutton-html-plugin-sdk/tar.gz/refs/pull/192/head", + "bigbluebutton-html-plugin-sdk": "https://codeload.github.com/bigbluebutton/bigbluebutton-html-plugin-sdk/tar.gz/<commit-sha>",
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
bigbluebutton-html5/package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (1)
bigbluebutton-html5/package.json(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (16)
- GitHub Check: build-package (others)
- GitHub Check: build-package (bbb-webrtc)
- GitHub Check: build-package (bbb-fsesl-akka)
- GitHub Check: build-package (bbb-graphql-server)
- GitHub Check: ts-code-compilation
- GitHub Check: build-package (bbb-freeswitch)
- GitHub Check: build-package (bbb-etherpad)
- GitHub Check: build-package (bbb-html5)
- GitHub Check: build-package (bbb-web)
- GitHub Check: build-package (bbb-config)
- GitHub Check: build-package (bbb-export-annotations)
- GitHub Check: build-package (bbb-learning-dashboard)
- GitHub Check: build-package (bbb-playback-record)
- GitHub Check: build-package (bbb-apps-akka)
- GitHub Check: ts-code-validation
- GitHub Check: plugin-sdk-version-check
266b21f to
82dfee9
Compare
|
Automated tests Summary🚨 Test workflow has failedClick here to check the action test reports (to view the report locally, see the docs) |
|
Closing this as #23388 implements the PR's changes |



What does this PR do?
BREAKING CHANGE:
BBB_URLvariable pattern changed from "https://DOMAIN_NAME/bigbluebutton/api" to "https://DOMAIN_NAME/bigbluebutton/" (api/removed - now it will be the same as logged bybbb-conf --secret)Also:
BBB_URLandBBB_SECRETvariables before running tests;Motivation