Skip to content

perf(e2e): move recovery repetition into deterministic tests #7919

Closed

Description

@apurvvkumaria

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-recovery job ID, workflow schedule, selectors, cleanup, and artifact upload.
  • Keep one real gateway termination followed by the production connect --probe-only recovery path.
  • Verify the replacement PID, restored guard chain, inference.local models 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-recovery job 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

  1. added
    area: ci
    area: e2e
    on Jul 30, 2026
  2. changed the title [-]ci(e2e): split recovery validation from soak scheduling[/-] [+]perf(e2e): move recovery repetition into deterministic tests[/+] on Jul 30, 2026
  3. added a commit that references this issue on Jul 31, 2026
    2aeb47a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: ciarea: e2e

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions