Skip to content

test(voice): measure first-clause speed from the first token, not from start-up - #222

Merged
itsskofficial merged 1 commit into
mainfrom
test/voice-timing-from-first-token
Oct 9, 2026
Merged

itsskofficial merged 1 commit into
mainfrom
test/voice-timing-from-first-token

Conversation

@itsskofficial

@itsskofficial itsskofficial commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

test_first_clause_starts_speech_earlier_and_metrics_break_down kept failing on CI, most recently with the clause run slower than the sentence run (505 + 40 < 448). The clause run goes first, so it pays one-off start-up costs. The test now compares times measured from the first model token, which removes start-up from both sides and leaves the real gap (around 200 ms with the test's pacing), checked with a 60 ms margin.

Summary by CodeRabbit

  • Tests
    • Updated timing checks for first-clause startup to measure durations from each run’s first model token, with a stricter speed improvement threshold.

@github-actions github-actions Bot added the area: voice Speech, wake word, voice mode label Oct 9, 2026
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d26bc2c0-2145-4d68-9a57-37c52d9998fb

📥 Commits

Reviewing files that changed from the base of the PR and between 44f9a93 and 7f96537.


📒 Files selected for processing (1)
  • tests/voice/test_wake_and_devices.py

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



📝 Walkthrough

Walkthrough

The wake timing test now compares sentence and audio startup durations relative to each run’s first model token. Both assertions require the first-clause run to be more than 60 ms faster.

Changes

Wake timing test

Layer / File(s) Summary
Compare startup timing from first token
tests/voice/test_wake_and_devices.py
A helper measures timing relative to the first model token. Both assertions now require the first-clause run to be more than 60 ms faster.

Priority: ⬇️ Low

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

Change: Bug fix


Merge Risk: ⚪ Minimal · up to 7f965

The updated test checks both timing gaps against the intended per-run baseline; no merge-blocking risk is evident.

🚥 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 2 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 Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main test change: measuring first-clause speed from the first model token instead of startup.
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 💡 1
📝 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

A rabbit checks the timing run,
From token one, the clocks are spun.
The first clause races past the rest,
With sixty milliseconds put to test.
I thump my paws and call it done!

Comment @coderabbitai help to get the list of available commands.

@itsskofficial
itsskofficial merged commit 9e81f32 into main Oct 9, 2026
8 checks passed
@itsskofficial
itsskofficial deleted the test/voice-timing-from-first-token branch October 9, 2026 14:11
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: voice Speech, wake word, voice mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant