With craft-ui-contract optimised, shard 2 (the audit crates, plain and audited)
ends well before shard 1. craft-draw's tests (about 280 test-s in CI, most of
them suite trials) move to shard 2 and run plainly; the audited pass keeps to
the audit crates.
The macOS and Windows legs cache dependencies only, but their entries were named by the hash of
every profile override, workspace crates' included. next's cargo-ci.toml and cargo-dev.toml set
other workspace-crate levels than main's, so next's pushes never found main's entries and built
every dependency from source (Windows 40-52 minutes, macOS 29-36, against 10-15 with an entry).
`deps-profile` hashes `[profile.dev]` and `[profile.dev.package."*"]` of both files; every other
override names a workspace crate (test_profile_overrides_name_only_workspace_members). It is the
same on main, next and #3405 today. The Linux leg, which keeps workspace crates, keeps the full hash.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- scripts/ci-workspace-tests.sh holds every Workspace test step. When the selection reaches a
replay-audit crate, the Linux leg builds once in gate.yml's build job, writes three nextest
archives (every selected test, the audit's UI crates, the default-feature crates), runs the
doctests, and three shard legs run the archives in parallel. Any other selection, and every
macOS and Windows leg, builds and runs in one leg as before.
- .config/cargo-dev.toml is the dev-profile tuning tools/cl passes locally (dependencies at
opt-level 2, craft-theme/behavior/proof at 1, lto off); every CI test build passes it too, with
.config/cargo-ci.toml adding the numeric crates at opt-level 1. The Workspace legs' cache entries
are named after a hash of both files. Cargo.toml's profiles are unchanged.
- nightly.yml builds through the same script and also starts the full tests on next.
The macOS and Windows Workspace legs take 1.5-2 hours against the Linux leg's 15-40 minutes, and
every pull request waited for them. They now run on every push to main and next, on main's
scheduled runs, and on a daily run on next that nightly.yml starts. A pull request that needs them
before it merges gets the full-ci label. Pushes to next cancel the run they supersede, as pushes to
main do.
craft-common-actions' select-platforms selects the tests: the crates that
own a changed file, the crates that declare a read of it, and every
crate that depends on them. Every nextest run gets the filter; the build
and the doctests stay whole-workspace. The build setup, a crate's own
Cargo.toml and files outside the crates other than docs run every test;
docs alone run none. pdf, svg and the fonts-build consumer declare the
files of other crates that their tests read.
next's workflow lacked dev-strip and kept warm-command, so rust-cache's environment hash
differed from main's and PRs into next restored nothing. The file is now main's plus
pushes to next (Linux only).
Merges main at d7c9632bfb.
- Cargo.toml: both sides' new workspace crates (next's font-subset, harfbuzz-subset-sys and
host; main's gpu, gpu-null, gpu-providers and gpu-wgpu).
- crates/jpeg: next split lib.rs into modules; main's reduced-size decoding goes to them: the
scaled IDCT, reconstruction and render_scaled to idct.rs, MAX_SHRINK, reduced_estimate and
decode_reduced stay public in lib.rs. Main's new test added; the frame test next removed
stays removed.
- crates/audio, crates/media: next builds the integration tests into the library's test
executable (autotests off, tests/main.rs); main's new DSD and MPEG-TS mux tests are modules
there behind their features instead of [[test]] targets, and the mux tests reach their shared
helper module through the integration module.
- crates/media/src/matroska/track.rs: main's new FFV1 codec-parameter test added; the test
modules next removed stay removed.
- crates/file-formats: main's JXL capability test, which asks the codec whether JXL reads,
replaces next's interim check.
The Linux leg restores the newest rolling cache entry of the workspace
crates (cache-workspace-crates), so a pull request rebuilds only the
crates its change reaches. Each main run saves an entry of its own and
cache-prune deletes the older ones; the midnight scheduled run builds from
source and starts the entry afresh.
gate.yml's cache-workspace-crates covers a whole call, so the macOS and
Windows legs move to a call of their own with dependency-only entries. A
select platforms job decides whether that call runs, since an empty leg
list would fail it.
To fit the 10 GB cache budget, the lint legs and the sonarcloud
instrumented build keep no cache.
Merges main at 3b8e426a26.
- crates/ui: main's e-sign dialog (crates/ui/src/esign) moves to craft-cloud-ui beside the
share dialog, behind craft-cloud-ui's esign feature; craft-ui forwards `esign` and
re-exports the module.
- crates/proof: main's can_suggest_cased goes to affix/check.rs and its tests to
affix/tests.rs (next split affix.rs); French wiring in lib.rs.
- crates/svg: main's validated resolver and raster validation stay under tree-render, which
now also enables gif and image-webp; the shared image-codec helpers are gated on tree.
- craft-ai-agents: main's rev (craft-ai-integrations main), one entry.
- crates/craft: facade dependencies, features and re-exports for main's new crates.
One rustfmt call with every source root of the workspace is now longer
than a Windows command line may be (os error 206). rustfmt's result is
the same on every system; the Linux and macOS legs keep checking it.
The lint-command guard states the per-system stages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The workspace script tests pin main's gate. Clippy runs without --keep-going as on main, the
facade-as-an-app clippy moves to the Docs workflow, and the unix gpu test group is back.
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.
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.