Repository navigation
Conversation
…binding (D93's second pass was the compiler's whole second Sema) D93 checks a program twice when a literal's binding takes its type from its uses: the first check hears the demands, the second retypes the bindings. The compiler's own source records such demands, so every compile of the compiler ran sema.bodies twice (WITH_PROFILE on main's release compiler: 31.9 s + 32.1 s of a 70.7 s frontend.sema; on main's stage1, 175.8 s). Every demand there names the type the binding already has, so the second check reproduced the first exactly. The frontend now runs the second check only when some demand's type differs from the binding's first-check type (`typed_binding_types`); two demands that disagree differ from the binding in at least one, so the two-demand error is still reported by the second check. Measured on stage1 of this tree: frontend.sema 85.6 s against 175.8 s for main's stage1 on the same input, one sema.bodies pass, verdict `ok`. The 20 fixtures naming D93, D126, D128 or §4.3c pass.
… the machine (WIP, measured next)
…usTest and Action target is a lane; non-Action workers read the cached graph; inner test width by running lanes
…-deps runs a corpus-test target (a lane's worker)
…er; lane indices are isize
…size, mtime), not cleared per target: a lane's dispatch no longer rehashes the 170 MB stage compiler
…he effect record hashed a 170 MB compiler on every spawn)
…attery ledger, green-store fallback); battery: uat runs beside battery-checks and the ledger is published to the green store
… fixture at once); the --no-deps expectation names corpus-test targets
…rget) and the survey; whole-compiler checks under load get hang guards, not speed budgets (#2371)
…, so the battery names one target under any driver (#2330)
|
Battery green on f7685cb under the pinned seed ( |
|
Correction to the 554.5 s figure above: that run cleared target states and the build store but not the test runner's per-file verdict cache, which is keyed on the compiler binary; the compiler was the same as the run before it, so the big suites were cached (behavior-tests 6 s). A run where the compiler changed, which is what a source PR sees, took 728.6 s with the next layer's driver (behavior-tests 300 s, native-compile-error-tests 145 s, internals-tests 100 s). The remaining long pole is the big test suites: a lane gets its inner test window once, at spawn, so a suite started into a full pool runs about two files at a time to the end. The next layer adds a machine-wide test-process budget (a jobserver) so a long suite takes the slots others free. |
Build time is Eric's #1 priority. This stack takes the full battery (gate + uat + survey) from about 75 minutes to 554.5 s (9.2 min) cold, measured with this branch's driver. The driver is the pinned seed, so the scheduler and the build-library fixes reach the battery after the seed is cut from this merge and
seed.lockis bumped (next PR).What each commit fixes, found by timing the runs, not by guessing:
allow_paralleltarget drained the worker pool. It now schedules by readiness over the whole graph, every Test, RunCorpusTest and Action target is a lane, finished lanes retire out of order, and the ready lane with the longest remaining path starts first (from the battery's time ledger, published to the green store).tool_effect_tool_identity), serially, beforepar_runcould start the next: 1.2 s per spawn. Now hashed once per process.build :battery: gate,battery-uat, survey), so no phase waits for the slowest lane of the last.out/libproducers run after the stage chain recreates it; a p7 test case directory per process (two lanes ran one fixture at once); whole-compiler checks get hang guards, not speed budgets (Correctness tests fail on wall-clock time: hang guards, not speed budgets #2371); the self-compile RSS budget is enforced per lane at 2 GiB (the 1 GiB one had been unenforced since Battery runner working set is 20–34GB; budget is 8GB #702, Compiler self-compile peaks at 1.46-1.54 GB; the 1 GiB regression budget went unenforced since #702 #2407).Open for Eric: the SipHash brief on #2372 (about 15–20 s more per compile of the compiler). Battery evidence under the pinned seed follows.