-
Notifications
You must be signed in to change notification settings - Fork 27.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(workflow): upload test trace for deploy e2e (#51389)
### What? WEB-1193. context: https://vercel.slack.com/archives/C04DUD7EB1B/p1686873054726149 we want to observe flakyness over deploy e2e tests.
- Loading branch information
Showing
1 changed file
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -418,6 +418,7 @@ jobs: | |
NEXT_TELEMETRY_DISABLED: 1 | ||
VERCEL_TEST_TOKEN: ${{ secrets.VERCEL_TEST_TOKEN }} | ||
VERCEL_TEST_TEAM: vtest314-next-e2e-tests | ||
DATADOG_API_KEY: ${{ secrets.DATA_DOG_API_KEY }} | ||
steps: | ||
- uses: actions/cache@v3 | ||
timeout-minutes: 5 | ||
|
@@ -436,7 +437,7 @@ jobs: | |
- run: RESET_VC_PROJECT=true node scripts/reset-vercel-project.mjs | ||
name: Reset test project | ||
|
||
- run: docker run --rm -v $(pwd):/work mcr.microsoft.com/playwright:v1.28.1-jammy /bin/bash -c "cd /work && NODE_VERSION=${{ env.NODE_LTS_VERSION }} ./scripts/setup-node.sh && npm i -g pnpm@${PNPM_VERSION} > /dev/null && VERCEL_TEST_TOKEN=${{ secrets.VERCEL_TEST_TOKEN }} VERCEL_TEST_TEAM=vtest314-next-e2e-tests NEXT_TEST_JOB=1 NEXT_TEST_MODE=deploy TEST_TIMINGS_TOKEN=${{ secrets.TEST_TIMINGS_TOKEN }} NEXT_TEST_CONTINUE_ON_ERROR=1 xvfb-run node run-tests.js --type e2e >> /proc/1/fd/1" | ||
- run: docker run --rm -v $(pwd):/work mcr.microsoft.com/playwright:v1.28.1-jammy /bin/bash -c "cd /work && NODE_VERSION=${{ env.NODE_LTS_VERSION }} ./scripts/setup-node.sh && npm i -g pnpm@${PNPM_VERSION} > /dev/null && DATADOG_TRACE_NEXTJS_TEST=TRUE DATADOG_API_KEY=${DATADOG_API_KEY} DD_ENV=ci VERCEL_TEST_TOKEN=${{ secrets.VERCEL_TEST_TOKEN }} VERCEL_TEST_TEAM=vtest314-next-e2e-tests NEXT_TEST_JOB=1 NEXT_TEST_MODE=deploy TEST_TIMINGS_TOKEN=${{ secrets.TEST_TIMINGS_TOKEN }} NEXT_TEST_CONTINUE_ON_ERROR=1 xvfb-run node run-tests.js --type e2e >> /proc/1/fd/1" | ||
name: Run test/e2e (deploy) | ||
|
||
- name: Upload test trace | ||
|
@@ -449,6 +450,14 @@ jobs: | |
path: | | ||
test/traces | ||
- name: Upload test trace to datadog | ||
continue-on-error: true | ||
run: | | ||
ls -al ./test | ||
npm install -g [email protected] @datadog/[email protected] | ||
jrm ./nextjs-test-result-junit.xml "test/test-junit-report/**/*.xml" | ||
DD_ENV=ci datadog-ci junit upload --tags test.type:nextjs_deploy_e2e --service nextjs ./nextjs-test-result-junit.xml | ||
releaseStats: | ||
name: Release Stats | ||
runs-on: ubuntu-latest | ||
|