`cargo xtask ci doctests` ran the doctests of every workspace member in
one `cargo test --doc`, which resolves features over all of them and
rebuilt the libraries the per-shard builds had built: the step took 24
minutes in the build job of pull request run 47488581650. It now runs
one `cargo test --doc` per shard with the crates `ci shard` runs them
for. On the build host, after `ci archive`, the step took 34 seconds.
On the pull request run the build job ran one `cargo test --workspace`
for every test, and the runner stopped with "received a shutdown
signal" (exit 143) after 28 minutes, while it compiled
vectorcraft-engine's, vectorcraft-ui-egui's and the app crates' tests
side by side. A workspace build also resolves features over every
crate, so on the build host the archive step then rebuilt 58 units
that the shards' own builds had built with other features.
`cargo xtask ci archive` now builds the library and binary tests of
each shard's run in a cargo command of its own, then each run's
integration tests, as the shards and the cache warm did before. Each
archive uses its run's package and target selection, so the archive
step finds every test built: on the build host each of the archive
commands finished in under a second after the builds. An archive holds
one cargo selection, so each shard now makes one run:
vectorcraft-engine's integration tests move from shard 4 to shard 3,
beside its library tests, and `ci archive` fails on a shard with more
than one run.
The build job recorded every unit of `cargo test --workspace --lib
--bins --tests --no-run` for the cache trim, so the rolling entry would
hold the integration tests' executables. With them the entry measured
10.3 to 10.5 GB, above the repository's 10 GB cache budget, which is why
`cargo xtask ci warm` stopped building them. The library and binary
tests' build now records the units, and the integration tests build
afterwards without a record. The saved entry keeps every dependency and
dev-dependency the tests build with.
Each of the five test shards compiled its own tests: 8 to 18 minutes
with a cache hit and 25 to 43 minutes with a miss, on every shard of
every run. The gate's build job now builds every shard's tests once
(`cargo xtask ci archive`) and writes one nextest archive per shard
with that shard's test binaries (`Shard::filterset`). The test legs
download their own archive and run it without building or restoring
the dependency cache. The build job runs the doctests after the
upload (`cargo xtask ci doctests`), and on main it saves the rolling
dependency cache in place of the `cache warm` legs.
The ci steps that are not tests (fmt, clippy, no-bundled-fonts and the
other checks) move from shard 6 to the gate's lint leg
(`cargo xtask ci checks`), which runs beside the build with a cache
entry of its own. The gate now has five test shards; `ci warm` and the
warm split are removed.
The nightly signing policy lists the new job names (build, lint and
test 1/5 to 5/5), and the cold cache clear waits for the build job's
save.
Co-authored-by: Elvis33LE <[email protected]>
Since #10163, `cargo xtask ci warm` built each test shard with
`--lib --bins --tests --no-run`, so the dependency-cache entry also held
the integration test executables. The gate-crates entry grew from about
4.7 GB to 10.3 to 10.5 GB, above the repository's 10 GB cache budget,
and the slowest test shard on main took 30 to 31 minutes afterwards
against 26 to 28 minutes before.
The warm build now builds the library and binary tests of each shard's
crates (`--lib --bins --no-run`) and skips a run of integration tests
alone, whose crate has its library tests built on another shard. The
integration tests take the same dependencies and dev-dependencies, so
the entry still holds every dependency the shards build. Cargo again
warns `unused dependency vectorcraft-testkit` for vectorcraft-cli in the
warm log; only that crate's integration tests use it.
The craft-libs pins take main's rev. Until storytold/craft-libs#5381 merges,
crates/cad/src/blocks_compat.rs writes the block records, BLOCK definitions
and INSERT entities that #5381 adds to the drawing writer.
A Shaper group keeps its source art at the bottom and rebuilds the rest
from it. object.newGroup with a Shaper group as parent at index 0, and
layer.clippingMask.toggle (also a script's clipped = true) on a Shaper
group, put a new object where the source art was. The group then read
no sources and was deleted. Both commands now refuse a Shaper group and
leave the document as it is; the clipping check runs before the edit
opens, so a refused call leaves typing as it is.
Moves every craft-libs crate to craft-libs main 4c330f6, which contains
both 69c746e9 and main's c2a47df pin. The egui (399fc6e) and winit
(3fd7ae6) revs stay as that craft-libs rev uses them, and skrifa stays at
craft-libs 37d0532f until craft-libs#5222 merges.
- A group with fill or stroke rows of its own stays whole, so its members
keep the paint the group draws for them.
- A clipping group whose shown clipped artwork overlaps a locked artboard
stays whole even when its clipping path lies off the artboard, including
when a target inside it is named by `ids`. Hidden artwork, art in pattern
editing mode and runs with `clipGroups` false do not count.
The panel's items sat in a stack that filled the panel's room without
scrolling, so the wheel, touchpad and scroll bar did nothing and items
past the bottom edge could not be reached, in both the list and the
thumbnail view. The stack now scrolls vertically under the library
picker and search field, and the footer stays in place.
A native file's composite font named like an installed font is not lent
while the file's type is measured for placement, so the type is laid out
in the installed font. Adoption still brought that definition in under a
free name such as "Source Sans 3 2" and renamed the type to it, so the
placed type switched to the composite font it was never measured in.
Adoption now skips the source definitions the font database does not
lend: one named like an installed font, or one that fails its own checks.
layers.index(n) and artboards.index(n) returned Not found for a negative
or fractional number before checking whether the collection was stale, so
a script holding a stale collection got the wrong error. Both now check
the collection first, as the art collections' index() does.
The VectorCraft window drew all text without font hinting, because
adopt_context turned egui's hinting off in both themes of each new
context (ui_fonts::hinting_off). With hinting on, skrifa 0.44's
automatic hinter never finished a tall narrow Hebrew letter in a face
without hinting instructions, and the font list stopped responding.
The craft-libs rev in Cargo.toml (37d0532f42, storytold/craft-libs#5222)
carries skrifa 0.44.0 with the blue-zone exit, and the [patch.crates-io]
entry takes skrifa from it. Remove hinting_off and its call, so every
context hints text as egui does by default: interface text and the
samples in the font list and the font picker. Type on the canvas is
drawn from its own outlines and does not change.
a_face_without_hinting_instructions_draws_its_sample now checks that a
context the app adopts hints text in its global, light and dark styles,
and still draws U+05D1 from a face without instructions.
Setting `closed` on a path with no points gives it an empty closed
subpath, so the path's own data keeps the setting. The separate set of
empty paths, its key, its cleanup after commands and its copy in the
command trail were no longer written to by anything. `closed` and
`setEntirePath` now read the closed state from the subpaths only.