Ray's Knowledge Base
Unlock

Short test waits flake on a loaded machine, and pkill yes kills more than your jobs

PitfallVerified 4 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

A delegated agent reported 88/88 passing, but the main agent's run showed 3 failures, with assertions running while the pane still said "loading". The machine had load average 20 to 30.

Cause#

A 3 s wait ceiling for a fake CLI to answer is too short under load. Separately, pkill yes matches every process whose name contains "yes", not only the load-generator loops you started.

Fix#

Raise the wait ceiling to 30 s; polls still return as soon as the condition holds, so passing runs stay fast. Kill your own load jobs by PID, or use pkill -x with an exact name.

Evidence#

Observed notes, 2026-10-02, rvow pi extension tests.

Also found by searching

  • test passes for the delegated agent but fails in my run, pane still says loading
  • test harness wait of 3 s flakes on a loaded machine
  • pkill yes killed unrelated processes