Commit Graph
5285 Commits
Author SHA1 Message Date
aiongg 3ab64de0ff Move the batch's paint-dependent core tests to the engine crate 2026-11-23 20:54:27 +00:00
aiongg dc7005d4a4 Engine split step 7: the main batch's core tests that run edit.fill move to the top crate's tests/it 2026-11-23 19:44:48 +00:00
aiongg f226fdc42d Merge remote-tracking branch 'upstream/main' into engine-split-step7
# Conflicts:
#	crates/engine-core/src/cmd/mode_cmds.rs
2026-11-23 19:41:31 +00:00
aiongg 9277ac1673 Engine split step 7: hand fixes for the moved tests (test-local copies, flate2 dev-dependency, unused imports, dead test helpers) 2026-11-23 15:08:36 +00:00
aiongg a7fd5975a5 Engine split step 7: core tests that run paint commands move to the top crate's tests/it (move_tests.py and its output) 2026-11-23 15:06:31 +00:00
aiongg 850e73c5fb Engine split step 7: the paint crate (installs per crate, registry order from command_ids.txt, helpers moved down, paint-only helpers moved up, live-stroke traits, admit hook, tooling) 2026-11-23 14:16:34 +00:00
aiongg 1086d71fd9 Engine split step 7: engine_cut.py and its paint split (paint modules to crates/engine-paint/src) 2026-11-23 14:06:43 +00:00
David Mann 42236a89fa Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/engine-core/Cargo.toml
#	crates/ipp/Cargo.toml
#	crates/ui-egui/src/tools/analysis/tests.rs
2026-11-23 14:58:08 +01:00
aiongg 4b52711068 Merge pull request #16487 from aiongg/engine-split-cuts7
Engine tests before the paint cut: failpoints feature, setups without paint commands
2026-11-23 08:55:14 -05:00
David Mann a461a65ceb Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	Cargo.lock
#	Cargo.toml
2026-11-23 13:08:36 +01:00
FredApps 17db1ba448 Merge remote-tracking branch 'upstream/main' into inbox-15255 2026-11-23 10:57:42 +01:00
aiongg e1e1eb8f01 Actions tests: a Paint Bucket step's explicit colour replays after an .atn round trip 2026-11-23 07:45:29 +00:00
aiongg cf80a283f2 Engine split step 6: cargo fmt 2026-11-23 03:28:48 +00:00
aiongg 3cbd7b155a Engine split step 6: slot_access.py and its rewrite (slot fields to accessors, trait imports, doc links)
scripts/engine_split/slot_access.py rewrites the slot fields to their accessors
(Tracked presets deref through one more *), adds the trait imports, turns
s.presets_changed() into presets::presets_changed(s) and points Session::method doc
links at the trait methods. Its fix mode applies what cargo check reports; branch
mode serves open branches and lists their edits to the moved methods. The
definition-span helpers session_state.py uses move to rust_source.py so both
scripts share them (session_state.py's output is unchanged).

This commit is split plus the fix rounds against cargo check of engine-core,
engine, ui-egui and automation (lib and tests). Part of #15710.
2026-11-23 03:28:27 +00:00
David MannandClaude Opus 5.5 66428d818e Move the batch's Color Settings preset tests to crates/engine-core with the engine split
crates/engine/src keeps only facade.rs on main; color_cmds.rs in engine-core
already includes the file at ../color_settings_presets_tests.rs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-23 02:22:08 +01:00
David Mann 0888f27f1d Merge #15187 into the merge queue batch 2026-11-23 02:22:08 +01:00
aiongg f9438dbdad Engine split step 5: session slots, state types in core, action recording split, prefs file document, closing hooks
- slots.rs: SlotInit, Install::slot, Session::slot/slot_mut (a missing slot is the registry's error); the preset store is the first slot (preset_store::PresetStoreExt)
- state.rs: the small Session state types and what they need; their modules re-export them
- actions_record.rs: ActionRecording (s.recording) takes the recording and playback fields out of ActionState
- action_history::history_policy_in_use; Clip::from_svg becomes edit_cmds::clip_from_svg
- prefs/saved.rs: SavedPrefs, its readers and the methods that combine preferences, colour settings and presets; ScriptEvents and ShortcutSet move into prefs
- hooks: document_closing, doc_id_reserved, pixels_edited
- tests that compare a whole ActionState also compare s.recording
2026-11-23 01:12:57 +00:00
aiongg 30bb60592b Engine split step 5: session_state.py and its rewrite (recording fields to s.recording, Clip::from_svg callers, preset store reads) 2026-11-23 01:05:50 +00:00
FredApps 6498e7ab53 fix(engine): move param_schema into engine-core after the crate split
Merging main #16449 carried this PR's lib.rs module declaration into
engine-core (photocraft#15710), but the new source file stayed under
crates/engine/src, so the crate would not compile.
2026-11-23 06:02:53 +07:00
FredApps 01bce7a310 Merge branch 'main' into feat/param-schema-dispatch
Keep the parameter-schema dispatch, including Clean Brush refusing
unknown keys and the batch test that does not pass steps to Image
Processor. Take main's engine-core split and its new session helper.
2026-11-23 05:55:52 +07:00
aiongg bc727036dd Merge remote-tracking branch 'upstream/main' into engine-precheck-params 2026-11-22 21:47:28 +00:00
aiongg 567633c2f7 Engine split step 3: the Photoshop oracle tests install the commands first
Smart filter re-rendering looks the filters up in the command registry, and
these corpus tests create no session, so they install first like the other
tests that read the registry before a session.
2026-11-22 20:18:44 +00:00
aiongg 519a0c22a3 Engine split step 3: top crate with the wrapper Session
crates/engine keeps the package photocraft-engine: src/facade.rs re-exports
photocraft-engine-core, and its Session wraps core's and installs every engine
command. Core's Session::new() installs nothing; core gets install() and session().
The command registry keeps main's behaviour (empty before an install).

The top crate's dev-dependencies cover tests/ and examples/, including
craft-develop-model (camera raw baseline test) and photocraft-testkit (the
corpus-gated Photoshop oracle test). Dependents that need the core type or
borrowed two fields through the wrapper are fixed at the call site, and tests
that reach the registry before any session install first.

Tooling follows the package: workspace dependency, cl selection, xtask layers,
i18n report, scorecard and corpus paths, nextest overrides, ci-test-times rows,
display-names roots, prefs_usage paths, the engine split scripts, docs, and the
two release-perf steps in ci.yml.

Corpus .atn paths, the layer_menu registry read and the craft-develop-model
dev-dependency are FredApps' fixes from #16431.

Part of #15710
2026-11-22 19:29:06 +00:00
aiongg a210017995 Precheck runs the same parameter checks as dispatch
Session::precheck skipped the file.new value check that dispatch runs, so a
bad file.new passed precheck and failed only at dispatch. Both now call one
function, in dispatch's existing order.
2026-11-22 19:23:37 +00:00
aiongg b69ad02ccc Engine split step 3: move the engine sources to crates/engine-core
python3 scripts/engine_split/crate_shell.py split, then rustfmt on the files it edited.
The sources and the manifest move to crates/engine-core; core's tests start from
crate::session() (1,673 sites), 32 tests that read the registry first install with
crate::install(), and 12 Session imports the rewrite left unused are dropped.
2026-11-22 19:19:11 +00:00
Dylan M. Taylor 309e4c7a65 camera_raw: preserve legacy filter renders and native preview (#16419) 2026-11-22 12:57:39 -05:00
FredApps 7ab20d8e44 Merge branch 'main' into feat/param-schema-dispatch 2026-11-23 00:06:48 +07:00
aiongg cf2e416e31 Merge pull request #15914 from aiongg/ci-pin-toolchain
ci: pin Rust, stop cache evictions, corpus tests in the gate, fewer tests per PR
2026-11-22 12:03:37 -05:00
FredApps 9f5d55c86c fix(engine): document pattern.import group in the dispatch schema
Opening a .pat file always sends group (the file stem), as the other
preset import commands do, but the schema only listed path and data, so
dispatch rejected the import. Document the key; the handler still puts
patterns in the library and does not create a group.

Also stop the shared batch/Image Processor WebP test from passing
Batch's steps to Image Processor, which does not take that parameter.
2026-11-22 23:54:33 +07:00
FredApps c16f9e1b85 fix(engine): document close discard and artboard extensionColor in the schema
The typed dispatch schema rejected parameters callers already use:

- file.export.artboardsToFiles already reads extensionColor when
  extension is "other", but the key lived only in the notes, so the
  schema reader treated it as unknown.
- file.close tests and UI helpers pass discard:true, an older spelling
  of save:discard; accept that key the same way force is accepted.
- A find-and-replace order test passed layers to groupFromLayers; use
  the documented layer key.
- The shared batch/Image Processor input test passed Batch's steps to
  Image Processor, which does not take that parameter.

No command behaviour changes.
2026-11-22 23:12:48 +07:00
FredApps 04d1a23e96 Merge branch 'main' into feat/param-schema-dispatch 2026-11-22 23:03:35 +07:00
Dylan M. Taylor 65fc546bba raw, camera_raw: adopt craft-develop 7631ed550 and add explicit parity tests (#587) (#16393)
* raw,camera_raw: bump craft-develop to 7631ed550 and add explicit parity tests (#587)

* raw,camera_raw: cut over develop_sensor demosaic and camera_raw::develop to craft_develop (#587)

* raw,camera_raw: fix craft_develop field names and test imports (#587)

* camera_raw: fix clippy excessive_precision and unnecessary cast lints

* raw,camera_raw: use exact gaussian_taps for sharpening, silence camera_raw_gpu dead_code, update post-cutover pins

* raw,camera_raw: fix highlights sign, <0.3px sharpen noop, non-Bayer/fused parity, and gpu test ignores

* engine: update camera_raw_filter_legacy_baseline_pixels to post-cutover craft_develop baseline

* raw,camera_raw: early-exit noop sharpen, exact full desat, PAD=6 fused margin

* raw,camera_raw: guard <0.3px texture/clarity blur and route fused band demosaic through craft_develop

* io: update default RAW Open baseline pins for craft_develop::sensor::demosaic reflect borders

* io: add Windows libm FNV-1a hash pins for RAW Open baselines
2026-11-22 10:36:03 -05:00
aiongg 3e05a3747b Merge remote-tracking branch 'upstream/main' into HEAD
# Conflicts:
#	.github/workflows/ci.yml
2026-11-22 15:29:46 +00:00
FredApps 257fc03887 Merge branch 'main' into feat/param-schema-dispatch
Keep main's command registry split, and carry the parameter-schema docs
and composed-layer option placement from this branch into the new table
modules.
2026-11-22 22:26:32 +07:00
David Mann 3ad5e08978 Merge pull request #16397 from davidmann4/integration-batch-28
Integration batch 28: 19 green test-speed and UI-rework PRs
2026-11-22 14:46:47 +01:00
David Mann 3c76c4fff2 Merge remote-tracking branch 'origin/main' into repin/craft-libs-next-1122 2026-11-22 13:50:17 +01:00
David Mann 6983c0b381 Merge PR #15985: Tests: run the engine mode x depth x command matrices pairwise (#15932) 2026-11-22 13:25:02 +01:00
David Mann 5468872e9b Merge PR #15984: Restore unselected colour components only inside the live damage (#15967) 2026-11-22 13:24:57 +01:00
David Mann c0d7e28b78 Merge PR #16097: Live-dab replay tests cross commands, cases and depths pairwise (#15931) 2026-11-22 13:24:25 +01:00
David MannandClaude Opus 5.5 feb746d18b Merge main 6e0e587d96 and repin craft-libs to next e953d47a3, egui to f5025284
next now carries storytold/craft-libs#2977 and #2978. craft-develop stays
at main's craft-libs rev c42c34bfa, which is not on next.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-22 12:39:22 +01:00
David Mann 71495f89e5 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-22 12:23:08 +01:00
FredApps 6e0e587d96 test(raw): verify Camera Raw exposure migration after native reopen (#16387)
* test(raw): verify Camera Raw exposure migration after native reopen

* style(test): format native Camera Raw migration fixture
2026-11-22 17:26:25 +07:00
aiongg 44ac69dede Merge upstream/main into ci-pin-toolchain; gate runs when platforms fails, cold cache clear keeps newer entries, panic_hunt timeout 2026-11-22 05:59:39 +00:00
FredApps c05c4c5fdf fix(raw): preserve legacy Camera Raw curve knot selection (#16373)
Normalize and deduplicate saved point-curve knots in the original f32 domain before using the shared spline. Regression tests pin the LUT and a generated native Smart Filter after save/reopen.
2026-11-22 00:34:27 -05:00
Dylan M. Taylor b8635a8323 feat(raw): wire craft-develop MonotoneCurve and craft-develop-model migrate_camera_raw (#587) (#16370) 2026-11-21 23:55:36 -05:00
David MannandClaude Opus 5.5 cf5347b545 Integration: fix the batch 27 CI failures (fmt, null Image Size percent)
- cargo fmt for the merged Tool list in paint_mouse.rs.
- The #11516 fix refused an exported Image Size step with "percent": null,
  which main's review test treats as omitted. Native playback now omits a
  null percent like a null side or resolution, and export follows it, so
  both still agree. The null case moves from the invalid-percent test to a
  new native + round-trip test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-22 02:46:35 +01:00
David Mann 085ca2de1c Merge pull request #16253 from davidmann4/fix/memo-views-16197-followups
Fix the stale cached states the #16197 review found (#16252)
2026-11-22 02:02:45 +01:00
Dylan M. Taylor f3f382697f test(raw): pin pre-cutover Camera Raw SmartFilter and filter baseline (#587) (#16028)
* test(raw): pin pre-cutover Camera Raw SmartFilter and filter baseline (#587)

* test(format): avoid json! macro recursion limit in camera_raw_roundtrip (#587)

* test(format): wrap SmartSource::Embedded bytes in Arc (#587)

* test(engine): use select.deselect in camera_raw_baseline_pin (#587)

* test(raw): capture legacy RAW Open and Camera Raw Filter pixel baselines (#587)

* test(raw): lock Camera Raw Filter baseline pixels and capture RAW Open values (#587)

* test(io): lock legacy RAW Open baseline pixels (#587)

* test(io): capture RAW Open camera WB legacy baseline pixels (#587)

* test(io): lock RAW Open camera WB legacy baseline pixels (#587)
2026-11-21 19:59:28 -05:00
David MannandClaude Opus 5.5 69252058d7 Repin craft-libs to next cec6d87ff and egui to 72cb386ac
Brings storytold/craft-libs#2919 (layer eye stays empty, #16321),
#2929 (About tab spacing, #16325), #2931 (Space after an Alt tap,
#16327), #2932 (scroll bar range and drag, #16328, #16329), #2934
(grip ticks and the toolbar grip, #16332, #16333) and #2939 (About
stays inside the window, #16326).

The Overscroll scroll bar test follows the new range: the document
plus, on each side, the visible length less 100 screen points.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-22 01:51:55 +01:00
David Mann a698d07214 Merge PR #14120: Tools: add the Adjustment Brush Tool (#12519) 2026-11-22 01:06:31 +01:00