Skip to content

Commit

Permalink
Merge pull request #1094 from jedevc/remote-e2e-flake
Browse files Browse the repository at this point in the history
Attempt to solve some flakiness in the remote driver ci
  • Loading branch information
crazy-max authored May 6, 2022
2 parents e0cffbd + 79ba92b commit 43968ff
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,25 @@ jobs:
docker run -d --privileged \
--name=remote-buildkit \
-p 1234:1234 \
--health-cmd "buildctl debug workers" \
--health-interval 1s \
${{ matrix.buildkit }} \
--addr unix:///run/buildkit/buildkitd.sock \
--addr tcp://0.0.0.0:1234
-
name: Check remote buildkitd
if: matrix.driver == 'remote'
run: |
try=0
max=10
until [ "$(docker container inspect remote-buildkit --format '{{ .State.Health.Status }}')" = "healthy" ]; do
if [ $try -gt $max ]; then
echo >&2 "healthcheck failed after $max trials"
exit 1
fi
sleep $(awk "BEGIN{print (100 + $try * 20) * 0.002}")
try=$(expr $try + 1)
done
-
name: Test
run: |
Expand Down

0 comments on commit 43968ff

Please sign in to comment.