You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Battery: behavior-tests links two fixtures against the pinned seed's runtime when run inside battery-checks (behav_3166, behav_3087); alone the lane is green #3209
Two consecutive batteries on branch i3112 (a Parser.w-only change, worktree ~/.local/with-staging/i3112, tips 163018e and c567f6c) went red on behavior-tests with exactly these two fixtures:
Both are runtime features newer than the pinned seed (seed.lock: nightly-20261110-local-1-d02ac04992f8). Fixtures of compiler fixes newer than the seed (behav_3165, behav_3187, …) passed in the same lane.
Evidence
The test binary the lane kept for behav_3166 (out/test/behavior/behav_3166_….test.23567.…, copy at scratchpad stale-3166-test-binary) is 164064 bytes and fails every time it is run; src/main test test/behavior/behav_3166_….w (the seed as compiler) produces a binary of exactly 164064 bytes that fails the same way; out/release/bin/with build of the same file is 167008 bytes and passes.
By hand, in the same worktree, every variant passes on uncached copies: out/release/bin/with test <file>, with WITH=$PWD/src/main, with --quiet <absolute path> (the lane's exact argv, build_graph_external_test_argv), with WITH_RUNTIME_ROOT set to out/lib, out/bootstrap-lib, out/bootstrap/lib.
WITH=$PWD/src/main src/main build :behavior-tests --no-deps alone, right after the red battery: 2108 files ok (2106 cached, 2 ran) — the two ran and passed.
Five other batteries the same day on other branches (same main, same seed) were green.
Reading
Inside battery-checks the per-file out/release/bin/with test --quiet <file> linked (or was replaced by something that linked) the seed generation's runtime for these two files, twice at the same point of the schedule. Candidates: a lane that runs beside behavior-tests and changes what the release compiler links against (runtime-generation-regression, embedded-runtime-regression, anything that sets WITH_RUNTIME_ROOT or rewrites out/lib/out/bootstrap-lib or out/release/bin/with while the lane is compiling), or an environment variable that leaks from one lane's child environment into the driver's own.
The tool that stayed silent: the D30/D132 generation check let a seed-generation runtime link into a program built by the release compiler (or the lane ran another compiler than compiler= names) without a word.
To do
Find which target overlaps (the battery log has [time] lines; behavior-tests failed ~340 s in), reproduce with those two targets alone, fix the isolation, and make the mixed link loud.
2026-11-11, ruled out by reading the build: an environment leak through the build API. ProcessEnv.set (lib/std/build.w) is a value operation (move self, returns the owned copy); runtime-generation-regression (build/selfhost.w) and the stage links (build/compiler.w runtime-root=) set WITH_RUNTIME_ROOT on their own children's environment only, and embedded-runtime-regression works on its own copy (out/test-graph/embedded-runtime-regression/with). Not reproduced since: eight batteries on other branches (2026-11-10/11) ran behavior-tests green. Still open: which lane makes the release compiler link the seed generation's runtime for a fixture, and why the generation check stays silent when it does.
Closing as not reproduced. Since the two reds on i3112 (2026-11-10), behavior-tests has run inside more than twenty batteries on other branches and on main with the same seed and then the next one, all green, including seven on 2026-11-15/16.
What the evidence does say, for whoever sees it again: the kept test binary was byte-for-byte the size the seed produces for that file (164064) and behaved as the seed's build does, so the fixture was compiled by src/main, not linked by the release compiler against an old runtime. No mixed-generation link happened, which is why the D30/D132 generation check had nothing to say. build_graph_external_test_argv has no fallback to another compiler; the remaining question is what made the lane's compiler= resolve to the seed for those two files on that branch.
If it recurs: keep out/battery/battery.log and the lane's capture for the failing file, and read the compiler= the lane printed for behavior-tests in that run before anything is rebuilt.
Activity
ehartford commentedon Nov 10, 2026
2026-11-11, ruled out by reading the build: an environment leak through the build API.
ProcessEnv.set(lib/std/build.w) is a value operation (move self, returns the owned copy);runtime-generation-regression(build/selfhost.w) and the stage links (build/compiler.wruntime-root=) setWITH_RUNTIME_ROOTon their own children's environment only, andembedded-runtime-regressionworks on its own copy (out/test-graph/embedded-runtime-regression/with). Not reproduced since: eight batteries on other branches (2026-11-10/11) ranbehavior-testsgreen. Still open: which lane makes the release compiler link the seed generation's runtime for a fixture, and why the generation check stays silent when it does.ehartford commentedon Nov 16, 2026
Closing as not reproduced. Since the two reds on
i3112(2026-11-10),behavior-testshas run inside more than twenty batteries on other branches and on main with the same seed and then the next one, all green, including seven on 2026-11-15/16.What the evidence does say, for whoever sees it again: the kept test binary was byte-for-byte the size the seed produces for that file (164064) and behaved as the seed's build does, so the fixture was compiled by
src/main, not linked by the release compiler against an old runtime. No mixed-generation link happened, which is why the D30/D132 generation check had nothing to say.build_graph_external_test_argvhas no fallback to another compiler; the remaining question is what made the lane'scompiler=resolve to the seed for those two files on that branch.If it recurs: keep
out/battery/battery.logand the lane's capture for the failing file, and read thecompiler=the lane printed forbehavior-testsin that run before anything is rebuilt.