Skip to content

Commit 2fa6cbc

Browse files
robertherberclaude
andcommitted
remove noisy check-run annotations from CI failure details
The annotations API queries were complex, unreliable, and the useful error info is already in the --log-failed output. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 185b907 commit 2fa6cbc

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

scripts/eternity-loop.sh

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -805,25 +805,6 @@ get_ci_failure_details() {
805805
echo '```'
806806
fi
807807

808-
# Also try to get annotations (error/warning messages from the run)
809-
local annotations
810-
annotations=$(gh api "repos/{owner}/{repo}/check-runs" \
811-
--jq "[.check_runs[] | select(.external_id == \"$run_id\" or .name != \"\") | .output.annotations // []] | flatten | .[] | select(.annotation_level == \"failure\" or .annotation_level == \"error\") | \" \(.path):\(.start_line): \(.message)\"" 2>/dev/null) || true
812-
813-
if [ -z "$annotations" ]; then
814-
# Try via check-suites for this commit
815-
annotations=$(gh api "repos/{owner}/{repo}/commits/$head_sha/check-runs" \
816-
--jq "[.check_runs[] | select(.conclusion == \"failure\") | {name: .name, annotations: (.output.annotations // [])}] | .[] | .annotations[] | select(.annotation_level == \"failure\" or .annotation_level == \"error\") | \" \(.path):\(.start_line): \(.message)\"" 2>/dev/null) || true
817-
fi
818-
819-
if [ -n "$annotations" ]; then
820-
echo ""
821-
echo "#### Error Annotations"
822-
echo '```'
823-
echo "$annotations"
824-
echo '```'
825-
fi
826-
827808
echo ""
828809
done
829810
}

0 commit comments

Comments
 (0)