diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a30f80f..1565810 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -131,13 +131,15 @@ jobs: status=${PIPESTATUS[0]} set -e if [ "$status" -ne 0 ]; then - # Surface the actual failing test/build line as a check annotation - # so a native-matrix failure is diagnosable without admin log access. - grep -E "^(test .* FAILED|failures:|thread .* panicked|error(\[|:))" workspace-tests.log \ - | head -40 \ - | while IFS= read -r line; do - echo "::error title=Workspace tests on ${{ matrix.os }}::$line" - done + # Surface the failing test/build context as check annotations so a + # native-matrix failure is diagnosable without admin log access. + { + grep -n -A 18 -B 2 "panicked at" workspace-tests.log || true + grep -n -A 6 -B 2 "^error" workspace-tests.log || true + grep -n "test .* FAILED" workspace-tests.log || true + } | head -80 | while IFS= read -r line; do + echo "::error title=Workspace tests on ${{ matrix.os }}::$line" + done fi exit "$status" - name: Portable CLI, analysis and trace smoke