Repository navigation
devcloud 0.9.1: package layer split for parallel warm pulls; Claude Code install retried (board #119) - #344
Merged
Merged
Conversation
…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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Board #119. A warm devcloud image build pulled
packages.sh's 436 MB layer from the GitHub Actions cache as one stream.packages.shnow 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.shruns 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 ascurl | bashwithout pipefail. During a burst of claude.ai 429s, the fetch piped nothing to bash, so a GCE image baked withoutclaudeand itsupfailed 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 thatclaudeis 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":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
oklines with no FAIL.Live proof on GCE.
devcloud vm image build --account gceon 22de710 madedc-img-f7dea6d6e8c3-….devcloud vm up --label pks --account gce --ttl 1hfrom it madedc-pks-0046, ready in 3m05s.devcloud statusshowed 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 withvm down("departed and deleted") and the image by hand, both at 08:06Z the same day. GCE lists nodc-instance or image. The last commit (5d0ccc3) changes only the retry delays.CI.
ci-gateon 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
vm downon a host whose boot failed at apply. The firstdownofdc-pks-8fb9dropped its connection mid-departure ("outcome unknown, VM kept"), and only--forcedeleted the VM. The driver warned that the desk may still list it in Machines.Sminos-Session: devcloud setup#639ca648 (macbook on macbook)