Skip to content

test: check the wait_for_trained opt-out on a trainer that never answers - #230

Merged
JarbasAl merged 1 commit into
devfrom
test/wait-for-trained-opt-out
Oct 25, 2026
Merged

JarbasAl merged 1 commit into
devfrom
test/wait-for-trained-opt-out

Conversation

@openvoiceos-bot

Copy link
Copy Markdown
Contributor

🤖 Auto-generated by Claude Opus 5.5 (claude-opus-5-5) via Claude Code — NOT human-reviewed. Verify before acting.

test_wait_for_trained_false_opts_out fails on dev with the latest prereleases, which is why build_tests and coverage are red on every PR. The test booted the default pipeline and asserted that no mycroft.skills.trained arrived. A trainer in the default pipeline now answers the training request, so the event arrives whether or not the boot waits.

The test now checks the opt-out itself. It boots the stuck-trainer skill on the adapt pipeline with a 0.3 s bound, the same boot that test_never_trained_raises_naming_skill shows raising, and asserts that wait_for_trained=False returns.

Check Result
The old test on dev 4c96157, fresh venv with --prerelease=allow -e .[test], three runs fails every run: Lists differ: [<timestamp>] != []
pytest test/unittests/test_minicroft.py on this branch, same venv 51 passed
TestTrainedQuietWindow three runs 8 passed each run
The new test with wait_for_trained=True fails with RuntimeError, so the test bites

🤖 Generated with Claude Code

The test booted the default pipeline and asserted that no training event
arrived. A trainer in the default pipeline answers the training request
with current prereleases, so the event arrives whether or not the boot
waits. The test now boots the stuck trainer on the adapt pipeline, the
boot that raises with the default wait, and asserts it returns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e7df6b12-bf62-4114-a8c6-7cf2fd9ba2c8
  • 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.

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

I've completed my sweep! Here's the situation. 🧹

I've aggregated the results of the automated checks for this PR below.

🏷️ Release Preview

I've checked the 'New Features' highlight reel. 📽️

Current: 1.12.0a1 → Next: 1.12.0a2

Signal Value
Label (none)
PR title test: check the wait_for_trained opt-out on a trainer that never answers
Bump alpha

✅ PR title follows conventional commit format.


🚀 Release Channel Compatibility

Predicted next version: 1.12.0a2

Channel Status Note Current Constraint
Stable ⚪ Not in channel -
Testing ❌ Too new (must be <1.0.0) ovoscope>=0.7.2,<1.0.0
Alpha ✅ Compatible ovoscope>=1.6.15a1

🔍 Lint

The data has been harvested! Check the findings below. 🌾

❌ ruff: issues found in 76 file(s) — see job log
✅ actionlint: 12 workflow file(s), no finding

📋 Repo Health

Scanning for any signs of 'merge conflict' stress. 😫

✅ All required files present.

Latest Version: 1.12.0a1

✅ ovoscope/version.py — Version file
✅ README.md — README
✅ LICENSE — License file
✅ pyproject.toml — pyproject.toml
⚠️ setup.py — setup.py
✅ CHANGELOG.md — Changelog
✅ ovoscope/version.py has valid version block markers

⚖️ License Check

Ensuring we're respecting the rights of others. 🤝

✅ No license violations found.

Policy: Apache 2.0 (universal donor). StrongCopyleft / NetworkCopyleft / WeakCopyleft / Other / Error categories fail. MPL allowed.

🔒 Security (pip-audit)

Scanning for any potential SQL injection points. 💉

⚠️ 3 known vulnerabilities in 1 package (134 packages scanned). This job warns and does not fail; update the affected packages.

Package Version ID Description Fix
filelock 3.32.7 CVE-2026-112940 ReadWriteLock and AsyncReadWriteLock (the SQLite-backed reader/writer lock) hand SQLite a name they do not contro... 4.2.1
filelock 3.32.7 CVE-2026-112913 On Windows, ReadWriteLock and AsyncReadWriteLock (the SQLite-backed reader/writer lock) connect SQLite to the loc... 4.2.1
filelock 3.32.7 CVE-2026-112907 On Windows the soft locks (SoftFileLock, MarkerSoftFileLock, SoftFileLease, their async forms, and a FileLock... 4.2.1

📊 Coverage

Measuring the depth of our automated validation. 🌊

⚠️ 65.7% total coverage

Files below 80% coverage (16 files)
File Coverage Missing lines
ovoscope/golden_worker.py 0.0% 30
ovoscope/simple_listener.py 0.0% 63
ovoscope/version.py 0.0% 5
ovoscope/classic_listener.py 18.2% 117
ovoscope/intent_cases.py 22.3% 153
ovoscope/pytest_plugin.py 46.0% 242
ovoscope/ocp.py 47.9% 61
ovoscope/cli.py 48.3% 140
ovoscope/tts_intelligibility.py 49.0% 102
ovoscope/e2e.py 57.1% 73
ovoscope/listener.py 57.1% 127
ovoscope/voice_loop.py 59.3% 118
ovoscope/media.py 60.3% 96
ovoscope/audio.py 64.4% 126
ovoscope/__init__.py 66.9% 401
ovoscope/media_provider.py 67.6% 23

Full report: download the coverage-report artifact.

🔨 Build Tests

Verifying the structural soundness of your build. 🏗️

✅ All versions pass

Python Build Install Tests pytest
3.10 ✅ ✅ ✅ 836 passed, 25 skipped, 119 warnings in 261.05s (0:04:21)
3.11 ✅ ✅ ✅ 836 passed, 25 skipped, 119 warnings in 254.26s (0:04:14)
3.12 ✅ ✅ ✅ 836 passed, 25 skipped, 119 warnings in 256.89s (0:04:16)
3.13 ✅ ✅ ✅ 836 passed, 25 skipped, 156 warnings in 278.50s (0:04:38)
3.14 ✅ ✅ ✅ 836 passed, 25 skipped, 156 warnings in 271.59s (0:04:31)

Always here to help you keep things stable. ⚓

@JarbasAl
JarbasAl marked this pull request as ready for review October 25, 2026 15:10
@JarbasAl
JarbasAl merged commit de28cc0 into dev Oct 25, 2026
16 checks passed
@JarbasAl
JarbasAl deleted the test/wait-for-trained-opt-out branch October 25, 2026 15:10
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