Skip to content

fetch: retry with backoff, fetch the root manifest once, install concurrently - #12

Merged
zackees merged 2 commits into
mainfrom
fix/3-fetch-retry-concurrency
Oct 25, 2026
Merged

zackees merged 2 commits into
mainfrom
fix/3-fetch-retry-concurrency

Conversation

@zackees

@zackees zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member

Fixes #3

  • get and each archive mirror retry 3 attempts with 1 s / 4 s backoff (bounded).
  • install_all parses the root manifest.json once per fetch --lock run and installs in a bounded pool (4); download, hash check and extract run per tool concurrently. cli fetch uses it.
  • RED commit adds tests/test_fetch.py (fake opener: flaky URL, bounded retries, one root fetch, overlapping downloads); GREEN makes it pass.

Built/tested locally: uv run --group dev pytest (13 passed), ruff check, ruff format --check. This repo has no PR CI workflow, so no checks run on the PR. Not run: obs-studio's AppImage image build (last acceptance item).

@zackees
zackees marked this pull request as ready for review October 25, 2026 03:06
@zackees

zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

Handed off to the coordinator

@zackees zackees left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coordinator review (merge-local: this repo runs no CI on PRs). Correct: retry with 1 s / 4 s backoff on every download, one root-manifest fetch per fetch --lock, and a bounded pool of 4 with results returned in order. The failing test comes first, then the fix. Nit, not blocking: _retry also retries 4xx HTTPErrors (a 404 can't succeed), costing at most 5 s on a dead URL.

Ran on the PR head (12352d2): uv run --group dev pytest 13 passed; ruff check and ruff format --check clean. Merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

fetch: retry downloads with backoff, fetch the root manifest once, and extract concurrently

1 participant