RFC: build system — large images, persistent cache, and the build API surface#288
Draft
rgarcia wants to merge 1 commit into
Draft
RFC: build system — large images, persistent cache, and the build API surface#288rgarcia wants to merge 1 commit into
rgarcia wants to merge 1 commit into
Conversation
Written after an empirical attempt to build the kernel-images chromium-headful production browser image with `hypeman build`. Documents the 3GB tmpfs BuildKit-root ceiling and the stacked memory caps behind it, the opt-in/ephemeral state of build caching (verified: 0 CACHED steps on an identical rebuild), gaps vs docker build/buildx, and four bugs found along the way (SSE stream death, cancel 404, re-tag double conversion, a CH RSDP boot panic). Proposes: disk-backed BuildKit root on a dedicated volume, persistent per-scope cache volumes, whole-build dedup by host-computed input hash, scope-in-token thin tenancy (incl. gating is_admin_build, which is currently an ungated boolean), and an ordered list of API fixes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Summary
Design doc only — no code changes. Written after an empirical attempt to build the kernel-images
chromium-headfulproduction browser image withhypeman buildon a dev host (main @ 1b153f8).Findings (all measured, timeline in the doc's appendix):
MaxBuildMemoryMB) and 32GB (max_memory_per_instance). With those temporarily lifted, the chromium-headful image builds in 2m42s and boots with all artifacts verified.CACHEDsteps;--mount=type=cachecontents never survive the VM.is_admin_buildis an ungated boolean — anybuild:writetoken can push to the global cache (fine while the control plane is the only token-holder; must be fixed before that changes).build cancel404s on building builds,image_namere-tag triggers a second full rootfs conversion of the same digest, and a cloud-hypervisor RSDP boot panic at--memory 4096.Proposals (ordered, separable):
--no-cache/--pullbuild_argsis dead wiring (one multipart field short of working),target, network mode exposure, config-derived capsReview notes
🤖 Generated with Claude Code