We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gotestsum.json
1 parent ec2293a commit 28079adCopy full SHA for 28079ad
.github/workflows/coder.yaml
@@ -338,8 +338,16 @@ jobs:
338
else
339
echo ::set-output name=cover::false
340
fi
341
- set -x
342
gotestsum --junitfile="gotests.xml" --jsonfile="gotestsum.json" --packages="./..." --debug -- -parallel=8 -timeout=3m -short -failfast $COVERAGE_FLAGS
+ ret=$?
343
+ if ((ret)); then
344
+ # Eternalize test timeout logs because "re-run failed" erases
345
+ # artifacts and gotestsum doesn't always capture it:
346
+ # https://github.com/gotestyourself/gotestsum/issues/292
347
+ echo "Checking gotestsum.json for panic trace:"
348
+ grep -A 999999 'panic: test timed out' gotestsum.json
349
+ fi
350
+ exit $ret
351
352
- uses: actions/upload-artifact@v3
353
if: success() || failure()
0 commit comments