test: harden yolo and kanban signal tests on macOS - #34069
Conversation
|
Thanks for the focused test hardening. Current main still freezes Automated hermes-sweeper review. |
Autouse fixture also resets approval_module._YOLO_MODE_FROZEN so a HERMES_YOLO_MODE=1 host env can't poison every case (the one startup-frozen test still patches it back explicitly). Adds the darwin 'ps -o stat=' zombie branch to _is_alive_like_dispatcher, mirroring production hermes_cli/kanban_db.py — a no-op on Linux. Salvaged from PR #34069 by @sunwz1115. Co-authored-by: sunwz1115 <192549904+sunwz1115@users.noreply.github.com>
|
Merged via the round-3 stability PR #74576 (commit 19cc560, your authorship preserved). _YOLO_MODE_FROZEN hermeticity + the darwin ps-based zombie branch (Linux no-op, mirrors production kanban_db) landed. Thanks @sunwz1115! |
Autouse fixture also resets approval_module._YOLO_MODE_FROZEN so a HERMES_YOLO_MODE=1 host env can't poison every case (the one startup-frozen test still patches it back explicitly). Adds the darwin 'ps -o stat=' zombie branch to _is_alive_like_dispatcher, mirroring production hermes_cli/kanban_db.py — a no-op on Linux. Salvaged from PR NousResearch#34069 by @sunwz1115. Co-authored-by: sunwz1115 <192549904+sunwz1115@users.noreply.github.com>
Autouse fixture also resets approval_module._YOLO_MODE_FROZEN so a HERMES_YOLO_MODE=1 host env can't poison every case (the one startup-frozen test still patches it back explicitly). Adds the darwin 'ps -o stat=' zombie branch to _is_alive_like_dispatcher, mirroring production hermes_cli/kanban_db.py — a no-op on Linux. Salvaged from PR NousResearch#34069 by @sunwz1115. Co-authored-by: sunwz1115 <192549904+sunwz1115@users.noreply.github.com>
Summary
/yoloregression test hermetic when the parent process already hasHERMES_YOLO_MODE=1frozen at import time.ps -o stat) in the SIGTERM regression test helper.Test Plan
venv/bin/python -m py_compile tests/cli/test_cli_yolo_toggle.py tests/hermes_cli/test_signal_handler_kanban_worker.pyvenv/bin/python -m pytest tests/cli/test_cli_yolo_toggle.py tests/hermes_cli/test_signal_handler_kanban_worker.py -q