Repository navigation
Add Sidecar Failure, Tool Change Logging, and Summarize Tests - #1190
Conversation
Cover a sidecar that cannot be parsed, one missing each tool's data, a sidecar update whose write fails, the version-mismatch warning for each of the three tools, and summarizing long tool output to its first and last lines. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 29 minutes. View limit details
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. CodeRabbit Verify
|
|
A recorded local strict-review pass covers head |
PR Summary by QodoExpand sidecar failure, tool-change warning, and output summary tests
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
There was a problem hiding this comment.
🟢 Approval recommended
No active issues were identified in the reviewed test-only changes, which cover sidecar failures, tool version mismatches, and media-output summarization.
No open issues 🎉
What changed in this PR
This pull request expands unit-test coverage for sidecar read/write failures, per-tool version-mismatch logging, and media-tool output summarization without changing production code.
Changes:
- Adds sidecar parsing, missing-data, and write-failure tests with log assertions.
- Adds version-mismatch coverage for FFprobe, MkvMerge, and MediaInfo.
- Verifies long-output summarization and preservation of short output.
| File | Description |
|---|---|
PlexCleanerTests/ToolChangeSenseTests.cs |
Tests tool-specific version mismatch detection and warning logging. |
PlexCleanerTests/SidecarFileFailureTests.cs |
Tests invalid, incomplete, and unwritable sidecar failure paths. |
PlexCleanerTests/MediaToolSummarizeTests.cs |
Tests long-output summarization and short-output preservation. |
Review effort: Lite
Code Review by Qodo
1. Tool-change logging test fails on timestamps
|
Declined, because the test passes and the assertion tolerates the timestamp warning:
|
Adds tests for sidecar failure paths, the per-tool version-mismatch warning, and tool output summarizing.
SidecarFileFailureTests:Readand logs the JSON read error.MediaInfoData,MkvMergeInfoData,FfProbeInfoData) failsRead.Openand logs the write error.ToolChangeSenseTestsgains a theory: withSidecarUpdateOnToolChangeon, a version change in each of FfProbe, MkvMerge, and MediaInfo makes the sidecar not current, and warns for that tool alone.MediaToolSummarizeTests: long tool output keeps its first 2 and last 8 lines (StartLinesandStopLines), and short output stays whole.This is phase 6 of the coverage plan on the
coveragetrack (#1171), group E. It covers 41 of the 82 lines Codecov reported missed inSidecarFile.csat the phase 5 measurement, and 3 inMediaTool.cs. The rest ofSidecarFile.csis mostlyComputeHash's short-read error blocks, which need a file truncated mid-read, and cancel paths, which no unit test can trigger without cancelling the program's one-shot token.Verification: the .NET Format chain is clean, and the unit suite passes (559 tests). The local strict review raised no findings.
🤖 Generated with Claude Code