workspace.yml passes select-os to the gate: a pull request runs the macOS and
Windows legs when a changed file is in a crate with platform cfg code or in a
crate that depends on one, is part of the build setup (workflows, Cargo.lock,
the root Cargo.toml, toolchain, .cargo, .config), or lies outside the crates
and is not documentation. 37 of 177 crates have platform code and 57 are
affected with their dependents; 39 of the last 80 merged pull requests would
have run Linux only, without the macOS queue. The full-ci label runs every leg
from the next push or manual run. Pushes to main run every leg.
workspace.yml moves fmt, both clippy runs and the workflow script checks into
the gate's lint-command, so each OS gets a lint (<os>) leg running beside its
gate (<os>) leg. Clippy (about 6 min on Linux and 11 on Windows) no longer runs
before the test build. scripts/test-workspace-tests.py checks both blocks.
The gate restores .test-inputs/photocraft/corpus before its setup, keyed on
scripts/ci-test-inputs.sh (which holds the PhotoCraft pin), and the setup uses a
restored corpus as it is. A hit skips the PhotoCraft checkout and its xtask
build: 2:17 of Windows setup, about 1:00 on Linux and macOS. Uses
craft-common-actions' new cache-paths, cache-key and cache-key-files inputs.
The Workspace gate already runs fmt, both clippy runs and the tests of every
crate on Linux, Windows and macOS. The per-crate workflows drop those steps and
keep their own checks: wasm32 builds and tests, no-default and single-feature
clippy and tests, cross-target clippy, docs, release and sample tests,
--ignored tests, ffmpeg oracle tests, the Language-data proofing builds, the PDF
Unicode fixtures, read-only contract and vendored backends. All of them run on
Linux. docpath.yml, print.yml, i18n.yml and ui.yml had no check of their own and
are removed.
They also stop caching dependencies: about 25 rust-cache entries no longer
compete with the gate's for the repository's 10 GB, which the gate's main run
missed on every OS. The data caches (Opus vectors, CRW samples) stay.
CARGO_PROFILE_DEV_DEBUG=0 on Windows, as PhotoCraft's Windows legs do: writing
PDBs for every test binary is a large part of the Windows build. The gate
writes windows-env after its dev-debug default, so the Linux and macOS legs keep
line-tables-only.
Every Workspace leg runs nextest with --all-features and the doctests with
cargo test --doc. The default-feature test run is gone: it added exactly four
tests, all in craft-image-codecs and craft-text (feature-off behaviour), so
those two crates run their tests with default features as well. The
default-feature compile stays covered by the first clippy run.
The resource groups from craft-libs#2058's audit move into the ci profile with
platform = 'cfg(unix)', so Linux and macOS share one profile and Windows keeps
the groups it already passes with. No separate example build: nextest builds
examples as cargo test does, and clippy --all-targets checks them.
scripts/test-workspace-tests.py follows the single command set.
craft-testkit's hostile hammer reads CRAFT_HOSTILE_DIVISOR=N: the unmodified
seed, every N-th truncation and 1/N of the rounds. hostile::divisor() gives the
same value to sweeps written without the hammer; craft-image-codecs' TIFF zoo
and malformed-header sweeps use it, with a different offset per input so the
inputs together still reach every position. Proptests without their own case
count read proptest's PROPTEST_CASES.
The Workspace gate and the media, audio, video and PDF workflows set
CRAFT_HOSTILE_DIVISOR=8 and PROPTEST_CASES=64. The longest of these tests
(craft-media's MXF hostile input, 1,310 s on Windows; craft-pdf's crypt
proptests, up to 257 s; the image-codecs sweeps, 140-162 s) drop to about an
eighth or a quarter. nightly.yml runs the whole workspace on Linux without
either variable, so every case still runs once a day.
The gate's test-input setup moves to scripts/ci-test-inputs.sh, shared by both
workflows; it uses a corpus that is already present.
- CellAlign { Center, Top } on BodyLayout::Grid and Grid::cells, with the grid_cells_top story: a cell shorter than its
row stands in its middle (default) or at its top.
- Full picker: the two halves are a fixed, top-aligned grid, so the left half keeps its width in any room and the
Only Web Colors row's button stays under the strip; the right half is top-aligned, so a shorter second field group
starts level with the first and the dialog's buttons start level with the compare block.
- GridFit::Fixed: a probe in unbounded room finds the cells' own widths, settled across their column groups; the
measuring and real runs lay the cells out over a room at least that wide, so no cell is squeezed or cut and the
grid's least width is its width.
- CompareSwatch: the current half is a part of the block with the button role and the name Restore current color,
painted as the block's lower rectangle.
- ColorPopover::picker's setup runs in every run of the popover's body (Fn), so the measuring and the real run show
the same picker.
- Trial and story: the check boxes in the body-buttons grid are one cell each; the Full trial compares a 320-wide room
by the parts it shows.
`realize` and `design` replaced a NaN edge frequency with nothing, so the
prewarp gave NaN coefficients and the filter output NaN. A NaN edge now
takes 1 kHz in every band, as a NaN ripple or attenuation takes its usual
value.
A sample that the widener overflows to infinity takes the maximized value
during the maximizer's crossfade, as it does once the maximizer is fully
on, instead of turning the blend into NaN.
- A body-placed footer is measured in unbounded room and drawn across its slot as across an end column.
- A GridFit::Fixed grid sweeps its cells once at their own sizes in unbounded room, also inside a parent's least
probe: it never squeezes cells to their leasts, and its least width is its width, so parents (the gallery's card
grids) see it.
- The hex field is six digits wide from the letter column, not the column's width.
- Only Web Colors and the compact hex row put the screen-pick button at the row's end in a fill-width end row.
- The compare block's current half is a Button tinted with the current colour.
- FooterSlot declares its sample; the Full trial finds the strip as the slider after the area.
- DIAG picker prints for the slot and fixed-grid measures.
- FooterPlace::Body and FooterSlot: a container's footer drawn at the cell its body keeps; the footer step still
runs it, so roles, platform order, Enter, Escape and Alt-Reset stay the dialog's. Dialog::button_place(ButtonPlace
{ Foot, Side, Body }) replaces side_buttons(bool); every caller updated.
- Grid::fit(GridFit { Stack, Fixed }) and layout::empty_cell, with the grid_fixed story.
- ColorArea sizes by AreaShape { Plot, Square } from tokens, never from the room.
- CompareSwatch: one block, new over current, one edge, captions, warnings column from the block's top.
- ColorWarningChip arrangement enum (Stacked, Beside) replaces beside(bool); icon.sm chips.
- Full: area and strip over Only Web Colors and the screen-pick button; compare block and actions slot over two
field groups in grids that never stack; '#' in the radio column, hex field across the channel cells. No wrap, no
alpha row, no OKLCH column (OKLCH rows join group 2 with their radios); Only Web Colors always shown.
- Compact: width from the plot area and strip; hex row with the screen-pick button at its end.
- ColorPickerDialog puts its buttons in the picker's slot; color_picker_dialog story.
- Trials: Full arrangement across rooms, densities and themes; dialog proportions and button cell; compact width;
body-placed dialog buttons and their keys.
Preserve the fixture helpers originally authored in Craft Anything testkit and extracted by FredApps for TAR. EVM and TAR now reuse craft-testkit with unchanged mutation sequences. Add sequence and stride regressions.
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
The first module of the shared develop pipeline (#587): lightcraft-inpaint at
a75497d6, as craft_develop::inpaint. PatchMatch patch completion and the
membrane fill it seeds from, with their tests. Only the paths in two doc
links and two imports changed.
A parity test compares both fills of one scene with what LightCraft's crate
gave at that commit, through craft-render-parity at Tolerance::BASELINE.
- docs.yml and theme.yml use the locked action versions, with entries in actions.lock.
- rustfmt on ui-contract's style/mod.rs.
- hovers' doc no longer links the private Under.
- clippy: needless struct update in TextRun::job, a type alias and sort_by_key in winners_of,
needless derefs in arena_clip, an unneeded mut in FooterBar.
The input hook releases a held press when an undecorated window's inner
size changes under it (the OS resized it and keeps the release). It
compared the sizes exactly. A window the app moves reports its size again
in points from its pixels, and at a fractional scale the same size comes
back a float step off (290.4 as 290.40002 at 125 %), so the hook released
the press a few points into every move of a floating panel on Windows.
A size now counts as changed only by more than 0.05 pt, far under one
physical pixel at any scale and far over that rounding.
Part of storytold/photocraft#15478.
Where the app moves an OS window itself (a floating panel on Windows), each
pass placed the window from the pass's pointer event, relative to where the
window reports itself. The event can be an older sample than the window's
current place, since the window moves between passes, so the window landed
behind the pointer every pass and the release left it there: on Windows a
400 px drag moved a floating panel about 260 px, and at times only the
click distance.
Where the platform tells the system pointer, the move now places the
window from it (pointer - grab - inset), at the drag's start, on each pass
and once more at the release. Platforms without a system pointer keep the
event-based place. The new `windows::system_pointer` never falls back to
the drag's own noted pointer, which `desktop_pointer` does, so the move
cannot feed its own place back.
Part of storytold/photocraft#15478.