Skip to content

Commit 56efbcd

Browse files
rom1504claude
andauthored
CI: print failed version logs last for easy debugging (#3876)
Reorder log output so passing versions print first and failing versions print last. Failed versions are labeled "FAILED: Minecraft X" so they're easy to spot at the bottom of the CI output. Co-authored-by: rom1504 <rom1504@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fd03f0a commit 56efbcd

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,23 @@ jobs:
7474
for pid in $pids; do
7575
wait $pid || exit_code=$?
7676
done
77-
# Print logs sequentially with clear headers
77+
# Print passing versions first, then failing versions last
7878
for v in ${{ matrix.versions }}; do
79-
echo ""
80-
echo "=========================================="
81-
echo " Results for Minecraft ${v}"
82-
echo "=========================================="
83-
cat "test-${v}.log"
79+
if ! grep -q "failing" "test-${v}.log"; then
80+
echo ""
81+
echo "=========================================="
82+
echo " Results for Minecraft ${v}"
83+
echo "=========================================="
84+
cat "test-${v}.log"
85+
fi
86+
done
87+
for v in ${{ matrix.versions }}; do
88+
if grep -q "failing" "test-${v}.log"; then
89+
echo ""
90+
echo "=========================================="
91+
echo " FAILED: Minecraft ${v}"
92+
echo "=========================================="
93+
cat "test-${v}.log"
94+
fi
8495
done
8596
exit $exit_code

0 commit comments

Comments
 (0)