Repository navigation
Description
DRAFT — not chartered. Recorded so the idea and its analysis survive; no commitment to build it.
Distinct from: #652 (closed NOT_PLANNED) — that was distribution, shipping to machines you do not control. This
is local acceleration: running a platform's tests on your own box for that platform, before pushing.
The idea
Per-platform host variables. Set one, and that platform's tests run there. Leave it unset, and that platform is
skipped.
WINDOWS_ARM64_HOST=danoble-wd11-3.local
The point is feedback latency. Today the answer to "does this work on Windows?" costs a push plus roughly eight
minutes of CI. This makes it a local make away, which matters most for the work where platform behavior is the
subject — fsroot, signing, file, and the Windows permission campaign.
The fork that decides the size of this
Does the target host get a Go toolchain?
| Cross-compiled test binaries | Go installed on the target | |
|---|---|---|
| Setup on target | none | one package install |
-race |
impossible — cross-compiling with the race detector needs cgo and a target C toolchain on the build host | works |
testdata |
must ship the tree; a test binary resolves testdata/ against its working directory, so each must run from its own package dir |
free — it is just the repo |
| 123 packages | 123 binaries to build, ship, run, and collect | irrelevant; make test handles it |
| Implementation | a real project | rsync + ssh 'cd repo && make test-race' |
Recommended: Go on the target. The goal is catching what CI catches, and -race is where platform-specific
failures actually surface here — 2026-08-27's claimcheck timeout appeared only on race legs and was invisible to
make test. A remote mode that cannot run race would have missed exactly the defect that motivates having one.
Cross-compiling remains the right answer for #652's goal. It is the wrong one here: a large complexity tax to
avoid a single winget install golang.
Sketch
# Optional hosts for local cross-platform testing. Unset ⇒ that platform is skipped.
WINDOWS_ARM64_HOST ?=
test-windows-arm64:
@[ -n "$(WINDOWS_ARM64_HOST)" ] || { echo "WINDOWS_ARM64_HOST unset — skipping"; exit 0; }
rsync -a --delete --exclude build/ ./ $(WINDOWS_ARM64_HOST):devlore-cli/
ssh $(WINDOWS_ARM64_HOST) 'cd devlore-cli && make test-race'Open questions
- Skip semantics.
exit 0with a note means an aggregate target succeeds with nothing configured. Right for a
convenience target — but it must print loudly enough that "passed" is never mistaken for "ran". A green summary
listing skipped platforms is the minimum. - What the target needs beyond Go. Eight test files shell out:
git(×3) andpwsh(×1). True in either
approach, and it means the target is not environment-free whatever is chosen. - Windows transport. ssh works with OpenSSH Server enabled;
rsyncon Windows means WSL, Git Bash, or a
substitute. Unverified. - Which platforms get variables. The CI matrix has five legs. Some may never have a host, and the design should
not imply otherwise. - Whether scenarios travel.
make test-scenarioneeds the built products.make build PLATFORM=...already
cross-compiles them, so this may be nearly free — or may want the target to build its own.
Explicitly not in scope
CI. This adds nothing to any workflow and changes no gate. It is a local convenience, and if it stops working
nothing in the pipeline notices — which is also its risk: an unused path rots.
Activity
David-Noble-at-work commentedon Nov 9, 2026
star github triage sweep added this issue to Triage: devlore, for the rule it breaks:
no-evidence: no Evidence of completion section