mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 09:42:01 +00:00
The random histories ran in worlds of two or three components nested at most two levels, each with two copies, where ordering and propagation bugs that need deeper nesting or many copies of one main cannot show. The scale programs build three or four components nested three or four levels, with three to six copies of each, a larger shape budget, and every variant operation. A world takes its number of copies per main (two by default). Scale programs run several times longer than the others, so the suite draws twelve; the gates draw more. Test: random-scale-compositions. Common suite: 2444 tests, 0 failures. Harness only; the benchmark is not run. Also in this commit: - Model a head size as authored only when a sync resizes its copy. The model took any resized copy parent of an untouched swapped head as a sync resize and expected the head to author the size it was given. A user resize of a nested copy authors that copy's geometry and scales a swapped head under it through constraints, which production leaves untouched. The model now finds the topmost ancestor the step resized and authors the head's size only when that ancestor is a copy shape without authored geometry, the only shape a sync resizes. - Keep the layout item overrides of a swapped head in the model. A swap restores the swap-keep-attrs of the old head on the new one with the touched groups they belong to, on every swap. The model kept the old head's layout item groups only on a variant switch, so after a plain swap of a head that authors a margin it expected the new head without that override. It now keeps them on every swap. - Align the arguments of the combine test fixtures. The same-name combine fixtures in the variant workspace tests call their helper through the `ctho` alias, one character longer than develop's `tho`, so their continuation lines sat one column left of the first argument and the frontend format check failed. AI-assisted-by: claude-opus-5-5