Every gate since 20 Nov 00:38 UTC except one has been stopped mid-link
with "The runner has received a shutdown signal" (exit 143), on main and
on pull requests. Turn on the shared gate's dev-strip input, as photocraft
does, so the ~100 test binaries link without line tables or symbols.
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The gate's one job builds all 106 test binaries on a 4-CPU, 16 GB runner,
and it is often stopped with exit code 143 ("The runner has received a
shutdown signal") during that build. ci.yml now runs the gate as five
legs:
- Shards 1 to 4 run `cargo xtask ci shard`, which builds and runs the
tests and doctests of its own crates: ui-egui, engine, the apps with
mcp and xtask, and every other crate.
- Shard 5 runs the other `cargo xtask ci` steps.
- On pushes to main, a `cache warm` leg runs `cargo xtask ci warm`,
which builds what every shard builds and saves the dependency cache.
`gate (ubuntu-24.04)` passes only when all five legs passed.
`cargo xtask ci` with no argument runs every step, as before.
`cargo xtask shards` lists each shard's crates. It fails when a crate
named in xtask/src/shards.rs is not a workspace member or is named
twice, and when a crate builds with other features in its shard than in
`cargo test --workspace`. Every shard runs it first. vectorcraft-affinity
and vectorcraft-pdf now turn on `synth` and `read-count` in their own
dev-dependencies, which vectorcraft-engine's dev-dependencies turned on
before. Without that, 39 tests of affinity's `it` binary do not build in
a shard without the engine.
The gate also sets dev-debug "0" and dev-strip: true, so the workspace
crates build without line tables and the test binaries without debug
info or symbols.
* eps: delegate scene-writer shading, image stream, and line style syntax to craft-ps
* chore(eps): repin craft-ps to merged craft-libs main (cfcc86242)
- eps: restore linear-time memchr::memmem::find in lex::find so
search_in_a_loop_runs_out_of_the_budget does not hit O(N*M) under
craft_ps::read::lex::find.
- ui-egui: wait for FontDb background scan and ensure >20 font families
in menu_access_stationary_pointer_repeat_and_rerun_do_not_retarget_or_double_invoke
so coverage/minimal runners do not race or fall short of 20 families.
When the rest of a line after a mark that a split left first starts with
another mark, that rest is no longer measured for tracking. Its own pass
leaves the mark out and measures the glyphs after it, so the earlier
measure was thrown away but still took from the measures shared by every
line in the call. A run of marks could use them up, and a tracked line
retyped with them then lost its tracking and split glyph by glyph.
A drawn bar, dot or ring can be the same shape as a combining mark in
one of the loaded fonts, and Retype turned it into point text that held
only that mark. On Linux, once other tests had loaded the system fonts,
the 80x40 rectangle in a_drawn_shape_is_reported_and_left_alone matched
U+05BD in DejaVu Sans Bold, so that test failed in full runs of the
engine's tests.
- When a shape would start a line and its first 16 matched glyphs
include another character's glyph, in its own font or another loaded
one, it starts the line as that character. A line's first shape is
not turned into a mark to take the glyph after it.
- When all of them are marks, the shape stays an outline and is listed
in unmatched, and the glyph after it starts the line. A lone
one-contour glyph after it (a dot after a bar) is judged alone, as on
its own.
- A mark left at the start of a part split off where type stops
drawing the outlines in place becomes the other character its shape
matches, on a line of its own, or else stays an outline. The glyphs
after it are measured for tracking again without the mark's gap.
- A mark that follows another glyph on its line is retyped with it, as
before.
- type.retypeFonts does not list a font whose glyphs match the shapes
only as combining marks.
Docs: docs/mcp.md and the params text of type.retype and
type.retypeFonts.
A negative tracking candidate for glyphs that do not paint as one object returned the untracked line and discarded the best tracked reading found from an earlier seed. It now skips that candidate and tries the next.
The monitor list for floating panels now carries each monitor's work
area: rcWork from GetMonitorInfo on Windows, and visibleFrame on macOS,
turned into the top-left origin and physical pixels of the monitor's
rect. The work area is converted to points with the same scale and zoom
as the rect, and craft-ui uses it to decide whether a reopened panel's
title bar can be grabbed and where to move it. A work area with no width
or height is left out.
Restoring the main window now keeps it inside its monitor's work area
too, so a window saved at the top edge of a monitor with a taskbar along
its top opens below the taskbar, and a window taller or wider than the
work area is made to fit it, with room for a system title bar and
border when the window has them.
On Windows the panel list stays empty when the monitors have different
scale factors, as before, and a build without the wgpu feature reads no
work areas. Linux and the BSDs keep the whole monitor rect.