mirror of
https://github.com/kuhyx/wake-alarm.git
synced 2026-11-19 08:54:23 +01:00
Accept WOULD FIRE in the trigger dry-run case
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint,free-days-interop) (push) Waiting to run
Tests / test (push) Waiting to run
Tests / free-days-interop (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint,free-days-interop) (push) Waiting to run
Tests / test (push) Waiting to run
Tests / free-days-interop (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
The vmbox case grepped case-sensitively for "firing", which only matches "not firing". Inside the 08:00-09:00 fallback fire window --dry-run says "WOULD FIRE", so the harness went red whenever it ran in that hour. Match either verdict. Red at guest 08:10 before, green at 06:00, 08:10, 12:00 after; full harness 16/16 at 08:46 UTC. Todo: 364208fc Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b603cbf342
commit
8efaa518ad
@ -74,7 +74,12 @@ case_session_refresh() {
|
||||
# --- Case: the trigger decides without crashing ------------------------------
|
||||
case_trigger_dry_run() {
|
||||
local name="trigger-dry-run"
|
||||
if "$PY" -m wake_alarm._trigger --dry-run 2>/dev/null | grep -q "firing"; then
|
||||
# Either verdict is a decision: inside the fire window (08:00-09:00 on
|
||||
# the fallback alarm) it prints "WOULD FIRE", which a case-sensitive
|
||||
# "firing" grep missed, so the case went red whenever the harness ran
|
||||
# in that hour.
|
||||
if "$PY" -m wake_alarm._trigger --dry-run 2>/dev/null |
|
||||
grep -qE -- "— (WOULD FIRE|not firing): "; then
|
||||
pass "$name"
|
||||
else
|
||||
fail "$name" "--dry-run produced no decision line"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user