8 Commits
Author SHA1 Message Date
aiongg 1819a0868e Workspace: pull requests run only the tests their change reaches
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.
2026-11-20 17:17:41 +00:00
aiongg 7a040c1f3b ci: the Workspace gate keeps compiled workspace crates on its Linux leg
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.
2026-11-19 16:02:38 +00:00
aiongg e701f54d0a workspace: own cache entries for the WASM and 1.95 calls, stripped test binaries, no examples in the test build
Needs craft-common-actions gate.yml with the cache-name and dev-strip inputs.
2026-11-19 02:22:51 +00:00
David MannandClaude Opus 5.5 1cc156dcc3 ci: skip cargo fmt on the Windows lint leg (#2200)
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>
2026-11-18 12:43:50 +01:00
FredAppsandFredApps af1a6b4261 test(ci): never execute workflow text in shell harness (#2130)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-18 13:05:18 +07: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 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
FredApps a97b7948a9 ci: pilot resource-grouped Linux nextest with doctests 2026-11-17 18:58:21 +00:00