Files
hermes-agent/tests/ci
Teknium d836448951 fix(ci): stop the Windows lane timing out on workflow replays and racing a killed backup's lock
tests/ci/test_update_ci_routing.py hit the runner's 300 s per-file cap on
the Windows-only lane (run 43948656160). Its selection (36 tests) spawns
Git Bash 363 times through tests/ci/workflow_steps._run, but only 37 of
those scripts are distinct: every test first replays the unmutated
workflows, then the mutated copy. A step replay is a pure function of its
rendered script, env, cwd and receipt mode, so memoize it per process.
`required()` still runs on every call, so the disabled/advisory mutations
keep failing. Same selection on Linux: 18.8 s -> 3.8 s.

test_retry_elsewhere_reclaims_default_backup_stages_but_preserves_live_ones
flaked on Windows with the killed child's stage left behind. Windows frees
a terminated process's LockFileEx locks asynchronously ("depends upon
available system resources"), so the retry's reaper can still find the
lease locked and correctly skips it as a live owner. Product behaviour is
right (the next run reclaims it); the test now waits until the lease is
lockable before retrying, in both killed-child recovery tests.
2026-11-16 13:25:22 -08:00
..