* Use the document mutator in the damage-history fixture
* Compile the archive driver without framework-only lint dependencies
---------
Co-authored-by: FredApps <[email protected]>
- A shard fails unless its plan's GPU mode matches --gpu/--no-gpu and its archive holds exactly the
binaries its plan names; a single-archive build deletes any shard plan left in the target dir.
- Shard runs pass --no-tests warn: a shard may hold no runnable test, and the build job's check
already guarantees that every test runs once.
- scripts/ci-test-times.py takes only main's push and nightly runs (pull requests leave packages
out on Windows) unless given --force, and names binaries a refresh drops.
- target_dir() moves from perf.rs to main.rs for both users.
The gate's build job writes one nextest archive per shard (craft-common-actions gate.yml
shard-archives), so each shard downloads only the test binaries it runs instead of the whole
2.4-2.6 GB archive.
`cargo xtask ci archive` builds and lists the tests once, then plans the shards
(xtask/src/shards.rs): whole binaries go to the lightest shard, heaviest first, by the times in
.config/ci-test-times.tsv; a binary heavier than half a shard's share is split by test filter along
its module tree, and its executable goes into each archive that runs part of it. On Linux shard 1
takes every binary with gpu-group tests. The build checks that every test runs on exactly one shard,
writes the plan into the target directory, which every archive carries, and archives each shard
with `cargo nextest archive -E`. A shard runs `xtask ci tests --shard <k>` with its part of the
plan; the slice partition is gone.
scripts/ci-test-times.py refreshes the times file from a CI run's shard logs; a missing or stale
row only costs balance.
In a gate leg that saves the dependency cache, craft-common-actions' rust-cache action names a
file in CRAFT_CACHE_UNITS, and cache-trim deletes every unit of the target directory the file
does not name before the entry is saved. ci archive (and the cargo test --no-run build) and ci
doctest print Cargo's JSON messages (json-render-diagnostics: diagnostics stay on stderr) and
append them to the file; ci archive first records xtask's own build, which cargo xtask builds
before xtask can record anything.
Reject reserved Windows device names case-insensitively before the runner creates output artifacts. Cover all reserved IDs and ordinary near matches through recipe schema validation. Fixes#15822.
- A pass that cancels Free Transform no longer hands the canvas the captured
preview picture, so the moved pixels are not painted over the restored
document in that frame (new GPU/CPU canvas test fails without it).
- The preview canvas test skips only when the GPU harness fails before the
app callback; a panic in the app's own setup now fails the test.
- The layering check treats craft's keymap-egui as a UI feature and counts
dependency features turned on by a crate's own [features] table.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Both gate calls build the tests once into a nextest archive (cargo xtask ci archive); the
shards run it, and the build job runs the doctests after the upload.
- The Linux gate keeps the compiled workspace crates in a rolling cache entry
(cache-workspace-crates). A nightly cold build is its safety net; gate-cache-prune keeps the
newest entry. test (without heif) restores that entry.
- The shards split the tests with nextest's slice partition, which spreads the slow modules:
on one main run's times the non-GPU shards go from 728/493/523 s (hash) to about 602/506/625 s.
Fixes#15702
Listing craft by name in UI_CRATES flagged photocraft-algo, -io, -text and -engine, which use the facade's non-UI
parts (imaging, fonts, keymap, settings), so cargo xtask layers failed on the workspace. The facade brings the craft UI
framework (craft-ui, egui) only through `ui` and the features that turn it on (`ui-*`, `screen-testing`), so the
guard now reads each dependency's declared features from cargo metadata and flags craft below L6 only with one of
those. Tests: craft with ui, ui-app or screen-testing below L6 fails (normal and dev), the features the workspace
uses today pass, L6 may use them all, and metadata parsing keeps the features. Both fail with the feature rule empty.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Require complete IHDR framing and its fixed 13-byte payload length before extracting icon dimensions. Add truncated-header and invalid-length regressions. Fixes#15667.
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.
PhotoCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (next branch): shell, dock and panels, hosted dialogs, keyboard, focus, IME and pointer routing, the canvas's view commands, themes and tokens. The engine, document model, file formats, commands and automation stay. PhotoCraft pins storytold/craft-libs next.
Recognize closing quotes after even backslashes in both literal scanners and normalize physical CRLF once without altering escaped newline values. Add direct compiler-value and adjacent-key regressions.
Remove escaped LF/CRLF continuations and only their permitted ASCII whitespace, matching Rust string values. Cover direct decoded keys, ordinary newlines, escaped backslashes, and non-ASCII whitespace.
Allow whitespace around single tl! string literals so formatted UI calls contribute to coverage and missing-translation lists. Preserve the literal-only extraction policy and add formatting plus real-tooltip regressions.
Only treat a missing performance baseline as absent. Report read and JSON errors before running benchmarks or updating saved baselines, with regressions for all run modes and valid baseline preservation.