ci: annotate the native test panic context
ci/woodpecker/push/woodpecker Pipeline was successful
Linux strict security lane (G-C) / strict isolation escape matrix (push) Canceled after 0s
CI / fmt + clippy + test (Linux x86_64) (push) Canceled after 0s
CI / runtime contract (macos-latest) (push) Canceled after 0s
CI / runtime contract (windows-latest) (push) Canceled after 0s
CI / release candidate artifact (ubuntu-latest) (push) Canceled after 0s
CI / schema instance validation + consumers (push) Canceled after 0s
CI / release evidence manifest (push) Canceled after 0s
CI / release candidate artifact (macos-latest) (push) Canceled after 0s
ci/woodpecker/push/woodpecker Pipeline was successful
Linux strict security lane (G-C) / strict isolation escape matrix (push) Canceled after 0s
CI / fmt + clippy + test (Linux x86_64) (push) Canceled after 0s
CI / runtime contract (macos-latest) (push) Canceled after 0s
CI / runtime contract (windows-latest) (push) Canceled after 0s
CI / release candidate artifact (ubuntu-latest) (push) Canceled after 0s
CI / schema instance validation + consumers (push) Canceled after 0s
CI / release evidence manifest (push) Canceled after 0s
CI / release candidate artifact (macos-latest) (push) Canceled after 0s
The native matrix only annotated the first matching line, which omitted the fixture name and expected/actual values. Annotate the panic block and build error context instead so the failing golden is identifiable from the public check-run annotations.
This commit is contained in:
1 parent
95e4c6b1a4
commit
d441d6f4cc
1 file changed
+9
-7
@@ -131,13 +131,15 @@ jobs:
|
|||||||
status=${PIPESTATUS[0]}
|
status=${PIPESTATUS[0]}
|
||||||
set -e
|
set -e
|
||||||
if [ "$status" -ne 0 ]; then
|
if [ "$status" -ne 0 ]; then
|
||||||
# Surface the actual failing test/build line as a check annotation
|
# Surface the failing test/build context as check annotations so a
|
||||||
# so a native-matrix failure is diagnosable without admin log access.
|
# native-matrix failure is diagnosable without admin log access.
|
||||||
grep -E "^(test .* FAILED|failures:|thread .* panicked|error(\[|:))" workspace-tests.log \
|
{
|
||||||
| head -40 \
|
grep -n -A 18 -B 2 "panicked at" workspace-tests.log || true
|
||||||
| while IFS= read -r line; do
|
grep -n -A 6 -B 2 "^error" workspace-tests.log || true
|
||||||
echo "::error title=Workspace tests on ${{ matrix.os }}::$line"
|
grep -n "test .* FAILED" workspace-tests.log || true
|
||||||
done
|
} | head -80 | while IFS= read -r line; do
|
||||||
|
echo "::error title=Workspace tests on ${{ matrix.os }}::$line"
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
exit "$status"
|
exit "$status"
|
||||||
- name: Portable CLI, analysis and trace smoke
|
- name: Portable CLI, analysis and trace smoke
|
||||||
|
|||||||
Reference in new issue
Block a user