Skip to content

fix(recording): read bigbluebutton.yml through read_props in every script - #26112

Merged
antobinary merged 2 commits into
bigbluebutton:v4.0.x-developfrom
imdt-claudiop:fix/rap-scripts-read-recording-override
Oct 20, 2026
Merged

antobinary merged 2 commits into
bigbluebutton:v4.0.x-developfrom
imdt-claudiop:fix/rap-scripts-read-recording-override

Conversation

@imdt-claudiop

Copy link
Copy Markdown
Contributor

What does this PR do?

Admins change recording settings in /etc/bigbluebutton/recording/recording.yml, which BigBlueButton.read_props merges over the shipped bigbluebutton.yml. The presentation and video scripts, rap-starter, rap-enqueue, sanity and the archive step already read the configuration that way, but these readers load bigbluebutton.yml themselves and so ignore the override:

  • screenshare/scripts/process/screenshare.rb and screenshare/scripts/publish/screenshare.rb
  • notes/scripts/process/notes.rb and notes/scripts/publish/notes.rb
  • podcast/scripts/process/podcast.rb and podcast/scripts/publish/podcast.rb
  • core/scripts/utils/captions.rb
  • core/scripts/rap-process-worker.rb
  • core/scripts/rap-caption-inbox.rb
  • core/scripts/post_events/post_events_analytics_callback.rb
  • core/lib/recordandplayback/events_archiver.rb (it also kept the values in global variables at load time; it now reads them when a status message is sent)

A log_dir, recording_dir, events_dir or captions_dir set in recording.yml, or store_recording_status: true, therefore applied only to part of the pipeline. All of them now call BigBlueButton.read_props. The comments that only explained the old relative paths are removed.

Tests:

  • test_config_yaml.rb: a check that no script loads bigbluebutton.yml directly, so new scripts do not reintroduce the problem.
  • test_events_archiver.rb: status messages follow store_recording_status and recording_dir from read_props.

This builds on the YAML loader cleanup in #25952 and #26078 (the readers keep using load_yaml through read_props). It does not touch read_props itself, so it does not overlap with the open #25042, which changes how read_props reloads the override.

Closes Issue(s)

None.

Motivation

Found while running the recording services with every directory moved through recording.yml: presentation recordings followed the override, while the process worker log, the screenshare/notes/podcast logs and the caption inbox still used the default paths.

How to test

  1. Create /etc/bigbluebutton/recording/recording.yml that moves the directories, e.g.:
    log_dir: /tmp/ov/log
    recording_dir: /tmp/ov/rec
    events_dir: /tmp/ov/events
    captions_dir: /tmp/ov/captions
    store_recording_status: true
    (create those directories, with log/screenshare, log/notes, log/podcast, log/presentation and captions/inbox).
  2. From /usr/local/bigbluebutton/core/scripts, run the readers with a test meeting id, e.g. ruby process/notes.rb -m m1-1, ruby publish/screenshare.rb -m m1-screenshare, ruby rap-process-worker.rb, ruby rap-caption-inbox.rb.
    • Before: their logs are written under /var/log/bigbluebutton, rap-caption-inbox.rb fails with Failed to watch "/var/bigbluebutton/captions/inbox", and the analytics post_events script looks for events.xml under /var/bigbluebutton/events.
    • After: the logs are written under /tmp/ov/log, the caption inbox watches /tmp/ov/captions/inbox, and post_events reads /tmp/ov/events. ruby process/video.rb -m m1-1, which already used read_props, behaves the same before and after.
  3. bundle exec rake test in record-and-playback/core: the new tests pass (the direct-read check lists the eleven readers above on the base branch).

More

rake test also reports a failure in TestEvents#test_enforce_cut_lengths_short_cut_start (edl/test_video.rb); it fails the same way on the base branch and is unrelated to this change. RuboCop reports no new offenses in the changed files. core/scripts/utils/captions.rb keeps its CRLF line endings.

  • Added/updated documentation (not needed: configuration-files.md already documents recording.yml as the override of bigbluebutton.yml; this makes every script honour it)

Admins change recording settings in /etc/bigbluebutton/recording/recording.yml,
which BigBlueButton.read_props merges over the shipped bigbluebutton.yml. The
screenshare, notes and podcast format scripts, the captions util, the process
worker, the caption inbox, the analytics post_events script and the events
archiver loaded bigbluebutton.yml themselves and so ignored the override: a
moved log_dir, recording_dir, events_dir or captions_dir, or
store_recording_status, only applied to the formats that already used
read_props.

Switch them to read_props, and add a test that no script loads
bigbluebutton.yml directly.
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5e3a2f0c-6695-4f7a-84fb-21202f90976e
📥 Commits

Reviewing files that changed from the base of the PR and between 3758c94 and d280817.

📒 Files selected for processing: 13
  • record-and-playback/core/lib/recordandplayback/events_archiver.rb
  • record-and-playback/core/scripts/post_events/post_events_analytics_callback.rb
  • record-and-playback/core/scripts/rap-caption-inbox.rb
  • record-and-playback/core/scripts/rap-process-worker.rb
  • record-and-playback/core/scripts/utils/captions.rb
  • record-and-playback/core/test/recordandplayback/test_config_yaml.rb
  • record-and-playback/core/test/recordandplayback/test_events_archiver.rb
  • record-and-playback/notes/scripts/process/notes.rb
  • record-and-playback/notes/scripts/publish/notes.rb
  • record-and-playback/podcast/scripts/process/podcast.rb
  • record-and-playback/podcast/scripts/publish/podcast.rb
  • record-and-playback/screenshare/scripts/process/screenshare.rb
  • record-and-playback/screenshare/scripts/publish/screenshare.rb
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@github-actions

Copy link
Copy Markdown

✅ Automated tests have passed!

@antobinary antobinary added this to the Release 4.0 milestone Oct 20, 2026
@TiagoJacobs
TiagoJacobs marked this pull request as ready for review October 20, 2026 20:20
@antobinary
antobinary merged commit 0a0761e into bigbluebutton:v4.0.x-develop Oct 20, 2026
32 of 33 checks passed
TiagoJacobs added a commit that referenced this pull request Oct 21, 2026
…-graphql-41

[4.1 port] recording and GraphQL Redis fixes from v4.0.x-develop (#26109 #26110 #26111 #26112)
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