Commit Graph
13931 Commits
Author SHA1 Message Date
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 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 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
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
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
aiongg 877e23f543 Tests: one shared lock per process-wide global in each merged test binary
The scratch pool and spill configuration, simulated free memory and the global caches are locked from tests/it/main.rs instead of a mutex per file.
2026-11-18 19:19:35 +00:00
aiongg 0081fd10e1 Tests: merge single-file integration test binaries into one binary per crate
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.
2026-11-18 19:11:27 +00:00
aiongg eee31b0d11 CI: shards build their own tests instead of running from an archive
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.
2026-11-18 19:09:59 +00:00
aiongg 0e3523cdcd CI: shard the Linux and Windows tests, lint leg, xtask environment fix, rust-cache v2.9.3
- 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.
2026-11-18 19:04:43 +00:00
aiongg cfa67e97f1 Delay-load opengl32.dll on Windows MSVC (#15444)
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.
2026-11-18 18:51:43 +00:00
aiongg c55c0b7ce8 gpu: build each compositor pipeline on first use (#15439)
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.
2026-11-18 18:51:38 +00:00
David MannandClaude Opus 5.5 c3354976b8 Tests: tone_targets pairs modes with depths instead of crossing them (#15636)
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]>
2026-11-18 19:40:30 +01:00
aiongg a858d42a50 Merge pull request #15630 from aiongg/ci-windows-cache-save
CI: Windows rust-cache saves again (v2.9.1)
2026-11-18 12:01:55 -05:00
aiongg 735546b11e CI: Windows rust-cache saves again (use v2.9.1) 2026-11-18 17:00:11 +00:00
aiongg 3bc25b0ca8 Merge pull request #15624 from aiongg/scorecard-regen
scorecard: regenerate docs/scorecard.md for the AUTO-219-8 note
2026-11-18 11:38:01 -05:00
aiongg a5759e84ce scorecard: regenerate docs/scorecard.md for the AUTO-219-8 note 2026-11-18 15:55:55 +00:00
aiongg 0376ac1a15 Merge pull request #15616 from aiongg/ci-speed-windows
CI speed: Windows linker, parallel Clippy, warm caches, PR test selection
2026-11-18 10:43:53 -05:00
aiongg 750129f09b ui-egui builds on its own: egui serde and toml display asked for by the crate
`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).
2026-11-18 15:38:06 +00:00
aiongg bfaf39780b test(engine): a background job applies to the layer and channels it started on (#7366)
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.
2026-11-18 15:12:05 +00:00
aiongg d039f542a9 Merge pull request #15474 from aiongg/main-gate-fixes
Fix main's CI: gate, scorecard, Windows test build, web build
2026-11-18 10:04:46 -05:00
aiongg 4d5d0ecc97 ci(freebsd): run nightly and on demand only
FreeBSD no longer runs on pull requests or release pushes, so it never blocks a merge or a release.
2026-11-18 15:00:51 +00:00
aiongg 9ec396231e fix(text): skip the OS locale query in nextest test processes 2026-11-18 14:59:39 +00:00
aiongg 973f310aaa ci(windows): on pull requests skip the tests of platform-neutral packages the change does not reach 2026-11-18 14:56:22 +00:00
aiongg 45e01a84c7 ci: save the dependency caches from build-only warm legs on main 2026-11-18 14:55:44 +00:00
aiongg 5b9a9f1850 ci(nextest): start the slowest Windows tests first 2026-11-18 14:55:08 +00:00
aiongg 5ccb62f44e ci(windows): skip the wasm apps' native tests 2026-11-18 14:52:57 +00:00
aiongg fea993e30c ci(windows): drop the dependency layering check, which the Linux gate runs 2026-11-18 14:52:50 +00:00
aiongg f49a6684f8 ci(windows): run Clippy in its own parallel leg 2026-11-18 14:52:46 +00:00
aiongg 33e41a6539 ci(windows): upload cargo build timings from the test legs 2026-11-18 14:52:38 +00:00
aiongg 39e85bffcb ci(windows): link the test binaries with rust-lld, without ICF or PDBs 2026-11-18 14:52:31 +00:00
aiongg b4511d21ca fix(web): restore bounded-memory wasm release profile
Reapply aiongg commit 1848c17350 (#15508), reverted by 435d6e5. Preserve newer test profiles, optimization levels and browser package size gate. Independently source-reviewed; locked offline metadata passed. Fresh hosted browser validation remains required.
2026-11-18 08:36:32 -05:00
Dylan Taylor 9e934c6e0e fix(web): consume unsupported RAW and wide-angle workspace controls
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.
2026-11-18 08:04:05 -05:00
FredApps faf4398de2 test(paste): align board clipping expectation with base-aware copy
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.
2026-11-18 07:50:30 -05:00
FredApps 6bbe4cc1df fix(cli): retain typed errors through launch option validation 2026-11-18 07:04:49 -05:00
FredApps 35cfb1c6d8 test(actions): adapt conditional tests to ActionStep API
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.
2026-11-18 07:03:31 -05:00
aiongg 435d6e5a51 Match storytold main's profile tables, fix merged frame-tool tests for the boxed app, report withdrawn injected input in remove_channel_target
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.
2026-11-18 11:28:36 +00:00