ci: retry frontend runner crashes
CI and Deploy / test (push) Failing after 11m47s
CI and Deploy / deploy (push) Has been skipped

This commit is contained in:
cesnimda
2026-08-29 01:55:03 +02:00
parent 8480578a2c
commit 9cfe622103
2 changed files with 19 additions and 1 deletions
+18 -1
View File
@@ -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