test: print each area as soon as it finishes #277

Merged
claudiomaradonna merged 1 commit from test/suite-live-output into main 2026-12-03 14:23:55 +01:00
Collaborator

Why

The Maintenance workflow's step "Agent configuration tests" takes most
of a run's ten minutes and prints nothing until it ends: the runner,
tests/verify-agent-config.sh, kept every area's output in temporary
files and printed it only once all areas had finished, so a maintainer
watching the run could not see progress or an early failure.

What changed

The runner prints each area's block, its # <area> heading, output,
and errors, as soon as that area finishes, in the order the areas
finish; before, all blocks came at the end in name order. Areas still
run in parallel, blocks never interleave since only the main shell
prints them, and the totals, failure lines, and exit status are as
before. Each worker writes its exit status last, by rename, and the
main shell polls for those files.

Ctrl-C still stops the running areas: the workers now run in a
background job, which a script starts with SIGINT ignored, so the job
restores it.

tests/agent-config/suite-runner.sh is the runner's first test.

How to verify

At branch tip 82ddcfc and at base 770d44e, run the new test with
the tip's copy of it:

bash tests/agent-config/suite-runner.sh

On the tip it prints ok - prints a finished area while a slower one still runs, then the totals; with the base's runner it prints
not ok, the fast area's block showing only after the slow one ends.
Both were run as written. Running bash tests/verify-agent-config.sh
locally shows area blocks arriving one after another instead of all at
once.

A run over a failing area and one that stops early gave the same
failure lines and exit 1 as the base; a SIGINT to the runner's process
group left no area running. The checks of docs/MAINTENANCE.md pass on
the tip: 427 agent configuration tests, the work-folder check tests,
the shell check, Prettier, the static validator, and
git diff --check main. The forge's live log was not observed before
publishing; expected, the step's log grows as areas finish.

Considerations

Areas that finish within the same 0.2 s poll print in name order among
themselves. The order of blocks now varies between runs.

## Why The Maintenance workflow's step "Agent configuration tests" takes most of a run's ten minutes and prints nothing until it ends: the runner, `tests/verify-agent-config.sh`, kept every area's output in temporary files and printed it only once all areas had finished, so a maintainer watching the run could not see progress or an early failure. ## What changed The runner prints each area's block, its `# <area>` heading, output, and errors, as soon as that area finishes, in the order the areas finish; before, all blocks came at the end in name order. Areas still run in parallel, blocks never interleave since only the main shell prints them, and the totals, failure lines, and exit status are as before. Each worker writes its exit status last, by rename, and the main shell polls for those files. Ctrl-C still stops the running areas: the workers now run in a background job, which a script starts with SIGINT ignored, so the job restores it. `tests/agent-config/suite-runner.sh` is the runner's first test. ## How to verify At branch tip `82ddcfc` and at base `770d44e`, run the new test with the tip's copy of it: ```bash bash tests/agent-config/suite-runner.sh ``` On the tip it prints `ok - prints a finished area while a slower one still runs, then the totals`; with the base's runner it prints `not ok`, the fast area's block showing only after the slow one ends. Both were run as written. Running `bash tests/verify-agent-config.sh` locally shows area blocks arriving one after another instead of all at once. A run over a failing area and one that stops early gave the same failure lines and exit 1 as the base; a SIGINT to the runner's process group left no area running. The checks of `docs/MAINTENANCE.md` pass on the tip: 427 agent configuration tests, the work-folder check tests, the shell check, Prettier, the static validator, and `git diff --check main`. The forge's live log was not observed before publishing; expected, the step's log grows as areas finish. ## Considerations Areas that finish within the same 0.2 s poll print in name order among themselves. The order of blocks now varies between runs.
test: print each area as soon as it finishes
Some checks failed
Maintenance / checks (push) Failing after 11m30s
Maintenance / publish (push) Has been skipped
82ddcfcd8a
The runner held every area's output until all areas had finished, so
the forge's run showed nothing for most of its ten minutes. Areas now
print in the order they finish, each block whole; totals and failure
lines stay as they were.
claudiomaradonna deleted branch test/suite-live-output 2026-12-03 14:24:06 +01:00
First-time contributor

Command failed

The agent did not complete this command, so nothing came of it. A person should look at this thread.

The run failed at step "aoe_purge". The operator reads the job logs in the Windmill editor, or finds the run with: wmill job list --path f/agents/bot_commands

## Command failed The agent did not complete this command, so nothing came of it. A person should look at this thread. The run failed at step "aoe_purge". The operator reads the job logs in the Windmill editor, or finds the run with: `wmill job list --path f/agents/bot_commands`
Sign in to join this conversation.
No description provided.