test: print each area as soon as it finishes #277
No reviewers
Labels
No labels
bug
cannot reproduce
duplicate
enhancement
help wanted
invalid
need info
need triage
need verification
not a bug
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
claudiomaradonna/agent-foundry!277
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "test/suite-live-output"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 temporaryfiles 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.shis the runner's first test.How to verify
At branch tip
82ddcfcand at base770d44e, run the new test withthe tip's copy of it:
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 printsnot ok, the fast area's block showing only after the slow one ends.Both were run as written. Running
bash tests/verify-agent-config.shlocally 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.mdpass onthe 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 beforepublishing; 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.
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