From e127edeb5ebc829c3ec34be58da6f276aafde9fe Mon Sep 17 00:00:00 2001 From: mpwaser <47316116+mpwaser@users.noreply.github.com> Date: Thu, 9 Jul 2026 14:10:00 +0200 Subject: [PATCH] Relax C910V qemu utest timeout --- .github/workflows/c910v.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/c910v.yml b/.github/workflows/c910v.yml index 826f71725d..b0c4890952 100644 --- a/.github/workflows/c910v.yml +++ b/.github/workflows/c910v.yml @@ -93,8 +93,9 @@ jobs: run: | run_with_retry() { local cmd="$1" - local time_out=10 - local retries=10 + local time_out="${2:-10}" + local retries="${3:-10}" + local timeout_step="${4:-5}" local attempt=0 for ((i=1; i<=retries; i++)); do @@ -106,7 +107,7 @@ jobs: local exit_code=$? if [ $exit_code -eq 140 ]; then echo "Attempt $i timed out (retrying...)" - time_out=$((time_out + 5)) + time_out=$((time_out + timeout_step)) else echo "Attempt $i failed with exit code $exit_code. Aborting workflow." exit $exit_code @@ -121,7 +122,7 @@ jobs: export PATH=$GITHUB_WORKSPACE/qemu-install/bin:$PATH which qemu-riscv64 export QEMU_BIN=$(which qemu-riscv64) - run_with_retry "$QEMU_BIN ./utest/openblas_utest" + run_with_retry "$QEMU_BIN ./utest/openblas_utest" 120 2 30 run_with_retry "$QEMU_BIN ./utest/openblas_utest_ext" OPENBLAS_NUM_THREADS=2 qemu-riscv64 ./ctest/xscblat1