Repository navigation
fix(host,fleet,image): gzip lazy plugin fetch, basename symlinks & GOGC=20 - #180
Merged
Merged
Conversation
…eflight, basename symlinks & GOGC=20
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.
Ships v1.801.613 fixes for slim lazy plugin downloads and container runtime:
cmd/cloud/host/fetch_gzip.go):http.DefaultTransporton host boot soGET *.gzrequests transparently download to a temp file over HTTP/1.1 withRangeresume + retry on transient errors/stream resets, singleflight concurrent fetches of the same URL, and stream decompressed bytes viagzip.NewReader(ContentLength: -1) whilezip.fetchverifies the exact decompressed SHA-256.http.DefaultTransportincmd/cloud/host/reader_edge.go.-raceunit tests incmd/cloud/host/fetch_gzip_test.go.cmd/fleetsymlink target & free init garbage (cmd/fleet/main.go):<app> -> filepath.Base(out)even when-linksdiffers fromfilepath.Dir(-o)(fixes../core/coreENOTDIRat container root/), covered byTestWriteLinksAlwaysUsesBasenameTarget.runtime.GC()+debug.FreeOSMemory()right before dispatchingfn()in generated multi-callmain()..github/workflows/image.yml,Dockerfile):ext-linux-{arch}.gz(~73 MiB, under Cloudflare 100 MB cap) and publish to canonicalhttps://pkg.hanzo.ai/v1/packages/hanzoai/generic/cloud/<ver>/ext-linux-{arch}.gzwith canonical text-stanza/etc/cloud/plugins.lock./etc/ssl/certs/ca-certificates.crtinDockerfilerootfs and tuneGOGC=20.