From b8ad91bbda9569390629db879f8dfd702bb3f65a Mon Sep 17 00:00:00 2001 From: Claude BM Date: Fri, 24 Apr 2026 23:00:08 +0000 Subject: [PATCH] =?UTF-8?q?Add=20test=20count=20baseline=20check=20?= =?UTF-8?q?=E2=80=94=20fails=20CI=20if=20tests=20drop=20below=201279?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ci-config.json now has test_count_baseline. If a branch's passing test count drops below this number, the build fails with "TEST COUNT REGRESSION". Prevents accidental test loss from incomplete syncs or bad merges. Co-Authored-By: Claude Opus 4.6 (1M context) --- ci-config.json | 3 ++- ci-runner.sh | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ci-config.json b/ci-config.json index 0f6c502..26770b4 100644 --- a/ci-config.json +++ b/ci-config.json @@ -14,5 +14,6 @@ }, "notify_on_pass": true, "notify_on_fail": true, - "tag_users_on_fail": ["mostfunguy", "A31S15"] + "tag_users_on_fail": ["mostfunguy", "A31S15"], + "test_count_baseline": 1279 } diff --git a/ci-runner.sh b/ci-runner.sh index 7de5e69..9093396 100755 --- a/ci-runner.sh +++ b/ci-runner.sh @@ -114,6 +114,13 @@ if [ "$ERROR_COUNT" != "0" ] && [ "$ERROR_COUNT" != "" ]; then echo "TEST COLLECTION ERRORS" fi +# ─── Test Count Baseline Check ─── +BASELINE=$(python3 -c "import json; print(json.load(open('$CONFIG')).get('test_count_baseline', 0))") +if [ "$BASELINE" -gt 0 ] && [ "$PASS_COUNT" -lt "$BASELINE" ]; then + OVERALL="fail" + echo "TEST COUNT REGRESSION: expected >= $BASELINE passed, got $PASS_COUNT" +fi + # ─── Step 3: Package Check ─── echo "" echo "--- Package Check ---"