Added documentation for tests affected by the shared UI port, including an inventory of removed tests and their successors. The document tracks changes related to the UI rework and provides details on test coverage and assertions.
With Preferences > AI Integrations' folders empty, agents had no file
access, and the launcher starts `mcp` with no root flags.
- An empty folder setting named by no flag uses the shared default agent
folder Documents/ArtCraft/Agents/PhotoCraft (craft-libs#2550), in the
open window (agent link, --control) and in the live headless session.
- agent_folders tells the agent which folders it may use: the headless
session's roots, or the open window's saved folders with the default.
- Pin craft-libs to bafb452 + the craft-libs#2550 commit until it reaches
next.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Adopt the shared AGENTS.md (RFC-0072) and test rules (RFC-0071)
* AGENTS.md: correct the repository facts
Correct the layer list (no psd or codecs crate; ipp, raw and tablet are standalone; test helper crates), name the example plug-in that uses unsafe, and renumber a stale rule reference in docs/contributing.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: FredApps <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
- Both gate calls build the tests once into a nextest archive (cargo xtask ci archive); the
shards run it, and the build job runs the doctests after the upload.
- The Linux gate keeps the compiled workspace crates in a rolling cache entry
(cache-workspace-crates). A nightly cold build is its safety net; gate-cache-prune keeps the
newest entry. test (without heif) restores that entry.
- The shards split the tests with nextest's slice partition, which spreads the slow modules:
on one main run's times the non-GPU shards go from 728/493/523 s (hash) to about 602/506/625 s.
Fixes#15702
The gpu group (at most 4 at a time) was chosen by name: every ui-egui
integration test and every test whose path contained canvas, gpu, mip or
type_tool. On main's gate that put about 680 ui-egui tests that never
open a device on four slots.
The group is now photocraft-gpu plus every test in a module named
`gpu_tests` or `<name>_gpu_tests`:
- ui-egui integration tests that draw on a device move to
tests/it/gpu_tests/; mixed files and unit tests keep their GPU tests in
a nested `gpu_tests` module or a `*_gpu_tests` file.
- photocraft-automation's GPU backend tests are `gpu_backend::gpu_tests`.
- batch_export_options checks menus and exported bytes, so it runs on the
CPU canvas instead of a GPU harness.
No test assertion changes. The Windows priority list follows the moved
test names.
The gate's archive of ~98 test binaries would be 10-18 GB compressed, so
every shard restores the dependency cache, builds the tests and runs its
partition (scripts/ci-test-shard.sh). `cargo xtask ci tests` runs the test
steps on $NEXTEST_PARTITION, `ci build` builds exactly what a shard builds
(main's cache warm-up), and `ci doctest` runs in one shard. The `ci archive`
part, the archive's xtask binary and the extraction are gone.
The Linux GPU shard keeps the gpu group alone on lavapipe; shards 2-4 split
the rest. Windows uses six shards: ~55 min of tests on one runner, and its
slowest test alone takes ~9.6 min, so a seventh would not shorten the
slowest shard.
- xtask starts every cargo without the variables `cargo run` sets for xtask
(CARGO_MANIFEST_DIR, CARGO_PKG_*, ...), so a build script that declares
`rerun-if-env-changed` for them (ring) no longer reruns, with the whole
craft facade above it, between builds inside and outside xtask.
- `cargo xtask ci` splits into the gate's parts without a second step list:
`lint` (fmt, egui-fork, clippy, layers, panel-commands, scorecard, wasm,
i18n report), `archive` (test build into the nextest archive, doctests),
`tests --from <dir>` (test and panic_hunt from the extracted archive, on
$NEXTEST_PARTITION; --gpu / --no-gpu select by the gpu test group) and
`build` (cache warm-up). Plain `cargo xtask ci` still runs every step.
PHOTOCRAFT_CI_EXCLUDE leaves packages out of the test build and doctests.
- The `ci` nextest profile's archive carries the xtask binary, so a shard
builds nothing (scripts/ci-test-shard.sh).
- Linux gate: lint leg, one build, four shards. Shard 1 runs the gpu group
alone on lavapipe and checks its output (scripts/ci-gpu-lavapipe.py now
wraps that run); the second GPU run and its rebuild are gone.
- Windows unit, integration, clippy and warm legs move onto the shared gate
(Windows runner, lint leg for Clippy, four shards), keeping the PR
selection from the platforms job, rust-lld, /OPT:NOICF, /DEBUG:NONE and
the D:\t target dir.
- The slowest-tests-first priorities apply on Linux too.
- Swatinem/rust-cache v2.9.3 by commit for this repository's own cache
steps, with fresh keys; cache-version v2 for the gate and docs entries.
`test (without heif)` restores the gate's entry through the shared action.
Dispatch-only jobs no longer save caches no pull request reads; the quick
perf suite restores perf-nightly's entry.
- windows_delay_loads reads the app from NEXTEST_BIN_EXE_photocraft, as the
other app tests do, since archives relocate binaries.
Since the move onto the craft UI framework, four dialogs could not be
driven by the id the control channel gave for them:
- Keyboard Shortcuts and Menus draws outside the framework's dialog host,
so ui.inspect never listed it and ui.dialog.cancel {"dialog":
"shortcuts"} failed, leaving every command refused behind its modal.
It is now listed under "shortcuts" while open (first: it draws beneath
the host's dialogs), and ui.dialog.cancel with that id closes it without
saving, as its Cancel does. ui.dialog.set/confirm/apply refuse it with a
pointer to edit.keyboardShortcuts params.
- Preferences replied "preferences" but is listed under its host id. It
now replies with that id, or with the reason it did not open.
- Select > Color Range replied {"dialog": {"Ok": id}}: json! serialised the
Result. It now replies through dialog_reply like every other dialog, and
an open that fails is an error instead of ok with {"Err": ...} inside.
- The unsaved-changes prompt was listed under a number with only
`choice`. It is listed as "discard" again with the documented command,
document, remaining, choices and default, and ui.dialog.confirm/cancel
resolve "discard" to it (docs/control-protocol.md, #4920).
Tests drive each through the control channel (handle with a
ControlRequest). Two existing tests change with the documented ids: the
Preferences apply test asserted the old "preferences" reply, and the
save-authorization helper fed the listed prompt id to the host lookup.
docs/control-protocol.md now says which dialogs have fixed ids and what
menu items reply.
Main moved the UI onto the craft framework (#15449), which rewrote the
top bar. The conflicts take main's files; the top bar's trailing region
is emptied again on top of them, and appearance_button and
workspace_ui::switcher go with it. The favourite theme stars stay for
now (#13581), so the prefs model, validation and scorecard match main.
PhotoCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (next branch): shell, dock and panels, hosted dialogs, keyboard, focus, IME and pointer routing, the canvas's view commands, themes and tokens. The engine, document model, file formats, commands and automation stay. PhotoCraft pins storytold/craft-libs next.
Picks up main's fix for the assign_shortcut test and the Cargo.lock order (#15196), so CI runs on a green base.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Model-Effort: Opus 5.5 driver, no subagent