Repository navigation
Tests: SIL harness — the real app through Lightroom workflows and a seeded monkey - #25
Merged
Merged
Conversation
…kflows and a seeded monkey `<cli> snapshot --script -` answers control requests from stdin as they arrive. apps/cli/tests/sil.rs runs the real app (UI, engine, catalog, files on disk) through import, cull, develop, sync, versions, collections, metadata, export, the XMP round trip and reopen. It also runs a seeded random monkey with some hostile arguments. After every step it checks invariants: the app is alive and answers, errors are clean, the library is consistent, undo then redo returns to the same state, reopening keeps everything, exports decode, and the activity stack drains. `cargo xtask sil` runs it, and docs/testing-sil.md documents it. Bugs it found: - Undoing a step that created photos (an import, a virtual copy) left them in the selection. - ui.dialog.confirm / cancel ignored Read / Save Metadata's overwrite question, so agents could not answer it. Sources: own design. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
emmertex
enabled auto-merge
October 13, 2026 06:50
… (the web build has no such catalog dialog), so the wasm build compiles Co-Authored-By: Claude Opus 5.5 (1M context) <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.
Adds a software-in-the-loop harness. It drives the real app (
<cli> snapshot --library DIR --script -: the desktop UI, engine and catalog running headless on a library on disk) through Lightroom Classic workflows and checks invariants after every step, never exact outputs. Docs:docs/testing-sil.md.--script -streams control requests from stdin, so a driver can hold a conversation with a headless session.sil_workflow(import → cull/filters → Auto/sliders/WB picker/crop/mask/preset → copy/paste + Synchronize → virtual copy + history → albums + smart collection → keywords/metadata → export JPEG/TIFF/Original+Settings → XMP write/read back → print → reopen),sil_raw_workflow(corpus raws; skipped without them), andsil_monkey(seeded random actions, ~8 % hostile, with periodic reopens).report.txt, areplay.jsonlthat<cli> snapshotcan replay, and the monkey seed.cargo xtask sil [workflow|raw|monkey] [--seed N] [--steps N]. It also runs undercargo test --workspace. The whole suite takes about 4–7 s once built.Bugs found and fixed:
undo_never_leaves_vanished_photos_selected.ui.dialog.confirm/ui.dialog.cancelignored Read / Save Metadata's overwrite question ({confirm: "dialog"}), so control and MCP clients could not answer it. The workflow scenario covers this.After the fixes, 32 seeds × 400 steps all pass.
🤖 Generated with Claude Code