Commit Graph
3595 Commits
Author SHA1 Message Date
aiongg c0421c7fc6 ci: cancel superseded main runs; a scheduled full run saves the caches
Pushes to main cancel the Workspace run they supersede, as pull requests
already do; the newest push's run tests everything before it. On 16 Nov main
had 144 pushes, each a three-OS run that could not be cancelled, which is much
of what fills the org's macOS runners. Release tags, manual runs and a new
scheduled run every 6 hours keep a group of their own and always finish, and the
scheduled run saves the caches (the gate already saves on scheduled runs of the
default branch). scripts/test-workspace-concurrency.py checks the new policy.

The per-crate workflows, which no longer save caches, cancel superseded runs on
every branch, main included.
2026-11-17 19:09:20 +00:00
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
FredApps a97b7948a9 ci: pilot resource-grouped Linux nextest with doctests 2026-11-17 18:58:21 +00: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
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 2d6d39f1a9 Merge pull request #1959 from el-j/feat/audio-vorbis-decode
craft-audio: native Vorbis I decoder (#1547)
2026-11-17 11:55:19 -05:00
Dylan M. Taylor c42292f888 Merge pull request #1762 from el-j/feat/audio-adpcm
craft-audio: IMA WAV, Microsoft, Yamaha and Flash ADPCM (adpcm)
2026-11-17 11:49:43 -05:00
Dylan M. Taylor cff5af869d drawingml: accept borrowed table definitions and caller XML validation (#2045) 2026-11-17 11:30:24 -05:00
6792748fea Add shared HAR capture reader with explicit input admission (#2043)
* har: preserve source reader history

Port Craft Anything crates/formats/src/har.rs from f64ae3bf3c8863a982af1304e06de20653803968.

* har: preserve source reader history

Port Craft Anything crates/formats/src/har.rs from cb0bb9d8fa4536ba44ef2c86f5ed759b879cc2d3.

* Expose shared HAR reader with explicit input admission

---------

Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: BFlat <bombayapirat@gmail.com>
2026-11-17 11:29:30 -05:00
FredApps e11ee59ed3 Merge pull request #1168 from Blenux/dds/import-options
raster-codecs: DDS header info and bounded mip-chain decoding
2026-11-17 16:49:12 +01:00
Dylan M. TaylorandRRFZ 42bb9d35bb tar: preserve current sparse, PAX size and CRC symlink behavior (#2012)
* tar: port old GNU sparse extension traversal from Craft Anything

Source: storytold/craft-anything#1973, 8ea2ec66a1bc80f0420f3695baac877a0cb9b9a5. Retains non-extractable sparse member kind and regression tests.

* tar: preserve GNU CRC symlink checksum compatibility

Source: storytold/craft-anything#1984, b226a475f7dce9710e3af7a069386fe7a9720df7; preserves nonzero checks and regular-file checksum validation.

* tar: apply valid PAX sizes before legacy member size fields

Source: storytold/craft-anything#2007, d29465c20b0d570ea4973be512a0cb4e212bb60f; metadata records still retain their own framing.

* Record provenance of current TAR and CPIO compatibility fixes

---------

Co-authored-by: RRFZ <247457381+Plastic-time@users.noreply.github.com>
2026-11-17 09:58:18 -05:00
Dylan M. Taylor 00048fdadf Merge remote-tracking branch 'origin/main' into fix/vorbis-codebook-size
# Conflicts:
#	crates/audio/src/lib.rs
2026-11-17 09:08:44 -05:00
Dylan M. Taylor 363a51967b fix(audio): bound Vorbis decode allocations and strengthen oracles 2026-11-17 09:07:52 -05:00
Dylan M. Taylor e5db2c26b9 Merge remote-tracking branch 'origin/main' into fix/adpcm-layout-overflow
# Conflicts:
#	crates/audio/src/lib.rs
2026-11-17 09:01:31 -05:00
Dylan M. Taylor 2ad03f00d0 docs(audio): remove duplicated codec overview after merge 2026-11-17 08:56:22 -05:00
Dylan M. Taylor 90947c57d7 Merge pull request #1460 from alehel/feat/vmd-decoding
feat(media,video,audio): Sierra VMD demuxer and decoders
2026-11-17 08:53:39 -05:00
Dylan M. Taylor 9c4a8a1dd9 Merge main and retain MP2 and ADPCM registrations 2026-11-17 08:49:11 -05:00
Dylan M. Taylor cec152da82 fix(audio): reject overflowing interleaved ADPCM layouts 2026-11-17 08:47:42 -05:00
Dylan M. Taylor 1291955de9 Merge pull request #1789 from el-j/feat/audio-g722
craft-audio: ITU-T G.722 wideband speech codec (#1530)
2026-11-17 08:33:15 -05:00
Dylan M. Taylor 923d2975e2 Merge pull request #1756 from el-j/feat/audio-mp2-encode
craft-audio: MPEG-1/2 Layer II (MP2) encoder (mpa-encode)
2026-11-17 08:31:52 -05:00
Dylan M. Taylor 64fcd9531a Add shared span-preserving JSONC editor (#2030) 2026-11-17 08:13:52 -05:00
FredApps e2dad54008 Merge main and adapt DDS mip APIs to canonical decoder 2026-11-17 13:57:02 +01:00
Dylan M. Taylor 5631e99fe1 Merge pull request #2008 from storytold/feat/zip-aligned-stored
zip: share aligned stored entries for USDZ packaging
2026-11-17 07:44:13 -05:00
Dylan M. Taylor a7fb55eaf9 Merge pull request #1982 from storytold/feat/hpgl-byte-lexer
plotter: share HP-GL byte lexer and correct PJL language selection
2026-11-17 07:43:41 -05:00
Dylan M. Taylor 20baec266a Accept horizontal tabs around PJL language separator 2026-11-17 05:43:28 -05:00
el-j e524806621 craft-audio: the Vorbis decoder's bit-reversal loop iterates the table 2026-11-17 11:25:41 +01:00
Dylan M. Taylor 51673a8fea Merge main preserving aligned ZIP and Lottie provenance 2026-11-17 04:35:16 -05:00
Dylan M. Taylor 83cb1133dd Merge pull request #2009 from storytold/feat/lottie-raw-gradient
feat(lottie): expose raw gradient values for animated fitting
2026-11-17 04:32:57 -05:00
el-j e5bde5203c Merge main into feat/audio-mp2-encode 2026-11-17 10:12:38 +01:00
el-j 46587441df Merge main into feat/audio-adpcm 2026-11-17 10:12:32 +01:00
el-j 3d06331fc8 Merge main into feat/audio-g722 2026-11-17 10:12:12 +01:00
el-j de861bef5a Merge main into feat/audio-vorbis-decode 2026-11-17 10:11:58 +01:00
alehelandClaude Opus 5.5 e0440f9942 video: the VMD decoder is behind vmd-decode, with vmd turning it on
craft-audio names its VMD decoder feature `vmd-decode`, and craft-video
names a codec's decoder `<codec>-decode` wherever the codec may also have
an encoder (mpeg2, mpeg4, vp8…). The video decoder now follows that:
`vmd-decode` gates the module and its VideoFrame conversion, and `vmd`
turns it on, so `vmd` keeps working and an encoder can be added later
without renaming.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 09:39:25 +01:00
Dylan M. Taylor 1b7ab973fa Document intentional PJL language recovery correction 2026-11-17 03:24:53 -05:00
Dylan M. Taylor 763b0f32a1 Only select PJL language for ENTER commands 2026-11-17 03:19:11 -05:00
Dylan M. Taylor 8672aff3d8 Merge pull request #1991 from storytold/fix/plot-range-contains
unbreak the Workspace gate: the xlsx fixture Result and the docx range-contains lint
2026-11-17 03:17:42 -05:00
alehel 983a32c6e6 Merge remote-tracking branch 'origin/main' into n1460-merge
# Conflicts:
#	crates/video/src/lib.rs
2026-11-17 08:32:17 +01:00
Dylan M. Taylor 73a6103021 Merge current main preserving both attribution sections 2026-11-17 02:18:14 -05:00
Dylan M. Taylor 5bbf16b61e Merge branch 'main' of https://github.com/storytold/craft-libs into feat/lottie-raw-gradient
# Conflicts:
#	ATTRIBUTION.md
2026-11-17 02:18:09 -05:00
Dylan M. Taylor fd91be74f0 Merge pull request #2001 from storytold/feat/screen-video
video: share bounded Screen Video key-frame decoder from AniCraft
2026-11-17 02:16:15 -05:00
Dylan M. Taylor 3a1a627dc6 Merge pull request #1965 from storytold/feat/score-writers
craft-score: share MusicXML and SVG score writers with per-pitch ties
2026-11-17 02:16:11 -05:00
Dylan M. Taylor 77686f24fe Merge pull request #2007 from storytold/feat/svg-transform-compat
svg: extract prefix-preserving transform-list compatibility
2026-11-17 02:16:06 -05:00
FredApps bf448c194a Merge pull request #1729 from D13GOOOO/docx-stacking-order
craft-docx: a relativeHeight of 0 stays the lowest stacking order (wordcraft#2638)
2026-11-17 07:40:05 +01:00