From bfa9a4a4e0226097c77dfb678e2fa4aaabc7df58 Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 23 Feb 2024 16:21:03 +0800 Subject: [PATCH] Fix utest fail, retry 3 times. v5.14.2 --- .github/workflows/pullrequest.yml | 8 ++++---- .github/workflows/test-online.yml | 4 ++-- .github/workflows/test.yml | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index 8d46caff..d3d4687c 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -143,7 +143,7 @@ jobs: echo "Run media test with retry" && bash scripts/tools/secret.sh --output test/.env && - ./scripts/tools/failed-retry.sh 1 ./test/srs-stack.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \ + ./scripts/tools/failed-retry.sh 3 ./test/srs-stack.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \ -srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \ -check-api-secret=true -test.run WithStream ret=$?; echo "Test result: $ret" @@ -215,7 +215,7 @@ jobs: echo "Run media test with retry" && bash scripts/tools/secret.sh --output test/.env && - ./scripts/tools/failed-retry.sh 1 ./test/srs-stack.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \ + ./scripts/tools/failed-retry.sh 3 ./test/srs-stack.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \ -srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \ -check-api-secret=true -test.run WithStream ret=$?; echo "Test result: $ret" @@ -305,7 +305,7 @@ jobs: echo "Run media test with retry" && bash scripts/tools/secret.sh --output test/.env && - ./scripts/tools/failed-retry.sh 1 ./test/srs-stack.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \ + ./scripts/tools/failed-retry.sh 3 ./test/srs-stack.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \ -srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \ -check-api-secret=true -test.run WithStream ret=$?; echo "Test result: $ret" @@ -394,7 +394,7 @@ jobs: echo "Run media test with retry" && bash scripts/tools/secret.sh --output test/.env && - ./scripts/tools/failed-retry.sh 1 ./test/srs-stack.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \ + ./scripts/tools/failed-retry.sh 3 ./test/srs-stack.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \ -srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \ -check-api-secret=true -test.run WithStream ret=$?; echo "Test result: $ret" diff --git a/.github/workflows/test-online.yml b/.github/workflows/test-online.yml index 93cbbf7f..e9a97f84 100644 --- a/.github/workflows/test-online.yml +++ b/.github/workflows/test-online.yml @@ -276,8 +276,8 @@ jobs: key: ${{ secrets.DIGITALOCEAN_SSHKEY }} port: 22 envs: SRS_TAG,SRS_DOMAIN - timeout: 1800s - command_timeout: 1800s + timeout: 7200s + command_timeout: 7200s script: | # We will handle the error by ourselves. set +e diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1939b078..7979a2f6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -112,7 +112,7 @@ jobs: echo "Run media test with retry" && bash scripts/tools/secret.sh --output test/.env && - ./scripts/tools/failed-retry.sh 1 ./test/srs-stack.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \ + ./scripts/tools/failed-retry.sh 3 ./test/srs-stack.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \ -srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \ -check-api-secret=true -test.run WithStream ret=$?; echo "Test result: $ret" @@ -280,7 +280,7 @@ jobs: echo "Run media test with retry" && bash scripts/tools/secret.sh --output test/.env && - ./scripts/tools/failed-retry.sh 1 ./test/srs-stack.test -test.timeout=1h -test.v -endpoint http://srs.stack.local:80 \ + ./scripts/tools/failed-retry.sh 3 ./test/srs-stack.test -test.timeout=1h -test.v -endpoint http://srs.stack.local:80 \ -srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \ -check-api-secret=true -test.run WithStream ret=$?; echo "Test result: $ret" @@ -445,7 +445,7 @@ jobs: echo "Run media test with retry" && bash scripts/tools/secret.sh --output test/.env && - ./scripts/tools/failed-retry.sh 1 ./test/srs-stack.test -test.timeout=1h -test.v -endpoint http://srs.stack.local:80 \ + ./scripts/tools/failed-retry.sh 3 ./test/srs-stack.test -test.timeout=1h -test.v -endpoint http://srs.stack.local:80 \ -srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \ -check-api-secret=true -test.run WithStream ret=$?; echo "Test result: $ret"