build: try adding curl loop before grace-daily runs (#22432)

pull/22423/head
Daniel Moran 2021-09-09 13:08:33 -04:00 committed by GitHub
parent cc2a4fc73e
commit 873051865a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -768,6 +768,19 @@ jobs:
command: ./dist/influxd_linux_amd64/influxd --store=memory --log-level=debug
background: true
- run: mkdir -p ~/project/results
- run:
name: Wait for influxd to bind HTTP port
command: |
attempts=0
max_attempts=30
while ! curl localhost:8086/health; do
attempts=$((attempts+1))
if [[ $attempts = $max_attempts ]]; then
>&2 echo influxd "didn't" start in time
exit 1
fi
sleep 1
done
- run: docker run --net host -v /var/run/docker.sock:/var/run/docker.sock -v ~/project/results:/grace/test-results/grace-results quay.io/influxdb/grace:daily
- store_artifacts:
path: ~/project/results