diff --git a/.github/workflows/run_observatory_tests.yml b/.github/workflows/run_observatory_tests.yml index 3500cf9ad3a..d343098ed32 100644 --- a/.github/workflows/run_observatory_tests.yml +++ b/.github/workflows/run_observatory_tests.yml @@ -104,8 +104,19 @@ jobs: - name: Verify tunnel connectivity run: | echo "Testing tunnel at ${{ env.TUNNEL_URL }}..." - curl -sf "${{ env.TUNNEL_URL }}/health/liveliness" - echo "Tunnel is working" + # Quick tunnels need time for DNS propagation; retry to avoid + # transient NXDOMAIN (curl exit code 6) on first attempt. + for i in $(seq 1 10); do + if curl -sf "${{ env.TUNNEL_URL }}/health/liveliness" > /dev/null 2>&1; then + echo "Tunnel is working (attempt $i)" + exit 0 + fi + echo "Attempt $i/10 - tunnel not routable yet, waiting 5s..." + sleep 5 + done + echo "Tunnel failed to become reachable after 50s" + cat /tmp/cloudflared.log + exit 1 - name: Trigger observatory test run id: trigger diff --git a/litellm/router.py b/litellm/router.py index 34408e38e40..f21718a34c3 100644 --- a/litellm/router.py +++ b/litellm/router.py @@ -1718,7 +1718,7 @@ class Router: return FallbackStreamWrapper(stream_with_fallbacks()) - def _completion_streaming_iterator( + def _completion_streaming_iterator( # noqa: PLR0915 self, model_response: CustomStreamWrapper, messages: List[Dict[str, str]],