ci: stream app coverage progress

This commit is contained in:
Dennis
2026-08-20 22:14:35 +08:00
parent 378b9f67a2
commit bbaf033618
2 changed files with 10 additions and 2 deletions
+7 -1
View File
@@ -1173,7 +1173,13 @@ jobs:
test -n "$package_output"
mapfile -t packages <<< "$package_output"
test "${#packages[@]}" -gt 0
go test -count=1 -p 1 \
progress_flags=()
if [ "$COVERAGE_SHARD" = app ]; then
# app is one long package; keep per-test progress visible while its
# authoritative serial coverage profile is being generated.
progress_flags=(-v)
fi
go test "${progress_flags[@]}" -count=1 -p 1 \
-coverprofile="coverage-shard-$COVERAGE_SHARD.txt" \
-covermode=atomic \
"${packages[@]}"