Ignore segmentation fault errors when shutting down Docker in tests (#8107)

This commit is contained in:
teor 2023-12-14 09:47:42 +10:00 committed by GitHub
parent 22852bc81d
commit 8734fd98f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -73,7 +73,15 @@ jobs:
# If grep found the pattern, exit with the Docker container exit status
if [ $LOGS_EXIT_STATUS -eq 0 ]; then
exit $EXIT_STATUS;
# We can't diagnose or fix these errors, so we're just ignoring them for now.
# They don't actually impact the test because they happen after it succeeds.
# See ticket #7898 for details.
if [ $EXIT_STATUS -eq 137 ] || [ $EXIT_STATUS -eq 139 ]; then
echo "Warning: ignoring docker exit status $EXIT_STATUS";
exit 0;
else
exit $EXIT_STATUS;
fi
fi
# Handle other potential errors here