Documentation
¶
Overview ¶
Command hostgate runs the host CI gate for the nvidia and examples modules.
It checks formatting (gofmt -l), cross-platform vet (darwin/arm64, linux/amd64, linux/arm64) for both modules, a CGO_ENABLED=0 build of both modules for linux/amd64 and linux/arm64 (linux vet also runs without cgo), vet of the files that build only with a custom tag (each file's smallest tag set, read from the //go:build lines, on every one of those targets a //hostgate:refuse file does not rule out), x/README.md inventory parity (xinventory -check), root-package upstream provenance (TestUpstreamOutputs), and go test ./... for both modules. Each check is reported individually with explicit pass, skip, and fail counts so that skipped tests never read as passes. Each check records the host's load when it started, and the summary says whether the host was busy.
With -stress, hostgate runs only the go test checks, each in four arms: unstressed, with GOMAXPROCS=1, with -stress-burn busy processes per CPU competing for the host, and with -stress-parallel instances running at once beside those processes, -stress-count times each. It then lists every test that did not have one outcome in all of those runs, which is how a test that assumes an idle host (a fixed deadline, a window that must fit inside a retry schedule) shows itself on demand. Use -pkg and -test-run to aim it at the packages and tests under suspicion; -stress over ./... takes three plus -stress-parallel full test runs per count.