Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(e2e): isolate WRC degradation gate
Alfredo Lopez8facdb22978c
diff --git a/Makefile b/Makefileindex c7d9fc1e7..ae1911166 100644--- a/Makefile+++ b/Makefile@@ -1267,12 +1267,6 @@ test-e2e-wrc-egress-degradation: ## Prove valid UI/workload services survive tra@test -n "$(E2E_EXPECTED_PRE_GATE_GATE)" || { echo "Set E2E_EXPECTED_PRE_GATE_GATE to the gate recorded by the branch-owned pre-gate sync" >&2; exit 1; }E2E_WRC_EGRESS_FAULT_INJECTION=1 E2E_EXPECTED_PRE_GATE_GATE="$(E2E_EXPECTED_PRE_GATE_GATE)" MINIKUBE_PROFILE=$(E2E_KUBECONTEXT) KUBECONTEXT=$(E2E_KUBECONTEXT) bash scripts/e2e/e2e-wrc-egress-degradation.sh-.PHONY: test-e2e-pr567-egress-resilience-test-e2e-pr567-egress-resilience: ## Run the exact-head HCC + WRC external-egress resilience journeys sequentially- @echo "Running PR #567 external-egress resilience gates..."- $(MAKE) test-e2e-hcc-mcp-context-readiness E2E_KUBECONTEXT=$(E2E_KUBECONTEXT) E2E_EXPECTED_PRE_GATE_GATE="$(E2E_EXPECTED_PRE_GATE_GATE)"- $(MAKE) test-e2e-wrc-egress-degradation E2E_KUBECONTEXT=$(E2E_KUBECONTEXT) E2E_EXPECTED_PRE_GATE_GATE="$(E2E_EXPECTED_PRE_GATE_GATE)"-.PHONY: test-e2e-hcc-readiness-bootstraptest-e2e-hcc-readiness-bootstrap: ## Prove HCC readiness while its initial Host fleet pass remains active@echo "Running HCC initial-fleet readiness gate..."diff --git a/scripts/e2e/e2e-wrc-egress-degradation.sh b/scripts/e2e/e2e-wrc-egress-degradation.shindex e34822044..46f997be5 100755--- a/scripts/e2e/e2e-wrc-egress-degradation.sh+++ b/scripts/e2e/e2e-wrc-egress-degradation.sh@@ -134,6 +134,9 @@ workload_health() {local podpod="$(ready_pod_name "$namespace" \"clerum.io/recipe=${RECIPE_NAME},clerum.io/workload=${workload}" 2>/dev/null)" || return 1+ # loopback is intentionally assembled inside JavaScript for the repository's+ # public/private evidence boundary; no shell expansion belongs in this body.+ # shellcheck disable=SC2016kctl exec "$pod" -n "$namespace" -- node -e 'const loopback = [127, 0, 0, 1].join(".");fetch(`http://${loopback}:3001/`)diff --git a/scripts/tests/test-wrc-egress-degradation-gate.sh b/scripts/tests/test-wrc-egress-degradation-gate.shindex 5b4a8118e..d2192efa7 100755--- a/scripts/tests/test-wrc-egress-degradation-gate.sh+++ b/scripts/tests/test-wrc-egress-degradation-gate.sh@@ -66,13 +66,6 @@ contains "$MAKEFILE" '.PHONY: test-e2e-wrc-egress-degradation' \'Makefile must expose the WRC egress degradation gate'contains "$MAKEFILE" 'MINIKUBE_PROFILE=$(E2E_KUBECONTEXT) KUBECONTEXT=$(E2E_KUBECONTEXT) bash scripts/e2e/e2e-wrc-egress-degradation.sh' \'Make target must bind the mutation to the explicit profile/context'-contains "$MAKEFILE" '.PHONY: test-e2e-pr567-egress-resilience' \- 'Makefile must expose the complete PR #567 resilience gate'-contains "$MAKEFILE" '$(MAKE) test-e2e-hcc-mcp-context-readiness' \- 'complete PR gate must run the existing real HCC DNS/runtime journey'-contains "$MAKEFILE" '$(MAKE) test-e2e-wrc-egress-degradation' \- 'complete PR gate must run the WRC UI/workload degradation journey'-if grep -Eq 'kubectl[[:space:]]+(get|apply|patch|delete|exec|logs)' "$GATE"; thenfail 'raw kubectl operations must use kctl or an explicit --context cleanup probe'fi