Test-harness flake fix (no product change). Fixes#22.
qemu/tests/init-power-signals-test.sh sent each signal after a fixed 0.5 s sleep; on a loaded runner the shell had not installed its traps yet, so SIGTERM killed it with nothing written (seen on #21, job 36166). Each case now waits for the signal's bit in /proc/<pid>/status SigCgt (10 s hang backstop, WARDEN_TEST_TRAP_WAIT_S) and fails clearly if the handler never appears.
Regression: a case whose handler install is held back 1.5 s, plus a check that the wait gives up on a shell without a handler.
Local gate:
$ taskset -c 0-3 nice -n 19 bash qemu/tests/init-power-signals-test.sh (twice)
[PASS] SIGTERM (busybox reboot) reboots at once
[PASS] SIGUSR2 (busybox poweroff) powers off at once
[PASS] SIGUSR1 (busybox halt) powers off at once
[PASS] SIGTERM after a slow handler install still reboots
[PASS] wait_trapped gives up on a shell without a handler
EXIT 0
$ shellcheck qemu/tests/init-power-signals-test.sh -> 0 findings
# mutation: wait_trapped replaced by the old `sleep 0.5`
[FAIL] SIGTERM after a slow handler install still reboots (got: )
EXIT 1
Twin: the same commit goes to rebuild and flare-edge-next.
Test-harness flake fix (no product change). Fixes #22.
`qemu/tests/init-power-signals-test.sh` sent each signal after a fixed 0.5 s sleep; on a loaded runner the shell had not installed its traps yet, so SIGTERM killed it with nothing written (seen on #21, job 36166). Each case now waits for the signal's bit in `/proc/<pid>/status` SigCgt (10 s hang backstop, `WARDEN_TEST_TRAP_WAIT_S`) and fails clearly if the handler never appears.
Regression: a case whose handler install is held back 1.5 s, plus a check that the wait gives up on a shell without a handler.
Local gate:
```
$ taskset -c 0-3 nice -n 19 bash qemu/tests/init-power-signals-test.sh (twice)
[PASS] SIGTERM (busybox reboot) reboots at once
[PASS] SIGUSR2 (busybox poweroff) powers off at once
[PASS] SIGUSR1 (busybox halt) powers off at once
[PASS] SIGTERM after a slow handler install still reboots
[PASS] wait_trapped gives up on a shell without a handler
EXIT 0
$ shellcheck qemu/tests/init-power-signals-test.sh -> 0 findings
# mutation: wait_trapped replaced by the old `sleep 0.5`
[FAIL] SIGTERM after a slow handler install still reboots (got: )
EXIT 1
```
Twin: the same commit goes to rebuild and flare-edge-next.
Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG
init-power-signals-test.sh slept a fixed 0.5 s before sending each signal.
On a loaded runner the shell had not installed its traps yet, so SIGTERM
took its default action and the case failed with nothing written.
Each case now polls /proc/<pid>/status until SigCgt has the signal's bit
(10 s hang backstop, WARDEN_TEST_TRAP_WAIT_S), and fails clearly if the
handler never appears. Regression: a case whose handler install is held
back 1.5 s (fails on the old fixed sleep), plus a check that the wait gives
up on a shell without a handler.
Fixes#22
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Test-harness flake fix (no product change). Fixes #22.
qemu/tests/init-power-signals-test.shsent each signal after a fixed 0.5 s sleep; on a loaded runner the shell had not installed its traps yet, so SIGTERM killed it with nothing written (seen on #21, job 36166). Each case now waits for the signal's bit in/proc/<pid>/statusSigCgt (10 s hang backstop,WARDEN_TEST_TRAP_WAIT_S) and fails clearly if the handler never appears.Regression: a case whose handler install is held back 1.5 s, plus a check that the wait gives up on a shell without a handler.
Local gate:
Twin: the same commit goes to rebuild and flare-edge-next.
Generated with Claude Code
https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG