myxce/.claude
Rongsong Shen d9ff02cdc1
test(xce-test-ha): scheduler replay-parity gate in sequential/chaotic soaks
When the live worker + scheduler pair is up, the soak now starts the
scheduler with --record-dir, records (xceadmin scheduler record start)
from each scheduler (re)join until just before the next primary kill,
stops it cleanly so the .replay is flushed, and at the end replays every
clean recording through `xce_scheduler --sim --sim-verify`. Any decision
MISMATCH, a failed sim run, or zero clean recordings FAILs the soak:

  [xce-test-ha] SIMVERIFY files=N mismatches=M errors=E unclean=U

Recordings that could not be stopped cleanly are counted as unclean and
never verified (their unflushed tail would give false mismatches), except
a stop whose reply was lost mid-failover: when the same scheduler pid
answers "not recording" and logged no recording abort, the first stop
landed and the file is kept. Mismatches are counted from both the sim's
log file and stderr (the logger creates its file lazily).
XCE_HA_SCHED_REPLAY_VERIFY=0 disables the gate.

First runs caught bug-1851 and bug-1852.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 08:41:55 +00:00
..
rules chore(wolf): checkpoint buglog.json (1062 bugs) 2026-08-27 08:27:43 +00:00
skills test(xce-test-ha): scheduler replay-parity gate in sequential/chaotic soaks 2026-09-24 08:41:55 +00:00
settings.json chore(wolf): checkpoint buglog.json (1062 bugs) 2026-08-27 08:27:43 +00:00