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:
parent
ab89dc05b2
commit
7406369b21
@ -19,6 +19,7 @@ FEATURES="$5" # e.g., "31/31 features verified"
|
||||
DURATION="$6" # e.g., "12.3s"
|
||||
ACTOR="$7" # who pushed
|
||||
REPORT_FILE="$8" # optional HTML failure report path
|
||||
SUITE_INFO="$9" # e.g., "Suite: light | 202 tests not in suite"
|
||||
|
||||
if [ "$STATUS" = "pass" ]; then
|
||||
ICON="✅"
|
||||
@ -28,6 +29,7 @@ Tests: ${SUMMARY}
|
||||
Features: ${FEATURES}
|
||||
Duration: ${DURATION}
|
||||
Pushed by: ${ACTOR}
|
||||
${SUITE_INFO}
|
||||
|
||||
@TSHARPSbm_bot"
|
||||
|
||||
@ -39,6 +41,7 @@ Tests: ${SUMMARY}
|
||||
Features: ${FEATURES}
|
||||
Duration: ${DURATION}
|
||||
Pushed by: ${ACTOR}
|
||||
${SUITE_INFO}
|
||||
|
||||
${TAG_USERS} — this build needs attention.
|
||||
@TSHARPSbm_bot"
|
||||
|
||||
@ -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)
|
||||
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)
|
||||
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
|
||||
ERROR_COUNT=1
|
||||
@ -137,7 +138,9 @@ fi
|
||||
# ─── Results ───
|
||||
END_TIME=$(date +%s)
|
||||
DURATION=$((END_TIME - START_TIME))
|
||||
SUITE_TAG="light"
|
||||
SUMMARY="${PASS_COUNT} passed, ${FAIL_COUNT} failed, ${SKIP_COUNT} skipped"
|
||||
SUITE_INFO="Suite: ${SUITE_TAG} | ${DESELECTED_COUNT} tests not in suite"
|
||||
|
||||
echo ""
|
||||
echo "========================="
|
||||
@ -261,7 +264,7 @@ fi
|
||||
|
||||
# ─── Send Notification ───
|
||||
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
|
||||
flock -u 200
|
||||
|
||||
Loading…
Reference in New Issue
Block a user