Skip to content

Fail the offline bundle build when a dependency download fails (#182) - #197

Merged
amar-python merged 1 commit into
mainfrom
fix/182-bundle-download-failures
Nov 4, 2026
Merged

amar-python merged 1 commit into
mainfrom
fix/182-bundle-download-failures

Conversation

@amar-python

Copy link
Copy Markdown
Owner

Refs #182.

What changes

scripts/offline/build_bundle.sh no longer hides dependency download failures.

  • Before: apt-get download $DEPS ... || true. A failed download was ignored, and the only check afterwards covered four top-level packages. A bundle missing a dependency still reported success and failed later on the offline VM.
  • After: virtual packages (Candidate: (none)) are skipped. The real closure is downloaded without || true, so set -e stops the build on any failure.

Checks run

  • The real closure (114 packages) downloads with exit 0 and produces 114 .deb files. Run on Ubuntu 24.04 with the apt index reachable from the sandbox.
  • A small list with one real package, one virtual package and one bogus name: the virtual package is skipped, and the bogus name exits 100.
  • A clean small list exits 0.
  • The old code with a bogus dependency exits 0 and leaves no .deb for it, which reproduces the defect.
  • bash -n scripts/offline/build_bundle.sh passes.

Not run


Generated by Claude Code

build_bundle.sh ran `apt-get download $DEPS ... || true`, so a failed
download was ignored. The only check after it covered the four top-level
packages, so a bundle missing a dependency still reported success and
failed later on the offline VM.

- Skip virtual packages (Candidate: (none)) because they have nothing to
  download.
- Download the remaining closure without `|| true`, so set -e stops the build.

Verified on Ubuntu 24.04 (apt index reachable from the sandbox):
- Real closure, 114 packages: download exit 0, 114 .deb files.
- Small list with one real package, one virtual package and one bogus name:
  the virtual package is skipped and the bogus name exits 100.
- Clean small list: exit 0.
- Old code with a bogus dependency: exit 0 with no .deb for it.

Not run: the full build_bundle.sh (npm, pip, frontend steps). Needs a run on
the Ubuntu 24.04 WSL (runbook Phase A).

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011T6Wqk7v8qnw9h29hpqnnv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant