From b4cb490c7214ed1374404ed89b76323b3cf9a9a2 Mon Sep 17 00:00:00 2001 From: Asher Date: Wed, 19 Nov 2025 15:27:40 -0900 Subject: [PATCH] chore: enable debug logs over playwright (#20784) --- .github/workflows/ci.yaml | 8 ++++++++ site/e2e/playwright.config.ts | 3 +++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c454543879..5fd91050f3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -756,6 +756,14 @@ jobs: path: ./site/test-results/**/*.webm retention-days: 7 + - name: Upload debug log + if: always() && github.actor != 'dependabot[bot]' && runner.os == 'Linux' && !github.event.pull_request.head.repo.fork + uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + with: + name: coderd-debug-logs${{ matrix.variant.premium && '-premium' || '' }} + path: ./site/e2e/test-results/debug.log + retention-days: 7 + - name: Upload pprof dumps if: always() && github.actor != 'dependabot[bot]' && runner.os == 'Linux' && !github.event.pull_request.head.repo.fork uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 diff --git a/site/e2e/playwright.config.ts b/site/e2e/playwright.config.ts index 1454eb25c0..a24ab8e61e 100644 --- a/site/e2e/playwright.config.ts +++ b/site/e2e/playwright.config.ts @@ -81,9 +81,12 @@ export default defineConfig({ "--provisioner-daemons=10", "--web-terminal-renderer=dom", "--pprof-enable", + "--log-filter=.*", + `--log-human=${path.join(__dirname, "test-results/debug.log")}`, ] .filter(Boolean) .join(" "), + stdout: "pipe", env: { ...process.env, // Otherwise, the runner fails on Mac with: could not determine kind of name for C.uuid_string_t