File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -48,14 +48,20 @@ run_benchmarks() {
4848 rm commit || true
4949 # Get the last green commit from S3
5050 S3_PATH=" last-green-commits/vllm-project/vllm/${HEAD_BRANCH} /${GPU_DEVICE} /commit"
51- aws s3 cp " s3://ossci-benchmarks/${S3_PATH} " .
52- LAST_GREEN_COMMIT=$( cat commit)
51+ aws s3api head-object --bucket ossci-benchmarks --key ${S3_PATH} || NOT_EXIST=1
5352
54- if [[ " ${LAST_GREEN_COMMIT} " == " ${HEAD_SHA} " ]]; then
55- echo " Skip ${HEAD_BRANCH} /${HEAD_SHA} because all older commits have already been benchmarked"
53+ if [[ ${NOT_EXIST:- 0} == " 0" ]]; then
54+ aws s3 cp " s3://ossci-benchmarks/${S3_PATH} " .
55+ LAST_GREEN_COMMIT=$( cat commit)
56+
57+ if [[ " ${LAST_GREEN_COMMIT} " == " ${HEAD_SHA} " ]]; then
58+ echo " Skip ${HEAD_BRANCH} /${HEAD_SHA} because all older commits have already been benchmarked"
59+ else
60+ COMMITS=$( python get_commits.py --repo vllm --from-commit ${LAST_GREEN_COMMIT} )
61+ echo " ${COMMITS} " | while IFS= read -r COMMIT ; do run ${COMMIT} ; done
62+ fi
5663 else
57- COMMITS=$( python get_commits.py --repo vllm --from-commit ${LAST_GREEN_COMMIT} )
58- echo " ${COMMITS} " | while IFS= read -r COMMIT ; do run ${COMMIT} ; done
64+ run main
5965 fi
6066}
6167
You can’t perform that action at this time.
0 commit comments