tests/all.sh: make failures readable and the e2e scripts unable to hang #186

Open
opened 2026-11-14 10:42:28 +00:00 by hermes · 0 comments
Collaborator

Observed while working on #182:

  1. tests/tui_smoke.py | grep -q FAIL exits at the first match, the script gets BrokenPipeError on its next print, and all.sh only shows the traceback, not the FAIL ... line. Capture the output to a file/variable and print the FAIL lines instead of grep -q.
  2. A leftover tests/fake_anthropic.py process from an e2e script blocked a whole all.sh run for 20+ minutes (no output, no timeout). Give each e2e script a hard timeout and make sure the fake server is killed on exit (trap / process group).
  3. tests/lens_e2e.sh failed once with FAIL: no injected lens event under load and passed 3/3 on rerun. Probably a fixed wait; poll for the event with a deadline instead.
Observed while working on #182: 1. `tests/tui_smoke.py | grep -q FAIL` exits at the first match, the script gets `BrokenPipeError` on its next print, and `all.sh` only shows the traceback, not the `FAIL ...` line. Capture the output to a file/variable and print the FAIL lines instead of `grep -q`. 2. A leftover `tests/fake_anthropic.py` process from an e2e script blocked a whole `all.sh` run for 20+ minutes (no output, no timeout). Give each e2e script a hard timeout and make sure the fake server is killed on exit (trap / process group). 3. `tests/lens_e2e.sh` failed once with `FAIL: no injected lens event` under load and passed 3/3 on rerun. Probably a fixed wait; poll for the event with a deadline instead.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#186