Skip to content

test: Adding flaky flag to failing tests related to the whiteboard - #24367

Merged
lfzawacki merged 3 commits into
bigbluebutton:v3.1.x-releasefrom
gabriellpr:adds-flaky-flags
Dec 11, 2025
Merged

lfzawacki merged 3 commits into
bigbluebutton:v3.1.x-releasefrom
gabriellpr:adds-flaky-flags

Conversation

@gabriellpr

@gabriellpr gabriellpr commented Dec 11, 2025 •

Copy link
Copy Markdown
Contributor

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

@coderabbitai

coderabbitai Bot commented Dec 11, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

Multiple 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 { tag: '@flaky-3.1' } as the second argument to test(...). Several specs also import linkIssue and call linkIssue(24367) at the start of affected tests or suites. No test bodies, control flow, or assertions were modified.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Focus areas:
    • Verify correct placement and syntax of the { tag: '@flaky-3.1' } metadata in each updated test(...) call.
    • Confirm linkIssue import paths are correct and that linkIssue(24367) calls are placed where intended.
    • Spot-check a representative sample of updated files (e.g., breakout, layouts, parameters, presentation, webcam, whiteboard) for consistency.

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'test: Adding flaky flag to failing tests related to the whiteboard' accurately summarizes the main change: marking tests as flaky with a @flaky-3.1 tag.
Description check ✅ Passed The description is related to the changeset, explaining that tests are failing on CI and will be marked as flaky. It references issue #24368, providing context for the changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c2db860 and 6e212e2.

📒 Files selected for processing (3)
  • 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)
🚧 Files skipped from review as they are similar to previous changes (1)
  • bigbluebutton-tests/playwright/options/options.spec.js
🧰 Additional context used
🧬 Code graph analysis (2)
bigbluebutton-tests/playwright/parameters/parameters.spec.js (4)
bigbluebutton-tests/playwright/parameters/customparameters.js (2)
  • test (1-1)
  • c (4-4)
bigbluebutton-tests/playwright/core/helpers.js (2)
  • context (243-243)
  • page (244-244)
bigbluebutton-tests/playwright/learningdashboard/learningdashboard.spec.js (1)
  • c (3-3)
bigbluebutton-tests/playwright/stress/stress.js (1)
  • c (4-4)
bigbluebutton-tests/playwright/layouts/layouts.spec.js (2)
bigbluebutton-tests/playwright/options/options.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). (9)
  • GitHub Check: install-and-run-bbb-tests (1)
  • GitHub Check: install-and-run-bbb-tests (4)
  • GitHub Check: install-and-run-bbb-tests (7)
  • GitHub Check: install-and-run-bbb-tests (8)
  • GitHub Check: install-and-run-bbb-tests (3)
  • GitHub Check: install-and-run-bbb-tests (6)
  • GitHub Check: install-and-run-bbb-tests (2)
  • GitHub Check: install-and-run-bbb-tests (5)
  • GitHub Check: install-and-run-plugin-tests
🔇 Additional comments (3)
bigbluebutton-tests/playwright/layouts/layouts.spec.js (2)

4-4: linkIssue import and usage align with project pattern

Importing linkIssue from ../core/helpers and calling linkIssue(24367) in beforeEach matches how other specs annotate flaky tests with the related issue. This will consistently tag every test in this suite with the issue without changing test logic.

Also applies to: 10-10


6-6: Describe-level flaky tag is a clean way to mark the whole suite

Adding { tag: '@flaky-3.1' } at the test.describe.parallel('Layout', …) level cleanly marks all contained tests as flaky for 3.1 without touching individual test bodies, which fits the PR’s goal.

bigbluebutton-tests/playwright/parameters/parameters.spec.js (1)

105-239: The code consistently uses linkIssue(24367) across all modified test cases (lines 105-239). The linkIssue() function is a test reporter annotation that attaches metadata to GitHub issues. However, the core claim in this review—that the PR description points to issue 24368—cannot be verified from the repository metadata. The code itself is internally consistent and uses 24367 throughout.

Regarding the DRY refactor suggestion: repeating the numeric literal 24367 sixteen times is valid grounds for a refactor, though it remains optional. If the intention is to centralize future maintenance, the constant approach would help.

Without access to external PR documentation or confirmed issue numbers, the reported mismatch between 24367 and 24368 cannot be definitively verified.


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.

@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: 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.1 tag 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 call linkIssue(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

📥 Commits

Reviewing files that changed from the base of the PR and between 9459ef2 and c2db860.

📒 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 linkIssue from 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.1 tag (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.1 metadata tag at line 70, and the linkIssue(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 in linkIssue() 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 linkIssue is correctly structured and consistent with other test files in this PR.

Comment on lines +69 to +70
test('Drag and drop webcam in different areas', { tag: '@flaky-3.1' }, async ({ browser, page }) => {
linkIssue(24367);

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.

⚠️ Potential issue | 🟡 Minor

🧩 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 -15

Repository: 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 -30

Repository: 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.js

Repository: 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 -40

Repository: 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 -50

Repository: 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.js

Repository: 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 md

Repository: 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.

@ramonlsouza ramonlsouza added this to the Release 3.1 milestone Dec 11, 2025
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Automated tests Summary

✅ All the CI tests have passed!

@lfzawacki
lfzawacki merged commit e3e1957 into bigbluebutton:v3.1.x-release Dec 11, 2025
ramonlsouza pushed a commit that referenced this pull request Oct 22, 2026
… 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.
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.

3 participants