Skip to content

test: key the 3-D run comparisons by posix path so they pass on Windows - #163

Merged
mbel-tech merged 1 commit into
mainfrom
fatina-del-codice/win-posix-keys-3d-tests
Oct 11, 2026
Merged

mbel-tech merged 1 commit into
mainfrom
fatina-del-codice/win-posix-keys-3d-tests

Conversation

@mbel-tech

Copy link
Copy Markdown
Owner

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 with str(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_offset makes 251 full-length agreement calls).
  • tests/test_native3d/test_pixel_unchanged.py (2 tests): Path("/data/s1") serialises with backslashes on Windows, so project_hash differs from the golden 957743be77913e61; 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

  • the three tests pass locally on Windows (3 passed); ruff clean
  • tests/test_fusion/test_run_3d.py (25 tests) passes

🤖 Generated with Claude Code

… 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>
@mbel-tech
mbel-tech merged commit 95ac809 into main Oct 11, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant