8000 chore(ci): Retain and upload traces on e2e-tests failures (#13562) · billyjanitsch/sentry-javascript@2393064 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2393064

Browse files
authored
chore(ci): Retain and upload traces on e2e-tests failures (getsentry#13562)
1 parent d5f9f9d commit 2393064

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,15 @@ jobs:
10031003
working-directory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
10041004
timeout-minutes: 5
10051005
run: pnpm test:assert
1006+
1007+
- name: Upload Playwright Traces
1008+
uses: actions/upload-artifact@v4
1009+
if: failure()
1010+
with:
1011+
name: playwright-traces-job_e2e_playwright_tests-${{ matrix.test-application}}
1012+
path: dev-packages/e2e-tests/test-applications/${{ matrix.test-application}}/test-results
1013+
overwrite: true
1014+
retention-days: 7
10061015

10071016
job_optional_e2e_tests:
10081017
name: E2E ${{ matrix.label || matrix.test-application }} Test

dev-packages/test-utils/src/playwright-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function getPlaywrightConfig(
4646
baseURL: `http://localhost:${appPort}`,
4747

4848
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
49-
trace: 'on-first-retry',
49+
trace: 'retain-on-failure',
5050
},
5151

5252
/* Configure projects for major browsers */

0 commit comments

Comments
 (0)
0