Repository navigation
test: key the 3-D run comparisons by posix path so they pass on Windows - #163
Merged
Merged
Conversation
… on Windows str(Path.relative_to) gave backslash keys on Windows, so the '<unit>/metrics_long.csv' lookups missed in both the serial and parallel run. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three serial-vs-parallel 3-D tests fail on Windows on a clean
main(they pass on Linux CI). The parallel run was never at fault: the tests' own_files()helpers key their dicts withstr(p.relative_to(root)), which uses backslashes on Windows, so the lookup"t1+s1/metrics_long.csv"missed. Serial and parallel outputs are byte-identical.Fix:
p.relative_to(root).as_posix()in the three helpers (tests/test_integration/test_3d_run.py,test_native_3d.py,tests/test_fusion/test_run_3d.py). No assertion changed or weakened; no feature code touched.Not changed (diagnosed, still failing on Windows)
tests/test_fusion/test_agreement.py::test_timing_smoke_100k_frames: 4.2 s against a 3.0 s limit here (machine speed;suggest_offsetmakes 251 full-lengthagreementcalls).tests/test_native3d/test_pixel_unchanged.py(2 tests):Path("/data/s1")serialises with backslashes on Windows, soproject_hashdiffers from the golden957743be77913e61; the goldens encode a POSIX path. Needs regenerated goldens or a path-neutral hash; left for the owner of the native 3-D work.Test plan
tests/test_fusion/test_run_3d.py(25 tests) passes🤖 Generated with Claude Code