Repository navigation
fix(analysis): discover test-case parameterized tests - #3522
Conversation
|
Caution CodeRabbit couldn't post its review summary. Error details |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- is_explicit_test_case_attribute uses a whitespace-stripped prefix check, which accepts malformed leading forms like #[test_case (...)] or comments-only attribute strings; harmless for parsing but loose. No semantic risk for the fixture.
- artifact-verifier failed exit 2; not blocking for source-route but plan/compiler should track before gate.
Verification questions
- Confirm coverage gaps in the new module: no test for stacked #[test_case(...)] on one function, no cache-path coverage (build_index_from_loaded_files_with_cache), and no negative for is_explicit_test_case_attribute rejecting #[case( and rstest internal expansions.
- Confirm is_explicit_test_case_attribute collapses whitespace and matches a prefix; attr text containing #[test_case( inside a multiline macro could false-positive on attr boundaries, and macros that re-export test_case under aliased paths are not recognized.
- Confirm pR claim 'framework semantics applied once at the fact-normalization boundary, after both fresh and cached indexing' must hold for build_index_from_loaded_files_with_cache; diff adds promote in both fresh and cached paths. Verify LSP/CLI callers route through these wrappers and not through build::build_index directly.
- Confirm no regression-style red/green test: existing baseline behavior on this fixture is not asserted separately. Single in-file integration test mixes old-behavior absence and new-behavior presence; a focused control (pre-promotion index of same fixture) would harden the red/green proof.
Refuted
- Box::from(slice) allocation failure on cache path is a regression risk.; refuted because: Diff does not touch Box::from(slice), allocation, or any native path. False premise under calibration rules; allocation failure would surface as an error and not be papered over.
- Whitespace-collapsed prefix match on attribute text could miss nested or aliased test_case attributes (e.g., rstest::test_case, test_case::case).; refuted because: Lane scope is public-API source-route, not attribute parsing exhaustiveness. PR body explicitly excludes procedural-macro expansion and 'arbitrary custom harnesses'; plain prefix match is consistent with stated scope. Demoted to verification-question, not finding.
Test proof
- Focused HEAD proof failed (exit 101):
cargo test --locked --package ripr --test facts_promoted. This is a current failure, not a red/green witness.
Evidence gaps
- Artifact-verifier failed (exit 2) without receipt; cargo-test is scheduled-late only. Compiler downstream of these receipts cannot fully confirm artifact shape from sensors.
- Model proof intent was rejected by deterministic validation.
|
Warning Review limit reachedNext included review available in 53 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (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 |
Exact-head substantive review —
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d735bd2971
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Exact-head repair evidence — 839a529 against main 9e41eecAddressed the valid parser/oracle finding. Promoted explicit |
…3594) * docs(changelog): record the recent user-visible merges in Unreleased Entries for the recent user-visible merges: test-case parameterized test discovery (#3522), nonstandard test attributes (#3513), active Jest/Vitest modifiers (#3506), the perl class-cap fix (#3583), Python LSP config reload and auto-detection invalidation (#3503/#3576), policy covered_by enumeration reliability (#3577), and front-panel movement vocabulary (#3491). Entries state what the merged PR titles state — no invented mechanism detail. * docs(changelog): capitalize Perl in the class-cap entry (#3594 review)
Closes #3519
Change
#[test_case(...)]and#[test_case::test_case(...)]functions into the ordinary Rust test indexrstest, plain#[test], an orphan#[case], and an unannotated helper as positive and negative controlsDesign
The parser remains responsible for source facts. Framework semantics are applied once at the fact-normalization boundary, after both fresh and cached indexing, so downstream CLI, LSP, and evidence consumers receive one consistent index.
Claim boundary
This recognizes explicit source-level attribute syntax. It does not expand procedural macros, infer arbitrary custom harnesses, or claim runtime execution.
Verification
Ripr Rust Small Resultis the exact-head authority