scripts/ci-clear-rolling-cache.py:
- The 160-minute wait is timed from the cache warm leg's start, not from
the script's start. The clear job starts with the run, and the leg
starts after gate / select legs and a free runner. The job's timeout
goes from 170 to 200 minutes to leave room for that delay.
- The leg counts as saving when its Post Setup step (the gate-setup
action's cache save) starts, not when any Post step starts. A leg that
ends canceled or failed before that step succeeds deletes nothing and
exits 1, as a leg that failed before its save already did.
- actions/caches is read one page at a time, sorted by creation, until a
page holds fewer than 100 entries.
scripts/ci-clear-rolling-cache-tests.py checks the script with recorded
API answers, and Nightly check runs it when either file changes.
With Use Preview Bounds on, a Linear point landed only on the four corners
of the preview bounds of a path or compound path. A group's own stroke or
effects and stroked type widen the bounds that W and H show, but gave no
corner to pick, and a click beside a stroked edge snapped to the stroke's
centerline.
- Stroked type, and a group or layer with fills, strokes or effects of
its own, now give the corners of their preview bounds. A group's corner
is held against the member path whose own box reaches nearest to it. A
point on type has no link and stays where it was picked. A group or
layer holding dimension artwork gives no corner, since its bounds take
in the dimensions.
- A click that no anchor, corner, line end, guide, grid or pixel snapping
places lands on the nearest point of an edge of the preview bounds
within 8 pixels when no segment or dimension line is nearer. The point
is held against the path holding the edge's nearer corner.
- Group members count against the same per-move member work as compound
paths; a group holding more than one move may read is not read again
for that revision.
Docs: docs/dimensions.md, docs/target-app-parity.md.
a_read_stops_at_its_limit and a_copys_data_is_sent_through_the_pipe_and_closed
send more than a pipe holds through a default `Sends`, whose idle limit is
the app's 2 s `IDLE_WAIT`. When the test thread took more than 2 s between
reads, the send gave up: the first test then got the bytes sent so far
instead of the "larger than 2 MiB" error, and the second got only part of
the data.
Both tests now send through `Sends { idle: LONG, .. }`, as
pastes_that_read_nothing_hold_a_few_sends_at_most does, so each send ends
when the reader takes the data or closes the pipe. The second test still
checks that a default `Sends` uses `IDLE_WAIT`. Every assertion is kept.
The render crate's placed-document tests decided results by wall-clock
time:
- The gate that holds the background worker opened by itself after 10 s,
so a test that forgot to open it still passed. It is now a mutex and a
condition variable with no time limit, opened when the guard that
shut_gate returns is dropped (also when the test fails).
- settle polled busy() every 5 ms for up to 10 s. It now waits on
placed_document::wait_idle, which a condition variable signals when
the last pending bitmap is finished.
- The self-placing document test asserted that drawing took under 10 s.
It now asserts how deep the drawing went (at least 2 levels, at most
MAX_DEPTH), read from a test-only counter kept by the depth guard.
After Rust stable moved to 1.100.1, main's cache warm leg built cold
and was canceled at the 90-minute timeout with three steps still to
run, so no entry was saved and every leg stayed cold. The legs now get
150 minutes, and the cache prune watch runs for 160.
The nightly cold run restores nothing, so the old rolling entry and the
new one would be in the cache together while it saves, over the 10 GB
limit. A cold cache clear job deletes the old rolling entries when the
cache warm leg starts saving (scripts/ci-clear-rolling-cache.py). It
deletes nothing when the leg fails or is canceled, and fails itself so
that re-running the failed jobs runs it again with the leg.
cache-prune.yml prunes after every CI attempt on main, so a re-run of
the cache warm leg does not leave the entry it replaced in place.
Three tests in crates/plugins/tests/abi.rs passed or failed on how long a
run took (under 5 s or 3 s), so a slow or loaded runner could fail them and
a fast one could hide a run stopped by the wrong limit.
- hostile_modules_fail_within_their_budget (was _fail_quickly) checks each
module's error. The endless ones must end with the instruction budget, so
a run stopped by the 60 s time budget fails the test.
- wall_clock_budget_stops_runaway_plugins gives an endless loop two slices
of instructions: with a time budget of 0 it ends with the time budget at
the end of the first slice, and with the default one it ends with the
instruction budget.
- cancelling_stops_a_run_between_two_slices_of_its_budget gives the loop
two slices: cancelled, it comes back Cancelled; not cancelled, the same
plug-in ends with the instruction budget.
Each test fails when its check in Plugin::call_with is removed.
script::folder::list and script::startup::list measured the 250 ms
listing limit (MAX_SCAN) with a real Instant. script.listInstalled,
script.startup.run and the File > Scripts menu read the folders through
them, so a test that went through any of these got a truncated listing
and missing scripts whenever the disk stalled for 250 ms.
- folder::Clock is either Wall (the real time since the listing started,
the default) or Fixed (the same time at every check). Both list
functions take one.
- Session::set_script_listing_clock sets the clock the two commands and
the menu's listing job use; the app keeps the real clock.
- The script folder, startup script, scripts menu, script run and Safe
Mode tests list with a fixed zero time, so a slow disk cannot cut a
listing short. Direct listing calls use the test file's list helper.
- New tests check that script.listInstalled, script.startup.run and the
menu stop at the session's clock once it is past the limit and list
everything at the limit.
All storytold/craft-libs crates and the hayro, krilla and linesweeper
patches move from b0d422cf0c to 51fcc3b041, the head of craft-libs main
(craft-libs#3718). craft-libs main now holds what was on next, so the
pin follows main as AGENTS.md rule 10 asks. The move brings the .cmx
writer (craft-libs#2807) and the macOS Save sheet Format menu
(craft-libs#3565). xtask pdf-deps expects the new rev.
The egui patches move from b15ffe9bfc to 932a73b285, the egui rev
craft-libs main pins: craft-ui-contract at 51fcc3b041 calls
Context::set_pointer_move_gate and Context::widgets_at, which
storytold/egui adds after b15ffe9bfc.
App changes the move needs:
- AppShell's title, options, status and hint slots take a version
function (craft-libs c417cd3050). Each passes |_| None, so every slot
still runs in every pass.
- PartResult::hover_pos is private (craft-libs 27e8a77145). The track
cube reads the pointer through Cx::hover_pos, which is None when the
cube is not hovered, as the old filter on hovered was.
- craft_dxf::write_binary returns a Result (craft-libs#3347, binary DXF
writing fails on an invalid integer). The binary DXF import test
unwraps it.
Test changes the move needs:
- An inline slider field now shows its slider before its number field,
and both carry the field's name (craft-libs#3553). The panel harness
types into the number field, the part that takes typing, and the
plug-in effect test reads the number field's value.
- A painted tool cursor's marks use the overlay.cursor token (craft-libs
a830ff539b), so the cursor test looks for that color.
- The Keyboard Shortcuts area tabs are named by their visible label,
"Show:" (craft-libs 702cb295c6).
- The gradient stop's color mode menu now opens over part of the stop
editor. The test clicks the Web Color Sliders row where it lies
outside the editor, as before, and keeps the same checks.
Cargo.lock adds what the new craft-libs crates depend on
(craft-control-protocol, craft-font-os-windows, ed25519-dalek and its
dependencies, jpeg-encoder 0.7.1 for craft-image-codecs).
wasmi 2.0.0 miscompiles a multi-value br_table whose targets take the
same values when another operand sits under those values: the targets
read their values from slots the branch never wrote
(https://github.com/wasmi-labs/wasmi/pull/2106, fixed in 2.0.2). A
plug-in that branched that way got wrong results. 2.0.1 to 2.0.3 also
fix other miscompilations, a use-after-free on resuming a call on
another store, and memory.grow past a declared maximum bypassing the
resource limiter
(https://github.com/wasmi-labs/wasmi/blob/main/CHANGELOG.md).
Only Cargo.lock changes: the workspace requirement "2.0.0" allows
2.0.3, and wasmi 2.0.3 still uses wasmparser 0.228.
The new abi test runs such a branch table for each of its targets; it
fails on 2.0.0 with the plug-in's unreachable trap.
The integration binary from #8826 draws the Links panel's Location case in
French and German, and in an integration binary the UI language is one
value for the whole process. Under `cargo test`, which runs the cases on
threads of one process, the other five cases drew frames in French or
German, or reset the language to English under the Location case. Taps
then missed the moved readouts, and two cases failed on each run (on the
Location case and on the first-click copy cases). nextest runs each case
in its own process, so CI passed them.
Each App now holds the same language guard as control_bar_corners.rs and
selection_tools_toggle.rs: the cases run one at a time and the previous
language comes back when the app drops.
Turn on the shared gate's cache-workspace-crates. Each main run's
cache warm leg saves a rolling entry that also holds the workspace
crates' compiled libraries and test executables, and every leg restores
the newest one, so a pull request's shards rebuild only the crates its
changes reach. A cache prune job keeps one rolling entry on main, and a
nightly cold build restores nothing and starts the entry afresh.
Nine clipboard tests passed only when the test worker answered within
the app's own read limits (2 s for text and file lists, 10 s for a
paste's bitmap): on a loaded machine a slow answer failed them.
The read limits are now a `Waits` value that each `Loads` carries, set
to `Waits::APP` (`LOAD_WAIT`, `IMAGE_WAIT`) where the app opens its
clipboard. A read kept for a later paste takes the same limits, and
the core protocol's paste and reads use them instead of the constants.
Tests pass `Waits::UNTIL_ANSWERED`, so each wait ends when the answer
comes, the owner is released or the worker stops. A wait past the
clock's range has no limit. The values the app uses are unchanged.
The tests' own 5 s and 600 s waits are also unbounded now. Every
assertion is kept.
A 1-bit image mask opens as a grayscale image of black and white pixels
colorized by its fill color. The PDF export wrote it as its ink with the
pixels as an 8-bit soft mask and /Interpolate true on both. A RIP that
honors /Interpolate smooths the mask and grays its edges, so where the
same mask is drawn over itself in another ink, as separated garment art
stacks its plates, the ink below shows along every edge. The file's own
PDF part and the EPS export keep the mask hard.
A colorized image whose coverage is only 0 or 255 (the test the
Monochrome compression settings already use, now
`images::bilevel_coverage`) is written without /Interpolate. Grayscale
images keep it. krilla has no 1-bit soft mask or /ImageMask, so the
mask stays 8-bit and just isn't smoothed.
The pixelated colorized image test now uses gray pixels, since a
black-and-white image no longer asks for smoothing whether or not it is
pixelated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three tests in crates/engine/src/tests/fontlist.rs read the process-wide
font database twice while other tests in the same binary add fonts and
composite fonts to it. A font added between the two reads made the
lists differ, and the installed-family filter did not hide it, because
fonts added with `add_font` count as installed. A stress run of the
engine's font tests failed 4 times in 60.
The font list, Show Similar Fonts and Refresh Font List tests now hold
`test_fonts::steady_fonts` across their reads, as the font menu's tests
do, and compare whole lists. The installed-family filter and the 20-try
generation loop are removed.
The styles that link type's colors to their swatches were made before
the writer knew whether the type's story would be written. Type written
as its outlines after all (a thread the text document can't hold) left
its style behind, named by nothing. Such a style is now written only
when a story names it.
Since the previous commit they are written on a large canvas too,
where no other art style is: they hold no lengths to scale. The large
canvas warning now says "no art styles of objects", the comment beside
it says why, and the large canvas test (renamed) checks that spot type
there reads back linked with no warning.
A note on the previous commit's message: "the saved file opened with
the type in a plain process color" is only true when the saved file is
read from its editing data (another app, or VectorCraft once the
VectorCraft document it carries no longer matches its pages). A plain
reopen in VectorCraft restores that document and already kept the ink.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>