Commit Graph
13956 Commits
Author SHA1 Message Date
Terra854 dfa4ecc357 Merge upstream main for the Windows integration timeout fix 2026-11-19 04:39:53 +08: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 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 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 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
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 7efcc7b4d1 WIP: i18n tests check lookup machinery, not catalog contents (#15642)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 19:50:10 +01:00
David MannandClaude Opus 5.5 ed02f0cdf5 WIP: trim redundant test loops (#15367)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 19:42:23 +01:00
David MannandClaude Opus 5.5 57feba3fc8 WIP: trim redundant test loops (#15368)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 19:42:16 +01:00
David MannandClaude Opus 5.5 08c4d76e9d WIP: trim redundant test loops (#15369)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 19:42:10 +01: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
FredApps 4e59c5528e Merge current main baseline and generated scorecard into SVG integration
Preserve upstream author fixes and final SVG pin. Fresh hosted validation remains required; no gate success implied.
2026-11-18 18:14:14 +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
FredApps f5c66274b9 fix(svg): pin merged shared embedded-image validation
Advance craft-svg and its seven-source dependency closure to upstream merge7b8c1ec. Preserve registry versions and unrelated shared pins; remove obsolete direct SVG zune-jpeg edge per upstream manifest. Lock candidate reconstructed from reviewed dependency delta; hosted --locked validation pending, no local Cargo run.
2026-11-18 17:10:58 +01: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
FredApps 894456f1e3 Merge validated baseline source into SVG integration staging
Preserve #15374 author commits while preparing final immutable shared SVG pin. Baseline Windows pointer and FreeBSD gates still require repair; not a merge to main.
2026-11-18 16:37:51 +01: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