Commit Graph
14034 Commits
Author SHA1 Message Date
aiongg ac0dfaf774 Engine tests before the vector cut: the closed-doc check's coverage floor is a share of core's commands
Core's test process installs only core's commands, so the count of checked commands drops at
each crate cut; the floor is now 85 % of the commands with a parsed doc (91 % today, before and
after the vector cut).
2026-11-24 01:35:39 +00:00
aiongg 4b67fd4b9b Engine tests before the vector cut: the .atn table's commands are checked against the app's registry order
Core's own tests install only core's commands, so the check that every command the .atn table
names exists reads crates/engine/src/install/command_ids.txt, which lists every engine crate's
ids, instead of a list of the commands other crates register.
2026-11-24 00:56:26 +00:00
aiongg 089ce879e0 Merge pull request #16587 from aiongg/engine-split-cuts8
Engine tests and split scripts before the vector cut
2026-11-23 19:42:14 -05:00
skylar taylor-barrick 88b71cb141 Add the Apple-silicon Nightly build (#16559)
* Finish the Nightly session in the app's exit hook

On macOS every quit (Cmd+Q, the close button, File > Quit, app.quit) leaves
through craft::quit, which sends -[NSApplication terminate:]. winit's
applicationWillTerminate: delivers LoopExiting, eframe runs the app's
on_exit, and AppKit then ends the process, so eframe::run_native never
returns there and the controlled-return code after it (the Nightly
session finish) never ran: every Mac Nightly start reported the previous
session as unclean.

Services gets an at_exit hook that on_exit runs once, last. The desktop
app finishes the shared Nightly session there, and again after run_native
for the paths that create no window (renderer failure), where the second
call is a no-op.

* Add the Apple-silicon Nightly build, signing and verification scripts

packaging/macos/nightly.sh compiles the GUI-only PhotoCraft Nightly.app
for aarch64 with no signing material (it refuses any) and writes the
unsigned photocraft-<version>-macos-aarch64-nightly.zip: the nightly-common
source and identity checks, nightly_plist.py's Info.plist, the Nightly icon
and notices, no CLI, DMG or document types, zipped without xattrs. It no
longer runs the bundle before signing.

packaging/macos/nightly-sign.sh is the trusted step the shared signer calls
(--arch aarch64 --input <unsigned zip> --output <final zip>). It requires
all six release secrets, imports the Developer ID with import-cert.sh into
a private keychain it deletes on exit, signs inside-out with the hardened
runtime, timestamp and entitlements, notarizes with notarytool, staples the
ticket into the bundle, and checks the final archive as the Launcher
unpacks it (signature, team, ticket, Gatekeeper) before writing it without
replacing anything. It never compiles or runs the payload.

packaging/macos/nightly-verify.sh runs in a job without secrets (it refuses
any): the same archive checks, then the bundle's --version with an empty
environment, for the signed feed artifact or the unsigned compile output.

nightly-common.sh splits the compile from the version query; Linux keeps
both. The new suite runs the scripts against stand-in Apple tools.

* Build the unsigned macOS Nightly in pull-request CI

A hosted macos-15 job, with no secrets or environment, builds the
aarch64 Nightly bundle with packaging/macos/nightly.sh when a pull
request changes the Mac Nightly packaging or flavor, and checks it with
nightly-verify.sh --expect unsigned, including the bundle's version.

* Cap the failure-only notarization log in nightly-sign.sh

The shared signer bounds a step's output at 256 KiB; notarytool's log on a
rejected submission is the one large output, now cut at 128 KiB.

* Address review: macOS-only exit hook, clean-tree recheck, wider refusals

- The Nightly exit hook is installed only on macOS; Linux and Windows keep
  finishing the session after run_native returns.
- nightly_build_gui checks the tree is still clean after --version (Linux).
- nightly_refuse_signing_env also refuses the Windows, Azure and Linux
  signing names release.yml passes.
- nightly-sign.sh drops the single spctl run before the retried final check.
- nightly-macos.yml also runs for Cargo.toml, Cargo.lock and the text and
  ui-egui build scripts.

* List the macOS Nightly signing tests as tests for Sonar

packaging/macos/nightly_sign_tests.py is a fixture runner like the other
nightly suites; without this Sonar counts it as production code.

* Run the macOS Nightly PR build only with the full-ci label

macOS runners are shared with release builds: no path filters, and a pull
request runs the job only when it carries full-ci (a labeled event only
when the added label is full-ci). ci.yml's concurrency pattern keeps other
labels from running or cancelling a run. workflow_dispatch stays.

* Keep the unsigned macOS Nightly archive as a short-lived artifact

Seven-day retention, unsigned zip only, no secrets. It lets keyless signer tests and hand
testing use the exact verified build.

* Keep unlabelled events out of the macOS build's concurrency group

A push to a full-ci PR and the label event arrive together; the event that would be skipped
was sharing the group and cancelling the real build.

* Stop the macOS Nightly scripts' --help at their header comment

* Answer the Launcher's profile-form version query before startup (#16559)

`PhotoCraft --launch-profile nightly-v1 --profile-root <dir> --version`,
the shared producer's smoke, was refused by the strict launch-profile
parser (no `--`), and the refusal opens a native dialog on macOS, which
never returns on a headless runner: the hosted run did not exit in 180 s.

A Nightly build now treats exactly the selector/root pair followed by
`--version` or `-V` as a version query: the same line as plain
`--version`, exit 0, before root validation, process identity, IPC or any
window. Only parse()'s lexical checks apply; every other refusal is
unchanged and `-- --version` stays a file name.

nightly-verify.sh checks both forms, each within 15 seconds and with
nothing on standard error, so the PR's Mac build covers the smoke.

* Harden the Mac Nightly signing helpers (review of #16559)

- nightly_publish_archive runs python3 -I: nightly-sign.sh calls it with
  the signing secrets loaded, so no module from the working directory or
  user site may be imported.
- nightly-sign.sh and nightly-verify.sh list the archive's entries before
  unpacking (python3 -I, zipfile) and refuse absolute paths, `..`, empty
  or backslash components, entries outside PhotoCraft Nightly.app, links
  and special files. The check after unpacking stays.
- The signature check matches the Identifier line literally (grep -F).
2026-11-23 17:28:21 -06:00
aiongg bdb340c21c Engine tests before the vector cut: source cache statistics, core cache tests in core, pattern fill placement in the paint tests
Step 8 of the engine split moves the vector commands into their own crate. The
tests in those files that read core's cfg(test) counters, or test core's own
smart-object caches, are changed first:

- smart_cmds::source_cache_statistics() counts SVG source renders and native
  source bytes hashed per thread; it replaces the cfg(test) counters, and the
  test-only memo limit override goes.
- The WarningRenderSources memo tests and the native digest test move to
  core's smart_cmds source_work tests; the digest test sets up the source and
  its verified preview through the document instead of running the vector
  update, with the same assertions.
- The ignored 24 MP update timing test is removed: its memo-off pass needed a
  test-only production setting.
- rasterize_style's tests fill their layer through a local helper instead of
  core's test helper.
- The pattern placement checks for edit.fill and paint.bucket move to the
  paint tests in tests/it, where those commands are installed.
2026-11-23 22:30:00 +00:00
aiongg 3ab64de0ff Move the batch's paint-dependent core tests to the engine crate 2026-11-23 20:54:27 +00:00
aiongg ff2588c2ca Merge storytold main into engine-split-step7 2026-11-23 20:51:19 +00:00
David Mann 5a0390b711 Merge #15629 into the merge queue batch
Canvas Size: Gray extension colour, 128,128,128, also in recorded steps (#14543)
2026-11-23 20:46:50 +01:00
David Mann 5f98c48c41 Merge #15383 into the merge queue batch
Place Embedded: choose several files and place them one after another (#14107)
2026-11-23 20:46:49 +01:00
David Mann 1464b24ad1 Merge #15355 into the merge queue batch
Polygon tool: a Radius field after Sides rounds the next polygon (#13302)
2026-11-23 20:46:49 +01:00
David Mann ac6af898e4 Merge #15352 into the merge queue batch
Rectangle tool: Align Edges checkbox (#13346)
2026-11-23 20:46:48 +01:00
David Mann 57708b03cf Merge #15060 into the merge queue batch
ui: size the Canvas Size readout from the flat image (#14582)
2026-11-23 20:46:47 +01:00
David Mann 07910ea8ce Merge #15289 into the merge queue batch
Batch: OK without a source or destination folder says which is missing (#13669)
2026-11-23 20:46:47 +01:00
David Mann 965bed1b58 Merge #15400 into the merge queue batch
Place Embedded: centre on the selection, else on the part of the canvas in view (#14102, #14103)
2026-11-23 20:46:45 +01:00
aiongg dc7005d4a4 Engine split step 7: the main batch's core tests that run edit.fill move to the top crate's tests/it 2026-11-23 19:44:48 +00:00
aiongg f226fdc42d Merge remote-tracking branch 'upstream/main' into engine-split-step7
# Conflicts:
#	crates/engine-core/src/cmd/mode_cmds.rs
2026-11-23 19:41:31 +00:00
David Mann 6554712c61 Merge pull request #16529 from davidmann4/batch-19-prs-restored
Batch: 19 PRs with fix-ups (#12219, #11835, #14491, #15187, #8222, #15796, #15085, #15308, #15311, #15435, #14650, #15921, #15515, #15632, #15948, #15653, #14493, #14492, #14748)
2026-11-23 19:27:50 +01:00
David Mann a17f46be57 Merge remote-tracking branch 'origin/main' into batch-19-prs-restored 2026-11-23 17:36:02 +01:00
FredApps 947c677c9f Merge branch 'main' into nightly/windows-flavor 2026-11-23 16:58:09 +01:00
aiongg f4fbdea3c5 Merge remote-tracking branch 'upstream/main' into engine-split-step7 2026-11-23 15:28:07 +00:00
aiongg cbb670962b Engine split step 7: the History Brush format checks' tests move with them to paint's history_source 2026-11-23 15:28:07 +00:00
aiongg 8301a166df Engine split step 7: each engine crate lists its own incomplete-docs commands (handed to the install; core's param_check reads the installed set) 2026-11-23 15:23:10 +00:00
aiongg 9277ac1673 Engine split step 7: hand fixes for the moved tests (test-local copies, flate2 dev-dependency, unused imports, dead test helpers) 2026-11-23 15:08:36 +00:00
David Mann 31b5cf9ea4 Image Processor test: pass the empty file list as input
Main now checks each command's params against its documented list
(#15255), and the Image Processor lists `input`, not the `files` alias, so
the #14748 test that sent `files: []` got "unknown parameter" instead of
the no-source error it checks.
2026-11-23 16:06:47 +01:00
aiongg a7fd5975a5 Engine split step 7: core tests that run paint commands move to the top crate's tests/it (move_tests.py and its output) 2026-11-23 15:06:31 +00:00
David Mann aa21256f7f Address CodeRabbit review on the restored batch
- CMYK Channel Mixer in a 32-bit document: the change is added as the
  difference of two round trips through the inks, so samples past 0..1
  keep their magnitude and an identity mixer leaves HDR highlights alone.
- PSD: a Channel Mixer block in PhotoCraft's old RGB layout (fourth record
  repeating the first, no black source) in a CMYK document keeps its RGB
  reading instead of setting the black ink to the cyan mix.
- Color Settings dialog: a Monitor Profile set before the first pass
  loads Monitor Color's working RGB at once, and Reset set before the
  first pass shows Custom.
- Test: the non-identity CMYK mixer check runs in RGB documents too.
2026-11-23 15:17:08 +01:00
aiongg 850e73c5fb Engine split step 7: the paint crate (installs per crate, registry order from command_ids.txt, helpers moved down, paint-only helpers moved up, live-stroke traits, admit hook, tooling) 2026-11-23 14:16:34 +00:00
aiongg 1086d71fd9 Engine split step 7: engine_cut.py and its paint split (paint modules to crates/engine-paint/src) 2026-11-23 14:06:43 +00:00
aiongg 95334485a6 Merge PhotoCraft main (installed_catalog); craft-libs at next 5c5e0d52c3 2026-11-23 14:03:56 +00:00
David Mann 42236a89fa Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/engine-core/Cargo.toml
#	crates/ipp/Cargo.toml
#	crates/ui-egui/src/tools/analysis/tests.rs
2026-11-23 14:58:08 +01:00
aiongg b0b1718695 Merge pull request #16499 from aiongg/link-scan-save-as
Drop a link scan taken against the old folder after Save As
2026-11-23 08:55:27 -05:00
Dylan M. Taylor 6f20a6b9f2 gpu, camera_raw: develop Detail on the GPU using craft_develop (#13519, #587) (#16480)
* gpu,camera_raw: develop Detail on the GPU using craft_develop::camera_raw (#13519, #587)

* ui-egui/camera_raw_gpu: remove temporary gpu_stages Detail filter (#16485)
2026-11-23 08:55:17 -05:00
aiongg 4b52711068 Merge pull request #16487 from aiongg/engine-split-cuts7
Engine tests before the paint cut: failpoints feature, setups without paint commands
2026-11-23 08:55:14 -05:00
aiongg fb5728628a Merge pull request #16486 from aiongg/ui-dead-files
Restore features lost in files no module compiles; delete those files; strict dead-file guard
2026-11-23 08:55:00 -05:00
David Mann 81cc69f17e Address CodeRabbit review; follow main's colour state accessors
- Curves at 8 bit: evaluate the channel and composite curves at the 256
  exact levels instead of between two entries of the 4096-entry table, so
  a pencil step between levels 128 and 129 no longer gives level 128 a
  fraction that rounds to level 4.
- Color Settings: a later Monitor Profile change keeps "Monitor Color"
  only while the values still are what Monitor Color would set.
- Color Settings dialog: a control changed by ui.dialog.set before the
  first pass shows Custom instead of becoming the baseline.
- Stored-channel edits (Lab/CMYK, CMYK Channel Mixer) mix through the
  selection as v*(1-k) + o*k, exact at full coverage over huge 32-bit
  values.
- Action playback: a Channel Mixer step the editor refuses reports the
  refusal instead of opening the generic step editor.
- Shortcut set test: assert Cancel closes the confirmation.
- Merge follow-up: Session's colour state is reached through
  ColorExt::color()/color_mut() on main now.
2026-11-23 13:31:11 +01:00
Dylan M. Taylor b2e243cc50 paint: adapt mixer load swatch to the shared next API 2026-11-23 07:21:24 -05:00
David Mann a461a65ceb Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	Cargo.lock
#	Cargo.toml
2026-11-23 13:08:36 +01:00
Dylan M. Taylor 97daf92f58 Merge PhotoCraft main for live font updates
Resolve the manifest and lockfile by using canonical craft-libs next for the live font stack while preserving main’s Camera Raw dependency pins.
2026-11-23 07:05:53 -05:00
aiongg 83d04ac4d9 Drop a link scan taken against another document folder
The scan now carries the file each stored link path resolved to, and the poll
drops it when the active document's current resolved files differ. Save As
to another folder changes what a relative link resolves to without changing
the stored path.
2026-11-23 10:22:10 +00:00
FredApps 17db1ba448 Merge remote-tracking branch 'upstream/main' into inbox-15255 2026-11-23 10:57:42 +01:00
FredApps 8c2526de74 Port Canvas Size readout to the current hosted dialog 2026-11-23 10:39:48 +01:00
ljkx 446dd0e38b Canvas Size: Gray keeps the background colour in an Indexed document
Indexed documents were not measured (#14543), so they keep today's behaviour.
2026-11-23 10:32:52 +01:00
ljkx 657abde676 Canvas Size: read the params doc from the installed registry in the test 2026-11-23 09:58:44 +01:00
ljkx 7557c44f48 Expect the picked paths to wait outside the frame in the place test 2026-11-23 09:55:05 +01:00
ljkx 9c6e55f7d7 Canvas Size: Gray is linear grey 128 in a 32-bit document
32-bit documents hold linear light, so the Gray extension colour there is grey 128
decoded as Image > Mode > 32 Bits/Channel decodes it (0.2159), not 128/255.
2026-11-23 09:48:26 +01:00
ljkx 02a6bee23d Show the Batch OK refusal in a Batch alert
As the reference does (#13669), a missing source or destination folder
now opens a one-button alert titled Batch with the message. The dialog
stays open with its values and nothing runs; the refusal still answers a
control-channel confirm.
2026-11-23 09:43:53 +01:00
ljkx 3c5c41ac5f Keep a multi-file Place Embedded out of the selected frame
Each chosen file is queued with "frame": false, so with a Frame layer
selected the files no longer fill it one over another; each gets its own
layer, Free Transform box and history state. A single file still fills
the frame.
2026-11-23 09:43:23 +01:00
ljkx 3407dfd7d9 Merge main into fix/14543-canvas-gray 2026-11-23 09:42:27 +01:00
ljkx f805c79c25 Cut the canvas across by the shown view's width in the place centring test 2026-11-23 09:29:29 +01:00
ljkx 752c9831ac Allow the pixel-aligned view centre in the place centring tests 2026-11-23 09:15:38 +01:00