Repository navigation
test: add nightly tests for recorded media, playback content, pause/resume and breakout recording - #26157
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe pull request adds nightly Playwright tests for recorded meeting content, media, and breakout-room recordings. It adds helpers to record meetings, wait for recording publication, locate playback formats, and validate playback output and recording metadata. It also adds a Chromium test command and documents nightly test selection and recording-format configuration. Priority: ⬇️ Low Estimated code review effort: 4 (Complex) | ~45 minutes Change: Other Sequence Diagram(s)sequenceDiagram
participant NightlyTest
participant RecordedPlayback
participant Meeting
participant PublishedRecording
participant PlaybackChecks
NightlyTest->>RecordedPlayback: record meeting content or media
RecordedPlayback->>Meeting: perform recording actions and end meeting
RecordedPlayback->>PublishedRecording: wait for recording publication
PublishedRecording->>PlaybackChecks: provide recording for playback validation
Possibly related issues Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|
|
This pull request has conflicts ☹ |
b922214 to
539216b
Compare
|
This pull request has conflicts ☹ |
…esume and breakout recording Recordings are processed minutes after a meeting ends, so no test looked inside one: the per-PR gate only checked that a playback URL came back. This adds a @nightly tag for tests that wait on recording processing or on timers. They are not tagged @ci, so neither the per-PR gate nor the legacy bridge job selects them, and npm run test-nightly runs them on Chromium. Each recording is made once in a beforeAll and serves several playback tests, and every assertion names the record ID it failed on. In the first, the moderator talks through the fake microphone with the camera on for about 20 seconds and shares the screen from 8 seconds in. The presentation playback must have a webcams video as long as the recording ran, whose frames show the camera: a recording without webcams also gets a webcams video, a black 640x480 one, so its size alone proves nothing. The screenshare must be hidden before its start and shown once the playback is seeked past it. The recorded audio is decoded in the page and must not be silent: the fake speech comes out at about -21 dBFS, a recording without a microphone at -91 dBFS. These tests are also tagged @media and pass on both bridges. The second recording has a chat message, a rectangle and a published poll, then a 15 second pause during which a chat message is sent, then a chat message and shared notes after resuming. The rectangle must appear in the playback only past the time it was drawn, the poll result with its one vote must be in the playback chat, and the playback must be as long as the two recorded segments, without the message sent while paused and with the other two. A recorded length may be 4 seconds off the time the moderator's client saw the recording run (each state change shows there a round trip after the server took it, and the end is timed at the click); measured, they differed by under a second, and the 15 second pause is far outside that. Which formats besides presentation a server publishes is its configuration, so RECORDING_FORMATS lists them and the podcast, video, screenshare and notes tests skip for a format it does not list. A listed format must be listed for the recording and its media must be retrievable with the recording's length; Playwright's Chromium cannot decode the H.264 of the video format, so its length is read from the MP4 movie header. The wait for processing is bounded by RECORDING_PROCESSING_WAIT_TIME, 10 minutes scaled by the timeout multiplier, because one rap worker processes every format of every ended meeting in turn. A breakout room created with the record option records once a moderator starts it there, and its recording is published as a breakout recording of the parent's first room. Create.joinFirstBreakoutRoomAsModerator becomes protected so the Join helper can start the room's recording from inside it. "Generate a recording that captures microphone audio" took the first playback format getRecordings returned, which on a server with more formats was the podcast, and failed. It now selects the presentation format by type, through the helper the other recording tests use.
539216b to
73850a3
Compare
⏳ Automated tests are running... |
eb3e4a7
into
bigbluebutton:v4.0.x-develop
What does this PR do?
Adds the first Playwright tests that look inside a recording, under a new
@nightlytag for tests that wait on recording processing or on timers. They are not tagged@ci, so neither the per-PR gate nor the legacy bridge job selects them;npm run test-nightlyruns them on Chromium.beforeAlland serves several playback tests, and every assertion names the record ID it failed on.@nightly @media, passes on both bridges): the moderator talks through the fake microphone with the camera on for about 20 seconds and shares the screen from 8 seconds in. The presentation playback must have a webcams video as long as the recording ran, whose frames show the camera: a recording without webcams also gets a webcams video, a black 640x480 one, so its size alone proves nothing. The screenshare must be hidden before its start and shown once the playback is seeked past it. The recorded audio is decoded in the page and must not be silent: the fake speech comes out at about -21 dBFS, a recording without a microphone at -91 dBFS.RECORDING_FORMATSlists them and the podcast, video, screenshare and notes tests skip for a format it does not list. A listed format must be listed for the recording and its media must be retrievable with the recording's length; Playwright's Chromium cannot decode the H.264 of the video format, so its length is read from the MP4 movie header. The wait for processing is bounded byRECORDING_PROCESSING_WAIT_TIME, 10 minutes scaled by the timeout multiplier, because one rap worker processes every format of every ended meeting in turn.Create.joinFirstBreakoutRoomAsModeratorbecomesprotectedso the Join helper can start the room's recording from inside it.getRecordingsreturned, which on a server with more formats was the podcast, and failed. It now selects the presentation format by type, through the helper the other recording tests use.Why
Recordings are processed minutes after a meeting ends, so no test looked inside one: the per-PR gate only checked that a playback URL came back. A nightly tier can afford the wait and catches regressions in what the processing scripts actually produce.
Recording formats
The server under test says which formats it publishes through
RECORDING_FORMATS(defaultpresentation); the podcast, video, screenshare and notes tests skip, naming the format, when it is not listed. To cover all five, install and enable the formats on the server first:(the worker caches
recording.ymlat start, so the restart is needed). Then:Each listed format must then be listed for the recording by
getRecordingsand its media retrievable with the recording's length: podcast audio and screenshare video are decoded in the page; the video format is H.264, which Playwright's Chromium cannot decode, so its length is read from the MP4 movie header; the notes format must contain the shared notes text.How to test
On a server that publishes only the presentation format, the podcast, video, screenshare and notes tests skip and say which format is missing; see above for all five.
Scope
This PR adds the tests, the
@nightlytag and thetest-nightlyscript only. Nothing runs them on a schedule yet, and their reports go wherever the local run puts them (the usualplaywright-report/of the html reporter). The scheduled "Nightly tests" workflow that installs every recording format on a fresh server, runs the@nightlytests once per bridge, and merges the results into anightly-test-reportsartifact is a separate change that this PR is a prerequisite for.Testing
npm run test-nightlylists exactly the 11@nightlytests (4 recorded content, 6 recorded media, 1 breakout recording); none of them carries@ci, so the gate listing is unchanged.exportedAnnotationsOverlap.tstypecheck error aside).@nightlytests are not in the gate, so CI does not run them.bbb-rap-starterfails at start on an exhausted inotify watch budget shared with the host). The results in the commit message are from the original 4.0.0-rc.4 runs.