hostgate

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2026 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL