From e4e8a21a7e40bd70bd6595d954c761a4c0bd1e57 Mon Sep 17 00:00:00 2001 From: Julie Muzina Date: Fri, 17 May 2024 09:57:32 -0400 Subject: [PATCH] add momentary sleep to uptime wait per #5092 --- .github/workflows/pr-percy-snapshots.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr-percy-snapshots.yml b/.github/workflows/pr-percy-snapshots.yml index 199c243fe..f20db9f33 100644 --- a/.github/workflows/pr-percy-snapshots.yml +++ b/.github/workflows/pr-percy-snapshots.yml @@ -67,6 +67,8 @@ jobs: while [ "$wait_time_secs" -lt "$max_wait_time_secs" ]; do if curl -s localhost:8101/_status/check -I; then echo "Server is up!" + # sometimes if we start the server too soon after it starts responding, percy snapshot errors happen. + sleep 5 break else wait_time_secs=$((wait_time_secs + sleep_interval_secs))