Skip to content

fix(recording): use instance variable for segment break timestamp - #25741

Merged
antobinary merged 1 commit into
bigbluebutton:v4.0.x-developfrom
germanocaumo:fix-segment-break-timestamp
Sep 14, 2026
Merged

antobinary merged 1 commit into
bigbluebutton:v4.0.x-developfrom
germanocaumo:fix-segment-break-timestamp

Conversation

@germanocaumo

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes a NameError that crashed recording worker when processing a chapter break segment:

@full_id interpolated break_timestamp instead of @break_timestamp, so BaseWorker#initialize raised NameError. Only reachable for recording chapter break segments, which are disabled by default.

`@full_id` interpolated `break_timestamp` instead of `@break_timestamp`,
so BaseWorker#initialize raised NameError. Only reachable for recording
chapter break segments, which are disabled by default.
@germanocaumo
germanocaumo requested a review from kepstin September 2, 2026 18:26
@coderabbitai

coderabbitai Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: c6a660f8-6d16-4e19-b355-b5e605ff8534

📥 Commits

Reviewing files that changed from the base of the PR and between d71a329 and 0d09de4.

📒 Files selected for processing (1)
  • record-and-playback/core/lib/recordandplayback/workers/base_worker.rb

Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.


Walkthrough

BaseWorker#initialize now uses @break_timestamp when it builds @full_id. This prevents a NameError caused by referencing the undefined local variable break_timestamp.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 0d09d

This localized fix prevents chapter-break recording workers from crashing during initialization and preserves existing recording identifiers; no actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The description directly explains the NameError fix and identifies the affected recording chapter break path.
Title check ✅ Passed The title clearly identifies the recording fix and the change from a local variable to the instance variable for the segment break timestamp.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

✅ Automated tests have passed!

@kepstin

kepstin commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

This change should be backported to 3.0.

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