remove retry in llm install part
This commit is contained in:
parent
94723bb0b1
commit
d11ef0d117
1 changed files with 17 additions and 17 deletions
34
.github/workflows/llm-harness-evaluation.yml
vendored
34
.github/workflows/llm-harness-evaluation.yml
vendored
|
|
@ -135,23 +135,23 @@ jobs:
|
||||||
uses: ./.github/actions/llm/download-llm-binary
|
uses: ./.github/actions/llm/download-llm-binary
|
||||||
|
|
||||||
- name: Run LLM install (all) test
|
- name: Run LLM install (all) test
|
||||||
# uses: ./.github/actions/llm/setup-llm-env
|
uses: ./.github/actions/llm/setup-llm-env
|
||||||
# with:
|
with:
|
||||||
# extra-dependency: "xpu_2.1"
|
extra-dependency: "xpu_2.1"
|
||||||
run: |
|
# run: |
|
||||||
retry_count=0
|
# retry_count=0
|
||||||
max_retries=1
|
# max_retries=1
|
||||||
command="bash ./.github/actions/llm/setup-llm-env --extra-dependency xpu_2.1"
|
# command="bash ./.github/actions/llm/setup-llm-env --extra-dependency xpu_2.1"
|
||||||
until $command; do
|
# until $command; do
|
||||||
exit_code=$?
|
# exit_code=$?
|
||||||
echo "Attempt $((retry_count+1)) failed with exit code $exit_code. Retrying..."
|
# echo "Attempt $((retry_count+1)) failed with exit code $exit_code. Retrying..."
|
||||||
retry_count=$((retry_count+1))
|
# retry_count=$((retry_count+1))
|
||||||
if [ "$retry_count" -gt "$max_retries" ]; then
|
# if [ "$retry_count" -gt "$max_retries" ]; then
|
||||||
echo "Reached maximum retry attempts. Exiting."
|
# echo "Reached maximum retry attempts. Exiting."
|
||||||
exit $exit_code
|
# exit $exit_code
|
||||||
fi
|
# fi
|
||||||
sleep 5
|
# sleep 5
|
||||||
done
|
# done
|
||||||
|
|
||||||
- name: Install harness
|
- name: Install harness
|
||||||
working-directory: ${{ github.workspace }}/python/llm/dev/benchmark/harness/
|
working-directory: ${{ github.workspace }}/python/llm/dev/benchmark/harness/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue