PTV-1904 refactor summary file merging to fix bug - #101
Conversation
|
Claude review: PR Review: PTV-1904 refactor summary file merging to fix bugOverviewThis PR addresses the root cause of the PTV-1904 bug by refactoring the summary TSV file loading and merging logic. The issue stems from the use of Changes SummaryFiles Modified:
Statistics:
Detailed ReviewPositive Aspects:
Observations & Questions
Potential Concerns
Test Quality AssessmentStrengths:
Coverage:
Verdict✅ APPROVED - This is excellent refactoring that fixes a critical bug while improving code quality and maintainability. The root cause is properly identified and fixed, the refactoring is clean, and the test coverage is comprehensive. Key strengths:
Minor recommendations:
The PR is ready to merge with confidence that the PTV-1904 bug is properly fixed. |
PTV-1904 update release notes, bump version to 1.4.1
Ok, so the real actual bug in PTV-1904 comes from the summary files. The "fix" put in #92 fixed it kinda by accident. The real issue was in how the summary TSV files were loaded, namely, that they were loaded by stripping all whitespace off the end of the lines and then splitting on
\t. There are uncommon cases where the last entries in some lines are just empty - some files put inN/A, others just leave those elements blank. Usingrstripon those lines just kinda caused some chaos.This is a reasonably mild refactor of the piece of
_process_output_filesthat addresses this. There's a separate function for loading summary files, and for merging them. The merge process is still mostly the same, but loading the files should be more stable now.