Skip to content

Commit

Permalink
add sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrodimarco-dfinity committed Jan 31, 2024
1 parent 63c54a1 commit fb07b82
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/multiservice-discovery-diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,7 @@ jobs:
run: |
mkdir -p registry
bazel run //rs/ic-observability/multiservice-discovery -- --targets-dir /home/runner/work/dre/dre/registry & disown
until curl -sL -o /dev/null http://localhost:8000; do
sleep 5
elapsed=$((elapsed + 5))
if [ $elapsed -ge 300 ]; then
echo "Timeout reached. Exiting."
exit 1
fi
done
sleep 120
result=$(curl -sL http://localhost:8000/prom/targets)
echo "result=$result" >> $GITHUB_OUTPUT
Expand All @@ -49,14 +42,7 @@ jobs:
run: |
mkdir -p registry
bazel run //rs/ic-observability/multiservice-discovery -- --targets-dir /home/runner/work/dre/dre/registry & disown
until curl -sL -o /dev/null http://localhost:8000; do
sleep 5
elapsed=$((elapsed + 5))
if [ $elapsed -ge 300 ]; then
echo "Timeout reached. Exiting."
exit 1
fi
done
sleep 120
result=$(curl -sL http://localhost:8000/prom/targets)
echo "result=$result" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit fb07b82

Please sign in to comment.