Commit Graph
8520 Commits
Author SHA1 Message Date
aiongg a1398a3b61 ci: macOS and Windows legs on a pull request only when it can change them
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.
2026-11-17 19:09:20 +00:00
aiongg 9bd6416966 ci: clippy and fmt on a lint leg beside each test 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.
2026-11-17 19:09:20 +00:00
aiongg 688c5beba2 ci: cache the PhotoCraft test corpora
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.
2026-11-17 19:09:20 +00:00
aiongg 899d6e0302 ci: per-crate workflows run only what the Workspace gate does not
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.
2026-11-17 19:09:17 +00:00
aiongg 7aa03b89cc ci: no debuginfo on the Windows leg
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.
2026-11-17 19:09:17 +00:00
aiongg 6af1337860 ci: nextest on every leg, tests with all features once
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.
2026-11-17 19:09:17 +00:00
aiongg ff502fb75f ci: run a fraction of the fuzz-style tests on pull requests, all of them nightly
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.
2026-11-17 19:09:17 +00:00
aiongg e67deae9a4 cms: the forged-hash test builds its cache through HashCache 2026-11-17 19:07:07 +00:00
Dylan M. Taylor d9f0ada8b3 Merge pull request #2047 from storytold/feat/pcap-inspection
Share PCAP and PCAPNG capture and per-frame protocol inspection
2026-11-17 14:06:29 -05:00
aiongg 5a97096948 cms: a profile's hash cache is a HashCache that never takes part in equality, so a shared built-in profile compares equal whether or not something has hashed it 2026-11-17 19:03:32 +00:00
aiongg 75a65e6824 cms: Profile equality ignores the lazily computed content hash, so a built-in profile equals its parse whether or not it was hashed yet 2026-11-17 19:03:10 +00:00
aiongg 949be1f915 Colour picker round 4: Grid::cells(CellAlign) sets cells at their row's top; the Full picker's halves and right half use it
- 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.
2026-11-17 18:59:32 +00:00
FredApps a97b7948a9 ci: pilot resource-grouped Linux nextest with doctests 2026-11-17 18:58:21 +00:00
aiongg db08c64334 update: Windows clippy baseline: cfg-gated imports in self_update and docs on the Windows MSI items 2026-11-17 18:55:54 +00:00
aiongg 8376d6467a Colour picker round 3: trials compare the whole warning chip and drop the dialog-width check; no DIAG prints 2026-11-17 18:51:28 +00:00
aiongg b15c4f09af docs/components-index.md regenerated 2026-11-17 18:46:39 +00:00
aiongg a629ce8ec4 Colour picker round 2: fixed grids keep their natural columns at every depth, compare part, popover setup in every run
- 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.
2026-11-17 18:41:52 +00:00
aiongg d4cae9a412 update: the OCI migration trials are a cfg(test) module, so the crate's test lint rules apply 2026-11-17 18:41:20 +00:00
aiongg 1c63d35ff5 CI baseline: platform temp dir mode check without a bool-literal guard and its test reads file_path; window Linux-only helpers lose the test cfg; update's settle_for_tests and migration trials; prepress group_item replaces unreachable; svg font path to ui-contract 2026-11-17 18:40:58 +00:00
dotCooCoo 3ec7639bf7 audio-dsp: filter design takes 1 kHz for a NaN edge frequency
`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.
2026-11-17 10:38:19 -08:00
skylar taylor-barrick fd7232d7a3 Merge pull request #160 from wdunn001/craft-runtime-upstream
craft-cloud: vendor-neutral contracts, the craft-ui cloud and share pages, and a local reference adapter
2026-11-17 12:36:10 -06:00
dotCooCoo 1a8548c2b5 audio-dsp: Mastering maximizer fade stays finite on overflowed samples
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.
2026-11-17 10:32:29 -08:00
aiongg ceaf91f6e2 Colour picker round 1: slot measured at content width, fixed grids measure natural sizes, row-end eyedropper
- 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.
2026-11-17 18:31:26 +00:00
aiongg 7b745c75bf Colour picker: Photoshop's fixed Full arrangement, dialog buttons in a body slot
- 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.
2026-11-17 18:20:35 +00:00
David Mann e602156696 WIP: bring the UI pass back near the release's cost
Part of storytold/photocraft#15493.
2026-11-17 19:12:47 +01:00
FredApps 5490e83d2a test(media): schedule MXF hostile seeds independently 2026-11-17 19:12:35 +01:00
aiongg 0238e191e3 Native dock windows: the mount carries that the app moves the window (Overlay::moved_by_app), so its first pass knows it before the Windows hit test is routed 2026-11-17 18:10:29 +00:00
aiongg ed277c7a81 Trial: a click on the double arrow of a collapsed native palette at 125 % expands it 2026-11-17 18:10:29 +00:00
aiongg d25177f320 Native trial: the test OS clamps a window's size to its limits, as real ones do 2026-11-17 18:10:29 +00:00
Dylan M. Taylor 29fdd49d6d Use fixed-size chunks in fixture-order regression 2026-11-17 13:07:57 -05:00
51aadf525f Share deterministic parser damage fixtures without changing their corpus
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>
2026-11-17 13:06:31 -05:00
texjer 400b2f821d craft-develop: the crate, with inpaint from LightCraft
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.
2026-11-17 13:00:47 -05:00
aiongg cd157c7e8c clippy: update's Linux cancel trials are a cfg(test) module; tail expressions in the corner and raster trials 2026-11-17 17:47:17 +00:00
aiongg 0df86e76c5 clippy: needless derefs in the pasteboard, an unused import and mut in docking trials 2026-11-17 17:45:35 +00:00
aiongg 081b62b056 clippy: needless deref in docking targets; the tab strip trial drops the strip's output 2026-11-17 17:44:43 +00:00
aiongg cc958692f9 clippy: needless deref in the pointer trial 2026-11-17 17:44:16 +00:00
aiongg eb9b7c7499 EnvView::to_env takes the Copy view by value 2026-11-17 17:43:17 +00:00
aiongg 383a1fcb9d Fix next's CI baseline: action pins, rustfmt, a private doc link and clippy lints
- 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.
2026-11-17 17:42:17 +00:00
David Mann ba7de0f070 Window move: float rounding of a window's size is no OS resize
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.
2026-11-17 18:29:09 +01:00
el-jandDylan M. Taylor 0649a07aa1 craft-audio: ITU-T G.726 ADPCM speech codec (#1531) (#1792)
* craft-audio: ITU-T G.726 ADPCM speech codec (#1531)

* fix(audio): mask G726 sample codewords before adaptation

---------

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-17 12:15:52 -05:00
ljkx 828daafd16 craft-mesh: triangulate concave faces by ear clipping instead of fanning across their notch (#2026) 2026-11-17 12:15:48 -05:00
Dylan M. Taylor 257a81c216 Merge remote-tracking branch 'upstream/main' into review-2046
# Conflicts:
#	ATTRIBUTION.md
#	Cargo.toml
2026-11-17 12:15:24 -05:00
Dylan M. Taylor 309ae75a4e pcap: let the packet-block helper use is_multiple_of 2026-11-17 12:15:24 -05:00
Dylan M. Taylor 0d56a411cb Merge remote-tracking branch 'upstream/main' into review-2047
# Conflicts:
#	ATTRIBUTION.md
#	Cargo.toml
2026-11-17 12:15:24 -05:00
Dylan M. Taylor 383c52430e Separate EVM selector and calldata pattern inspection for lint gate 2026-11-17 12:14:17 -05:00
David Mann 2695cc1ed0 Window move: an app-run move follows the system pointer
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.
2026-11-17 18:13:33 +01:00
Dylan M. Taylor 9799e3be70 Split XFA accessor regressions without weakening assertions 2026-11-17 12:10:30 -05:00
aiongg 4e28f37c16 Cargo.lock: craft-theme-editor 2026-11-17 17:10:16 +00:00
aiongg dc62378b6a Remove the T3 diagnostics 2026-11-17 17:09:47 +00:00
FredApps 1aff2841c9 svg: exclude nested image callback leaves from depth reservation 2026-11-17 18:08:31 +01:00