Skip to content

fix(host,fleet,image): gzip lazy plugin fetch, basename symlinks & GOGC=20 - #180

Merged
zeekay merged 1 commit into
hanzoai:mainfrom
zeekay:fix/gzip-lazy-fetch-v1.801.613
Dec 4, 2026
Merged

zeekay merged 1 commit into
hanzoai:mainfrom
zeekay:fix/gzip-lazy-fetch-v1.801.613

Conversation

@zeekay

@zeekay zeekay commented Dec 4, 2026

Copy link
Copy Markdown
Member

Ships v1.801.613 fixes for slim lazy plugin downloads and container runtime:

  1. Gzip lazy plugin fetch with HTTP/1.1 Range-resume/retry & singleflight dedup (cmd/cloud/host/fetch_gzip.go):
    • Wraps http.DefaultTransport on host boot so GET *.gz requests transparently download to a temp file over HTTP/1.1 with Range resume + retry on transient errors/stream resets, singleflight concurrent fetches of the same URL, and stream decompressed bytes via gzip.NewReader (ContentLength: -1) while zip.fetch verifies the exact decompressed SHA-256.
    • Safely unwraps http.DefaultTransport in cmd/cloud/host/reader_edge.go.
    • Full -race unit tests in cmd/cloud/host/fetch_gzip_test.go.
  2. Fix cmd/fleet symlink target & free init garbage (cmd/fleet/main.go):
    • Always symlink <app> -> filepath.Base(out) even when -links differs from filepath.Dir(-o) (fixes ../core/core ENOTDIR at container root /), covered by TestWriteLinksAlwaysUsesBasenameTarget.
    • Call runtime.GC() + debug.FreeOSMemory() right before dispatching fn() in generated multi-call main().
  3. Image workflow & Dockerfile (.github/workflows/image.yml, Dockerfile):
    • Gzip ext-linux-{arch}.gz (~73 MiB, under Cloudflare 100 MB cap) and publish to canonical https://pkg.hanzo.ai/v1/packages/hanzoai/generic/cloud/<ver>/ext-linux-{arch}.gz with canonical text-stanza /etc/cloud/plugins.lock.
    • Assert /etc/ssl/certs/ca-certificates.crt in Dockerfile rootfs and tune GOGC=20.

@zeekay
zeekay merged commit c71fd45 into hanzoai:main Dec 4, 2026
1 check passed
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