From 8734fd98f348726e3d72fb585e270785907077f4 Mon Sep 17 00:00:00 2001 From: teor Date: Thu, 14 Dec 2023 09:47:42 +1000 Subject: [PATCH] Ignore segmentation fault errors when shutting down Docker in tests (#8107) --- .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 6ccd8574f..85d2318df 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