mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-28 16:58:31 +01:00
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
12 lines
584 B
Bash
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
|