Commit Graph
3 Commits
Author SHA1 Message Date
aiongg 722cb812ef Split scripts: whole use trees in the trait check, re-exported traits through globs, inner attributes nest, mod.rs unit names, inline modules named from other files, assigned .ok() results count (review on #16587) 2026-11-24 02:41:56 +00:00
aiongg 4653c2a2a3 Engine split scripts: step 8 crate map, review fixes, move_tests appends and copies only what moved tests use
crates.tsv: the vector cut moves 13 command modules; the 11 shared engines
(float, frame, slice, symmetry, transform, type, type_extra, type_spell, warp,
smart, vector) map to model and stay in core until step 12; notes'
stored-values tests move with notes.

engine_cut.py: super:: paths are rewritten only at a moved file's own depth;
trait imports are added per module scope; import names come from whole use
trees; branch moves TABLES entries into the crate's install.rs before removing
them from core and finishes the moved files at their new paths; a widened name
keeps its use statement's cfg; single-name groups widen as whole imports;
re-exports from lib.rs resolve from the crate root.

move_tests.py: an existing target module gets the new tests appended (in a
module of their own when a name would clash or the file is organised by
source file); helpers are copied as written, and only those the moved tests
name unqualified; trait imports stay only when a method of the trait is
called; path rewrites skip string literals; ci-test-times remaps only this
run's tests, without duplicate rows; list reads the crate's spec functions for
its ids, ignores ids whose result is dropped, and lists test functions at the
top of production files, which move without their production siblings;
test-module parents are found inside inline modules; cleanup touches only the
modules the move emptied and keeps those other code names; --previous needs
--old-ref.

install_tables.py matches a table's full module path to its crate;
table_fragments.py reports a branch-added entry whose handler is in a crate the
predecessor's fragment can't reach.
2026-11-23 22:41:12 +00:00
aiongg a7fd5975a5 Engine split step 7: core tests that run paint commands move to the top crate's tests/it (move_tests.py and its output) 2026-11-23 15:06:31 +00:00