From 93dd787d7ac15af2e0afa81761ef4fa3c8ffe225 Mon Sep 17 00:00:00 2001 From: M09Ic Date: Wed, 19 Aug 2026 15:59:12 +0800 Subject: [PATCH] fix(ci): bound Playwright browser installation --- .github/workflows/ci.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47f3b9c5..e1257eb4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -305,6 +305,7 @@ jobs: e2e: runs-on: ubuntu-22.04 needs: test + timeout-minutes: 20 steps: - name: Checkout uses: actions/checkout@v6 @@ -351,7 +352,20 @@ jobs: - name: Install Playwright Chromium working-directory: web/frontend - run: npx playwright install --with-deps chromium + timeout-minutes: 10 + env: + PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT: "120000" + run: | + for attempt in 1 2 3; do + if timeout --kill-after=15s 3m npx playwright install chromium; then + exit 0 + fi + if [[ "$attempt" == "3" ]]; then + exit 1 + fi + echo "Playwright Chromium install failed, retrying ($attempt/3)..." + sleep $((attempt * 5)) + done - name: Run frontend Playwright E2E working-directory: web/frontend