-
Notifications
You must be signed in to change notification settings - Fork 25
fix: allow non s prefixed models to fail websocket integration tests
#71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe WebSocket TTS integration test was refactored to use pytest parametrization instead of internal model iteration. Test methods now run once per model with xfail marks applied to non-s1 prefixed models, replacing the previous loop-based approach while maintaining equivalent coverage. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)tests/integration/test_tts_websocket_integration.py (2)
🔇 Additional comments (4)
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
s prefixed models to fail websocket integration tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors WebSocket integration tests to use pytest's parametrize decorator instead of looping through models within a single test. It marks legacy models (non-"s1" prefixed) as expected failures using xfail, allowing the test suite to pass while acknowledging known unreliability issues with WebSocket connections for older models.
Key Changes:
- Converted loop-based model testing to parametrized tests for better isolation
- Added conditional xfail markers for models that don't start with "s1"
- Removed inter-test delays (time.sleep/asyncio.sleep) as pytest parametrize provides proper test isolation
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.