Commit Graph
13971 Commits
Author SHA1 Message Date
Dylan M. Taylor 9f39dc3235 chore(ipp): use craft-ipp from craft-libs 2026-11-18 19:01:42 -05:00
David Mann 0873ca6e86 Merge pull request #15496 from davidmann4/perf/ui-pass-menus-toolbar
perf(ui): toolbar built, measured and drawn only when it changes; bridged commands without allocating (#15493)
2026-11-18 23:57:59 +01:00
aiongg a4a8a210ed Merge pull request #15671 from aiongg/slow-tests-2
Faster engine, GPU and hold-key tests: smaller fixtures, fewer apps
2026-11-18 17:10:00 -05:00
David Mann 78b1c43f4e Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/ui-egui/src/panels/region_versions.rs
2026-11-18 23:06:53 +01:00
aiongg e5366ff921 Hold-key test: one app per group of tools 2026-11-18 22:05:05 +00:00
aiongg 773670ff52 Camera Raw GPU tests: run the large-proxy comparisons on strips 2026-11-18 22:05:05 +00:00
aiongg 7c34b16a95 Content-aware crop layer tests: run the straight scene at the turned scene's half size 2026-11-18 22:05:05 +00:00
aiongg 727d928c79 Content-Aware Move tests: sparse selections and smaller canvases keep the solves short 2026-11-18 22:05:05 +00:00
aiongg 75fdb27b3a Merge pull request #15669 from aiongg/i18n-tests-15643
Tests: land #15643 on current main
2026-11-18 16:58:52 -05:00
aiongg 6d16289666 Merge remote-tracking branch 'pr/15643' into i18n-tests-15643 2026-11-18 21:58:01 +00:00
aiongg f84f6847d4 Merge pull request #15659 from aiongg/repin-next
Dependencies: craft-libs at next 68df8bf16c
2026-11-18 16:51:45 -05:00
David Mann 2a9e8cf0e1 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/ui-egui/src/panels/toolbar.rs
2026-11-18 22:36:42 +01:00
aiongg 231534a377 ui: name the toolbar slots' shared type (clippy type_complexity) 2026-11-18 21:28:54 +00:00
aiongg 4e6d6d7fee Merge remote-tracking branch 'upstream/main' into repin-next 2026-11-18 21:28:35 +00:00
aiongg 7abe1e53d5 Merge pull request #15662 from aiongg/ci-lint-fix
Lint: fix the two clippy errors on main after #15655
2026-11-18 16:21:41 -05:00
aiongg bd3712d114 Lint: each shared test fixture loads once per test binary, and xtask names its step list type 2026-11-18 21:20:35 +00:00
aiongg e98af2cb65 Pin craft-libs next at 18ffc07519 2026-11-18 21:19:36 +00:00
aiongg 565abebaca Dock: the Toolbar's content version covers its slots, remembered tools, drawer, Quick Mask and screen mode 2026-11-18 21:01:49 +00:00
aiongg b8463b4db5 Dock: the canvas panel has no content version and runs every pass 2026-11-18 21:01:49 +00:00
David Mann 5a6281c8d4 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-18 21:55:58 +01:00
aiongg 4109fb1c79 Pin craft-libs next at 68df8bf16c
Moves every craft-libs pin from a6b9d9c986 to the current next head. The
lockfile adds craft-cloud-ui (now a craft-ui dependency) and
craft-theme-editor. No PhotoCraft code uses an item the update removes or
changes: Dialog::side_buttons, IconSpec::set, ThemeScope::mode, the
drag::start and dock-target signatures, ui-canvas readout/hud and the
colour-warning types are not used here, and ColorPopover::picker's
closure (now Fn) captures nothing. The egui fork rev is unchanged.
2026-11-18 20:47:51 +00:00
aiongg 6dd50bf11a Merge pull request #15658 from aiongg/slow-ui-tests
Faster UI tests: toolbar slots once per prefs revision, one app per test
2026-11-18 15:42:31 -05:00
aiongg 662f2e24d5 Merge remote-tracking branch 'upstream/main' into slow-ui-tests
# Conflicts:
#	crates/ui-egui/src/dialogs/adjust_editors/ui_tests.rs
2026-11-18 20:40:54 +00:00
aiongg 542e23daf4 Merge pull request #15656 from aiongg/test-speed-15639-15640
Tests: land #15639, #15640 and #15643 on current main
2026-11-18 15:37:09 -05:00
aiongg aa9648185a tests: the caret font test runs its 18 cases on one app
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.
2026-11-18 20:36:32 +00:00
aiongg fb54f7e538 Merge remote-tracking branch 'pr/15643' into test-speed-15639-15640 2026-11-18 20:35:47 +00:00
aiongg 160fc1e297 Merge remote-tracking branch 'pr/15640' into david-test-speed 2026-11-18 20:35:12 +00:00
aiongg 3ae69e72b1 Merge remote-tracking branch 'pr/15639' into david-test-speed 2026-11-18 20:35:12 +00:00
aiongg d83654889e tests: the slow tone_targets tests run their cases on one app
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.
2026-11-18 20:34:40 +00:00
aiongg 626de094e9 Merge pull request #15641 from davidmann4/test-speed/15367-engine-gpu
Tests: trim repeated solves and loops in engine and GPU tests (#15367)
2026-11-18 15:33:05 -05:00
aiongg c1ab90aa35 tests: the exhaustive shortcut test sends each press as one frame's input
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.
2026-11-18 20:33:05 +00:00
aiongg 837e19257c tests: the adjustment editors test runs one app per document
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.
2026-11-18 20:32:04 +00:00
aiongg 5a0ba09408 ui: is_live tests the hash tables and prefixes before the row scans
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.
2026-11-18 20:30:10 +00:00
aiongg e6a58842f3 ui: build the toolbar's slots once per preferences revision
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.
2026-11-18 20:28:54 +00:00
aiongg 930cee8c7e Merge pull request #15655 from aiongg/ci-fixes
CI: shard the gate, fix the cache, one GPU run, faster tests
2026-11-18 15:23:01 -05:00
aiongg 2a83631d46 CI: the GPU shard runs the whole gpu group, perf jobs share one cache entry, CI-only changes run Windows 2026-11-18 20:19:02 +00:00
aiongg 00e49407ec Merge remote-tracking branch 'upstream/main' into ci-fixes 2026-11-18 20:17:55 +00:00
aiongg 36aa7a8f69 Merge remote-tracking branch 'origin/gpu-test-group' into ci-fixes
# Conflicts:
#	.config/nextest.toml
#	crates/ui-egui/tests/it/main.rs
2026-11-18 20:11:50 +00:00
aiongg 6dbe43ecb6 Merge pull request #15637 from davidmann4/fix/tone-targets-test-time
Tests: tone_targets pairs modes with depths instead of crossing them (#15636)
2026-11-18 15:10:05 -05:00
aiongg 5456a5a812 Tests: the nextest gpu group holds only the tests that build a GPU device
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.
2026-11-18 19:57:56 +00:00
David MannandClaude Opus 5.5 d4797333de Tests: trim repeated solves and loops in engine and GPU tests (#15367)
- parity.rs: the two paging tests use a 660x580 document (3x3 pages, one interior cell)
  instead of 1100x900, and eviction runs 2 rounds; the residency tests that share the large
  document keep it. 16-bit runs only where the GPU reads the 16-bit upload (one effect stack,
  Dissolve and pattern cases). The disjoint-damage test paints 2 distinct series of 8 strokes
  and isolates its layers so strokes capture checkpoints, which makes its bytes assert able to
  fail. many_layers_submit_inside_one_chunk_paged is removed: its stats equal the whole test's.
- Coarse preview: drop an unchecked full-resolution solve; colour tests reuse solves and use
  Extend where Move only adds an unread fill.
- Crop fill eligibility is a unit test on additional_target; the integration test keeps 3 cases.
- PSD write oracle: one run with a passing and a failing case instead of two runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 20:47:59 +01:00
aiongg a45db9ee62 Merge commit 'b7ccf085c7' into ci-fixes 2026-11-18 19:47:05 +00:00
aiongg b6b66d51d9 Merge remote-tracking branch 'origin/merge-test-binaries' into ci-fixes 2026-11-18 19:46:58 +00:00
aiongg db62bb5e5b Merge remote-tracking branch 'origin/gpu-lazy-pipelines' into ci-fixes 2026-11-18 19:46:45 +00:00
aiongg b7ccf085c7 tests: tone_targets sample through the canvas and dialogs alone
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.
2026-11-18 19:43:45 +00:00
aiongg 5b4c7adf75 ui: look up tool names in one table, and build only screen-mode commands in the command gate
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%).
2026-11-18 19:43:45 +00:00
aiongg 49c9327ce4 engine: is_enabled_with returns false for an unknown id without formatting its error
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.
2026-11-18 19:43:45 +00:00
David MannandClaude Opus 5.5 e9f698d91c Tests: trim redundant work out of slow ui-egui unit tests (#15368)
Same code paths and assertions, fewer pixels, harnesses and frames:

- every_adjustment_layer_edits_through_properties: one app per mode and
  depth instead of one per kind (all 16 kinds still run in all 6
  settings), three drag moves and two frames after each new layer.
- canvas_mips_preserve_opaque_pixels_and_partial_updates: 767 x 431
  instead of 1791 x 1083; still odd sides and two partially redrawn
  mip levels.
- blend_hover_* (4 of 5): the 1024 x 768 fixture and every view halved;
  the background-redraw case keeps its size.
- every_paragraph_box_handle_resizes_the_box_with_snapping_on: zooms
  25 % and 200 % only.
- the wheel tests: 3 and 4 frames per notch instead of 30 and 40; the
  view is already settled then.
- Shift-letter cycle: two frames per press instead of three.
- guide and Cmd stand-in tables: drop rows whose tool shares a family
  and pointer kind with a row that stays.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 20:40:20 +01:00
David MannandClaude Opus 5.5 3b62ce7cb8 Tests: trim repeated variants in ui-egui canvas integration tests (#15369)
Run each variant once where the loops reached the same code, and reuse one
app harness instead of building one per case:

- checker_canvas pixel grid: 8-bit on every canvas and scale, plus 16-bit and
  32-bit once each on the GPU canvas (the grid reads the same f32 composite at
  every depth; depth only changes the GPU texture).
- live_stroke_canvas: one harness for the raw pointer and camera tests; camera
  navigation runs the Brush only (no tool branch before a press); the committed
  stroke runs every zoom once with every smoothing amount, plus the special
  cases, split over the three parts so every case runs (the step was still 4
  after part 3 was removed, so four cases never ran).
- adjust_preview_gpu clipped target: each kind once per mode, cycling the
  depth/selection pairs; the full matrix stays in the unclipped test.
- drag_preview_canvas marquee: one grey document that checks both ant colours,
  one harness for both scales.
- arbitrary_rotation_preview: drop -45 degrees (same preview size as 45).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 20:28:03 +01:00
aiongg a015ef2934 Tests: engine tests on process-wide state get their own binary
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.
2026-11-18 19:26:28 +00:00