Skip to content

Synchronize Folder tests: expected paths spelled as the OS does (Windows) - #660

Closed
HarrisXiu wants to merge 3 commits into
storytold:mainfrom
HarrisXiu:fix/tests-sync-windows-paths
Closed

HarrisXiu wants to merge 3 commits into
storytold:mainfrom
HarrisXiu:fix/tests-sync-windows-paths

Conversation

@HarrisXiu

@HarrisXiu HarrisXiu commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

One test-only fix. (This PR first also changed export_progress_and_cancel; that commit is reverted here, see below.)

Synchronize Folder tests: expected paths with mixed separators

Seven tests in crates/engine/src/tests_sync.rs fail on every Windows run:

  left: ["C:\...\lc-sync-new-30076\trip\c.png", ...]
 right: ["C:\...\lc-sync-new-30076\trip/c.png", ...]

The helper Scratch::path("trip/c.png") joined the whole relative path onto the scratch folder, so the expected value kept the /, while a scan reports paths as the OS spells them. The helper now joins the parts one by one. The paths the scan reports are unchanged. Same kind of problem as #538, in tests that landed after it.

What was taken out: the MCP export-cancel race (#674)

The second commit enlarged the cancelled export in export_progress_and_cancel to 24 photos at long edge 2000. It is reverted by the third commit, so crates/mcp is identical to main in this PR. The larger batch only gave the cancellation more time and stayed timing-dependent; @ingolfteetz has a deterministic fix (hold the export at a photo boundary) that is better, and #668 touches the same lines. This PR no longer conflicts with either.

Checks

🤖 Generated with Claude Code

HarrisXiu and others added 2 commits October 10, 2026 01:25
…the OS does

Scratch::path joined a relative path written with `/` onto the scratch folder,
so on Windows the expected paths had mixed separators (`...\trip/c.png`) while a
scan reports them as the OS spells them (`...\trip\c.png`): 7 tests in
tests_sync failed on every Windows run. The helper now joins the parts one by
one. Test-only; the paths the scan reports are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tlasts one burst

Since export batches render up to four photos side by side (PR storytold#504), photo
boundaries come in bursts, and progress is reported at most every 100 ms. On a
fast machine the eight small photos of export_progress_and_cancel were over one
burst after the first progress report, so the cancellation found nothing left to
stop: the test failed 5 runs in 6 here (Windows, 4 lanes) and passed 6 in 6
before storytold#504. The cancelled export now takes 24 photos at a larger size, several
bursts past the first report. Test-only: cancellation between photos is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… that outlasts one burst"

This reverts commit fb9a179.

The larger batch only gives the cancellation more time; it stays dependent on
timing (issue storytold#674). A deterministic fix that holds the export at a photo
boundary is coming as its own PR, and storytold#668 touches the same lines. This branch
keeps only the Synchronize Folder path fix so it conflicts with neither.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copy link
Copy Markdown
Member

Thanks, @HarrisXiu! #873 (landed in #975) normalises the expected paths in the same Synchronize Folder tests more generally, covering mixed separators too, so this change is no longer needed. Closing it.


Generated by Claude Code

@bflatastic bflatastic closed this Oct 11, 2026
valenfys pushed a commit to valenfys/lightcraft that referenced this pull request Oct 11, 2026
Rebuild fixture path components with native separators so expected paths
match directory scans on Windows, including files that have been removed.
This is a prerequisite for Windows validation and overlaps the path-helper
fix in upstream PR storytold#660; it can be dropped once that change lands.

Co-Authored-By: GPT-6 Astra <noreply@openai.com>
Kaan88 pushed a commit to Kaan88/lightcraft that referenced this pull request Oct 28, 2026
LR-EDIT-COLOR-WB-PICKER: White Balance Selector loupe and sample size
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.

2 participants