Commit Graph
17229 Commits
Author SHA1 Message Date
.CooCoo dfc19ff3a7 Merge pull request #9824 from dotCooCoo/fix/placing-tests-handshakes
Tests: placing tests wait for the read instead of a time window
2026-11-27 21:39:44 -08:00
.CooCoo bc55792941 Merge pull request #9831 from dotCooCoo/fix/mcp-concurrency-handshakes
MCP: concurrency tests wait on handshakes and a test clock, not sleeps
2026-11-27 21:39:31 -08:00
.CooCoo 58c80d22e4 Merge pull request #9823 from dotCooCoo/fix/mcp-refused-connect-no-timing
MCP: refused-connect tests count connect attempts instead of timing them
2026-11-27 21:39:19 -08:00
.CooCoo fc83083fea Merge pull request #9828 from dotCooCoo/fix/plugin-export-cancel-handshake
Tests: cancel the plug-in export test on the exporter's first progress report
2026-11-27 21:39:02 -08:00
.CooCoo 54432ad724 Merge pull request #9818 from dotCooCoo/fix/fold-preview-print-handshake
Fold Preview: time the print's settle wait on the app clock
2026-11-27 21:38:19 -08:00
.CooCoo 94fa38479f Merge pull request #9861 from dotCooCoo/fix/pdf-import-work-counters
PDF import: complexity tests count the work done instead of timing it
2026-11-27 21:38:07 -08:00
.CooCoo a7fb3792db Merge pull request #9858 from dotCooCoo/fix/cad-import-work-counts
DXF import: the symbol-name and layout tests count the work instead of timing it
2026-11-27 21:37:51 -08:00
.CooCoo a628629f7d Merge pull request #9857 from dotCooCoo/fix/file-locks-unlock-on-drop
Locks: dropping a lock holder unlocks its file
2026-11-27 21:37:36 -08:00
.CooCoo 2cabf8ddd6 Merge pull request #9854 from dotCooCoo/fix/cms-scoped-working-settings
Color: with_active keeps the working settings on its thread too
2026-11-27 21:37:24 -08:00
.CooCoo 61f41edbc3 Merge pull request #9851 from dotCooCoo/fix/complexity-tests-count-work
Tests: complexity tests in effects, brush, tools and trace count work instead of timing it
2026-11-27 21:37:11 -08:00
.CooCoo 4947e21b65 Merge pull request #9843 from dotCooCoo/fix/text-tests-no-wall-clock
Tests: text tests count work and wait on handshakes instead of the clock
2026-11-27 21:36:58 -08:00
.CooCoo 990637f30d Merge pull request #9839 from dotCooCoo/fix/plugins-tests-without-timing
Plug-ins: loader, registry and dialog tests wait on handshakes instead of spin counts
2026-11-27 21:36:45 -08:00
.CooCoo 0b07f8b0bd Merge pull request #9842 from dotCooCoo/fix/screenshot-test-app-clock
Tests: the screenshot trial steps the app's clock instead of the wall clock
2026-11-27 21:36:16 -08:00
.CooCoo 8529caaba7 Merge pull request #9855 from dotCooCoo/fix/dimension-preview-bounds-group-edges
Dimension: Linear points snap onto preview bounds edges, groups and stroked type
2026-11-27 21:36:07 -08:00
.CooCoo 77a609eed6 Merge pull request #9820 from dotCooCoo/chore/craft-libs-pin-51fcc3b0
Dependencies: take every craft-libs crate from craft-libs main at 51fcc3b041
2026-11-27 21:35:36 -08:00
.CooCoo 35e192f177 Merge pull request #9836 from dotCooCoo/chore/wasmi-2-0-3
Plug-ins: a multi-value br_table gives every target its values (wasmi 2.0.3)
2026-11-27 21:15:11 -08:00
.CooCoo 3737ccdc9a Merge pull request #9838 from dotCooCoo/fix/script-folder-scan-clock
Scripts: folder listings take their time limit from the session's clock
2026-11-27 21:14:30 -08:00
.CooCoo dd6a8b6123 Merge pull request #9834 from dotCooCoo/fix/plugins-abi-tests-no-wall-clock
Plug-ins: hostile, time budget and cancel tests check errors, not elapsed time
2026-11-27 21:13:04 -08:00
BFlat edc4fe00fa Merge pull request #9716 from dotCooCoo/fix/graph-design-manager-draft-drawing
Keep Graph Design manager edits with their drawing
2026-11-28 11:20:47 +07:00
BFlat 783f541183 Merge pull request #9715 from dotCooCoo/fix/placement-preserve-translations
Translate Preserve choices in Placement Options
2026-11-28 11:20:33 +07:00
BFlat adc4ec0e66 Merge pull request #9714 from dotCooCoo/fix/color-themes-commit-choices
Color Themes: apply dropdown changes only on commit
2026-11-28 11:20:18 +07:00
BFlat 7ee99a0ef0 Merge pull request #9713 from dotCooCoo/fix/text-import-options-after-accepted-place-mac2
Remember Text Import settings after Place accepts
2026-11-28 11:20:04 +07:00
BFlat ba613b1167 Merge pull request #9711 from dotCooCoo/fix/arrange-tools-hosted-form-edits
Apply edited settings in the Arrange add-on dialogs
2026-11-28 11:19:50 +07:00
BFlat 54a3e18cf9 Merge pull request #9710 from dotCooCoo/fix/xmp-property-read-fuel
Charge fuel before reading XMP property values
2026-11-28 11:19:37 +07:00
BFlat e5f02d3220 Merge pull request #9709 from dotCooCoo/fix/variable-drafts-after-file-revert
Require fresh Variable and Data Set edits after File Revert
2026-11-28 11:19:25 +07:00
BFlat b6ae850283 Merge pull request #9706 from dotCooCoo/fix/swatch-legend-live-form-fields
Apply live Create Swatch Legend settings
2026-11-28 11:19:11 +07:00
BFlat 29860cebec Merge pull request #9702 from dotCooCoo/fix/new-toolbar-typed-name
Show and apply names in New Toolbar
2026-11-28 11:18:57 +07:00
BFlat cd4dfe2d63 Merge pull request #9657 from dotCooCoo/fix/blend-options-opening-drawing
Keep Blend Options previews and approval on their opening drawing
2026-11-28 11:18:44 +07:00
BFlat e548209fca Merge pull request #9626 from dotCooCoo/fix/standalone-effect-opening-drawing
Keep standalone effect edits in their opening drawing
2026-11-28 11:18:28 +07:00
BFlat 2257e51824 Merge pull request #9625 from dotCooCoo/fix/graphic-style-options-refusal-locale
Localize Graphic Style Options duplicate-name feedback
2026-11-28 11:18:13 +07:00
BFlat f59a5a1892 Merge pull request #9621 from dotCooCoo/fix/panel-artwork-drop-file-revert
Reject panel artwork drags started before File Revert
2026-11-28 11:18:00 +07:00
BFlat 46e9359bea Merge pull request #9509 from dotCooCoo/fix/transform-each-opening-document
Keep Transform Each in its opening document
2026-11-28 11:17:31 +07:00
BFlat fca7b7811d Merge pull request #9489 from dotCooCoo/fix/ui-slice-dialog-selection
Keep Slice Options and Divide Slices on the original selection
2026-11-28 11:17:12 +07:00
BFlat 3db1b3c96a Merge pull request #9660 from makesomethingshit/fix/7872-convex-inside-bevel
3D: Keep inside bevels within collapsing convex outlines
2026-11-28 11:13:55 +07:00
BFlat 1bc87afc7b Merge pull request #9796 from jmverges/fix/ai-save-type-spot-ink
.ai save: type in a spot ink keeps its swatch link
2026-11-28 11:12:55 +07:00
BFlat 1411d28618 Merge pull request #9782 from jmverges/fix/ai-type-spot-ink
.ai import: type set in a spot ink keeps its ink
2026-11-28 11:12:05 +07:00
BFlat 721582b419 Merge pull request #9813 from jmverges/fix/pdf-stencil-hard-mask
PDF export: a black-and-white colorized image is never smoothed
2026-11-28 11:11:43 +07:00
BFlat efdb0fbfe5 Merge pull request #9757 from Hassan1305/fix-9227-offset-pasted-clip
Paste: a pasted copy of a clipping path is an ordinary path, so Offset Path works on it (#9227)
2026-11-28 11:10:32 +07:00
BFlat c693786275 Merge pull request #9759 from Hassan1305/fix-9320-random-uniform-scale
Transform Each: Random with the same horizontal and vertical scale keeps proportions (#9320)
2026-11-28 11:10:18 +07:00
BFlat 1e413f5368 Merge pull request #9845 from dotCooCoo/fix/placed-document-tests-without-timing
Tests: placed document tests wait on handshakes instead of timers
2026-11-28 11:02:05 +07:00
.CooCoo e883b8a49c Merge pull request #9789 from dotCooCoo/fix/fontlist-test-global-fonts
Tests: the font list tests hold back other threads' font changes
2026-11-27 19:58:32 -08:00
.CooCoo 4c376b6914 Merge pull request #9790 from dotCooCoo/fix/canvas-tests-profiles-generation
Tests: ui-egui tests that load a color profile run in their own process, so the profiles generation stays fixed
2026-11-27 19:57:48 -08:00
dotCooCoo c72b9c8f7a Color: with_active keeps the working settings on its thread too
cms::with_active put its settings in place of the active settings on
its thread, but cms::working() still read the process-wide working
settings. Code inside with_active could therefore read active settings
from one context and working settings from another, and a set_active
on another thread changed the working half while the scope ran.

Inside with_active, working() now gives the working settings of the
context it was given: the ones for_document put a document's profiles
in place of, else that context itself. use_document_profiles and
for_document still read the process working settings, because they
install or keep process-wide contexts. Outside with_active nothing
changes. The app calls with_active only with for_document contexts
(canvas panes and the color mode change on open), whose working
settings are the process ones, so the app reads the same working
settings as before.
2026-11-27 19:56:23 -08:00
dotCooCoo 61d4c573c1 DXF import: the symbol-name and layout tests count the work instead of timing it
many_by_block_looks_import_in_linear_time and
many_paper_layouts_are_read_in_linear_time checked for quadratic work by
timing the import (under 4 and 5 seconds), so a slow machine could fail
them and a regression that stayed under the bound passed. They now count
the work in test builds:

- the names `unique` tries for a new symbol: 4,000 symbols named by one
  block try fewer than 8,000 names (8,002,000 without the per-label
  suffix memo);
- the layout names the paper-layout de-duplication compares: 10,000
  layouts compare at most 10,000 (49,995,000 with a list in place of the
  set).

The counters are thread-local cells under cfg(test); release builds do
not count.
2026-11-27 19:07:30 -08:00
dotCooCoo b3917f89e8 Locks: dropping a lock holder unlocks its file
The plug-in store turn, the Data Recovery area hold, the script grants
lock and the hang report file each released their file lock only by
closing the file. The lock stays held while any copy of the handle is
open, and a child process that any thread starts holds a copy until it
runs its program. While one was starting, the next turn on the plug-in
store waited, an app found its own recovery area busy, a grants change
timed out, and the next launch left a hang report alone.

Each holder now unlocks the file when it is dropped, as #9837 does for
the nightly session and the GPU start file. The engine's three locks
share one type, `store::LockedFile`. A left hang report that a launch
locks to read is held the same way.

Each new test keeps a copy of the handle open, drops the holder and
takes the lock again.
2026-11-27 18:58:40 -08:00
dotCooCoo 2fc711da77 Dimension: Linear points snap onto preview bounds edges, groups and stroked type
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.
2026-11-27 18:55:32 -08:00
dotCooCoo 5466829792 PDF import: complexity tests count the work done instead of timing it
The four tests of the pre-open stream scan and the page hash test
asserted elapsed time (5 s and 60 s), so a loaded machine could fail
them and a slower but still bounded scan could pass them.

- streams.rs: a test-only counter adds up the bytes the scan looks at:
  in each helper that walks the file, in each charge to the scan's
  budget, and once for each step of the main reading. The tests assert
  at most 32 bytes looked at for each byte of the file. The largest
  case today looks at 21.
- editing.rs: a test-only counter adds up the page content the hash
  decodes. The test asserts no more than the hash limit plus the one
  stream that goes past it.

Each counter assertion fails on a broken version: strings read to the
end of the file instead of 64 bytes (131,076 bytes a byte), each
stream keyword reading back 64 KiB (7,937 bytes a byte), and every
page decoding the shared stream again (300 MiB decoded).
2026-11-27 18:03:03 -08:00
dotCooCoo baad987df5 Tests: complexity tests count work instead of timing it
Eight tests in effects, brush, tools and trace bounded their run time
with Instant::elapsed. Each now counts the work the bounded code does
and asserts that count instead:

- effects: the subpaths Offset Path offsets after Transform copies
  move behind it (1 for the rectangle, 5 for five leaves)
- brush: the calls a misbehaving bend map gets, at most what the
  fitting depth and the chord count allow
- tools: the points Liquify's simplify measures (five per anchor) and
  the anchors it moves (one each), and the objects the eyedropper's
  hit tests may visit (within the work limit)
- trace: the named logo colors compared with those kept (ten per
  color), the lookups that drop repeated swatches (one each) and the
  swatch colors compared with the picture's colors (each distinct
  swatch once per color)

Each count fails when the bounded step is removed or made to repeat.
2026-11-27 17:58:50 -08:00
dotCooCoo 6e88608a4d Plug-ins: loader, registry and dialog tests wait on handshakes instead of spin counts
The plug-in loader, registry and dialog unit tests decided their results with
yield-count spins (up to 100,000,000 tries) and a 10 s recv_timeout. On a
loaded machine a spin could run out before a worker sent, and a test failed
without a fault.

- Loader tests block on the workers' outcome channel (Loads::record_next) and
  on the jobs' start channel. The stuck-thread tests keep the outcome channel
  of the dropped load and receive the stuck job's outcome, which its worker
  sends after it stops counting the thread as stuck. The window test checks
  that taking outcomes leaves the start limit where it was.
- The registry revision test holds the set and waits for a hook that install
  runs right before it asks for the write lock. The folder-order test drives
  the load on the test thread and receives the other two files' outcomes
  while the first file waits.
- The dialog test counts the conditions Manifest::visible checks and fails
  once it checks more than one per named parameter, so a check that does not
  end fails the test.

Every assertion is kept.
2026-11-27 17:11:33 -08:00
dotCooCoo 90749b1646 Tests: text tests count work and wait on handshakes instead of the clock
Six tests in vectorcraft-text passed or failed on how fast the machine
ran them. They now check work counts and handshakes:

- Layout speed (1,000 characters, and 10,000 under each composer):
  laying out twice the text takes at most 2.5 times the steps, and at
  most 32 steps a character. The steps are the bytes shaped, the clusters
  the single-line composer reads and the line starts the every-line
  composer weighs at each break, counted by a test-only counter.
- Many one-run paragraphs: the runs the paragraphs look through stay
  within 4 per paragraph.
- A contour-point caret on a huge composite reads no more glyphs than
  the lookup's budget, and a shape whose readings all fail tries no more
  readings than the cap.
- The font menu's quick list is read on the test thread while the font
  scan is held. A list that waited for the scan would hold the installed
  fonts, so the list's content decides the result. The 10 s timeout only
  releases a call that hangs.

Two font folder tests slept 50 ms to get past the file system's clock
tick. They now set the folder's modification time with
File::set_modified.
2026-11-27 17:10:42 -08:00