Repository navigation
Fail a Track Dump Present in One Run Only - #1235
Conversation
A file with an empty dump in one run and no dump in the other compared as two empty track lists, so the comparison passed with no track evidence for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
A recorded local strict-review pass covers head |
|
Caution Review failedThe pull request is closed.
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. |
PR Summary by QodoFail comparisons when only one run has a file's track dump
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can see how risky a PR is at a glance with blast radius labels |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are identified, and the change includes targeted coverage and documentation for distinguishing missing dumps from valid empty dumps.
No open issues 🎉
What changed in this PR
Updates regression-run track comparison so a file with a track dump in only one run is treated as a mismatch rather than compared against an implicit empty track list.
Changes:
- Distinguishes missing per-file track dumps from valid empty dumps.
- Adds regression coverage for one-sided dumps in both comparison directions.
- Documents the updated comparison behavior.
| File | Description |
|---|---|
RegressionTests/tests/test_check_results.py |
Tests missing per-file dumps in both baseline/results directions. |
RegressionTests/README.md |
Documents that one-sided per-file dumps fail comparison. |
RegressionTests/check_results.py |
Reports which run lacks a per-file track dump while preserving valid empty-dump matches. |
Review effort: Lite
|
@coderabbitai review |
Action not completed
|
Summary
Review on the promotion pull request #1234 found that
track_differencesread a missing dump as an empty track list. So a file whose dump held no tracks in one run, and that had no dump in the other, compared equal, and the comparison passed with no track evidence for it.RegressionTests/README.md"Comparing two runs" states the case.A file absent from both runs' dumps is not compared for tracks, and its outcome still is. The regression corpus holds no sidecar files, so every processed file is read from its tools and logs a dump.
Test plan
python3 -m unittest discover -s testsinRegressionTests/: 94 tests pass.test_dump_on_one_side_only_failscovers both directions and fails without the fix.uvx ruff@0.17.3 check .,uvx ruff@0.17.3 format --check .,uvx mypy@latest, andprose_lint.py --diff origin/develop: clean.🤖 Generated with Claude Code