Repository navigation
Naming corpus test: the eight .sc designs it skipped are built and checked - #20793
Conversation
…ecked The test looked for .solidcraft files in tests/action_matrix/designs and in the engine's test fixtures, but both folders hold only .sc files. Their eight designs were never built, so neither the naming checks nor the same-bytes check covered them. The test now lists their .sc files and opens any design file through doc.open, which reads a container and a JSON design alike. All eight pass. The list of heaviest designs is measured again. Five of the new designs take about 5 to 12 s. Oracle 77 now takes 1 s instead of 35.6 s, and seven designs added since then take 7 to 30 s without being listed. The test hands the listed designs out first, so the slow ones no longer start last. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…re taken Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Change
The naming corpus test builds every design kept in the repository twice. It checks three things. Both builds must give each face and edge the same name in the same place. Every name a feature stores must still find its face or edge. A design saved as JSON, opened and saved again, must be the same bytes, so a design kept in Git changes only where the design changed (same text on every save, issue 626).
The test looked for
.solidcraftfiles intests/action_matrix/designsandcrates/engine/src/tests/fixtures. Both folders hold only.scfiles, the extension new designs have used since designs save as .sc, PR 7325. So their eight designs were never built, and none of these checks covered them.The test now lists the
.scfiles of both folders. It opens any design file throughdoc.open, which reads a container and a JSON design alike. All eight designs pass every check.Five of the eight take about 5 to 12 s to build, so the list of heaviest designs is measured again. The test hands those designs out first, so a slow design does not start last and hold up the end of the run. The old list was out of date.
oracle/77-fillet-variable-lineartook 35.6 s and now takes 1.0 s. Seven designs not on the list took 7 to 30 s. The new list has the 23 designs that took over 3.5 s. Every other design took under 3 s.Changes a default: no
Test change: the test looked for
.solidcraftfiles in two folders that hold only.scfiles. Its list of heaviest designs was measured before seven slow designs came in and before oracle 77 got 35 times faster.Validation
All runs were on Windows 10 with the
ciprofile, in a worktree with its own build folder.cargo test --profile ci -p solidcraft-cli --test naming_corpusfails as it does onmain, now with "4 of 179 design(s)". That is 171 designs as before plus the eight. None of the four failures is a new design.oracle/83-boundary-loop-thickendoes not load. That is why the test is intests/KNOWN_FAILING_TESTS, and it stays there.examples/regressionsdo not load either (seeds 73, 158 and 185). They come from the boolean tolerance work on fuzzer failures, issue 10. Seeds 73 and 185 already have ignored engine tests for the same failures. The known-failing listing hides them in this test.cargo xtask ciat this branch, onmainat a550f2e with the gate fix, 20675 applied (thatmainstopped the gate before the tests). The format and clippy steps pass. The test step fails 51 tests. 26 of them fail the same way on thatmainon Windows. The other 25 are timing and local HTTP tests in other crates (agent chat, plugins, render, a file replace that waits for a reader, a cancelled computation), and they failed while other builds loaded the machine. This PR changes only the naming corpus test file, which none of them uses.The results of the eight designs come from a local copy of the test (not committed). It printed each design's counts and timed
loadandbuildwith one worker. For each design, every stored name finds its face or edge, the two builds name everything alike, and the JSON save, opened and saved again, is the same bytes. None of the four containers holds binary data, so the same-bytes check runs on all eight.The heaviest list comes from the same local copy, run with one worker on every design that took over 5 s in a full parallel run (38 designs). The slowest design not on the new list took 2.9 s.
Screenshots of the behavior (when observable)
There is nothing to show in the app. This changes one test only.
Integration status
Based on upstream
mainat a550f2e, with no conflicts. Newermaincommits do not touch this file. The PR that cutscargo xtask testto 10 minutes, 19676 also editsHEAVIEST. It leavesoracle/77-fillet-variable-linearout of the corpus because that design took 35.6 s, but it now builds in 1.0 s. Whichever PR lands second needs a small merge in this list.🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Documentation