From 1c44411a97a1f67171b4b68d2902290e0d68649a Mon Sep 17 00:00:00 2001 From: Enrico Loparco Date: Fri, 3 Mar 2023 09:30:59 +0100 Subject: [PATCH] Add timeout to CI WASI tests and update WASI testsuite commit (#1997) - Add timeout to CI WASI tests to avoid keeping CI node busy in case of deadlock in thread tests - Update wasi-testsuite commit used, after fix in wasi-threads proposal https://github.com/WebAssembly/wasi-threads/pull/40 --- .github/workflows/compilation_on_android_ubuntu.yml | 2 ++ tests/wamr-test-suites/test_wamr.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compilation_on_android_ubuntu.yml b/.github/workflows/compilation_on_android_ubuntu.yml index 193c69f1..81245307 100644 --- a/.github/workflows/compilation_on_android_ubuntu.yml +++ b/.github/workflows/compilation_on_android_ubuntu.yml @@ -527,6 +527,7 @@ jobs: run: sudo apt-get update && sudo apt install -y jq - name: run tests + timeout-minutes: 10 run: ./test_wamr.sh ${{ matrix.test_option }} -t ${{ matrix.running_mode }} working-directory: ./tests/wamr-test-suites @@ -542,6 +543,7 @@ jobs: sudo apt install -y g++-multilib lib32gcc-9-dev - name: run tests x86_32 + timeout-minutes: 10 if: env.TEST_ON_X86_32 == 'true' run: ./test_wamr.sh ${{ env.X86_32_TARGET_TEST_OPTIONS }} ${{ matrix.test_option }} -t ${{ matrix.running_mode }} working-directory: ./tests/wamr-test-suites diff --git a/tests/wamr-test-suites/test_wamr.sh b/tests/wamr-test-suites/test_wamr.sh index c67a36ec..4fa730e7 100755 --- a/tests/wamr-test-suites/test_wamr.sh +++ b/tests/wamr-test-suites/test_wamr.sh @@ -55,7 +55,7 @@ PLATFORM=$(uname -s | tr A-Z a-z) PARALLELISM=0 ENABLE_QEMU=0 QEMU_FIRMWARE="" -WASI_TESTSUITE_COMMIT="b18247e2161bea263fe924b8189c67b1d2d10a10" +WASI_TESTSUITE_COMMIT="aca78d919355ae00af141e6741a439039615b257" while getopts ":s:cabgvt:m:MCpSXxwPGQF:" opt do