Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(t0): fail Codex T0 on a Codex suite that no group registers
Alfredo Lopezb5854a6952e5
diff --git a/scripts/tests/test-codex-subscription-t0.sh b/scripts/tests/test-codex-subscription-t0.shindex 6e9a48793..a66708025 100755--- a/scripts/tests/test-codex-subscription-t0.sh+++ b/scripts/tests/test-codex-subscription-t0.sh@@ -12,6 +12,7 @@ set -uROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"FAIL=0GROUPS_RUN=0+REGISTERED=()pass() { echo "PASS: $1"; }fail() { echo "FAIL: $1"; FAIL=1; }@@ -105,6 +106,9 @@ run_group() {fail "${name}: group listed no suite files"return 1fi+ for rel in "${files[@]}"; do+ REGISTERED+=("${prefix}/${rel}")+ donefor rel in "${files[@]}"; dorequire_file "${prefix}/${rel}" || return 1done@@ -141,6 +145,7 @@ run_node_group() {shiftlocal files=()for rel in "$@"; do+ REGISTERED+=("${rel}")require_file "$rel" || return 1files+=("${ROOT}/$rel")done@@ -345,6 +350,37 @@ elsefifi+# A Codex suite that exists but is not listed above is lost coverage. Every+# proxy/contract test file and every *codex* test file in the Codex-touching+# packages must be registered in a group or as a real-PG presence check.+is_registered() {+ local candidate="$1" entry+ for entry in "${REGISTERED[@]}"; do+ [[ "${entry}" == "${candidate}" ]] && return 0+ done+ return 1+}+unlisted=0+while IFS= read -r rel; do+ [[ -n "${rel}" ]] || continue+ if ! is_registered "${rel}"; then+ fail "unlisted Codex suite ${rel}"+ unlisted=1+ fi+done < <(+ cd "${ROOT}" &&+ {+ find codex-llm-proxy/test packages/llm-provider-attempt-contract \+ -name node_modules -prune -o -type f \( -name '*.test.ts' -o -name '*.test.cjs' \) -print+ find control-api mcp-host workflow-recipes host-context-controller control-ui \+ \( -name node_modules -o -name dist -o -name .next -o -name coverage \) -prune -o \+ -type f -iname '*codex*' \( -name '*.test.ts' -o -name '*.test.tsx' \) -print+ } | sort -u+)+if [[ "${unlisted}" -eq 0 ]]; then+ pass "every Codex suite is registered in T0"+fi+if [[ "${GROUPS_RUN}" -ne 12 ]]; thenfail "expected all 12 T0 groups, ran ${GROUPS_RUN}"fi