From c94af362349195562b393c2cf17f3b24e8ddd0fb Mon Sep 17 00:00:00 2001 From: teor Date: Thu, 14 Dec 2023 07:48:14 +1000 Subject: [PATCH] Ignore segmentation fault errors when shutting down Docker in tests --- .github/workflows/sub-test-zebra-config.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sub-test-zebra-config.yml b/.github/workflows/sub-test-zebra-config.yml index 6ccd8574fbe..85d2318dfa0 100644 --- a/.github/workflows/sub-test-zebra-config.yml +++ b/.github/workflows/sub-test-zebra-config.yml @@ -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