Skip to content

Commit 5478c4b

Browse files
authored
[perf bench] set timeout to debug hanging (#8516)
1 parent 47f5e03 commit 5478c4b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.buildkite/nightly-benchmarks/benchmark-pipeline.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ steps:
88
containers:
99
- image: badouralix/curl-jq
1010
command:
11-
- sh
12-
- .buildkite/nightly-benchmarks/scripts/wait-for-image.sh
11+
- sh .buildkite/nightly-benchmarks/scripts/wait-for-image.sh
1312
- wait
1413
- label: "A100"
1514
agents:

.buildkite/nightly-benchmarks/scripts/wait-for-image.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
TOKEN=$(curl -s -L "https://public.ecr.aws/token?service=public.ecr.aws&scope=repository:q9t5s3a7/vllm-ci-test-repo:pull" | jq -r .token)
33
URL="https://public.ecr.aws/v2/q9t5s3a7/vllm-ci-test-repo/manifests/$BUILDKITE_COMMIT"
44

5+
TIMEOUT_SECONDS=10
6+
57
retries=0
68
while [ $retries -lt 1000 ]; do
7-
if [ $(curl -s -L -H "Authorization: Bearer $TOKEN" -o /dev/null -w "%{http_code}" $URL) -eq 200 ]; then
9+
if [ $(curl -s --max-time $TIMEOUT_SECONDS -L -H "Authorization: Bearer $TOKEN" -o /dev/null -w "%{http_code}" $URL) -eq 200 ]; then
810
exit 0
911
fi
1012

0 commit comments

Comments
 (0)