Skip to content

[validation only] CI with the open #989 fixes merged - #2

Closed
THEtheChad wants to merge 14 commits into
ci/platform-testsfrom
validate/platform-tests-989
Closed

THEtheChad wants to merge 14 commits into
ci/platform-testsfrom
validate/platform-tests-989

Conversation

@THEtheChad

@THEtheChad THEtheChad commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

Validation run in the fork: the CI workflow with upstream PRs storytold#990, storytold#997, storytold#1003, storytold#1007, storytold#1018 and storytold#1052 merged on top, to see what else fails per platform. Not for merging; will be closed.

nledford and others added 10 commits October 11, 2026 10:45
… the menu passes on_exit its second argument)

88e4188 gave eframe the glow feature, which gives App::on_exit a GL
context parameter. The trait impl was updated; the call in the
macOS-only Quit path was not, so the app did not compile on macOS. It
passes None: nothing in on_exit uses the context.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…no /bin/true)

The spawning thread ran /bin/true, which is /usr/bin/true on macOS, so
it never spawned a child and the test failed there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…(clippy 1.99 chunks_exact_to_as_chunks)

Item 4 of storytold#989. Same elements and the same ignored remainder as chunks_exact(3),
checked on lengths 0-9 in a scratch file; the 13 spots tests pass and clippy over
the workspace without the desktop app package is clean under -D warnings. Items
1-3 of storytold#989 (the macOS app build, the /bin/true lock test, eleven engine tests)
are not touched here.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…TF-8 names where the file system refuses them (item 3, one of eleven)

APFS refuses names that are not valid UTF-8 (EILSEQ, os error 92), so the test's
create_dir_all(...).unwrap() panicked on macOS. The test now probes once with a
\xff folder; where that fails, the non-UTF-8 folder case and the non-UTF-8 entry
are skipped and the catalog-folder and symlink cases still run on a plain-named
folder. Where the probe succeeds (Linux, FreeBSD) the test is unchanged.

Run on macOS (case-insensitive APFS, rustc 1.99.0): the five tests in
tests_lightroom_folder pass, cargo fmt is clean, and clippy over lightcraft-engine
with --all-targets is clean. The ten sidecar tests of item 3 are not touched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…-insensitive volume (item 3, ten of eleven)

The tests were written for a case-sensitive disk. rename.rs sidecars() offers both
.XMP and .xmp per naming and keeps those that exist; on case-insensitive APFS
a.XMP "exists" for a file stored as a.xmp, so the code renames a.XMP while the
fault injectors (Faults twice, PartialRename) compared exact paths with the
lowercase one: the injected failure never fired and the rename the tests expect
to be refused succeeded.

Fault injectors now match by same_path_or_file (equal path, or the same file by
identity); two assertions that compared an exact spelling use same_path_for_volume
(equal, or equal ignoring ASCII case on a case-insensitive volume), and one that
required the lowercase packet to be absent is skipped there, where both spellings
are one file. Helpers live in tests_xmp.rs. Production code is not touched.

Run with rustc 1.99.0 on macOS: case-insensitive APFS, the ten failed before and
pass now; case-sensitive APFS (a disk image), the original tests pass and so do
these. All 13 sidecar::tests_repair tests pass on both. cargo fmt is clean and
clippy over lightcraft-engine with --all-targets is clean. Not touched: the
.xmp -> .XMP spelling change on rename, and the Lightroom folder test (its own PR).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…row (Add to Apple Photos, 876 pt)

export_dialog_is_unchanged_in_a_tall_window expected 846 pt on every platform.
a6431c1 (add exported files to Apple Photos, storytold#236) put a macOS-only checkbox at
the end of the dialog, so on macOS it is 876 pt tall at 1600x1000 (measured:
[[492 62] - [1107.2 938]]). The test failed on macOS on upstream main (76b5377)
with no other change; it is unchanged on other platforms.

Run on macOS (rustc 1.99.0): the five tests in tests_dialog_fit pass, cargo fmt
is clean, clippy over lightcraft-ui-egui with --all-targets is clean. Not run on
Linux or FreeBSD, where the expectation stays 846.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…n one line)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…me/sidecar tests

20 engine tests failed on Windows on clean main. Three real bugs on
case-insensitive volumes (Windows, default macOS APFS) caused most of them:

- Renaming a photo probed `a.XMP` before `a.xmp`. On a case-insensitive
  volume the upper-case spelling "exists" when only `a.xmp` is there, so the
  sidecar was moved as `Trip.XMP` (and its retained-packet record was taken
  under the wrong spelling). Upper-case candidates are now used only when the
  folder lists them exactly (new `MoveFs::listed`).
- `RealFs::same_file` on Windows (no file id in std) depended on argument
  order: `same_file("Trip.XMP", "Trip.xmp")` was false when `Trip.xmp` is the
  real entry, so saving after a partial rename reported a phantom collision.
  It is now symmetric, and also requires the names to differ only by case
  (two different files with equal size and mtime were "the same").
- Saving metadata picked the sidecar spelling by `is_file()`, lower case
  first, so the atomic write renamed an existing `Trip.XMP` to `Trip.xmp`.
  The spelling the folder lists now wins.

The rest were fixtures: FakeFs fault paths, catalog paths and expected
paths spelled with `/` while the code joins with the host separator.

Regression tests: case_insensitive_renames_keep_each_sidecars_spelling
(FakeFs, every platform; fails without the fix) and
same_file_spellings_are_symmetric_on_windows. Linux behaviour unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
desktop_exec treats a freedesktop Exec path as absolute when it starts
with '/' on every platform (Path::is_absolute wants a drive letter on
Windows); fill_box uses as_chunks (clippy::chunks_exact_to_as_chunks);
LibraryLock::descriptor_copy is cfg(all(test, unix)) like its only test.

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

`Gpu::new` refuses software adapters (llvmpipe / lavapipe, WARP): the CPU
pipeline is faster. CI runners have nothing else, so the CPU <-> GPU
equivalence tests have always skipped there.

`LIGHTCRAFT_GPU_ALLOW_SOFTWARE=1` admits them. The app never sets it and
the default is unchanged. On lavapipe all 134 compared renders stay within
max 1 LSB, mean <= 0.0003 LSB, the same as Metal on an M4 Pro.

The two big-source window tests used a 24 MP (288 MB) source. That is over
lavapipe's 128 MiB storage binding (the WebGPU default), so geometry ran on
the CPU and nothing was uploaded: one test failed and the other passed
without checking anything. They now use 3200 x 3200 (117 MiB): above
RETAIN_SOURCE_BYTES, so the source is still shared, and uploaded on every
adapter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@THEtheChad
THEtheChad force-pushed the validate/platform-tests-989 branch from cd29f3d to bb9172d Compare October 11, 2026 17:42
THEtheChad and others added 4 commits October 11, 2026 15:57
On every pull request and push to main, on standard GitHub-hosted runners:
Linux runs `cargo xtask ci`. macOS and Windows run clippy and
`cargo test --workspace --no-fail-fast`, the steps whose result depends on
the platform.

All three then run the GPU test targets on lavapipe, Metal and WARP. That
step fails if the tests still skip for lack of an adapter.

The dependency cache is saved from main only. The workflow uses only the
actions and pins already in release.yml.

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

ci.yml exists, but main does not pass it yet. The storytold#989 fixes and the
Windows ones (storytold#1052) are still outstanding, so the entry stays open:
6-12 h -> 2-4 h. Headline numbers are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…7' and 'pr/1018' into validate/platform-tests-989
# Conflicts:
#	crates/engine/src/sidecar/tests_repair_saves.rs
#	crates/pipeline/src/spots.rs
@THEtheChad
THEtheChad force-pushed the validate/platform-tests-989 branch from bb9172d to 857b437 Compare October 11, 2026 21:00
@THEtheChad

Copy link
Copy Markdown
Owner Author

Validation done: run 38174552427 green on all three. Closing.

@THEtheChad THEtheChad closed this Oct 11, 2026
@THEtheChad
THEtheChad deleted the validate/platform-tests-989 branch October 11, 2026 21:55
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.

4 participants