host: say why the agent ended after its standard error has been read #66

Merged
mikluko merged 1 commit from host-agent-last-words into main 2026-11-16 08:55:09 +00:00
Owner

The host said why an agent ended before it had read the last of the agent's standard error, so a failed start now and then lacked the reason: TestAnAgentThatEndsAtOnceIsAskedWhyAndSays failed 27 times in 2000 runs with GOMAXPROCS=1 (go test -count=2000), 0 with the change; go test ./internal/host also passes at default. The host now waits for the stderr reader to reach its end, at most a second (an agent that left a process holding the pipe).

The host said why an agent ended before it had read the last of the agent's standard error, so a failed start now and then lacked the reason: TestAnAgentThatEndsAtOnceIsAskedWhyAndSays failed 27 times in 2000 runs with GOMAXPROCS=1 (go test -count=2000), 0 with the change; go test ./internal/host also passes at default. The host now waits for the stderr reader to reach its end, at most a second (an agent that left a process holding the pipe).
host: say why the agent ended after its standard error has been read
All checks were successful
image / image (pull_request) Successful in 16s
test / changelog (pull_request) Successful in 5s
test / go (pull_request) Successful in 40s
24e9bfecce
The end of the process is seen before the host has read the last of its standard
error, so the account of an agent that died at once now and then lacked its last
words: 27 failures in 2000 runs of TestAnAgentThatEndsAtOnceIsAskedWhyAndSays
on one processor, none after. The wait is bounded by a second.

Assisted-By: Claude <noreply@anthropic.com>
mikluko deleted branch host-agent-last-words 2026-11-16 08:55:10 +00:00
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/roomcity!66
No description provided.