You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fetch: retry downloads with backoff, fetch the root manifest once, and extract concurrently #3
No retries. `install()` tries each mirror URL in `asset.urls` once, with a 60 s timeout. A single transient error (reset, 5xx, slow mirror) fails the whole image build. Wanted: retry each URL with exponential backoff (for example 3 attempts: 1 s, 4 s, 16 s), for both the archive and the catalog fetches.
Root manifest fetched once per tool. `install()` calls `get(root_url)` for every locked tool. Fetch and parse the root `manifest.json` once per `fetch --lock` run.
Sequential download and extract. `cli.py` loops over `lock.tools`, and each one downloads, hashes and extracts in series. Nine tools took 51 s locally. Wanted: download concurrently (a bounded pool), and verify the hash and extract (`tarfile r:zst`) concurrently as each download finishes. Destinations are disjoint (`install` paths), so extraction can run in parallel safely. Overlaps with fetch: download the locked tools in parallel, and skip ones the host provides #2, which covers parallel download and skipping host-provided tools; this adds retries and concurrent extraction.
Acceptance
RED → GREEN: a test with a fake opener that fails the first N attempts for a URL shows the retry succeeding, and that the attempts are bounded.
A test asserts the root manifest is fetched once for a multi-tool lock.
A test with a slow fake opener shows downloads overlap: wall time ≈ max, not sum.
obs-studio's AppImage image build still fetches every locked dependency.
Triage (coordinator): concrete scope in fetch.py/cli.py with RED to GREEN acceptance criteria. Not blocked by #2 (parallel download overlaps; whichever lands second rebases). P2 (transient mirror errors fail obs-studio's AppImage image build, obs-rust/obs-studio#1047), size:M.
Claiming: retry with backoff, one root manifest per run, concurrent download+extract in fetch.py/cli.py
RED: tests in tests/test_fetch.py with a fake opener (flaky URL, root-fetch count, slow opener overlap).
GREEN: get/archive download retry 3x (1 s, 4 s, 16 s); install_all parses the root once and runs installs in a bounded thread pool; cli fetch uses it.
First PR opens within the hour.
Activity
zackees commentedon Oct 25, 2026
/ready
Triage (coordinator): concrete scope in
fetch.py/cli.pywith RED to GREEN acceptance criteria. Not blocked by #2 (parallel download overlaps; whichever lands second rebases). P2 (transient mirror errors fail obs-studio's AppImage image build, obs-rust/obs-studio#1047), size:M.zackees commentedon Oct 25, 2026
Claiming: retry with backoff, one root manifest per run, concurrent download+extract in fetch.py/cli.py
get/archive download retry 3x (1 s, 4 s, 16 s);install_allparses the root once and runs installs in a bounded thread pool; clifetchuses it.First PR opens within the hour.
fetch: retry with backoff, fetch the root manifest once, install conc…