caret_font_choices_style_only_subsequent_typing_including_ime started the whole
app for each font, text and caret. It now keeps one app with the fixture's
document: Undo takes each case's text layer back before the next case makes its
own, so every case starts from the same document. The fixture builds the same
app and layer through the two steps the test shares. Cases and assertions are
kept.
The grayscale picker, filter mask and addressed mask tests started an app for
every case. Each now keeps one canvas harness and opens each case's fixture
document in it as a new document, after closing the last case's and clearing
what a case leaves: the actions, the Layers panel's mask targets and the tone
dialogs' last-used settings. Cases and assertions are kept.
Harness::event steps one frame per queued event, so a tap (modifiers, press,
release, modifiers) plus its three steps ran six whole-app frames per shortcut.
The dispatch test now queues the four events into one frame's input and runs the
two frames the runtime and the app need to take the key and run its command.
Every shortcut, place and assertion stays.
every_adjustment_layer_edits_through_properties started the whole app for each
of 16 kinds on each of 6 documents. It now starts one app per document and runs
Undo back to the document before adding the next kind's layer, so every kind
still meets the new document with its two tones. Cases and assertions are kept.
The command gate asks is_live for every command a pass resolves. The engine
catalogue, the shell's commands and the prefix tests answer for most live ids;
the linear scans (bridged rows, view and workspace commands, which builds a
CommandRef) now run last. Same answers.
The toolbar, its measure and the dock's grid each resolved the stored layout
(tool_layout, layout_sections, Tool::from_name per name) several times a frame.
The slots depend only on the preferences' toolbar layout, so the app keeps them
with the PrefsStore revision they were built at.
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 picker tests drove the whole window (panels, menus, bars) for every case
of their mode, depth and target matrix, and zoomed with eight Zoom In rounds.
The canvas pass and the dialogs are what sampling goes through; the harness
draws those, sets the zoom once, and no longer sets up the app's context a
second time.
The toolbar resolves its whole layout through Tool::from_name several times a
frame, and from_name formatted and lowercased every tool's names per lookup
(about 12% of a whole-app frame). The command gate asks screen_mode_row for
every command a pass resolves, which built a CommandRef for every runtime
command row (about 5%).
An unknown id's disabled reason ranks every command id for "did you mean";
is_enabled_with dropped that string. The menu model asks it for every row
that is not an engine command.
The modules that assert on the scratch pool, spill configuration, simulated memory, global caches or compositor settings move to tests/global_state, where one lock makes them take turns. test-binaries lists it with the reason.
Each crate's top-level tests/*.rs files become modules of tests/it/main.rs, and a new xtask check (test-binaries) refuses a new single-file test binary.
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.
wgpu's GL backend (glutin_wgl_sys) puts opengl32.dll in the import table
of every binary that links wgpu, and a process that has loaded it takes
about 60 ms longer to exit. That is every Windows test process and every
app exit on DX12 or Vulkan.
Delay-load it from the workspace's .cargo/config.toml, the one place that
reaches every package's binaries (a build script's link arguments reach
only its own package). Cargo joins these flags with the
CARGO_TARGET_<triple>_RUSTFLAGS set by CI and the Windows packaging
script. The print DLLs keep their delay-loads in the app's and CLI's
build.rs, since the exe must start without them whatever invokes cargo.
Every compositor built all ~30 pipelines when created. On the Windows CI
runners (WARP, FXC) that took 3 to 7.5 s in every GPU test process, and a
test that draws one layer needs two or three of them.
The pipelines now sit in one table per compositor (shared with its
siblings), one entry per kernel, each built the first time a draw needs
it. try_new_with_format_threads(_classified), which the app uses for its
background build, still builds every pipeline up front in parallel
through the same table, so the app keeps its start-up error and its
cached deterministic-failure path. A pipeline that fails on first use
makes that render Unsupported (CPU fallback); a failed effect-map
pipeline turns layer effects to the CPU as before.
The #9173 rules hold: each kernel has its own vertex entry point, a
kernel's formats are built on one thread, and every build in the process
takes the same lock.
every_compositor_pipeline_builds builds all pipelines through the
threaded build, so FXC still compiles every shader on Windows CI. New
count test: one layer builds a small share of the pipelines, and a second
render or a sibling builds none.
The three whole-app tests in tone_targets.rs looped over every colour mode x bit depth
pairing. The planes they edit are single-channel gray in every mode, so each mode and each
depth once covers the same code; the full cross product pushed one test past nextest's
600 s limit on Windows. The address resolution keeps all three selector forms on one pair.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
`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.