From c4f254d9e47b2fe7f39ade1b769a453dde9a1dc2 Mon Sep 17 00:00:00 2001 From: yuneng-jiang Date: Sat, 17 Jan 2026 14:04:55 -0800 Subject: [PATCH] Adding debugging for e2e ui test --- .circleci/config.yml | 28 +++++++++++++++++-- .../e2e_tests/playwright.config.ts | 1 + 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 746f84829d8..8b1357a01ac 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3637,13 +3637,37 @@ jobs: --reporter=html \ --output=test-results no_output_timeout: 120m + - run: + name: Debug Playwright artifact paths + when: always + command: | + echo "=== Working directory ===" + pwd + + echo "" + echo "=== playwright-report directories ===" + find . -type d -name "playwright-report" -maxdepth 7 || true + + echo "" + echo "=== test-results directories ===" + find . -type d -name "test-results" -maxdepth 7 || true + + echo "" + echo "=== HTML report contents (if any) ===" + find . -type f -path "*playwright-report/index.html" || true + + echo "" + echo "=== Disk usage summary ===" + du -sh \ + litellm/ui/litellm-dashboard/e2e_tests 2>/dev/null || true + - store_artifacts: - path: ui/litellm-dashboard/e2e_tests/test-results + path: ~/project/litellm/ui/litellm-dashboard/test-results destination: playwright-results when: always - store_artifacts: - path: ui/litellm-dashboard/e2e_tests/playwright-report + path: ~/project/litellm/ui/litellm-dashboard/playwright-report destination: playwright-report when: always test_nonroot_image: diff --git a/ui/litellm-dashboard/e2e_tests/playwright.config.ts b/ui/litellm-dashboard/e2e_tests/playwright.config.ts index 329bb7f7afc..db62fe0a601 100644 --- a/ui/litellm-dashboard/e2e_tests/playwright.config.ts +++ b/ui/litellm-dashboard/e2e_tests/playwright.config.ts @@ -24,6 +24,7 @@ export default defineConfig({ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: "on-first-retry", + screenshot: "only-on-failure", }, /* Configure projects for major browsers */