Repository navigation
fix(recording): read bigbluebutton.yml through read_props in every script - #26112
Merged
antobinary merged 2 commits intoOct 20, 2026
Conversation
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.
Contributor
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 13
✨ Finishing Touches
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! |
TiagoJacobs
approved these changes
Oct 20, 2026
TiagoJacobs
marked this pull request as ready for review
October 20, 2026 20:20
antobinary
merged commit Oct 20, 2026
0a0761e
into
bigbluebutton:v4.0.x-develop
32 of 33 checks passed
This was referenced Oct 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Admins change recording settings in
/etc/bigbluebutton/recording/recording.yml, whichBigBlueButton.read_propsmerges over the shippedbigbluebutton.yml. The presentation and video scripts,rap-starter,rap-enqueue, sanity and the archive step already read the configuration that way, but these readers loadbigbluebutton.ymlthemselves and so ignore the override:screenshare/scripts/process/screenshare.rbandscreenshare/scripts/publish/screenshare.rbnotes/scripts/process/notes.rbandnotes/scripts/publish/notes.rbpodcast/scripts/process/podcast.rbandpodcast/scripts/publish/podcast.rbcore/scripts/utils/captions.rbcore/scripts/rap-process-worker.rbcore/scripts/rap-caption-inbox.rbcore/scripts/post_events/post_events_analytics_callback.rbcore/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_dirorcaptions_dirset inrecording.yml, orstore_recording_status: true, therefore applied only to part of the pipeline. All of them now callBigBlueButton.read_props. The comments that only explained the old relative paths are removed.Tests:
test_config_yaml.rb: a check that no script loadsbigbluebutton.ymldirectly, so new scripts do not reintroduce the problem.test_events_archiver.rb: status messages followstore_recording_statusandrecording_dirfromread_props.This builds on the YAML loader cleanup in #25952 and #26078 (the readers keep using
load_yamlthroughread_props). It does not touchread_propsitself, so it does not overlap with the open #25042, which changes howread_propsreloads 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
/etc/bigbluebutton/recording/recording.ymlthat moves the directories, e.g.:log/screenshare,log/notes,log/podcast,log/presentationandcaptions/inbox)./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./var/log/bigbluebutton,rap-caption-inbox.rbfails withFailed to watch "/var/bigbluebutton/captions/inbox", and the analytics post_events script looks forevents.xmlunder/var/bigbluebutton/events./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 usedread_props, behaves the same before and after.bundle exec rake testinrecord-and-playback/core: the new tests pass (the direct-read check lists the eleven readers above on the base branch).More
rake testalso reports a failure inTestEvents#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.rbkeeps its CRLF line endings.configuration-files.mdalready documentsrecording.ymlas the override ofbigbluebutton.yml; this makes every script honour it)