From a40bc2c68d0d3f8f9cf8d5835f283c5a54cbfd11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 10 Aug 2026 19:32:02 +0200 Subject: [PATCH] fix(ci): retry requests during worker recycling Granian worker recycling can briefly delay an in-flight health check, making the one-second stress probe flaky. Retry transient failures while preserving logs and cleanup for failed runs. --- .github/workflows/container-test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/container-test.yml b/.github/workflows/container-test.yml index 939dd3979..c4d0ad959 100644 --- a/.github/workflows/container-test.yml +++ b/.github/workflows/container-test.yml @@ -130,12 +130,18 @@ jobs: . docker-compose/.test.env set +e for i in $( seq 40000 ) ; do - if ! curl --silent --show-error --fail-with-body --insecure --output /dev/null --max-time 1 "${URL}healthz/" ; then + # A request assigned to a retiring worker can briefly stall; retries still detect a service which does not recover. + if ! curl --silent --show-error --fail-with-body --insecure --output /dev/null --max-time 1 --retry 3 --retry-all-errors --retry-delay 0 "${URL}healthz/" ; then echo "Failed after $i requests!" exit 1 fi done + - name: Display logs + if: always() + working-directory: docker-compose + run: ./test-logs - name: Shutdown service + if: always() working-directory: docker-compose run: ./test-stop permissions: