Skip to content

Native staging builds Pro's speaker-diarize helper on every platform - #216

Merged
alichherawalla merged 2 commits into
mainfrom
feature/meeting-speaker-diarize-helper
Oct 26, 2026
Merged

alichherawalla merged 2 commits into
mainfrom
feature/meeting-speaker-diarize-helper

Conversation

@alichherawalla

@alichherawalla alichherawalla commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Pro's meeting diarization (off-grid-ai/desktop-pro#123) moves to a native helper, speaker-diarize, which runs pyannote Community-1 through speakrs on the CPU, on macOS, Linux and Windows. Native staging didn't build it, so a build would ship without it.

Change

  • scripts/stage-native.mjs runs pro/scripts/build-speaker-diarize.mjs on every platform, before the macOS-only helpers. It stages the helper and its models into resources/bin (macOS, Windows) or build/linux-bin (Linux), which the existing extraResources rules ship.
  • .gitignore ignores the staged outputs.

It skips when Pro doesn't have the script, so it can merge before or after the Pro PR. It needs cargo, which GitHub's macOS, Ubuntu and Windows runners have; CI fails without it, a local build warns and skips.

Not verified

  • A packaged, signed build that includes the helper, on any platform. Pro's own CI builds and runs the helper on all three.

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 940ac07 and a84e49d.

Files selected for processing: 2
  • .gitignore
  • scripts/stage-native.mjs
Files skipped from review as they are similar to previous changes: 1
  • .gitignore

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

Walkthrough

The native staging script now runs the Pro speaker diarization build script when it exists. It selects an output directory by platform and handles build errors and nonzero exit statuses. Git ignores the generated executable and model directory.

Changes: Speaker diarization staging

Layer / File(s) Summary
Build invocation and generated outputs
scripts/stage-native.mjs, .gitignore
The staging script runs the Pro build script when present. It uses build/linux-bin on Linux and resources/bin on other platforms. Spawn errors are thrown, and a nonzero exit status terminates the process. Git ignores the speaker diarization executables and model directory.

Priority: Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: Minimal · up to a84e4

The change adds optional staging for the speaker diarization helper and ignores its generated outputs. No concrete merge-blocking defect was established. Before merging, confirm that the companion Pro script is named build-speaker-diarize.mjs, matching what this script looks for. If Pro ships only a .sh file, the helper would be silently skipped.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 …
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.
Title check Passed The title clearly and concisely describes the main change: staging builds Pro's speaker-diarize helper on every platform.
Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 unsupported.)

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • 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.

@sonarqubecloud

Copy link
Copy Markdown

@alichherawalla alichherawalla changed the title Native staging builds Pro's speaker-diarize helper Native staging builds Pro's speaker-diarize helper on every platform Oct 24, 2026
@alichherawalla
alichherawalla merged commit 3d92d37 into main Oct 26, 2026
11 checks passed
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.

1 participant