mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-04 08:37:30 +00:00
ci: limit each test attempt to 35 minutes (#7900)
* ci: limit each test attempt to 35 minutes * ci: reword the timed-out attempt line in the CI guide
This commit is contained in:
1 parent
094b1837d8
commit
f2dd8b6231
3 files changed
+6
-3
No files matched your search
@@ -44,7 +44,7 @@ The reduced build runs one Linux job, build-linux (ubuntu-22.04 x86_64), for eve
|
||||
- Docker image (step "Build and cache Docker image");
|
||||
- caches (the steps "Restore ... from cache");
|
||||
- `cabal build -j --enable-tests --ghc-options=-O0` (step "Build CLI");
|
||||
- simplex-chat-test with the selected tests (step "Run tests").
|
||||
- simplex-chat-test with the selected tests (step "Run tests"), each attempt limited to 35 minutes by `timeout`; an attempt that reaches the limit fails, and "Attempt <n> timed out." is printed.
|
||||
- Local:
|
||||
```sh
|
||||
cp scripts/cabal.project.local.linux cabal.project.local
|
||||
|
||||
@@ -26,7 +26,10 @@ attempts=${ATTEMPTS:-1}
|
||||
while [ "$i" -le "$attempts" ]; do
|
||||
if "$@" "${args[@]}"; then
|
||||
break
|
||||
elif [ "$i" -lt "$attempts" ]; then
|
||||
elif [ "$?" -eq 124 ]; then
|
||||
echo "Attempt $i timed out."
|
||||
fi
|
||||
if [ "$i" -lt "$attempts" ]; then
|
||||
echo "Attempt $i failed, retrying..."
|
||||
sleep 1
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user