Skip to content

[3.0 backport] fix(recording): use instance variable for segment break timestamp - #25918

Merged
antobinary merged 1 commit into
bigbluebutton:v3.0.x-developfrom
antobinary:fix-rap-segment-break-timestamp-30
Oct 1, 2026
Merged

antobinary merged 1 commit into
bigbluebutton:v3.0.x-developfrom
antobinary:fix-rap-segment-break-timestamp-30

Conversation

@antobinary

Copy link
Copy Markdown
Member

Backport of #25741 to v3.0.x-develop. Clean cherry-pick of 0d09de4 (base_worker.rb was identical on both branches before the fix).

What

BaseWorker#initialize interpolated break_timestamp instead of @break_timestamp, so any recording job carrying a break timestamp raised NameError. Only reachable with recording chapter breaks, which are disabled by default (recording.chapterBreakLengthInMinutes = 0).

Testing (3.0)

On a 3.0.37 server whose base_worker.rb was identical to v3.0.x-develop before this change.

Check Before After
ArchiveWorker.new with a break_timestamp FAIL - NameError PASS - full_id is meetingId-breakTimestamp
Recorded meeting crossing two 1-minute chapter breaks: segment archive jobs FAIL - both jobs in the resque failed queue with NameError PASS - both jobs complete, failed queue empty
Final recording of the meeting published PASS PASS

Not changed by this PR: after a segment's archive step the following steps are enqueued without the break timestamp, so they run under the plain meeting id. Same code as 4.0.

`@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.

(cherry picked from commit 0d09de4)
@antobinary antobinary added this to the Release 3.0 milestone Oct 1, 2026
@coderabbitai

coderabbitai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: daa69662-cb25-4e39-9893-550afd1f6501

📥 Commits

Reviewing files that changed from the base of the PR and between 471fe86 and a326c88.

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

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.


Walkthrough

BaseWorker now uses the initialized @break_timestamp instance variable when constructing @full_id for timestamped recordings. When no timestamp is provided, @full_id remains the meeting ID.

Priority: ➖ Normal

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

Change: Bug fix

Merge Risk: ⚪ Minimal · up to a326c

Timestamped recording jobs can now construct their IDs without the reported initialization failure. The supplied evidence indicates the fix works, with no actionable merge risk remaining.

Security Architecture Review

Security architecture risk: 🔵 Low · up to a326c

The change restores chapter-recording jobs without demonstrating a new external interface or broader access. No introduced security issue was confirmed, but concurrent execution, recovery behavior and direct job-submission controls remain incompletely established.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — For the inspected dispatcher path, newly functional jobs affect timestamp-specific archive markers and shared recording artifacts for the selected meeting. Cross-tenant reachability was not established; arbitrary direct queue submissions remain outside verified coverage.

Trust Boundaries and Controls

  • observed — The inspected producer parses recording-status filenames into hexadecimal meeting IDs and numeric timestamp components before enqueueing. BaseWorker itself accepts option values without validation. This establishes a producer-side control, not proof that every queue writer is trusted or uses that parser.

Resilience and Maintainability Implications

  • observed — Event archival publishes through a temporary file and rename, then deletes consumed event records and trims Redis separately. This ordering protects publication from ordinary partial writes but does not establish transactional recovery or serialization between competing writers.
🚥 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
Title check ✅ Passed The title clearly identifies the 3.0 backport and the fix for using the instance variable for the segment break timestamp.
Description check ✅ Passed The description directly explains the NameError, the affected recording chapter-break jobs, the backport scope, and the testing results.
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 a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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 Oct 1, 2026

Copy link
Copy Markdown

🚨 Automated tests failed

@antobinary
antobinary merged commit 40105cf into bigbluebutton:v3.0.x-develop Oct 1, 2026
32 of 33 checks passed
@antobinary
antobinary deleted the fix-rap-segment-break-timestamp-30 branch October 1, 2026 23:13
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.

2 participants