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: download the locked tools in parallel, and skip ones the host provides #2
Every tool is an independent, small archive (see the root manifest.json), so fetch --lock can download them concurrently instead of one after another, each still checked against its sha256 before extraction. A lock entry may also say a tool is optional when the host provides it (e.g. a distro's own Qt or FFmpeg at a suitable version), in which case fetch skips it. Measure the image build before and after.
Triage: two independent changes with a clear scope: (1) concurrent downloads in fetch --lock, each verified by sha256 before extraction; (2) an optional/host-provided flag in lock entries that fetch skips. Acceptance: the lock resolves to identical extracted trees serially and in parallel, a corrupted download still fails before extraction, a host-provided tool is skipped only when its version meets the lock, and image build times are posted from before and after. The two can be separate PRs. P3, size:M.
Claiming: #2 part 1 (concurrent downloads in fetch --lock, each sha256-checked before extraction, with the extracted trees the same as a serial fetch). Part 2 (the optional, host-provided flag) is left open.
Correction: dropping my claim. Part 1 already merged in #12 (b918bf3): fetch --lock goes through install_all, which fetches the root manifest once and then downloads, sha256-checks and extracts each pin in a bounded pool (WORKERS = 4). test_downloads_overlap covers it. Left: part 2 (an optional, host-provided entry that fetch skips) and the before/after image-build measurement. Part 2 needs a decision first: how fetch decides that the host provides a tool at a suitable version (a probe per tool, such as pkg-config for Qt or FFmpeg, or a flag the caller passes).
Claiming: #2 part 2 — an optional / host-provided flag on a lock entry that fetch skips.
Plan (one PR):
RED: tests/test_fetch.py — parse_lock accepts a "optional": true entry with no sha256/install (and still rejects a missing sha256 without the flag), and obs-studio-libs fetch --lock installs the ordinary pins while never requesting the host-provided one's archive.
GREEN: LockedTool.optional in model.py (strict bool field) + the skip in cli.py's fetch path, with the reasons printed.
Part 1 (concurrent downloads) already merged in #12.
An entry with "optional": true pins no bytes/install path and fetch skips it (printing the reason), while an entry without the flag still requires both fields. RED 03cbb10 fails on the unknown field (deps.lock.json.tools[1].sha256: missing); GREEN 61fef3d is pytest 23 passed, ruff check and ruff format --check clean. Both parts of #2 are now covered (part 1 merged in #12).
Nothing is left on this issue. Tests: uv run --group dev pytest 23 passed, ruff check / ruff format --check clean. A consumer that wants the flag sets it on its own lock entry (obs-studio's deps.lock.json` is unchanged and unaffected).
Activity
zackees commentedon Oct 25, 2026
/ready
Triage: two independent changes with a clear scope: (1) concurrent downloads in
fetch --lock, each verified by sha256 before extraction; (2) anoptional/host-provided flag in lock entries that fetch skips. Acceptance: the lock resolves to identical extracted trees serially and in parallel, a corrupted download still fails before extraction, a host-provided tool is skipped only when its version meets the lock, and image build times are posted from before and after. The two can be separate PRs. P3, size:M.zackees commentedon Oct 25, 2026
/ready
zackees commentedon Oct 25, 2026
Claiming: #2 part 1 (concurrent downloads in
fetch --lock, each sha256-checked before extraction, with the extracted trees the same as a serial fetch). Part 2 (the optional, host-provided flag) is left open.zackees commentedon Oct 25, 2026
Correction: dropping my claim. Part 1 already merged in #12 (b918bf3):
fetch --lockgoes throughinstall_all, which fetches the root manifest once and then downloads, sha256-checks and extracts each pin in a bounded pool (WORKERS = 4).test_downloads_overlapcovers it. Left: part 2 (an optional, host-provided entry that fetch skips) and the before/after image-build measurement. Part 2 needs a decision first: how fetch decides that the host provides a tool at a suitable version (a probe per tool, such as pkg-config for Qt or FFmpeg, or a flag the caller passes).zackees commentedon Oct 27, 2026
Claiming: #2 part 2 — an
optional/ host-provided flag on a lock entry thatfetchskips.Plan (one PR):
tests/test_fetch.py—parse_lockaccepts a"optional": trueentry with nosha256/install(and still rejects a missingsha256without the flag), andobs-studio-libs fetch --lockinstalls the ordinary pins while never requesting the host-provided one's archive.LockedTool.optionalinmodel.py(strict bool field) + the skip incli.py's fetch path, with the reasons printed.Part 1 (concurrent downloads) already merged in #12.
zackees commentedon Oct 27, 2026
Part 2 is up: #19
An entry with
"optional": truepins no bytes/install path andfetchskips it (printing the reason), while an entry without the flag still requires both fields. RED03cbb10fails on the unknown field (deps.lock.json.tools[1].sha256: missing); GREEN61fef3dispytest23 passed,ruff checkandruff format --checkclean. Both parts of #2 are now covered (part 1 merged in #12).fetch: skip a lock entry the host provides (#2) (#19)
zackees commentedon Oct 27, 2026
Both parts are done, so closing.
fetch --lockdownloads, each sha256-checked) — fetch: retry with backoff, fetch the root manifest once, install concurrently #12."optional": trueon a lock entry: the host provides that tool, so fetch skips it) — fetch: skip a lock entry the host provides (#2) #19, squash-merged as 16a12c3.Nothing is left on this issue. Tests:
uv run --group dev pytest23 passed,ruff check/ruff format --checkclean. A consumer that wants the flag sets it on its own lock entry (obs-studio'sdeps.lock.json` is unchanged and unaffected).