From 0e3af032e721b4216da508d0cad74ae6fa8d4b00 Mon Sep 17 00:00:00 2001 From: tifisht Date: Mon, 26 Oct 2026 08:15:28 +0800 Subject: [PATCH] test: wait for Docker service readiness --- .github/workflows/docker-smoke.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-smoke.yml b/.github/workflows/docker-smoke.yml index 6788c16..b64ddf4 100644 --- a/.github/workflows/docker-smoke.yml +++ b/.github/workflows/docker-smoke.yml @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Build image and check dependencies run: | @@ -46,8 +46,9 @@ jobs: --publish 127.0.0.1:5000:5000 \ --mount "type=bind,src=$RUNNER_TEMP/netease-cookie.txt,dst=/app/cookie.txt,readonly" \ netease-url:smoke - curl --fail --silent --show-error --retry 30 --retry-connrefused \ - --retry-delay 1 --max-time 5 http://127.0.0.1:5000/health > health.json + curl --fail --silent --show-error --retry 30 --retry-all-errors \ + --retry-delay 1 --retry-max-time 60 --max-time 5 \ + --output health.json http://127.0.0.1:5000/health python3 - <<'PY' import json with open('health.json') as response: