Faff with CI config

This commit is contained in:
David Robertson 2023-09-20 11:24:06 +01:00
parent afdb0d7b80
commit 921ed6e8b3
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD
2 changed files with 7 additions and 3 deletions

View File

@ -225,6 +225,10 @@ jobs:
env:
PREV_VERSION: "v0.99.4"
# If the server fails to start, we'll wait for GHA to cancel the job after 6 hours.
# Ensure we fail sooner than that to avoid clogging up GHA runners.
timeout-minutes: 30
# Service containers to run with `container-job`
services:
synapse:

View File

@ -15,13 +15,13 @@ until [ \
"$(curl -s -w '%{http_code}' -o /dev/null "http://localhost:8844/idonotexist")" \
-eq 404 ]
do
((attempts++))
if [ "$attempts" -gt 60 ]; then
echo "Server did not start after $attempts seconds" > /dev/stderr
echo "Server did not start after $attempts seconds"
exit 1
fi
echo 'Waiting for server to start...'
echo "Waiting (total ${attempts}s) for server to start..."
sleep 1
((attempts++))
done
go test "$@"