Repository navigation
conformance: reject diff heatmap path collisions - #2410
iliko123456789 wants to merge 1 commit into
Conversation
tiguan26
left a comment
There was a problem hiding this comment.
Approving 2130199.
Every scene's paths are planned and checked before the first heatmap is written, so a collision fails the run without overwriting an input. find_report_path_collision's candidate keys cover each way same_report_path can match: the resolved path, the normalized key, the case-folded basename (which any case-folding match shares) and the file identity for hard links with unrelated names, so the index cannot miss a pair the pairwise check would catch, and inputs are checked before earlier outputs. Moving the basename test ahead of the split in _same_resolved_name keeps its meaning.
Merged onto main d1dff7949 together with #2403, #2299, #2297, #2330 and #2286 (no conflicts), on Linux with Python 3.13. tests/test_conformance_diff_output_paths.py 9 passed, 1 skipped; tests/test_report_paths.py 24 passed, 1 skipped (main: 23). AI-assisted (Claude Code, Claude Opus 5.5).
|
Thanks for reviewing and testing my fix! I noticed that the PR is still open, and I couldn't find the changes on the current main branch after the repository move. Does it still need to be merged, or is there anything I need to update on my side? |
Claimed in the coordination issue as:
CONFORMANCE-DIFF-OUTPUT-COLLISION
What and why
compare.py diffcould overwrite a manifest, an input image, or another heatmap. Overwriting an image needed by a later scene could also produce a false pixel mismatch.Plan every path before writing heatmaps. Index possible aliases and confirm collisions with the shared
same_report_pathhelper. A collision exits 2 and names both paths. Existing heatmaps at distinct destinations can still be replaced.Tested
Verified commit
2130199f1on upstreame5a7c8942.Performance
Synthetic preflight benchmark (seconds):
Benchmarks used synthetic 1x1 PNGs. Results for 6 and 30 scenes are medians of three runs. Larger results are single runs.
Known limitations
Windows skipped symlink tests due to insufficient privileges. Ubuntu skipped Windows-specific and case-insensitive-volume tests. Both skipped APFS/HFS+ and five native-renderer tests.
All seven PowerShell conformance tests passed on Windows and were skipped on Ubuntu.
Validation assumes paths and links remain stable during comparison. Many paths sharing an alias key can still trigger repeated comparisons. Legacy Windows code pages may require Python UTF-8 mode for redirected CLI output.
GPUs tested: n/a (CPU-only synthetic tests)
AI-assisted: yes, with Codex
Checklist