Seen on PR #21 (job 36166, flare-edge-next): qemu/tests/init-power-signals-test.sh printed [FAIL] SIGTERM (busybox reboot) reboots at once (got: ) while the SIGUSR2 and SIGUSR1 cases passed. #21 only touches qemu/tests/qmp.py.
Cause: run_case starts the shell in the background, sleeps a fixed 0.5 s, then sends the signal. On a loaded runner warden_trap_power_signals has not installed its traps yet, so SIGTERM takes its default action and kills the shell, and nothing is written.
Fix: before kill, poll /proc/$pid/status until SigCgt has the signal's bit set (bounded, for example 10 s), and fail clearly if it never is. Add a regression check with a delayed trap install. Twins on rebuild and flare-edge-next. Test harness only.
Seen on PR #21 (job 36166, flare-edge-next): `qemu/tests/init-power-signals-test.sh` printed `[FAIL] SIGTERM (busybox reboot) reboots at once (got: )` while the SIGUSR2 and SIGUSR1 cases passed. #21 only touches qemu/tests/qmp.py.
Cause: `run_case` starts the shell in the background, sleeps a fixed 0.5 s, then sends the signal. On a loaded runner `warden_trap_power_signals` has not installed its traps yet, so SIGTERM takes its default action and kills the shell, and nothing is written.
Fix: before `kill`, poll `/proc/$pid/status` until `SigCgt` has the signal's bit set (bounded, for example 10 s), and fail clearly if it never is. Add a regression check with a delayed trap install. Twins on rebuild and flare-edge-next. Test harness only.
Fixed by #23 (rebuild, be4ad86) and #24 (flare-edge-next, 3b41543): each case waits for the signal bit in /proc//status SigCgt (10 s backstop) before kill. Regression: a case with the trap install held back 1.5 s fails on the old fixed sleep and passes now; the wait also gives up cleanly on a shell without a handler.
Fixed by #23 (rebuild, be4ad86) and #24 (flare-edge-next, 3b41543): each case waits for the signal bit in /proc/<pid>/status SigCgt (10 s backstop) before kill. Regression: a case with the trap install held back 1.5 s fails on the old fixed sleep and passes now; the wait also gives up cleanly on a shell without a handler.
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.
Seen on PR #21 (job 36166, flare-edge-next):
qemu/tests/init-power-signals-test.shprinted[FAIL] SIGTERM (busybox reboot) reboots at once (got: )while the SIGUSR2 and SIGUSR1 cases passed. #21 only touches qemu/tests/qmp.py.Cause:
run_casestarts the shell in the background, sleeps a fixed 0.5 s, then sends the signal. On a loaded runnerwarden_trap_power_signalshas not installed its traps yet, so SIGTERM takes its default action and kills the shell, and nothing is written.Fix: before
kill, poll/proc/$pid/statusuntilSigCgthas the signal's bit set (bounded, for example 10 s), and fail clearly if it never is. Add a regression check with a delayed trap install. Twins on rebuild and flare-edge-next. Test harness only.Fixed by #23 (rebuild,
be4ad86) and #24 (flare-edge-next,3b41543): each case waits for the signal bit in /proc//status SigCgt (10 s backstop) before kill. Regression: a case with the trap install held back 1.5 s fails on the old fixed sleep and passes now; the wait also gives up cleanly on a shell without a handler.Fixed by #23 (rebuild) and #24 (flare-edge-next), both merged.