Repository navigation
Compare Output Tracks and Normalized Process Logs Between Regression Runs - #1233
Conversation
…Runs check_results.py --baseline compared only Results_process.json outcomes, while the track and codec check and the normalized log comparison lived as shell recipes in the host configuration repository. Both depend only on PlexCleaner's log format, so they now sit beside the outcome check, held to that format by unit tests. A track difference fails the comparison, and a side with no Debug track dump is reported unverified rather than passed. Log differences are warnings to judge. A bitrate summary shift is noted as noise only for a re-encoded or deinterlaced file whose outcome matches in both runs, which settles the gap the recipe judged by eye. Closes #1219 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The local review found that the Before line's progress percentage varies with completion order, that temp-file suffixes are fixed per operation and so carry signal, that tracks keyed by full path fail every file across media roots, and that thread attribution duplicated corpus_common's LINE_RE and Before anchor. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The second local review found that a re-encoding repair and the bitrate warning lines shift like a re-encode's summary, that the address rule rewrote the tail of every WxH resolution, and that two paths sharing a file name mixed their track dumps. The trailing file name now reuses corpus_common's LINE_FILE_RE. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
|
A recorded local strict-review pass covers head |
PR Summary by QodoCompare output tracks and normalized logs between regression runs
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
1.
|
There was a problem hiding this comment.
🟡 Changes recommended
The change still has an order-sensitive comparison bug that can miss track reordering, and its tests do not cover differing renamed-output bitrate names.
2 open issues
What changed in this PR
This PR extends regression-run comparison beyond Results_process.json outcomes by validating output tracks and normalized process logs, with corresponding tests and documentation.
Changes:
- Adds per-file output-track extraction and comparison.
- Adds normalized multiset log comparison with bitrate-noise handling.
- Expands unit tests and updates regression-testing documentation.
This pull request requires changes.
| File | Summary |
|---|---|
RegressionTests/tests/test_check_results.py |
Adds coverage for track, log, and bitrate comparison behavior. [P2] Add coverage for renamed-output bitrate noise (1 vote). |
RegressionTests/README.md |
Documents the expanded comparison workflow. [P2] Remove the incidental check count (1 vote). |
RegressionTests/check_results.py |
Implements track extraction, normalized log comparison, and bitrate-noise handling. [P1] Preserve track order during comparison (4 votes). [P2] Cover the renamed-output bitrate case (3 votes). |
OPERATIONS.md |
Updates release regression-testing guidance to include the new comparisons. |
Review effort: Lite
|
@coderabbitai review |
Rate Limit Exceeded
|
Review on the pull request found that a run with no track evidence exited 0, that sorting a dump hid a reordered track, and that a last read logging no tracks dropped its file from the comparison. A renamed file's bitrate warning gains a test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
@qodo-free-for-open-source-projects please dismiss findings 2 and 6, both disproved.
|
I can't dismiss findings 2 and 6 from this conversation. The findings catalog for this PR is empty, so I don't have the stable IDs the dismiss tool needs. In the published report, they are:
Dismissal also requires the PR author to make the request. If the findings are available on a later attempt, I can dismiss them then. |


Summary
check_results.py --baselinecompared onlyResults_process.jsonoutcomes. The track and codec check and the normalized log comparison lived as shell recipes in the host configuration repository. Both depend only on PlexCleaner's log format, so this moves them beside the outcome check, where unit tests hold them to that format.DebugMkvMerge track dump its log holds, keyed by file name as outcomes are, in logged order. A type, format, or codec difference, or a reorder within a track type, fails the comparison with exit1. So does a run with no log or noDebugdump, since its track check is unverified. Two paths sharing a file name refuse rather than mix their dumps.Beforeline's progress percentage, which follows completion order. It drops the temp-file suffix rule, since each operation's temp name is fixed and carries signal. Its address rule is anchored so aWxHresolution survives.RegressionTests/README.md"Comparing two runs" andOPERATIONS.md"Ship a change" step 3.Closes #1219. Reducing the host recipes to pointers is a follow-up in the host configuration repository, once this merges.
Declined in review
corpus_common's one-line0xaddress regex: it sits inside that module's error-payload normalizer, and one regex does not justify coupling the two files.corpus_common.TRACK_RE: that pattern reads every parser'sFormatandInterlacedfor the catalog at any level, so changing it changes catalog parsing.Convert.csandProcessFile.cs, so a suffix never varies between two runs of one build.UseSidecarFilesoff: it defaults on (ProcessOptions.cs), the harness keeps it on, and the result off would be a loud false difference rather than a silent pass.LoggerFactory.cs), far above a full-corpusDebugrun's log.Test plan
python3 -m unittest discover -s testsinRegressionTests/: 93 tests pass, on constructed log lines only.uvx [email protected] check .,uvx [email protected] format --check ., anduvx mypy@latest: clean.prose_lint.py --diff origin/develop, markdownlint, and cspell: clean.🤖 Generated with Claude Code