Repository navigation
Description
Parent: #7912
Problem
The retained issue-2478-crash-loop-recovery live E2E target repeats the same recovery boundary five times, exercises two additional proxy-state transitions, and then waits through a five-minute soak.
That repetition makes one functional signal a long nightly critical path and consumes a real Docker/OpenShell environment for behavior that can be tested deterministically.
Baseline
Across the five most recent scheduled/default runs, the lane had a median four-second queue, 13-minute-50-second job duration, and 12-minute-58-second Vitest duration.
The median repeated-recovery, proxy-state, and soak phases consumed about 8 minutes 49 seconds.
The retained functional path is expected to reduce the job to about five minutes and save about 68% of its runner time.
This lane was not the workflow tail in those samples, so the immediate benefit is lower runner consumption and a smaller live failure surface.
Maintainer decision
Review feedback on #7933 rejected a new weekly soak lane and permanent schedule surface.
The existing live job and cadence must remain unchanged.
Repeated recovery preparation belongs in deterministic tests of the production shell, while the live E2E target keeps one complete wiring check.
Scope
- Keep the existing
issue-2478-crash-loop-recoveryjob ID, workflow schedule, selectors, cleanup, and artifact upload. - Keep one real gateway termination followed by the production
connect --probe-onlyrecovery path. - Verify the replacement PID, restored guard chain,
inference.localmodels route, and 15 seconds of PID stability. - Run the extracted production recovery preparation five times against the same fixture in a fast test.
- Verify identical restoration steps, fixed proxy environment content, read-only guard files, one restoration warning, and no unguarded-launch marker.
- Remove the four redundant live crash cycles, live proxy-state rename/restore scenarios, five-minute soak, and runtime repetition controls.
- Update the checked-in evidence description to match the retained live and deterministic boundaries.
Ownership boundaries
- Do not change the GitHub Actions schedule or add, split, or retire a workflow lane.
- Do not consolidate the separate
gateway-guard-recoveryjob in this issue. - Do not increase timeouts or hide deterministic failures with retry.
- Broader live-test retirement remains owned by Epic: move non-live E2E checks into fast test projects #7614.
Acceptance criteria
- The existing live job keeps its current schedule and selectors.
- The live test proves one complete termination-to-recovery lifecycle through the production command.
- The live test verifies guard restoration,
inference.local, and a stable recovered PID. - A deterministic test runs five recovery preparations against the same state and verifies idempotence.
- The live target has no soak profile, weekly variant, or repetition override.
- Cleanup and diagnostic artifacts remain available.
- The retained live target is materially shorter in the first completed workflow measurement.
Activity
[-]ci(e2e): split recovery validation from soak scheduling[/-][+]perf(e2e): move recovery repetition into deterministic tests[/+]perf(e2e): move recovery repetition into integration tests (#7942)