Repository navigation
Conversation
|
Actual full-size transport QA passed against Runner/supervisor exit0,47.96s total, sampled peak process-group RSS17.98MiB, minimum free disk491.61GiB. Bounded by1.5GiB RSS/60GiB free disk/20min deadline, nice10/GOMAXPROCS1/GOMEMLIMIT256MiB; no VM ran during upload. Sampled RSS does not include OS cache or account for physical APFS allocation. This demonstrates a viable streamed transport for the concrete publisher, not a completed PR5 publisher/build API. Cache namespace avoided image conversion; registry auth middleware, remote credentials/redirect/retry/resume and ambiguous commit reconciliation were not exercised. Default go-containerregistry |
f109add to
ed21906
Compare
|
Simplification update at ed21906: standalone production MachineBuildRunner replaced by internal MachineBuildBackend executing machine-specific phases through ordinary CreateBuild/runBuild. Normal manager owns queue, persisted request, deadline, private source staging/hash verification, status/log completion, provenance and image-readiness gate. Machine resources inherit base; unsupported Linux builder/cache/secret options fail admission; recovered source is verified before start. Source helper is shared without adding a Linux source-size cap. Normal-manager synthetic tests prove ready/failed status, source consumption and no publication after provision failure. Build race suite passed 3 runs excluding exactly five existing Linux config-volume tests requiring unavailable mkfs.ext4; focused image/machine tests, CGO0 machine/source tests and vet pass. CGO0 VZ OCI round-trip remains unsupported. No concrete VZ/GuestService driver, streamed publisher, recipe, secret/log stream or public HTTP machine mode: still a foundation. All PRs remain draft. This is source-level/synthetic validation, not a new live boot or production build proof. Default Codex independent review was attempted but is still blocked by authentication (HTTP401). Published atomically after checking reviewer heads with explicit per-ref force-with-lease; prior heads preserved locally. |
ed21906 to
951e8f6
Compare
|
Published Implemented concrete GuestService/VZ machine driver, bounded tar.gz/versioned JSON recipe admission, instance-locked strict stop/export, normal-job cancellation/quarantine, and scoped-auth streaming publisher with independent persisted blob verification and manifest-last digest verification. Darwin shutdown now schedules power-off after acceptance so vsock teardown cannot race the reply. Native isolated QA passed: ordinary queued build → root provisioning → source sanitation → acknowledged no-force shutdown + owned VMM exit → matching export → authenticated28.85GB streaming publication → shared image-readiness gate → fresh empty destination/cache HTTP pull → cold boot → root exec marker + source-absence check. Run483.74s, sampled test-process peak36.875MiB, minimum free313.17GiB. First attempt correctly refused export/publication when shutdown acknowledgement was lost. Final cold-boot test cleanup used ordinary short-timeout forced fallback; that stop was not used for export. Evidence limits: activation remains internal Go CreateBuild, not HTTP POST /builds/SDK. Base was a manually installed isolated development template, not an automatically provisioned or credential-sanitized production image. Identity exclusivity preserved; no rekey/fork/parallel claim. Common safe recipe logs, clean-base policy, storage quotas, native repeat/cancel/recovery and Linux runtime regressions remain gates. Repeated focused race regressions and supported full build suite pass; exactly five existing mkfs.ext4-dependent tests excluded on Darwin. Selected CGO0 synthetic tests and vet pass. Default independent autoreview remains401 authentication-blocked, not a completed clean review. All QA VMMs stopped/storage closed; original API and identity slot preserved. See updated docs/macos-builds.md for contracts and remaining gates. |
|
Published Default-off **Real HTTP/provider QA passed:**401 missing/invalid auth,403 read-only scope,202 POST /builds, ordinary queue → real guest provisioning/sanitation → acknowledged no-force export → verified scoped streaming publication → shared readiness → Ready. POST /instances cold-booted the returned image_ref; normal authenticated exec WebSocket verified UID0, the new marker and source absence. New output cold boot used converted cache; previous native run separately proved fresh pull. Private development template remains unsuitable for external distribution without credential sanitation. All QA storage closed/API stopped/slot released; original instance preserved. Repeated focused API/config/provider/scopes race tests, full config/provider/scopes race tests and vet pass. Default independent autoreview remains401-blocked; no clean review claim. Still gates: external SDK releases, safe recipe logs, clean-base policy, storage quotas, native cancellation/recovery/repeat and Linux runtime validation. Updated docs/macos-builds.md includes opt-in configuration and curl example. |
-->
✱ stlc build✅ go code · compare
✅ python code · compare
✅ typescript code · compare
Diagnostics: ❗ 0 new / 1 total error, 💡 0 new / 5 total note
Build metadata
This comment is auto-generated by stlc and is kept up to date as you push. |
0983495 to
d5871ad
Compare
49be29f to
b6a7a23
Compare
b6a7a23 to
d5fc996
Compare
d5fc996 to
a47ca78
Compare
a47ca78 to
c4a074d
Compare
c4a074d to
53825ac
Compare
53825ac to
37bc2d3
Compare
80bf248 to
a60c744
Compare
40c11c3 to
ef0b193
Compare
54145ee to
bf36e81
Compare
bf36e81 to
7e3a657
Compare
7e3a657 to
49b3b8d
Compare
92f19b3 to
4812b8a
Compare
5122239 to
259b0cf
Compare
809ca6a to
f361ec8
Compare
f361ec8 to
71aa094
Compare
Opt-in macos_builds: pinned installed base, versioned recipe, strict export under the instance lock, streaming publication, abort without export, prior-builder reap. Linux builds are unchanged.
Summary
PR 6 of 6. Experimental machine-image builds for macOS. Base: #514. Not needed for v0; this can land later.
macos_builds: true(requiresmacos_only) letsPOST /buildsacceptmachine_base_image(a SHA256-pinned installed base) and a versioned recipe (hypeman-macos-build.json, version 1).builds/{id}, and the build waits for the existing image-readiness gate.macos_onlymode, and Linux jobs stay untouched on disk.Linux code touched
lib/builds/manager.go: machine jobs dispatch tomacos_build_manager.go; the staged machine source is removed once the image is ready.lib/instances/stop.go: a strict stop variant used only for export; a normal stop takes the same path as before.cmd/api:macos_buildsconfig, the upload limiter, and multipart parsing for machine builds. Linux build requests are parsed as before.Limitations
The recipe format is internal (version 1). Recipe output isn't streamed. No clean-template sanitation policy, toolchain provenance or storage quota yet.
registry.urlmust be hypeman's own registry.Testing
Stack
Each PR is one commit on the one below it. macOS logic lives in its own files (
macos*.go,*_darwin.go,exec_lifecycle.go,port_forward.go); shared Linux files get small hooks such asif stored.MacOS != nil.