Skip to content

Commit 674a030

Browse files
committed
CI: Quiet swift output and report Linux step results
* Pass `--quiet` to every `swift build` and `swift test` in the Linux trait-build chain and to `xcrun swift test` in the macOS job so logs surface compiler diagnostics and test failures rather than routine progress output. * Echo a `=== <step>: PASSED ===` line after every Linux step and a trailing `=== Summary: all builds and tests passed ===`. With `set -e` retained, a missing PASSED line is the implicit failed-step marker for unfamiliar readers.
1 parent f059611 commit 674a030

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/pull_request.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
/usr/bin/xcodebuild -quiet -scheme swift-network-evolution-Package -destination "generic/platform=visionos" build && visionos=PASSED || { rc=1; visionos=FAILED; };
3636
echo "=== visionOS build: $visionos ===";
3737
echo "=== xcrun swift test ===";
38-
xcrun swift test "$@" && tests=PASSED || { rc=1; tests=FAILED; };
38+
xcrun swift test --quiet "$@" && tests=PASSED || { rc=1; tests=FAILED; };
3939
echo "=== swift test: $tests ===";
4040
echo "=== Summary ===";
4141
printf "%-20s %s\n" "macOS build:" "$macos";
@@ -53,15 +53,21 @@ jobs:
5353
bash -c '
5454
set -e;
5555
echo "=== Build (default traits) ===";
56-
swift build --build-tests "$@";
56+
swift build --build-tests --quiet "$@";
57+
echo "=== Build (default traits): PASSED ===";
5758
echo "=== Build (additive traits on) ===";
58-
swift build --build-tests --traits DatapathLogging,QlogOutput,SignpostOutput "$@";
59+
swift build --build-tests --quiet --traits DatapathLogging,QlogOutput,SignpostOutput "$@";
60+
echo "=== Build (additive traits on): PASSED ===";
5961
echo "=== Build (reductive traits on) ===";
60-
swift build --build-tests --traits DisableDebugLogging,DisableErrorLogging "$@";
62+
swift build --build-tests --quiet --traits DisableDebugLogging,DisableErrorLogging "$@";
63+
echo "=== Build (reductive traits on): PASSED ===";
6164
echo "=== Test (debug) ===";
62-
swift test "$@";
65+
swift test --quiet "$@";
66+
echo "=== Test (debug): PASSED ===";
6367
echo "=== Test (release) ===";
64-
swift test -c release "$@"
68+
swift test --quiet -c release "$@";
69+
echo "=== Test (release): PASSED ===";
70+
echo "=== Summary: all builds and tests passed ==="
6571
' bash
6672
enable_windows_checks: false
6773
enable_android_sdk_build: false

0 commit comments

Comments
 (0)