flybrain/services/flysim/crates/fly-session/tests
acamilo 7d2650ae5e gpu-02 notes: a GPU failure falls back to the CPU for the process lifetime
A CUDA failure (a failed batch or read-back, or an attach that fails at a restart) now marks the
GPU unusable for the process: the replacement agent worker is created on the CPU and restores the
last checkpoint, so a lost device no longer leaves the session unable to restore and a flaky one is
never re-attached in a loop. Worker processes share the record through a marker file the launcher
owns and empties when it starts. Exposed as the LIF_GPU_FALLBACK log line,
fly_brain_backend{backend}, fly_brain_backend_wanted and fly_brain_backend_fallbacks_total, and
fly-watchdog check 11 (report only).

Adds a committed fault-injection hook for the cuda feature (FLY_LIF_CUDA_FAULT or the inject
setters), the recovery harness in legacy_parity, and the cuda_fallback test: init failure, transient
(host current) and permanent (in-process and process) faults, each equal to the CPU reference.
Corrects the runbook, documents the stale host arrays on LifNetwork, and has cuda_session assert
that no fallback hid a CPU pass.
2026-10-02 10:15:03 +00:00
..
common fly-session: the in-process local lane, and the per-frame costs it leaves 2026-09-30 01:46:07 +00:00
cuda_fallback.rs gpu-02 notes: a GPU failure falls back to the CPU for the process lifetime 2026-10-02 10:15:03 +00:00
cuda_session.rs gpu-02 notes: a GPU failure falls back to the CPU for the process lifetime 2026-10-02 10:15:03 +00:00
failures.rs fly-session: the in-process local lane, and the per-frame costs it leaves 2026-09-30 01:46:07 +00:00
legacy_agent.rs tests: the legacy agent worker checked against FND-01's FLY_TRACE of the running legacy frame 2026-09-29 14:26:07 +00:00
legacy_env.rs legacy_env: MEM-01's bulk read behind the image seam (ENV-01 review R1) 2026-09-29 17:07:48 +00:00
media.rs fly-session: the in-process local lane, and the per-frame costs it leaves 2026-09-30 01:46:07 +00:00
orphans.rs BUS-01 review notes: clippy fixes in the new tests 2026-10-02 05:15:45 +00:00
processes.rs fly-session: the in-process local lane, and the per-frame costs it leaves 2026-09-30 01:46:07 +00:00
publishing.rs session: an unreadable event batch is not the end of the stream 2026-09-22 21:03:59 +00:00
session.rs fly-session: the coordinator runs the legacy composition's boundary (TASK-01) 2026-09-29 18:03:59 +00:00
state.rs session: name the two ways a durable wait ends without an acknowledgment 2026-09-22 18:45:51 +00:00