Skip to content

devcloud 0.9.1: package layer split for parallel warm pulls; Claude Code install retried (board #119) - #344

Merged
SSFSKIM merged 7 commits into
mainfrom
devcloud-package-split
Oct 22, 2026
Merged

SSFSKIM merged 7 commits into
mainfrom
devcloud-package-split

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Board #119. A warm devcloud image build pulled packages.sh's 436 MB layer from the GitHub Actions cache as one stream. packages.sh now has three parts of similar size (apt, gcloud, tools), and the Dockerfile builds each as its own layer, so a warm build pulls them in parallel. With no argument, packages.sh runs every part in order, as setup.sh does on a VM. devcloud 0.9.1.

The live proof turned up a separate bug in setup.sh: the Claude Code installer was fetched as curl | bash without pipefail. During a burst of claude.ai 429s, the fetch piped nothing to bash, so a GCE image baked without claude and its up failed at step apply. Now any failure (a 429, a reset HTTP/2 stream, the installer's own download) is retried after 15, 30, 60 and 120 s and then fails the run. setup.sh also checks at the end that claude is installed.

Report: docs/doperpowers/plans/2026-10-22-devcloud-package-split-report.md.

Validation Evidence

  • The pull was bound by the single stream, so splitting helps. Measured on scratch runs 39738132790 and 39738953047: the single 436.59 MB layer downloaded in 13.0–38.1 s (11–34 MB/s). A 4-layer prototype downloaded its blobs in parallel in 7.7–13.1 s (45–77 MB/s combined), and its whole all-CACHED build took 16.6–26.3 s.

  • Warm image builds are ≤ ~30 s on every gate. This commit's recipe (cb208b8) was seeded on a scratch ci/ ref with run.sh's own flow (CI_KIT_BUILD_CACHE_WRITE=1, run 39739620268), then read back on the same ref (run 39740406055). There, all four steps printed CACHED and every case passed. The times are from "== image" to "ok the image builds":

    gate before (run 39736552512) after (run 39740406055)
    devcloud-image 48.7 s 21.8 s
    devcloud-host 29.6 s 20.4 s
    devcloud-systemd 32.0 s 20.6 s

    The proof on main itself waits for the post-merge seed: gh workflow run ci.yml --ref main -f gates=devcloud-image.

  • Every case still runs exactly once. The three integration parts are unchanged, and the warm run's gates printed 15, 23 and 11 ok lines with no FAIL.

  • Live proof on GCE. devcloud vm image build --account gce on 22de710 made dc-img-f7dea6d6e8c3-…. devcloud vm up --label pks --account gce --ttl 1h from it made dc-pks-0046, ready in 3m05s. devcloud status showed every step ok, with projects skipped because none were named. claude 2.1.308, gcloud, gh, node, tailscale, docker, uv and hcloud were all on PATH. The VM was deleted with vm down ("departed and deleted") and the image by hand, both at 08:06Z the same day. GCE lists no dc- instance or image. The last commit (5d0ccc3) changes only the retry delays.

  • CI. ci-gate on 5d0ccc3: GREEN 8/8 (run 39745378623): devcloud-image 4m22s, devcloud-systemd 4m36s, devcloud-host 5m38s. Earlier commits: cb208b8 was RED, from the 429 and the silent install (since fixed); fb73cbd was GREEN; 22de710 was RED, with systemd seeing 429 for 110 s, which is why the retry window is now longer.

  • Review. doperpowers:review-code at the medium rung, over the split and then the setup.sh follow-ups: no material findings either time.

Residue

  • Image builds depend on claude.ai. Every uncached build installs Claude Code from claude.ai. A burst that outlasts the ~4 min retry window still fails the build, now loudly rather than silently. A pinned or mirrored installer would remove the dependency.
  • vm down on a host whose boot failed at apply. The first down of dc-pks-8fb9 dropped its connection mid-departure ("outcome unknown, VM kept"), and only --force deleted the VM. The driver warned that the desk may still list it in Machines.

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)

…side (board #119)

A warm build pulled packages.sh's 436 MB layer from the GitHub Actions cache
as one stream, at 11-27 MB/s. packages.sh now has three parts of similar size
(apt, gcloud, tools); the Dockerfile runs each as a layer, so a warm build
pulls them in parallel. With no argument it runs every part in order, as
setup.sh does on a VM, so a VM's single run gives the same result.

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
…119)

The installer was fetched as curl | bash without pipefail, so an HTTP 429
from claude.ai piped nothing to bash and setup.sh went on: a GCE image baked
during a burst of 429s had no claude, and its first boot failed at apply.
The fetch now fails the run, and setup.sh checks that claude is installed.

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
…board #119)

claude.ai answered HTTP 429 in a burst that failed two CI gates and a bake
on 2026-10-22. A failed install (the fetch of install.sh or the installer's
own download) is tried again after 15, 30 and 45 s before it fails the run.

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
… four minutes (board #119)

A CI gate on 22de710 saw claude.ai answer 429 for all four tries over
110 s, and main's seed saw a reset HTTP/2 stream (curl 92). Any failure of
the fetch or the installer is retried, now after 15, 30, 60 and 120 s.

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
…oard #119)

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
@SSFSKIM
SSFSKIM merged commit 22952ef into main Oct 22, 2026
10 checks passed
@SSFSKIM
SSFSKIM deleted the devcloud-package-split branch October 22, 2026 08:51
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