Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

fix(ci): fail the preamble budget step when -run matches no test

Luigi Agosti5c2fdd05608c
diff --git a/.github/workflows/reusable-go.yml b/.github/workflows/reusable-go.yml
index ed5db492..e656332b 100644
--- a/.github/workflows/reusable-go.yml
+++ b/.github/workflows/reusable-go.yml
@@ -53,6 +53,10 @@ jobs:
set +e
go test -count=1 -v -run TestAgentPreambleStaysWithinBudget ./internal/mcp/ 2>&1 | tee preamble.log
status=${PIPESTATUS[0]}
+ if ! grep -q '^=== RUN' preamble.log; then
+ echo "no test ran: -run matched nothing, so the preamble budget guard is vacuous; re-point it at whatever measures the preamble rather than deleting it" >&2
+ status=1
+ fi
{
echo "### Agent preamble"
echo '```'