From 9ac4c1ecafdd61263bba71a5baf0625441b97ef0 Mon Sep 17 00:00:00 2001 From: Sam Calder-Mason Date: Wed, 24 Jan 2024 14:19:03 +1000 Subject: [PATCH] feat: Smoke test --- .github/workflows/smoke-test.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/smoke-test.yaml b/.github/workflows/smoke-test.yaml index 8c992cc7..304beb95 100644 --- a/.github/workflows/smoke-test.yaml +++ b/.github/workflows/smoke-test.yaml @@ -79,6 +79,15 @@ jobs: "beacon_api_eth_v1_events_head" ) + # Define a function that prints the last 5 logs from all docker containers that have the argument in the name + print_logs() { + for container in $(docker ps --filter name=$1 --format "{{.Names}}"); do + echo "Logs for $container:\n\n" + docker logs --tail 5 $container + echo "\n\n" + done + } + # Check for any data in the tables before digging in to the individual sentries for table in "${tables[@]}"; do echo "Checking $table table..." @@ -93,15 +102,6 @@ jobs: fi done - # Define a function that prints the last 5 logs from all docker containers that have the argument in the name - print_logs() { - for container in $(docker ps --filter name=$1 --format "{{.Names}}"); do - echo "Logs for $container:\n\n" - docker logs --tail 5 $container - echo "\n\n" - done - } - for table in "${tables[@]}"; do echo "Checking $table table..." for sentry in "${all_sentries[@]}"; do