Repository navigation
test: stabilize recording screenshare transitions - #26009
antobinary merged 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. WalkthroughThe recording test captures the presenter camera before zooming the presentation to 200%. It waits for the presenter camera zoom to settle, then checks that the viewer camera matches its coordinates and zoom within specified tolerances. After screenshare starts and any optional presentation upload completes, the test waits three seconds before stopping screenshare. Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to The recording-test timing change appears mergeable after normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
✅ Automated tests have passed! |
578af34
into
bigbluebutton:v4.0.x-develop
|
I opened #26080 for the recording side of this. With this PR the test waits for the 200% zoom before starting the screenshare, so the zoom is recorded before the share and the test passes on the bbb-webrtc-sfu bridge. That is the case One thing about the new wait here: |
The recording regression tests added in PR bigbluebutton/bigbluebutton#25991 can start screensharing before the final 200% zoom reaches viewers. This addresses the intermittent failures Anton reported in the CI test channel.
Wait for the presenter's camera to settle at 200% and reach a viewer on x/y/z before starting screenshare, then keep the share active for three seconds before stopping it, including after a presentation upload. In CI run 37794713021 a share that lasted about 250 ms left no screenshare slide in the recording, and the failing local run recorded only 0.2 s of it; three seconds keeps the share well above the recording's 0.1 s event resolution. Existing recording assertions and production code are unchanged.
Validation
Chromium, 10 repetitions per case, two workers, no retries (passed runs):
Locally only the keep case failed (1 of 10); the switch case passed 10/10 unfixed, so its failure evidence is CI run 37794713021, where the 200% zoom was recorded only after the screenshare had started.
The local baseline failed the horizontal-position assertion: its pre-share camera was approximately 1280x720, while the restored camera was 960x540. All 40 fixed recordings contain the final 960x540 camera before screenshare, a distinct screenshare interval, and the expected restored/reset camera. Both cases also passed once per bridge after rebasing (4/4).
Baseline runner: Node 20; fixed runs and static checks: Node 24. Typecheck and ESLint/Prettier on the changed file pass. Full-suite lint still reports the same 234 pre-existing errors; the formatting check reports 25 pre-existing files.
Evidence
Original test sequence. Its failure is established by the recording XML comparison above.
Click the preview for the full corrected sequence:
MP4 timestamps: 00:14, presentation at 200%; 00:21, screenshare active; 00:27, presentation restored.
Client timing limitation
A zoom made right before starting a screenshare is sent only after the 200ms zoom debounce and the camera animation finish, so it can reach the server, viewers and the recording after the screenshare has already started. This is client timing and out of scope here.