Files
pulse/scripts/compile-go-tests.sh
pulse-triage[bot] 450a551cf5 Reject incompatible Go test fixtures before backend CI fan-out
Compile all race-test binaries without execution only when source, graph, backend embeds or this admission path can affect Go. Preserve required check failures, docs/frontend-only skips and all full runtime/vet and frontend audit checks. Exercise inert and broken fixtures, diff classification and prerequisite propagation.

Change-source: pulse-maintainer
2026-10-06 19:54:22 +01:00

13 lines
687 B
Bash

#!/usr/bin/env bash
# Compile the same Linux race-test binaries as CI, without running package
# initialisers, TestMain, tests or examples. This is not a test verdict.
set -euo pipefail
echo 'Compiling all Go race-test binaries; no test binary will execute.'
# -exec replaces execution of each successfully linked binary. In contrast,
# -run '^$' alone still runs init and TestMain. Vet and real test execution
# remain in the existing required backend shards. Disable result caching so
# the output cannot be mistaken for a previously executed test result.
go test -race -vet=off -count=1 -exec /bin/true ./...
echo 'All Go race-test binaries compiled; runtime tests remain required.'