5 KiB
5 KiB
S037 — Whole app: test file
Written and run by S037 (Phase: test) on 2026-11-26. Results are what was seen in this session.
Built
crates/core/src/connector/mod.rs·busy(): a connection over the 16 allowed gets429 {"error":"busy"}instead of being dropped silently.crates/core/src/stream/dash.rs·Manifest::media: the 200,000 segment cap counts all periods together; number and time overflow in templates is an error, not a panic.crates/app/src/clipboard.rs·news(): an empty clipboard at start counts as "", so the first link copied is offered (it was swallowed).crates/core/src/fuzz.rs,http/fuzz.rs,stream/fuzz.rs,connector/fuzz.rs· mutation fuzz of names, Metalink, listings, patterns, redaction, Content-Disposition, ranges, HLS, DASH, connector requests.MEDLAR_FUZZ=nsets rounds (default 2000).crates/core/tests/whole.rs·soak,ten_thousand,loopback_speed(ignored, run by name in release) andafter_another_one.- Hidden drivers for
tools/hidden.sh(kept outside the repo): run A first start to finished downloads through the port, run B clipboard Ask and add without asking.
Checks
Risk: HIGH = data loss, security, crash, wrong result · MED = feature broken · LOW = looks or comfort.
| # | Risk | Do this | Expect | How | Result |
|---|---|---|---|---|---|
| 1 | HIGH | Hold 16 silent connections to the port, send a 17th GET | 429 with busy |
integration (control.rs::connector_over_16_connections_busy) |
fixed |
| 2 | HIGH | DASH with 50 periods of 150,000 segments; startNumber u64::MAX |
Error, no panic, no huge memory | unit (stream::fuzz::dash_many_periods_refused) |
fixed |
| 3 | HIGH | Fuzz all parsers, 2,000 rounds debug and 40,000 rounds release | No panic; names safe; Origin never 200; secrets redacted | unit (fuzz) |
pass |
| 4 | HIGH | Child processes: yt-dlp and ffmpeg arguments | -- before links, no shell, cookie jar 0600 in runtime dir, deleted after |
review of ytdlp.rs, run.rs |
pass |
| 5 | HIGH | Metalink with entities | No entity expansion (quick-xml) | review + fuzz | pass |
| 6 | HIGH | Soak 20 min, seed 37: random cuts, resets, 503, stalls, throttles, ignored ranges, pauses, limit changes, restarts | Every file equal to the expected bytes | whole.rs::soak release |
pass: 606 files, 0 corrupt, 0 unfinished, 52 restarts |
| 7 | MED | 10,000 paused tasks added, snapshot, reopen | All there, quick | whole.rs::ten_thousand release |
pass: add 3.79 s, snapshot 2 µs, reopen 177 ms, RSS 21.7 → 44.3 MB, db 2.5 MB |
| 8 | LOW | 512 MiB from the local server, curl against Medlar | Medlar not much slower | whole.rs::loopback_speed release |
pass: curl 849 MiB/s, Medlar 1213 MiB/s |
| 9 | MED | Frame with 10,000 rows | Quick | app main.rs::frame_of_ten_thousand_rows_is_quick |
pass; S044 frame_with_fifty_active_is_quick (release): 50 active of 2,000 changing ten times a second, median 1.0 ms, 95 % 3.0 (compact) / 4.0 ms (cards), worst 4.0 ms |
| 10 | LOW | Idle CPU in the hidden release run | 0 % | tools/hidden.sh cpu 5 |
pass: 0.00 % at first start and after downloads |
| 11 | HIGH | First start, Skip, POST one link, Download | File done, hash equal to the server's | hidden run A | pass |
| 12 | HIGH | POST from a web Origin | 403 | hidden run A | pass |
| 13 | MED | POST a list of 3, Download 3 | All done, hashes right | hidden run A | pass |
| 14 | MED | B set after A | B never runs while A runs; then done and right | whole.rs::after_another_one |
pass |
| 15 | HIGH | Add without asking on, types zip: send .zip and .iso | zip added with toast, iso opens the dialog | hidden run B (S024 4) | pass |
| 16 | HIGH | Clipboard Ask, empty clipboard at start, copy a .zip link | Add dialog offers it | hidden run B + clipboard::tests |
pass: S044 hidden run C (S027 8) |
| 17 | HIGH | Pause, restart, continue; expired link continued; queue with schedule; old store opens | Files right | engine: soak restarts, relink.rs, queues.rs, store migration tests |
pass (engine: soak restarts, relink.rs, queues.rs, store migration; app: S044 expired-link continue via the port); hidden UI journey not repeated |
Needs
Local testserver only (port 18737 for hidden runs, random ports in tests), throwaway homes under an absolute TMPDIR, no network, no build while the soak runs.
Doubts
- Soak RSS grew from 50 MB to 62.6 MB over 101 rounds with 52 restarts; it may be allocator growth or a slow leak per restart. Not chased.
- Journeys pause/restart, expired link and schedule ran only as engine tests (and the expired link through the port with the real engine in S044), not clicked through the hidden UI; S044 did not repeat them there either.
- Frame cost is CPU time of one kittest step, not of the GPU painting; the 10,000-row test's worst frame with changes was 15.9 ms (one frame in 120).
- Fuzz is mutation of seeds with a fixed seed, not coverage-guided; deep paths may stay unseen.
- Clipboard fix: a failed read now counts as empty text, so an image copied between two copies of the same link makes the second copy news again.