瀏覽代碼

fail if we never get the desired node count

Alex Cheema 5 月之前
父節點
當前提交
e2474c3f15
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      .github/workflows/bench_job.yml

+ 5 - 1
.github/workflows/bench_job.yml

@@ -150,7 +150,7 @@ jobs:
           trap 'kill $PID1' EXIT
 
           echo "Waiting for all nodes to connect..."
-          for i in {1..100}; do
+          for i in {1..20}; do
             echo "Attempt $i: Checking node count..."
             nodes=$(curl -s http://localhost:52415/topology | jq ".nodes | length")
             echo "Current node count: $nodes"
@@ -158,6 +158,10 @@ jobs:
               echo "All nodes connected successfully!"
               break
             fi
+            if [ $i -eq 20 ]; then
+              echo "ERROR: Failed to connect all nodes after 20 attempts. Expected ${{ strategy.job-total }} nodes, but got $nodes"
+              exit 1
+            fi
             sleep 5
           done