Commit Graph
11 Commits
Author SHA1 Message Date
aiongg 95334485a6 Merge PhotoCraft main (installed_catalog); craft-libs at next 5c5e0d52c3 2026-11-23 14:03:56 +00: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
Dylan M. Taylor 97daf92f58 Merge PhotoCraft main for live font updates
Resolve the manifest and lockfile by using canonical craft-libs next for the live font stack while preserving main’s Camera Raw dependency pins.
2026-11-23 07:05:53 -05:00
aiongg 5ce2127686 Engine tests before the paint cut: failpoints feature, setups without paint commands
Step 7 of the engine split (#15710) moves the paint commands into their own
crate. These test changes land first, so the cut moves code and tests as they
are:

- photocraft-engine-core gets a `failpoints` feature (no default) that compiles
  the allocation failpoints outside core's own test build; the paint crate's
  dev-dependency on core will turn it on, so its allocation-failure tests keep
  their injected failures. `allocation` is a public module and the two arming
  functions are public under the feature.
- Core tests whose subject is core but whose setup ran a paint command set the
  pixels through the document (`tests::fill_active`) or use a core command:
  channel copy/paste/clear, Edit > Fade (setup: Invert), Actions import and
  playback, patterns, file revert/save/flatten, layer-style rasterize, tone
  targets, brush tip loading from the preset store, the filter mask target.
- Tests whose subject is a paint command move beside it: Edit > Fill's result
  reservation failure (fill_cmds), and the filter-mask brush stroke
  (brush_cmds/filter_mask_stroke_tests.rs); the filter mask save check stays in
  core with the mask set through the document.
- The sampler turn test spells out the expected coordinates instead of using a
  private core helper; the job cleanup test sets the live commit directly
  instead of through the Mixer Brush; the ignored fill timing drops its
  comparison with a private helper.
- The .atn table check accepts the paint commands it names when they are not
  installed.

No behaviour change in the app.

Part of #15710
2026-11-23 06:40:47 +00:00
aiongg 6afdd3c3d4 Pin craft-libs to ee30b17c21 (Select and Mask previews after a document edit, #3140, #3145) 2026-11-23 06:06:58 +00:00
aiongg 280de1fbf2 Pin craft-libs at 7ab3cf8196 (a rescan with no changes keeps the catalog generation) 2026-11-23 02:43:24 +00:00
aiongg cc716aa8ea Pin craft-libs at bb7e01295d (a row pick of the current family adds no edit) 2026-11-22 23:58:23 +00:00
aiongg 910759f7e6 Merge PhotoCraft main; keep craft-libs at 20574f0ed4 2026-11-22 22:57:49 +00:00
aiongg 75cbe5c4eb Merge remote-tracking branch 'upstream/main' into set-d-pin
# Conflicts:
#	crates/engine/Cargo.toml
2026-11-22 21:49:29 +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 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