Add suite tag and deselected count to CI notifications

Telegram notifications now show which test suite was used (light/heavy)
and how many tests were not in that suite (deselected).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude BM 2026-04-22 08:14:27 +00:00
parent ab89dc05b2
commit 7406369b21
2 changed files with 7 additions and 1 deletions

View File

@ -19,6 +19,7 @@ FEATURES="$5" # e.g., "31/31 features verified"
DURATION="$6" # e.g., "12.3s" DURATION="$6" # e.g., "12.3s"
ACTOR="$7" # who pushed ACTOR="$7" # who pushed
REPORT_FILE="$8" # optional HTML failure report path REPORT_FILE="$8" # optional HTML failure report path
SUITE_INFO="$9" # e.g., "Suite: light | 202 tests not in suite"
if [ "$STATUS" = "pass" ]; then if [ "$STATUS" = "pass" ]; then
ICON="✅" ICON="✅"
@ -28,6 +29,7 @@ Tests: ${SUMMARY}
Features: ${FEATURES} Features: ${FEATURES}
Duration: ${DURATION} Duration: ${DURATION}
Pushed by: ${ACTOR} Pushed by: ${ACTOR}
${SUITE_INFO}
@TSHARPSbm_bot" @TSHARPSbm_bot"
@ -39,6 +41,7 @@ Tests: ${SUMMARY}
Features: ${FEATURES} Features: ${FEATURES}
Duration: ${DURATION} Duration: ${DURATION}
Pushed by: ${ACTOR} Pushed by: ${ACTOR}
${SUITE_INFO}
${TAG_USERS} — this build needs attention. ${TAG_USERS} — this build needs attention.
@TSHARPSbm_bot" @TSHARPSbm_bot"

View File

@ -90,6 +90,7 @@ PASS_COUNT=$(echo "$TEST_OUTPUT" | grep -oP '\d+ passed' | grep -oP '\d+' || ech
FAIL_COUNT=$(echo "$TEST_OUTPUT" | grep -oP '\d+ failed' | grep -oP '\d+' || echo 0) FAIL_COUNT=$(echo "$TEST_OUTPUT" | grep -oP '\d+ failed' | grep -oP '\d+' || echo 0)
SKIP_COUNT=$(echo "$TEST_OUTPUT" | grep -oP '\d+ skipped' | grep -oP '\d+' || echo 0) SKIP_COUNT=$(echo "$TEST_OUTPUT" | grep -oP '\d+ skipped' | grep -oP '\d+' || echo 0)
ERROR_COUNT=$(echo "$TEST_OUTPUT" | grep -oP '\d+ error' | grep -oP '\d+' || echo 0) ERROR_COUNT=$(echo "$TEST_OUTPUT" | grep -oP '\d+ error' | grep -oP '\d+' || echo 0)
DESELECTED_COUNT=$(echo "$TEST_OUTPUT" | grep -oP '\d+ deselected' | grep -oP '\d+' || echo 0)
if [ "$TEST_EXIT" -ne 0 ] && [ "$PASS_COUNT" = "0" ] && [ "$FAIL_COUNT" = "0" ]; then if [ "$TEST_EXIT" -ne 0 ] && [ "$PASS_COUNT" = "0" ] && [ "$FAIL_COUNT" = "0" ]; then
ERROR_COUNT=1 ERROR_COUNT=1
@ -137,7 +138,9 @@ fi
# ─── Results ─── # ─── Results ───
END_TIME=$(date +%s) END_TIME=$(date +%s)
DURATION=$((END_TIME - START_TIME)) DURATION=$((END_TIME - START_TIME))
SUITE_TAG="light"
SUMMARY="${PASS_COUNT} passed, ${FAIL_COUNT} failed, ${SKIP_COUNT} skipped" SUMMARY="${PASS_COUNT} passed, ${FAIL_COUNT} failed, ${SKIP_COUNT} skipped"
SUITE_INFO="Suite: ${SUITE_TAG} | ${DESELECTED_COUNT} tests not in suite"
echo "" echo ""
echo "=========================" echo "========================="
@ -261,7 +264,7 @@ fi
# ─── Send Notification ─── # ─── Send Notification ───
bash "$SCRIPT_DIR/ci-notify.sh" \ bash "$SCRIPT_DIR/ci-notify.sh" \
"$BRANCH" "$COMMIT" "$OVERALL" "$SUMMARY" "$FEATURES_RESULT" "${DURATION}s" "$ACTOR" "$REPORT_FILE" "$BRANCH" "$COMMIT" "$OVERALL" "$SUMMARY" "$FEATURES_RESULT" "${DURATION}s" "$ACTOR" "$REPORT_FILE" "$SUITE_INFO"
# Release lock # Release lock
flock -u 200 flock -u 200