From c5179167f6f41003159f955df8ded2984a57a97b Mon Sep 17 00:00:00 2001 From: "L.Y" <141099829+lyfsn@users.noreply.github.com> Date: Mon, 9 Sep 2024 18:17:34 +0800 Subject: [PATCH] Update test_run_ci.yml to verify init task second data --- .github/workflows/test_run_ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_run_ci.yml b/.github/workflows/test_run_ci.yml index 64b69c0..401eeda 100644 --- a/.github/workflows/test_run_ci.yml +++ b/.github/workflows/test_run_ci.yml @@ -299,6 +299,14 @@ jobs: echo "Client '${{ matrix.client }}' has valid data (max=$max_value)." fi + max_value=$(jq -r '.memory["'"${{ matrix.client }}"'"]["'"${{ matrix.size }}"'"].second.max' "results-$DATE/memory/reports/memory.json") + if [ "$max_value" = "0" ] || [ -z "$max_value" ]; then + echo "Client '${{ matrix.client }}' has no valid data (max=0 or missing)." + exit 1 + else + echo "Client '${{ matrix.client }}' has valid data (max=$max_value)." + fi + - name: Zip the results folder run: | ROOT_DIR=${{ needs.run-genesis-init-speed-benchmarks.outputs.root_dir }} @@ -399,4 +407,4 @@ jobs: run: | ROOT_DIR=${{ needs.run-burntpix-benchmarks.outputs.root_dir }} cd "$ROOT_DIR/benchmarks-data-result" - git status \ No newline at end of file + git status