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