S007: recovery tests, matrix and notes
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
parent
f85b2509d6
commit
fd68bfa2e1
1 changed files with 822 additions and 13 deletions
|
|
@ -88,5 +88,13 @@ Not done: part events (`Split`…) don't leave the manager; `PartView.id` tells
|
|||
Seen: connections of a host are first come, first served: with more downloads than fit, some run without any until others end (S010). `http::name::no_name_gets_out_of_its_folder` took over 60 s on an overloaded CPU. Boxes were ticked together at the end, against rule 3.
|
||||
Fixed after review: `removed_and_back` had a wrong bound. `received` also counts up to one read beyond the new end of a split part (seen: 147 kB); nothing on disk is fetched again. The test now checks the ranges asked for (60 of 60 runs under load, with 61 kB or more kept).
|
||||
|
||||
## S007 — Error recovery (2026-11-25)
|
||||
Done: `core::error`, `core::recover` (with `sleep`), `core::net_state`, waits in `manager/actor.rs`, `docs/RECOVERY.md` (kinds table for texts and buttons, matrix). Choices: D-031 to D-033. Outside the plan's files: `http` (`Error::Page`, `Error::Missing`), store migration 002 (`tasks.tries`), settings `tries` and `auto_resume`, `zbus` and `futures-lite` in core.
|
||||
Verified: `--test recover` (13 tests: matrix of 27 faults × 4 moments, fake NetworkManager and logind on a private D-Bus, full, read-only and pulled-out disks in a mount namespace).
|
||||
- UI: `task.error` has `kind` and `detail` (ready to show); `kind.title()`, `severity()`, `retry()`, `fix().label()`. `TaskView::retry_at` (ms since 1970) and `fails`. `Fix::Choose` = `Redownload` (start over), `KeepBoth`, or `Edit` of the link and `Resume`. `Fix::Restart` = `Redownload`.
|
||||
- The app must set `config.recovery.bus = Bus::System` (the default is Off, so that tests touch nothing real), `recovery.tries` and `auto_resume` from the settings; `manager.set_recovery()` later.
|
||||
- A Waiting task with `error: None` is S009's; those with a kind are taken up by the manager at the next start.
|
||||
Not done: a host name that TLS finds invalid counts as `cut`; the real NetworkManager and logind were never touched; a disk that fills up in the middle is only unit-tested (space is reserved first); 4xx and 5xx texts show the number, not its meaning. Not tried: suspend for real.
|
||||
|
||||
## Later
|
||||
-
|
||||
|
|
|
|||
Loading…
Reference in a new issue