The gate ran nextest's `gpu` group twice on the same lavapipe adapter: inside
`cargo xtask ci`, then again in scripts/ci-gpu-lavapipe.py, the run that fails on a
skipped comparison.
With PHOTOCRAFT_GATE_GPU_GROUP=separate, which the gate now sets, `cargo xtask ci`
leaves the group out and the checked run is the only one. xtask reads the group's
filters from .config/nextest.toml and joins them as the script does, so the two runs
split the suite the same way. A local `cargo xtask ci` is unchanged.
A test fails if ci.yml keeps the variable but no longer goes on to the script.
`cargo test -p photocraft-ui-egui` failed to compile because egui's serde feature and toml's
display feature came only from other workspace crates. Also drops the stale allowlist note in
AUTO-219-8 (the panel-commands allowlist is empty).
Replaces the ui-egui window test, whose order depended on wall time, with an engine test:
the job's result is applied only by poll_jobs/wait_job on the session's thread, so a
select_layer after start always comes first.
Prevent ui requests from falling through to engine defaults on WASM. Preserve native controls, ordinary menu opening and plain filter parameters. Exercise browser handlers through the same dispatch core in native tests with document/history and workspace preservation assertions.
Apply only the edit_cmds/tests.rs subset of FredApps commit 955cf65ae2 (#15596). The ActionList subset was integrated separately. Merged #9833 releases a copied group when its external clipping base is omitted; retain both populated and empty destination-board assertions.
Source independently reviewed; original #10538 author accepted this correction. No production behavior or test suppression.
Apply only the actions_edit_cmds.rs portion of FredApps commit 955cf65ae2 (PR #15596). Preserve predicate/replay/layer assertions; unrelated clipping expectation change is not included.
The Remove-channel-target control-pointer test now asserts the injected press was delivered rather than withdrawn, and its assertion messages include the active layer, text-edit state and job state.
Fixes#7238.
`replayable` now also accepts `actions.conditional`, so a Conditional is recorded with its predicate instead of the branch that happened to play (or nothing). Playback then evaluates the condition again on the current document.
* Build the craft UI framework at craft-libs' optimization levels in test builds
The test profile compiled the craft facade and its framework crates at the
opt-level 2 of package."*", serialised in front of every PhotoCraft crate
that uses craft. Build them at 0 (1 for the crates with per-frame or per-pixel
code), as craft-libs does. Test-profile build on 8 cores: 34m53s -> 21m32s.
* Build the framework at opt-level 1, not 0, in test builds
At opt-level 0 the framework's stack frames overflowed the 2 MiB test-thread
stack in ten more photocraft-ui-egui tests on the Windows runner
(0xc00000fd). Level 1 still shares generic instantiations across crates.
* Build the framework's panels, tools and services at opt-level 0 in test builds
At opt-level 1 throughout, the Windows unit leg still built for 67 minutes.
The runtime every frame passes through keeps level 1, so its stack frames
stay small; the panels, tools and services around it, most of the
framework's compile time, build at 0.
* Wrap the test-profile comment
PhotocraftApp::new and with_context return Box<Self>, and the test harness
holds the Box (a forwarding eframe::App impl for Box<PhotocraftApp>). The 85 KiB
app was held by value in the test, its helper, build_app, build_eframe and
from_builder, all under the first egui pass. The 11 overflowing tests need
0.34-0.78 MiB of stack instead of 1.7-2.0 MiB (mask_click 2032 -> 748 KiB,
navigator_gpu 1956 -> 760, native_tests 1848 -> 748, keys_run 1708 -> 776).
The 8 MiB test thread for the Type Mask click test is removed.
a_type_mask_click_on_text_edits_that_layer_as_the_type_tool_does runs
three apps through two full app frames each. In the unoptimized Windows
build it overflows the 2 MiB stack of a test thread, which aborts the
whole test process (STATUS_STACK_OVERFLOW), so the Windows unit leg
fails. The test body now runs on its own thread with an 8 MiB stack,
and a panic in it is passed on to the test.
The Print dialog now picks its printer through the shared print panel, which
replaces the chosen printer whenever a list it receives does not name it.
While another print holds the spooler, the dialog sent its cached (or empty)
list, so a saved printer that list did not name was replaced and its driver
settings went with the next print.
While the spooler is busy, a cached list without the chosen printer is no
longer sent: the chosen printer and its driver settings stay, and Print stays
unavailable until a fresh list arrives. A fresh list without the chosen
printer replaces it, and the replaced printer's driver settings are dropped.
Driver settings remembered without a printer (the system default) stay.
The saved-settings tests now read the chosen printer from the dialog's
settings and run on every platform.