Retain HostedPrint and adapt bounded background discovery to its receiver lifecycle. Preserve ahmedhosnypro shared CUPS attribution and existing cutover history. Regenerate scorecard from current source.
Fixes#7238.
`replayable` now also accepts `actions.conditional`, so a Conditional is recorded with its predicate instead of the branch that happened to play (or nothing). Playback then evaluates the condition again on the current document.
* Build the craft UI framework at craft-libs' optimization levels in test builds
The test profile compiled the craft facade and its framework crates at the
opt-level 2 of package."*", serialised in front of every PhotoCraft crate
that uses craft. Build them at 0 (1 for the crates with per-frame or per-pixel
code), as craft-libs does. Test-profile build on 8 cores: 34m53s -> 21m32s.
* Build the framework at opt-level 1, not 0, in test builds
At opt-level 0 the framework's stack frames overflowed the 2 MiB test-thread
stack in ten more photocraft-ui-egui tests on the Windows runner
(0xc00000fd). Level 1 still shares generic instantiations across crates.
* Build the framework's panels, tools and services at opt-level 0 in test builds
At opt-level 1 throughout, the Windows unit leg still built for 67 minutes.
The runtime every frame passes through keeps level 1, so its stack frames
stay small; the panels, tools and services around it, most of the
framework's compile time, build at 0.
* Wrap the test-profile comment
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.
* ci(freebsd): build with two cargo jobs so the aarch64 cross build fits the VM
The nightly aarch64 leg (a cold cross build of every target in the shared workflow's 12 GB
FreeBSD guest, CARGO_BUILD_JOBS=4) was killed with exit 137 twenty minutes into ui-egui's
targets, while photocraft-web compiled alongside them (run 43936108201). The same cold build
passed on 15 Nov, so it is at the edge of the guest's memory.
Pass `--jobs 2` through the existing cargo-build-extra-args input. It applies to the build step
of both legs; the x86_64 test commands keep the shared four jobs.
* ci(freebsd): build with the test profile, not two jobs
Two jobs didn't fix it: the x86_64 leg of the dispatched run was SIGKILLed the same way at
--jobs 2 (run 43963415772). The killed rustc was ui-egui's lib test target at -C opt-level=1:
`cargo build --all-targets` builds test targets with the dev profile, so Cargo.toml's
`[profile.test.package.photocraft-ui-egui] opt-level = 0` never applied to the build step. That
one optimised rustc over about 390k lines and 7700 tests ran the 12 GB guest out of memory, and
`cargo test` then rebuilt the same target at opt-level 0 (1m47s on x86_64) anyway.
Pass `--profile test` instead, so the build compiles every target as the tests do: ui-egui at
opt-level 0, debuginfo still off through CARGO_PROFILE_DEV_DEBUG=0 (test inherits dev), and the
test commands reuse the build's artifacts.
* ci(freebsd): test ui-egui with the build's package selection
`cargo test -p photocraft-ui-egui` resolves dependency features without the
other workspace members, so egui, epaint and everything above them got new
hashes. The test step then rebuilt ui-egui's lib tests instead of reusing
the build step's, and that rustc was SIGKILLed in the 12 GB guest.
Run ui-egui's lib, doc and integration tests through
`--workspace --features heif --exclude photocraft-gpu`, which resolves the
same units as the build (checked with cargo's unit graph: 0 units missing
from the build, against 146 for `-p photocraft-ui-egui --lib`). The
integration tests share one command, so all of them run one at a time.
cfg!(test) only covers photocraft-text's own tests; every other crate's
test binaries link it as a normal dependency, so each nextest test
process started a background scan of the installed fonts (on Windows
also a reg.exe child for the UI locale) beside the GPU tests, and tests
silently depended on the machine's fonts. Skip it when NEXTEST is set,
as CI runs every test through nextest. Tests that want installed fonts
already build their own engine with TextEngine::with_system_fonts.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- cmyk_flatten_profile: synthesise the test profile once per process and
share one Arc, so CmykSpace's per-allocation cache builds the transforms
once; exact() reads both rows from one run (4 documents, not 8).
- camera_raw GPU tests: the 858x572 and 1600x900 comparisons run at one
depth each. The depth only changes the input quantization (8 and 16 bits
both develop with float = false) and every depth runs at 171x113 above.
- cols_timing is a benchmark without assertions: ignore it like its
siblings.
- compose: delete clipped_dissolve_is_binary_and_preserves_the_base_shape,
a byte-identical copy of clipped_dissolve_opacity_fill_is_binary_and_
preserves_base_shape (whose doc comment names both issues).
Part of #15376.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
`a_redraw_across_a_text_gamma_change_and_back_is_not_kept` stepped two frames and expected the
4096x3072 CPU redraw to still be running. Nothing holds the worker, so on the FreeBSD VM
(software Vulkan, 4 cores) the redraw finished within those frames ("the redraw finished before
the change back"; FreeBSD runs on eb3c99d65 and 02e9907f6).
Start the redraw with the existing test hold (`hold_redraws` + `wait_for_held_redraw`, already
used by `an_edit_during_a_redraw_is_not_overwritten_by_blocks_drawn_before_it`) in every test
that needs the redraw running at a later frame: the gamma change and back, the gamma change,
the hidden document's gamma change, Memory Usage dropping mid-redraw, and closing the document.
The hold is released before `settle`, so each redraw still finishes and the kept-composite
assertions still check what they guarded: without `forget_if_gamma_changed` the held redraw
draws every block with the original gamma and is kept, failing the test.
* perf: open the benches' PSD files under a benchmark memory budget
The PSD import budget (#10503, sized from free RAM since #10897) refuses
the 36 MP PSD in interactive_bench and the 2 GB PSD and 4.4 GB PSB in
large_file_bench on the hosted macOS runner, so P20, P63 and P40-P44 have
been missing from every nightly perf run since 2 November.
The benches time decoding, not admission. They now open these files
under an explicit budget: the app's policy for a machine whose free
memory can't be measured, with the high-memory approval given up front
as file.openAs does with approveHighMemory. Only the bench thread sees it
(photocraft-io's testgen seam), so the app's budget is unchanged.
A failed open is now a row error in the --json report instead of a
panic that lost every row of interactive_bench, and large_file_bench
exits 0 once its report holds the reasons, so cargo xtask perf fails
only the affected rows and says why.
* perf: large_file_bench reports no timing row for a case that failed in any repetition
With the report now read on success, a case whose first open worked and a later one failed would have shown its timing row and hidden the error (CodeRabbit review).
Matches standards/naming.md rule 1: ordinary descriptive words that
several unrelated products use (Layers, Crop) are fine.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With background jobs on, Apply and OK start edit.contentAwareFill as a job
and get {"job", "pending": true} back. The workspace treated that as a
finished fill: OK closed at once, so a fill that then failed or was
cancelled left no workspace to fix and retry from, and Apply refreshed
before the fill had landed and let a second fill start meanwhile.
The workspace now records the job it started. While it runs, the
controls, tools, shortcuts and a second Apply/OK are refused; Cancel (the
button, Esc or the control channel) cancels the job and closes. When the
job ends, a successful OK closes the workspace and a successful Apply
refreshes it; a failed or cancelled fill keeps it open with the reason in
its panel, as a failed synchronous OK does. Jobs of another workspace or
document are ignored. describe() reports pending and pendingJob.
Taken from the Content-Aware Fill part of #8506.
Adds golden rule 10: user-facing feature names are our own, taken from
standards/naming.md (RFC-0029), with its check for new names, labels-only
renames and accurate compatibility names.
rdf_end_scan searched the open scopes with iter().rev().flatten().rev(), which reverses the flattened list a second time, so an outer declaration won over an inner rebinding. An ancestor binding rdf to the RDF namespace then hid an inner xmlns:rdf="urn:other": the inserted rdf:Description landed in the foreign namespace, and a shadowed </r:RDF> could be taken for the RDF end tag. Search the scopes innermost first.
A parsed-XML regression covers an ancestor binding with an inner rebinding at the insertion point, and a shadowed closing tag in a later element.
With write_tysh refusing unsafe geometry, a layer without psd_raw can end up
with no generated TySh; the imported block (text from before the edit) was then
kept. Export now drops it so the layer is written as pixels with the existing
warning. TySh selection moves into type_tysh/type_blocks (cognitive complexity).
parse_tysh/write_tysh/translate_tysh/transform_is_safe become adapters over
craft_psd::text::envelope (extracted from here in craft-libs#1594); only the
Affine <-> [f64; 6] mapping stays. write_tysh/build_tysh return Option: a block
the shared writer refuses (unsafe transform, non-finite bounds, > 8 MiB) is not
written, and export falls back to pixels with its existing warning. craft-psd
re-pinned to craft-libs main eafb50af (additions only in crates/psd).