Skip to content

Battery: a red that names no target reports its first error line - #2051

Merged
ehartford merged 2 commits into
fix-2049from
battery-unnamed-red
Oct 4, 2026
Merged

ehartford merged 2 commits into
fix-2049from
battery-unnamed-red

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

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 first error: line, then to naming the log. Checked: with check tools/battery.w ok; red_report exercised on a lock-refusal log, a named-target log and an empty log.

@ehartford
ehartford force-pushed the battery-unnamed-red branch from 40d66e4 to ef09916 Compare October 3, 2026 22:16
@ehartford
ehartford changed the base branch from main to fix-2049 October 3, 2026 22:16
@ehartford
ehartford added this pull request to stack #2059 October 3, 2026 22:16
@ehartford
ehartford force-pushed the battery-unnamed-red branch from ef09916 to 43e4a36 Compare October 3, 2026 23:03
@ehartford
ehartford force-pushed the battery-unnamed-red branch from 43e4a36 to cc8cefa Compare October 4, 2026 00:51
@ehartford
ehartford removed this pull request from stack #2059 October 4, 2026 00:52
@ehartford
ehartford added this pull request to stack #2072 October 4, 2026 00:52
@ehartford
ehartford force-pushed the battery-unnamed-red branch from cc8cefa to fd26b9e Compare October 4, 2026 01:19
Eric Hartford 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
ehartford force-pushed the battery-unnamed-red branch from fd26b9e to f2c2297 Compare October 4, 2026 14:18
@ehartford
ehartford marked this pull request as ready for review October 4, 2026 14:20
@ehartford
ehartford merged commit 82cb41e into main Oct 4, 2026
@ehartford
ehartford deleted the battery-unnamed-red branch October 4, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant