Repository navigation
CLI: Update Hypeman Go SDK to v0.29.0 - #78
Open
kernel-internal[bot] wants to merge 1 commit into
Open
kernel-internal[bot] wants to merge 1 commit into
kernel-internal[bot] wants to merge 1 commit into
Conversation
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
v0.29.0.Coverage
Update CLI coverage for hypeman-go v0.29.0
Summary
github.com/kernel/hypeman-gofrom v0.28.0 to v0.29.0.golang.org/x/net.x-cli-skip: trueoperations.CLI coverage changes
Instance creation
Updated
hypeman runfor the changedCreateInstanceRequestfields:platform: documents Linux amd64/arm64 support and the requirements for experimentaldarwin/arm64guests.size(--memory): documents image-derived macOS defaults and VZ size constraints.vcpus(--cpus): documents image-derived macOS defaults and VZ CPU constraints.overlay_size(--overlay-size): documents that macOS guests clone the complete image disk and must omit a Linux overlay size.CPU, memory, and overlay values are now omitted from the API request unless their flags are explicitly supplied. Linux continues to receive the documented server defaults, while macOS can inherit image-specific CPU and memory settings and avoid an invalid overlay request.
Logs
swtpmto the documented values forhypeman logs --source, following thegetInstanceLogssource enum.GPU and resource output
hypeman psnow recognizesInstanceGPU.device_pathas a vGPU assignment, covering SR-IOV hosts in addition to mdev UUID hosts.hypeman resourcesnow displaysallocatable_slots,quarantined_slots, andplacement_disabled_reasonfromGPUResourceStatus.Spec-aligned caveats
Updated command descriptions to reflect changed OpenAPI behavior:
InstanceStats.network_rx_bytes:hypeman statsexplains that received network bytes are always zero for macOS NAT guests.restoreInstance:hypeman restorenotes that standby restore is unavailable for some guest types.statInstancePath:hypeman cpnotes that required guest filesystem inspection is unavailable for some guest types.createIngress:hypeman ingress createnotes that ingress creation is unavailable in macOS-only mode.createBuild:hypeman buildnotes that builds are unavailable in macOS-only mode.Intentional exclusions
hypeman build, instance stat calls inhypeman cp, and archive volume creation throughhypeman volume create --from-archive.Validation
go test ./...go build ./...git diff --check origin/mainValidation
Note
Low Risk
Dependency bump plus CLI help/output and conditional request fields; no new auth or core protocol logic, with targeted tests added.
Overview
Bumps
github.com/kernel/hypeman-goto v0.29.0 (with matching Docker andgolang.org/x/netmodule updates) and refreshes the CLI for the new API semantics.hypeman runnow documents Linux vs macOS/darwin/arm64limits and only sendsvcpus,size, andoverlay_sizewhen the user explicitly sets those flags, so macOS guests can inherit image defaults and avoid invalid overlay requests.GPU and resource UX is expanded:
pstreatsdevice_pathas a vGPU assignment;resourcesprints allocatable/quarantined slots, placement-disabled reasons, and clearer profile-availability notes (with tests).Help and descriptions across build, cp, ingress create, restore, logs (
swtpmsource), and stats call out guest-type or macOS-only limitations aligned with v0.29.0.Reviewed by Cursor Bugbot for commit 82bed8c. Bugbot is set up for automated code reviews on this repo. Configure here.