Files
Pulse/scripts/go-test-compile-required.sh
pulse-triage[bot] 76c8477035 Keep test-only precompilation scoped to changed Go packages
Preserve inert early rejection before backend fan-out while compiling only changed root-module test packages and their imports for a complete exact-head test-only diff. Fall back to the full package set for source, graph, control, missing or ambiguous evidence. Keep every runtime/vet check, race flag, deadline and required-check verdict unchanged.

Contract-Neutral: CI-only inert precompilation scope for exact test-only diffs; product contracts and full runtime verification are unchanged.
Change-source: pulse-maintainer
2026-10-29 15:08:42 +00:00

12 lines
584 B
Bash

#!/usr/bin/env bash
# Read the entire changed-file list. Source/manifests, embedded backend files
# and this admission path can affect the root Go module; frontend-only changes
# cannot invalidate its test API. An unavailable diff is handled as true by CI.
set -euo pipefail
if grep -E '^go\.(mod|sum)$|^(internal|cmd|pkg)/|^scripts/(compile-go-tests|go-test-compile-required|ensure_test_assets)\.sh$|^scripts/select-go-test-compile-packages\.py$|^\.github/workflows/build-and-test\.yml$|\.(go|c|cc|cpp|h|s|S|syso)$' >/dev/null; then
printf 'true\n'
else
printf 'false\n'
fi