heavy-filter already caps mcp_wait at one concurrent test, but other
tests in the shard still ran beside them. On artcraft-k8s-main a
bridged jobs.list poll then missed the 300ms client timeout. Require
every test thread so these tests actually run alone, as the comment
already said.
Fixes#16491.
The ci override still warned at 15s and killed the test at 45s. On
artcraft-k8s-main it already takes 31-33s when it passes, and current
main timed out at 45s after nearly finishing the registry. Keep the
15s warning and terminate after 90s, still well under the profile's
10-minute default.
Fixes#16489.
* build: move craft-develop to craft-libs main b2d2a1e9 (craft-libs#3101)
craft-develop and craft-develop-model move from 33be356 to b2d2a1e9,
which includes craft-libs#3101 (Detail's resolved parameters) and four
sensor commits (white-balanced demosaic with a clip mask; existing
signatures unchanged). Cargo.lock changes only craft-libs git sources.
per_pixel() no longer refuses Detail: it returns the stages with
`detail` set. RAW Develop's GPU pass has no Detail stage yet (#6916), so
the dialog now goes through gpu_stages(), which keeps a sharpened or
noise-reduced frame on the CPU. A device-free test covers it on hosted
CI; the GPU test adds Detail-only cases; the gpu crate's test follows
the new per_pixel contract.
* style(camera-raw): rustfmt gpu_stages' signature
---------
Co-authored-by: fjamesprice <[email protected]>
add_import inserts before the first import's outer attributes and after multi-line inner
attributes; fix mode moves inline-module offsets past the edits it applied above them.
module_file resolves a crate root's children beside it whatever the file's name, and
inline_mods takes an enclosing module's #[path] as its directory.
The 20s bound failed main's required artcraft-k8s-main gate after 26.86s
while the tile-count and sample assertions passed. Coverage runs have
been 20.6-24.8s. 90s still fails a canvas-wide paint.
Fixes#13620
compiled_files walks each crate's targets (standard paths and Cargo.toml target paths) through
mod lines, inline modules included. tools/analysis_ui.rs, which no module reaches, keeps main's text.
presets::patterns::sync keeps the library's ids in a local while the presets
change (the accessor borrows the whole session); two atn_cmds tests read a step
into a local before pushing it, and clone an ActionState out of the other session.
Part of #15710.
scripts/engine_split/slot_access.py rewrites the slot fields to their accessors
(Tracked presets deref through one more *), adds the trait imports, turns
s.presets_changed() into presets::presets_changed(s) and points Session::method doc
links at the trait methods. Its fix mode applies what cargo check reports; branch
mode serves open branches and lists their edits to the moved methods. The
definition-span helpers session_state.py uses move to rust_source.py so both
scripts share them (session_state.py's output is unchanged).
This commit is split plus the fix rounds against cargo check of engine-core,
engine, ui-egui and automation (lib and tests). Part of #15710.
ColorState, Tracked<PresetState>, ActionState, ObjectFinderCache, SubjectCache,
Option<Spooler> and Option<PrinterSource> leave Session and become slots, registered
in their owner crate's group of install.rs. Each owner module reads its slots through
one extension trait (ColorExt, PresetsExt, ActionsExt, SmartSelectExt, PrintExt), and
the inherent Session methods outside core-bound files move onto traits (ColorExt,
LinkWatchExt, PresetsExt, PresetStoreExt, SavedPrefsExt). Private helpers become free
functions; presets_changed stays crate-private as a free function.
A session without a slot (made before the install, or after a conflicting one) reads
it at its default and gets it on the first write, as its fields did; its commands
still fail with the install's error. Part of #15710.
The relocation check matched only the definition's name in the changed
lines, so a branch that changed a line inside builtin() got no report.
It also compares each hunk's old-side line range with the definition's
lines (doc comments and attributes included) in the base version.
- slots.rs: SlotInit, Install::slot, Session::slot/slot_mut (a missing slot is the registry's error); the preset store is the first slot (preset_store::PresetStoreExt)
- state.rs: the small Session state types and what they need; their modules re-export them
- actions_record.rs: ActionRecording (s.recording) takes the recording and playback fields out of ActionState
- action_history::history_policy_in_use; Clip::from_svg becomes edit_cmds::clip_from_svg
- prefs/saved.rs: SavedPrefs, its readers and the methods that combine preferences, colour settings and presets; ScriptEvents and ShortcutSet move into prefs
- hooks: document_closing, doc_id_reserved, pixels_edited
- tests that compare a whole ActionState also compare s.recording
#7597 started value-checking image.adjustments.*. The new checker only
allowed layer to be an id or a string, so a recorded Action's
{"name":"Receiver"} was rejected and preview_document returned None
in review_mask_action_context_matches_the_addressed_layer. Accept the
same selectors explicit_layer already reads.
Pick up the shared Camera Raw fixes#3091, #3088 and #3089. The pin
stays before craft-libs#3101, which PhotoCraft's GPU route cannot follow
until photocraft#13519 is ported.
The closed-schema filter dropped Image Processor's jpeg/width rows
before nest() turned them into the jpeg object the command takes, so
OK wrote only a full-size JPEG. Apply Image is still on the incomplete
list and needs sourceLayer, which the same filter had also removed.
The filter now runs after nest() and the other command-specific
rewrites, and it skips commands whose docs are still incomplete.
engine-core's command_specs() does not install commands, so the schema
and param-check tests that walked the registry failed with NotInstalled
after param_schema moved into that crate. They now call install() first,
as crate::session() already does.
Filter dialogs also no longer send keys a closed schema does not take,
including Bitmap's display-only inputResolution row, whose presence made
OK leave the document in Grayscale.
Merging main #16449 carried this PR's lib.rs module declaration into
engine-core (photocraft#15710), but the new source file stayed under
crates/engine/src, so the crate would not compile.
The dialog's Input row is display-only. Dispatch treats inputResolution
as unknown, so OK was rejected (the error went to a notice) and the
document stayed Grayscale. The preview test already passed because it
called the command with only method and resolution.
Keep the parameter-schema dispatch, including Clean Brush refusing
unknown keys and the batch test that does not pass steps to Image
Processor. Take main's engine-core split and its new session helper.
Dragging the toolbar over the canvas offered a box drop area beside it, and
a release there docked the toolbar in a frame of the docked tree, with a
panel header like a window. The toolbar now sets the dock permission
docks_outside_columns(false) (craft-libs#2099, in the pin): the model
refuses every frame placement, so no box shows, and a workspace saved with
the toolbar in a frame loads with it in a dock column.
Tests: the_toolbar_never_docks_beside_the_canvas,
a_saved_toolbar_below_the_canvas_loads_in_a_dock_column; both fail without
the permission.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Core runs every command; the steps that belong to crates above core now run as hooks those
crates register with their command tables (Install.hooks, crates/engine-core/src/hooks.rs):
request params (batch open), redirect (Last Filter), parameter checks (file.new values, filter
params, through validate_params in dispatch and precheck), before the command (the floating
selection drops), run params (Shape Blur's path), after the command (mask view, Fade, script
events and slices, preset store sync), recorded steps keyed by command id with a default, step
origin, journal coalescing, recording flush and preferences applied. install.rs registers every
hook, grouped by the crate that will own it. Before an install there are no hooks, as the
registry lists no commands.
The recording predicates replayable, tool_stroke, shell_view_command and shell_save_command,
and recorded_params, move to actions_record, beside the rest of the recording normalisation;
actions_cmds re-exports the public ones.
The redraw-area helpers (step_damage and the rest of cmd/layer_multi_cmds/damage.rs) are
pipeline logic that dispatch, edit, undo and redo use, so they leave the module the model
crate will take. layer_multi_cmds keeps its public re-exports.