From 793e25ee9190a8eb30f6721da016ec79026d2d40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Chodo=C5=82a?= <43241881+kamilchodola@users.noreply.github.com> Date: Tue, 5 Nov 2024 10:36:26 +0100 Subject: [PATCH] [Tests] Fix scenario where nethermind stops before capturing extra logs --- .github/workflows/sync-supported-chains.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-supported-chains.yml b/.github/workflows/sync-supported-chains.yml index 3ac07fecdab..41975e85e08 100644 --- a/.github/workflows/sync-supported-chains.yml +++ b/.github/workflows/sync-supported-chains.yml @@ -219,7 +219,7 @@ jobs: docker logs -f "$container_name" | while read -r line; do echo "$line" - if [[ "$line" == *"All done"* ]]; then + if [[ "$line" == *"Nethermind is shut down"* ]]; then echo "Unexpected termination detected: $line" exit 1 fi @@ -262,6 +262,11 @@ jobs: exit 0 fi done + + if [ "$found_bad_log" = true ]; then + echo "Error detected, but the logs stopped unexpectedly. Exiting." + exit 1 + fi - name: Get Consensus Logs if: always() && matrix.config.network != 'joc-mainnet' && matrix.config.network != 'joc-testnet' && matrix.config.network != 'linea-mainnet' && matrix.config.network != 'linea-sepolia'