-
Notifications
You must be signed in to change notification settings - Fork 0
Run parallel feature tests and strengthen edge-case coverage #429
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
base: wip
Are you sure you want to change the base?
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
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 enhances the testing infrastructure by adding parallel feature test execution in CI workflows and strengthens edge-case coverage while cleaning up overly specific test assertions.
- Adds parallel feature testing to CI and coverage workflows to ensure threaded code paths are tested
- Replaces rigid window function sum calculations with more robust range-based assertions
- Reduces wavelet multi-level test complexity by using fewer decomposition levels and adding proper error handling tests
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/test.yml | Adds parallel feature test execution to CI pipeline |
| .github/workflows/coverage.yml | Includes parallel feature in coverage matrix |
| tests/window.rs | Replaces exact sum assertions with robust range checks for window functions |
| tests/window_more.rs | Removes specific Bartlett sum calculation and uses general range validation |
| tests/wavelet_multi.rs | Reduces test levels and adds proper error handling validation |
| tests/stft_parallel.rs | Adds edge-case tests for empty signals and odd window sizes |
| src/rfft.rs | Silences unused function warnings with allow attributes |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| fn parallel_handles_empty_signal() { | ||
| const WIN_LEN: usize = 4; | ||
| const HOP: usize = 2; | ||
| let signal: [f32; 0] = []; |
Copilot
AI
Aug 22, 2025
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.
[nitpick] Using an empty array literal [] would be more idiomatic than explicitly typing [f32; 0] since the type can be inferred from the function call context.
| let signal: [f32; 0] = []; | |
| let signal = []; |
Summary
cargo test --features parallelin CI and coverage workflowsTesting
cargo clippy --all-targets -- -D warningscargo clippy --all-targets --features parallel -- -D warningscargo testcargo test --features parallelhttps://chatgpt.com/codex/tasks/task_e_68a79e6dfbf4832ba076bc98908b9893