Skip to content

Commit 73758ab

Browse files
ci: log recompilation check in shard report step
1 parent 2905fec commit 73758ab

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/build_container.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,14 @@ jobs:
252252
if [ ! -f maven-build-shard${{ matrix.shard }}.log ]; then
253253
echo "No build log found."; exit 0
254254
fi
255+
echo "=== RECOMPILATION CHECK ==="
256+
if grep -c "Compiling " maven-build-shard${{ matrix.shard }}.log > /dev/null 2>&1; then
257+
echo "WARNING: Scala recompilation occurred on this shard:"
258+
grep "Compiling " maven-build-shard${{ matrix.shard }}.log | head -10
259+
else
260+
echo "OK: no recompilation (Zinc used pre-compiled classes)"
261+
fi
262+
echo ""
255263
echo "=== BRIDGE / UNCAUGHT EXCEPTIONS ==="
256264
grep -n "\[BRIDGE\] Exception\|Uncaught exception in dispatch\|requestScopeProxy=" \
257265
maven-build-shard${{ matrix.shard }}.log | head -200 || true

.github/workflows/build_pull_request.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,14 @@ jobs:
252252
if [ ! -f maven-build-shard${{ matrix.shard }}.log ]; then
253253
echo "No build log found."; exit 0
254254
fi
255+
echo "=== RECOMPILATION CHECK ==="
256+
if grep -c "Compiling " maven-build-shard${{ matrix.shard }}.log > /dev/null 2>&1; then
257+
echo "WARNING: Scala recompilation occurred on this shard:"
258+
grep "Compiling " maven-build-shard${{ matrix.shard }}.log | head -10
259+
else
260+
echo "OK: no recompilation (Zinc used pre-compiled classes)"
261+
fi
262+
echo ""
255263
echo "=== BRIDGE / UNCAUGHT EXCEPTIONS ==="
256264
grep -n "\[BRIDGE\] Exception\|Uncaught exception in dispatch\|requestScopeProxy=" \
257265
maven-build-shard${{ matrix.shard }}.log | head -200 || true

0 commit comments

Comments
 (0)