- 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 dev-dependency rule covered egui alone; epaint_default_fonts slipped past
it. It now checks the egui crates every framework crate builds on (egui, epaint,
epaint_default_fonts, emath, ecolor): a feature a dev-dependency line asks of one
must also be asked by a normal line, feature-root's included.
Since #2363, craft-ui-contract's testing no longer carries snapshot and the
framework crates have a suite feature. Every cl command still resolves one
framework feature set (feature-root brings the gallery's craft-ui suite), so the
three doctor reports were out of date, not second builds:
- drop the pin on craft-ui-contract's testing including snapshot: each framework
crate's suite forwards to the runtime's suite, which cl picks first
- the gallery's must-be-optional rule covers domain crates, not the framework
- the story renderer's lines are compared with the features the gallery's lines
turn on, implied features included (suite implies testing)
CL_DRY_RUN with cl render no longer runs the renderer after printing the command.
An app workspace declares its selection, tracked crates, expected features,
environment, shards, default test times, run slots and test threads in its
root Cargo.toml; cl reads them from cargo metadata and refuses unknown keys
and wrong types. The PhotoCraft constants and CL_PC_LAUNCHER/CL_PC_RUNNER
are gone: every workspace uses CL_LAUNCHER and CL_RUNNER. `cl build
<example>` builds any example over the selection. Drops a committed
__pycache__ file and ignores __pycache__/.
- framework-01-w1: written from its sheet
- framework-01-w1: review fixes (review-1)
- framework-01-w1: review fixes (review-1, files the rulings name)
- Integration: Cargo.lock line for w1's craft-settings dependency
Every build cl composes passes --timings (the newest 200 reports kept), and
every cl command appends one line to <target>/cl.log with its build and
test-run wall time, exit code and report, so a slow loop can be read from
data afterwards.
cl test builds with cargo test --no-run and runs each test binary itself, as
cargo would, through CL_RUNNER. A wrapper that limits how many test binaries
run at once then holds its limit only for the run; held for the build, it
queued every build behind the slowest one while the job pool already shares
the cores between builds.
story-render asked craft-ui for snapshot, which the runtime's testing already
includes, so every render built its own facade. cl doctor checks the
renderer's lines against the gallery's, and the new-build report keeps
check-only builds apart from full ones.
cargo unifies features only over the packages a command selects, so a framework
crate's tests, a domain crate's tests, the gallery and the story renderer each
built their own copy of the framework and of wgpu. feature-root carries the
gallery's dependencies with every domain crate; cl selects it beside every
command's package and names the crate's own targets, so nothing of it builds.
The per-crate feature anchors go; cl check also checks a crate's bins.
overview_card builds an Overview card's Spec from the catalog alone and Spec::card turns it into the Card the
Overview shows; the Overview uses both. story-render --card renders one selected card per story group, the given
width wide, in a one-column grid row in a vertical scroll as the Overview holds its cards, inside the one shell the
bin runs everything in, with its dialogs open. --scale sets the images' pixels per point (1 matches the old gallery's
shots) and stories.tsv lists it. cl render passes both through.
cl test failed for craft-ui-panels, canvas, patterns and shell: their canonical set named craft-ui-contract/snapshot, and cargo lets a command name a feature only of a direct dependency, which the runtime is not for crates above widgets. craft-ui-contract's testing now includes snapshot (the resolved feature set of the runtime in a test build is the same three features as before, so no unit changes), and the canonical sets drop the snapshot entries. cl doctor resolves every crate's canonical set against cargo metadata, with no build: a plain feature must be the crate's own, a dep/feature must name a direct dependency and a feature it has. docs/development.md states what CI covers (ui.yml for the seven ui crates, theme.yml, docs.yml, path-filtered workflows for some leaf crates) and what it does not (the domain crates on the framework, the gallery, the renderer, the umbrella crate, any workspace-wide build).