Repository navigation
test: Adding flaky flag to failing tests related to the whiteboard - #24367
Conversation
WalkthroughMultiple Playwright test spec files were updated to add test metadata tags and related issue links. Several individual tests and one describe block now include a metadata object Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used🧬 Code graph analysis (2)bigbluebutton-tests/playwright/parameters/parameters.spec.js (4)
bigbluebutton-tests/playwright/layouts/layouts.spec.js (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
🔇 Additional comments (3)
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: 2
🧹 Nitpick comments (3)
bigbluebutton-tests/playwright/breakout/breakout.spec.js (2)
125-131: LGTM! Flaky test properly tagged.The test metadata and issue tracking are correctly implemented. This pragmatic approach allows CI to continue while the root cause is investigated.
Optionally, consider adding an inline comment explaining the flakiness symptoms (e.g., "// Flaky on CI: export fails intermittently with timing issues"). This helps future maintainers understand the context without checking the linked issue.
133-139: LGTM! Consistent flaky test handling.The metadata and issue link are correctly applied, consistent with the previous test. Both affected tests are export-related, suggesting a potential common root cause in the export functionality.
As with the previous test, an inline comment describing the observed flakiness would be helpful for future debugging.
bigbluebutton-tests/playwright/options/options.spec.js (1)
33-35: Flaky tag added correctly, but missing issue linkage.The
@flaky-3.1tag properly marks this test as flaky in accordance with the PR objective. However, based on the pattern established in other files within this PR, you should also calllinkIssue(24367)at the start of the test body to maintain consistency.Apply this diff to complete the implementation:
test('Auto hide whiteboard toolbar', { tag: '@flaky-3.1' }, async () => { + linkIssue(24367); await options.autoHideWhiteboardToolbar(); });
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
bigbluebutton-tests/playwright/breakout/breakout.spec.js(1 hunks)bigbluebutton-tests/playwright/layouts/layouts.spec.js(1 hunks)bigbluebutton-tests/playwright/options/options.spec.js(2 hunks)bigbluebutton-tests/playwright/parameters/parameters.spec.js(3 hunks)bigbluebutton-tests/playwright/presentation/presentation.spec.js(1 hunks)bigbluebutton-tests/playwright/webcam/webcam.spec.js(2 hunks)bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.js(2 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
- bigbluebutton-tests/playwright/layouts/layouts.spec.js
- bigbluebutton-tests/playwright/parameters/parameters.spec.js
🧰 Additional context used
🧬 Code graph analysis (2)
bigbluebutton-tests/playwright/webcam/webcam.spec.js (1)
bigbluebutton-tests/playwright/breakout/breakout.spec.js (4)
require(1-1)require(2-2)require(3-3)require(4-4)
bigbluebutton-tests/playwright/options/options.spec.js (3)
bigbluebutton-tests/playwright/breakout/breakout.spec.js (4)
require(1-1)require(2-2)require(3-3)require(4-4)bigbluebutton-tests/playwright/layouts/layouts.spec.js (4)
require(1-1)require(2-2)require(3-3)require(4-4)bigbluebutton-tests/playwright/parameters/parameters.spec.js (6)
require(1-1)require(2-2)require(3-3)require(5-5)require(6-6)require(7-7)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: unify-artifacts
🔇 Additional comments (4)
bigbluebutton-tests/playwright/whiteboard/whiteboard.spec.js (2)
8-8: LGTM: Import added correctly.The import of
linkIssuefrom the helpers module is properly structured and used appropriately in the test below.
78-79: Code change is correct.The test metadata and
linkIssue(24367)call are properly implemented. This issue reference is consistently used across all tests marked with@flaky-3.1tag (whiteboard, webcam, presentation, parameters, layouts, and breakout tests), indicating this is the correct reference for the flakiness tracking issue in version 3.1.bigbluebutton-tests/playwright/presentation/presentation.spec.js (1)
4-4: No action needed—the import, test metadata, and issue linking are correct.The import statement at line 4, the
@flaky-3.1metadata tag at line 70, and thelinkIssue(24367)call at line 71 all follow the established Playwright patterns in this file and are consistent with the PR's systematic changes across all affected test files. The use of PR number 24367 inlinkIssue()is intentional and applied uniformly across 13 test files in this PR.bigbluebutton-tests/playwright/webcam/webcam.spec.js (1)
4-4: LGTM! Import follows the established pattern.The import of
linkIssueis correctly structured and consistent with other test files in this PR.
| test('Drag and drop webcam in different areas', { tag: '@flaky-3.1' }, async ({ browser, page }) => { | ||
| linkIssue(24367); |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Check linkIssue usage and the specific test structure
cd bigbluebutton-tests/playwright/webcam
# Show the exact test in question with surrounding context
echo "=== Test starting at line 69 with full context ==="
sed -n '69,75p' webcam.spec.js
echo ""
echo "=== All linkIssue calls in this file ==="
rg -n "linkIssue" webcam.spec.js
echo ""
echo "=== Test signatures to check testInfo parameter pattern ==="
rg -n "test\(" webcam.spec.js | head -15Repository: bigbluebutton/bigbluebutton
Length of output: 1668
🏁 Script executed:
#!/bin/bash
# Check the Webcam class init method signature to understand testInfo usage
rg -A 10 "init\s*\(" bigbluebutton-tests/playwright/webcam/webcam.js | head -30Repository: bigbluebutton/bigbluebutton
Length of output: 627
🏁 Script executed:
#!/bin/bash
# Search for the init method definition in Webcam class
rg -B 2 "async init" bigbluebutton-tests/playwright/webcam/webcam.jsRepository: bigbluebutton/bigbluebutton
Length of output: 53
🏁 Script executed:
#!/bin/bash
# Find Webcam class and its parent class to understand init method
rg -n "class Webcam" bigbluebutton-tests/playwright/webcam/webcam.js
rg -n "extends" bigbluebutton-tests/playwright/webcam/webcam.js
# Also check what init method signature looks like in parent class
rg -B 2 -A 8 "init\(" bigbluebutton-tests/playwright/core/base.js | head -40Repository: bigbluebutton/bigbluebutton
Length of output: 231
🏁 Script executed:
#!/bin/bash
# Find the Page class definition
fd -t f "page.js" bigbluebutton-tests/playwright/
# Once found, check the init method signature
echo ""
echo "=== Searching for init method in Page class ==="
rg -B 2 -A 10 "init\(" bigbluebutton-tests/playwright/core/page.js 2>/dev/null | head -50Repository: bigbluebutton/bigbluebutton
Length of output: 563
🏁 Script executed:
#!/bin/bash
# Check how other tests call init() with testInfo
echo "=== Checking init calls in other tests ==="
rg -B 2 "webcam\.init" bigbluebutton-tests/playwright/webcam/webcam.spec.jsRepository: bigbluebutton/bigbluebutton
Length of output: 2602
🏁 Script executed:
#!/bin/bash
# Try to find PR or issue references to verify if 24367 or 24368 is correct
# Check git commit messages or PR files
git log --oneline --all | grep -i "24367\|24368" | head -5
# Also check if there's a PR description or related files
echo ""
echo "=== Checking for references to these issue numbers ==="
rg "24367|24368" bigbluebutton-tests/playwright/ --type mdRepository: bigbluebutton/bigbluebutton
Length of output: 159
Add testInfo parameter and pass it to init().
This test is missing the testInfo parameter that all other tests in this file include. The test signature should be async ({ browser, page }, testInfo) and line 72 should be updated to await webcam.init(true, true, { testInfo }); to match the consistent pattern used throughout the file.
🤖 Prompt for AI Agents
In bigbluebutton-tests/playwright/webcam/webcam.spec.js around lines 69 to 70,
the test callback is missing the testInfo parameter; update the test signature
to async ({ browser, page }, testInfo) and pass testInfo into webcam.init by
calling await webcam.init(true, true, { testInfo }) so the test follows the same
pattern as others in the file.
|
Automated tests Summary✅ All the CI tests have passed! |
… server Twenty-five tests were kept out of the per-PR gate by @flaky or @setting-required tags although they pass on a default server. They were burned in before being promoted; one of them needed a fix first. The five auto-convert emoji tests were tagged @setting-required:chat.autoConvertEmoji, but public.chat.autoConvertEmoji has been true in settings.yml and in the client's built-in defaults since 2022, so every default server meets the precondition. The tag is dropped, which also brings the #23344 backslash-escape regression test into the gate. The three emoji picker tests tagged @setting-required:chat.emojiPicker did pass on a default server, but only vacuously: public.chat.emojiPicker .enable is false by default, so each helper saw the picker disabled, asserted that its button was absent and returned. "Copy chat with emoji", which carried no tag, did the same inside the gate. These four tests now turn the picker on for both pages through clientSettingsOverrides, and the helpers no longer branch on the setting: they always open the picker, insert the thumbs-up emoji and check it in the sent message, the copied text, the saved file or the private chat. Without the override the helpers fail on the missing picker button. Because they no longer read the cached client settings, they do not depend on the settings cache. "Resize webcam area" failed 2 of its first 20 burn-in runs. Both times the test read the webcam height straight after an action, before the layout had caught up: the camera dock is laid out through a throttled calculation and, in the unified layout, snapped to the camera grid 100 ms after a resize stops. One run took the resized height one drag step short (303 instead of 323 px) and then saw a 20 px difference after restoring the presentation; the other read the height before minimizing the presentation had enlarged the dock. The test now takes its reference heights once they have stopped changing and polls for the minimized and restored heights. Burn-in on a 4.0.0-rc.4 server, Chromium, CI=true, --retries=0, --repeat-each=20, 2 workers, with other test runs loading the server: - Smart Slides (9 tests): 180 of 180 - Meeting Layout PRESENTATION_ONLY and MEDIA_ONLY, Enforce Layout (6): 120 of 120 - Upload and remove all presentations: 20 of 20 - Resize webcam area: 18 of 20 before the fix, 40 of 40 after (and 10 of 10 without CI) - auto-convert emoji (5) and emoji picker (4): 180 of 180 - the two @media tests, Resize webcam area and Enforce Layout CAMERAS_ONLY, on the bbb-webrtc-sfu bridge as the legacy media job runs them: 40 of 40 The linkIssue() calls to #24367, the 3.1 change that tagged these tests flaky, and to #24056, a duplicate-toast report closed as not planned that the test does not check, go with the tags, as does the "sometimes fails in 3.1" comment. The gate listing grows by exactly these 25 tests.



What does this PR do?
A few tests are failing on CI, the failures are mainly related to the whiteboard, with some differences in other parts.
I ran these tests locally, and they all passed. I also tested manually and found no problem locally and on dev3.1.
Now, I'm going to take a look at those tests to check what is happening.
Issue
#24368