Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
ci(recovery): derive private exclusions from the validated suite manifest
Josuéfb4bec8cb71b
diff --git a/.github/workflows/ci-public.yml b/.github/workflows/ci-public.ymlindex 71ea9b96a..095ff8b1a 100644--- a/.github/workflows/ci-public.yml+++ b/.github/workflows/ci-public.yml@@ -394,9 +394,16 @@ jobs:# They run with the real producer and PostgreSQL in the dedicated local# integration lane; do not replace them with a test-only token producer.node ../scripts/ci/password-recovery-suite-contract.mjs verify+ private_selection="$(node ../scripts/ci/password-recovery-suite-contract.mjs private all)"+ mapfile -t private_suites <<< "$private_selection"+ test "${#private_suites[@]}" -eq 2+ exclude_args=()+ for suite in "${private_suites[@]}"; do+ test -s "$suite"+ exclude_args+=(--exclude "$suite")+ doneFORCE_COLOR=0 NO_COLOR=1 npm test -- --run realPostgres \- --exclude 'test/bug192.passwordRecovery.memberRegistration.realPostgres.integration.test.ts' \- --exclude 'test/r4l1.resetPasswordPayload.externalRest.realPostgres.integration.test.ts' \+ "${exclude_args[@]}" \--reporter=default --reporter=json --outputFile="$report" 2>&1 | tee "$log_file"node ../scripts/ci/password-recovery-suite-contract.mjs report publicPostgres "$report"sed $'s/\033\\[[0-9;]*m//g' "$log_file" > "$normalized_log"diff --git a/scripts/ci/password-recovery-suite-contract.mjs b/scripts/ci/password-recovery-suite-contract.mjsindex ee5a6f548..9967a5d9e 100644--- a/scripts/ci/password-recovery-suite-contract.mjs+++ b/scripts/ci/password-recovery-suite-contract.mjs@@ -97,15 +97,22 @@ if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href)console.log(`Recovery suite contract: ${manifest.publicPostgres.length} public PostgreSQL suites; 2 private exclusions`)- else if (command === 'private' && ['local', 'configured'].includes(lane) && !path)- console.log(manifest.privatePostgres[lane].replace(/^control-api\//, ''))+ else if (command === 'private' && ['local', 'configured', 'all'].includes(lane) && !path)+ console.log(+ (lane === 'all'+ ? Object.values(manifest.privatePostgres)+ : [manifest.privatePostgres[lane]]+ )+ .map(entry => entry.replace(/^control-api\//, ''))+ .join('\n')+ )else if (command === 'report' && path) {const errors = reportViolations(root, manifest, lane, JSON.parse(readFileSync(path, 'utf8')))if (errors.length) throw new Error(errors.join('\n'))console.log(`Recovery ${lane} report: complete and passing`)} elsethrow new Error(- 'Usage: password-recovery-suite-contract.mjs verify | private local/configured | report lane report.json'+ 'Usage: password-recovery-suite-contract.mjs verify | private local/configured/all | report lane report.json')} catch (error) {console.error(error.message)