archrun

command
v0.181.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: BSD-3-Clause Imports: 16 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 archrun cross-compiles every test binary of a Go repository for one architecture, copies each to a remote machine of that architecture over ssh, runs it there under a timeout and a memory limit, and reports PASS or FAIL per package.

⛔ WHY THIS EXISTS. GitHub has no POWER or Z runners, so CI covers ppc64le and s390x under qemu-user at best, and qemu masks real SIGILL, SIGBUS and wrong-output bugs (a POWER8 SIGILL, an RVV SIGBUS, both found only on silicon). The real hosts have no usable Go, so the recipe is always the same: `go test -c` for the target, scp, run, delete. It was done by hand, per package, in shell loops that guard-bash refuses; nothing in the fleet did it for a whole repository.

⛔ A COMPILED TEST BINARY DOES NOT CARRY ITS FIXTURES: the package's testdata directory is copied beside it, and the binary runs with that directory as its working directory, as `go test` would. A test that resolves files UP from its package (go.mod, ../../scripts) is not served by this and will say so by failing; so will a test that shells out to `go`, which the host lacks.

⛔ THE HOST IS CHECKED BEFORE ANYTHING RUNS: `uname -m` must be the machine that --arch names, so a run labelled s390x cannot silently happen on the wrong box. Binaries run with `-race` off (it needs cgo on these targets), so a pass says nothing about data races.

⛔ A BUILD FAILURE IS NOT A TEST FAILURE, and neither is an ssh failure: the statuses are PASS, FAIL, TIMEOUT, BUILD, SKIP (no test file for this target) and ERROR (the host could not be reached or the copy failed). ERROR means the question was not answered, never that the code is fine.

Jump to

Keyboard shortcuts

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