Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(e2e): clean static gate contracts

Alfredo Lopez4a3fc13939a0
diff --git a/scripts/e2e/e2e-crd-field-injection.sh b/scripts/e2e/e2e-crd-field-injection.sh
index 547b3f90f..d4fe358f8 100755
--- a/scripts/e2e/e2e-crd-field-injection.sh
+++ b/scripts/e2e/e2e-crd-field-injection.sh
@@ -55,6 +55,7 @@ require_safe_kube_context || exit 1
cleanup_e2e_resources
ensure_e2e_resources_absent ||
fail "Stale e2e-sec resources remain after cleanup; refusing stale-positive E2E run"
+# shellcheck disable=SC2154 # e2e-lib.sh owns the shared result counters.
[ "$e2e_fail" -gt 0 ] && exit 1
# ═══ Test 1: imagePullPolicy override prevention ═════════════════════
@@ -303,5 +304,6 @@ ensure_e2e_resources_absent && ok "All e2e-sec resources cleaned up" || fail "e2
# ═══ Summary ═════════════════════════════════════════════════════════
header "Summary"
+# shellcheck disable=SC2154 # e2e-lib.sh owns the shared result counters.
echo -e " ${GREEN}PASS${NC}: ${e2e_pass} ${RED}FAIL${NC}: ${e2e_fail} Total: ${e2e_total}"
[ "$e2e_fail" -gt 0 ] && exit 1 || exit 0
diff --git a/scripts/e2e/e2e-wrc-hcc-contracts.sh b/scripts/e2e/e2e-wrc-hcc-contracts.sh
index 21438fec4..570f0f923 100755
--- a/scripts/e2e/e2e-wrc-hcc-contracts.sh
+++ b/scripts/e2e/e2e-wrc-hcc-contracts.sh
@@ -298,7 +298,7 @@ else
fi
rm -f "$running_response_file"
-if running_status_json="$(wait_for_running_workflowrecipe_status)"; then
+if wait_for_running_workflowrecipe_status >/dev/null; then
ok "WorkflowRecipe becomes active when workflow execution is running"
else
fail "WorkflowRecipe did not become active on running workflow execution"
@@ -429,7 +429,7 @@ else
fi
rm -f "$pending_response_file"
-if pending_status_json="$(wait_for_pending_preserves_non_terminal_recipe_status)"; then
+if wait_for_pending_preserves_non_terminal_recipe_status >/dev/null; then
ok "WorkflowRecipe stays non-terminal when workflow execution is pending"
else
fail "WorkflowRecipe did not stay non-terminal on pending workflow execution"
diff --git a/scripts/tests/test-hcc-watch-recovery-gate.sh b/scripts/tests/test-hcc-watch-recovery-gate.sh
index 44d0519f7..c6494f6fa 100755
--- a/scripts/tests/test-hcc-watch-recovery-gate.sh
+++ b/scripts/tests/test-hcc-watch-recovery-gate.sh
@@ -715,7 +715,7 @@ valid_baseline_policies='{"items":[
]}'
if (
MCP_NS=mcp-server
- MANAGED_BY_VALUE=host-context-controller
+ MANAGED_BY_VALUE='host-context-controller'
MOCK_POLICY_JSON="$valid_baseline_policies"
kctl() { printf '%s\n' "$MOCK_POLICY_JSON"; }
eval "$baseline_policy_snapshot_function"