Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions scripts/ci/test-cli-and-isolated-env-guard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,17 @@ LACP_BENCH_LOOKBACK="30"
EOF

before_hash="$(shasum "${ENV_FILE}" | awk '{print $1}')"

# Guard against truncated placeholder policy paths accidentally committed.
if grep -F 'LACP_MCP_AUTH_POLICY_FILE="${ROOT...json"' "${ROOT}/bin/lacp-test" >/dev/null; then
echo "[cli-env-guard] FAIL malformed LACP_MCP_AUTH_POLICY_FILE in bin/lacp-test" >&2
exit 1
fi
if grep -F 'LACP_MCP_AUTH_POLICY_FILE="${LACP...son}"' "${ROOT}/scripts/lacp-lib.sh" >/dev/null; then
echo "[cli-env-guard] FAIL malformed LACP_MCP_AUTH_POLICY_FILE in scripts/lacp-lib.sh" >&2
exit 1
fi

"${ROOT}/bin/lacp" test --isolated >/dev/null
after_hash="$(shasum "${ENV_FILE}" | awk '{print $1}')"

Expand Down