ci: retry frontend runner crashes
This commit is contained in:
@@ -148,7 +148,24 @@ jobs:
|
||||
working-directory: job-tracker-ui
|
||||
# Run the WHOLE suite. Never whitelist test files here again: the previous
|
||||
# whitelist silently skipped new suites and let two regressions reach main.
|
||||
run: npm test -- --watchAll=false --runInBand
|
||||
# The self-hosted runner can also terminate Node with SIGSEGV (139) without a
|
||||
# Jest assertion or diagnostic. Retry only that infrastructure signature once;
|
||||
# ordinary assertion/configuration failures still fail immediately.
|
||||
run: |
|
||||
set +e
|
||||
npm test -- --watchAll=false --runInBand
|
||||
test_status=$?
|
||||
set -e
|
||||
|
||||
if [ "$test_status" -eq 0 ]; then
|
||||
exit 0
|
||||
fi
|
||||
if [ "$test_status" -ne 139 ]; then
|
||||
exit "$test_status"
|
||||
fi
|
||||
|
||||
echo "Frontend test process crashed with SIGSEGV — retrying the complete suite once..."
|
||||
npm test -- --watchAll=false --runInBand
|
||||
|
||||
- name: Install browser smoke runtime
|
||||
working-directory: job-tracker-ui
|
||||
|
||||
Reference in New Issue
Block a user