From 8db2e4f3816a3feddd60c84e6455eb5f323fc375 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Mon, 31 Aug 2026 13:36:10 +0800 Subject: [PATCH] ci(docreader): install Playwright WebKit for TestReadURL The Go client URL test was a false positive: missing WebKit used to surface as markdown content. #2883 raises instead, so CI must install the same browser the DocReader image uses. --- .github/workflows/docreader.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/docreader.yml b/.github/workflows/docreader.yml index c98c9125..ff78a1c7 100644 --- a/.github/workflows/docreader.yml +++ b/.github/workflows/docreader.yml @@ -69,6 +69,19 @@ jobs: - name: Download Go modules run: go mod download + # TestReadURL drives the live WebParser (Playwright WebKit). Without the + # browser binary, scrape used to return "Error parsing web page: …" as + # markdown and the Go client treated that as success. After #2883 the + # parser raises, so CI must install WebKit the same way the image does. + - name: Cache Playwright browsers + uses: actions/cache@v4 + with: + path: ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-webkit-${{ hashFiles('docreader/uv.lock') }} + + - name: Install Playwright WebKit + run: uv run --project docreader --python ${{ env.PYTHON_VERSION }} python -m playwright install --with-deps webkit + - name: Start DocReader gRPC server run: | uv run --project docreader --python ${{ env.PYTHON_VERSION }} python -m docreader.main &