From 74a747f3ec075ad4a65c7bf6efa1cd1504ec92ec Mon Sep 17 00:00:00 2001 From: BodoBolero Date: Fri, 8 Nov 2024 15:32:58 +0100 Subject: [PATCH] fix log parser --- .github/workflows/benchmarking.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/benchmarking.yml b/.github/workflows/benchmarking.yml index aecf92051d..9858ff4ad2 100644 --- a/.github/workflows/benchmarking.yml +++ b/.github/workflows/benchmarking.yml @@ -312,6 +312,7 @@ jobs: # Extract and process log lines while IFS= read -r line; do + METRIC_NAME="" # Match each desired line and extract the relevant information if [[ "$line" =~ COPY,\ INDEX,\ CONSTRAINTS,\ VACUUM.* ]]; then METRIC_NAME="COPY, INDEX, CONSTRAINTS, VACUUM (wall clock)" @@ -337,8 +338,6 @@ jobs: echo "Inserting ${METRIC_NAME} with value ${METRIC_VALUE} seconds" eval $PSQL_CMD fi - # Reset METRIC_NAME for the next line - METRIC_NAME="" done < "$LOG_FILE" - name: Delete Neon Project