Repository navigation
Battery: a red that names no target reports its first error line - #2051
Merged
Merged
Conversation
ehartford
force-pushed
the
battery-unnamed-red
branch
from
October 3, 2026 22:16
40d66e4 to
ef09916
Compare
ehartford
force-pushed
the
battery-unnamed-red
branch
from
October 3, 2026 23:03
ef09916 to
43e4a36
Compare
ehartford
force-pushed
the
battery-unnamed-red
branch
from
October 4, 2026 00:51
43e4a36 to
cc8cefa
Compare
ehartford
force-pushed
the
battery-unnamed-red
branch
from
October 4, 2026 01:19
cc8cefa to
fd26b9e
Compare
added 2 commits
October 4, 2026 07:18
…ror line A battery whose gate could not take the build lock (an orphaned gate from a stopped battery still held it) printed `RED (gate): ` with nothing after the colon: failed_targets found no target line, and the report said so silently. red_report now falls back to the step's first `error:` line (here: "another build is already running: target=gate pid=…"), and to naming the log when there is none. The checks step reports the same way whenever its rc is nonzero, not only when a target was named.
behav_ast_dump_linear failed in a battery whose other tests ran beside it: 160000 elements took 875 ms of wall for 230 ms of CPU, past max(small, 1 ms) * 6 + 200 ms. Main's compiler and this stack's take the same CPU on the same inputs (0.06 s and 0.23 s: linear). The three tests that bound a child compiler run's growth — behav_ast_dump_linear, behav_c_import_scales_linearly, behav_c_import_macro_var_extent — now read std.libc.cpu_time_ns (this process and the children it reaps), the clock #1998 gave test/complexity. The bounds are unchanged.
ehartford
force-pushed
the
battery-unnamed-red
branch
from
October 4, 2026 14:18
fd26b9e to
f2c2297
Compare
ehartford
marked this pull request as ready for review
October 4, 2026 14:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A gate refused by a held build lock reported
RED (gate):with nothing after the colon. The report now falls back to the step's firsterror:line, then to naming the log. Checked:with check tools/battery.wok; red_report exercised on a lock-refusal log, a named-target log and an empty log.