Unverified Commit b88e263f authored by Leah's avatar Leah Committed by GitHub

fix dev parallelism in daily turbopack tests (#59287)

Also fixes the retry running on forks (hopefully for real this time)

Closes PACK-2087
parent bb3f0a21
...@@ -23,9 +23,7 @@ env: ...@@ -23,9 +23,7 @@ env:
RUST_BACKTRACE: 0 RUST_BACKTRACE: 0
NEXT_TELEMETRY_DISABLED: 1 NEXT_TELEMETRY_DISABLED: 1
TEST_CONCURRENCY: 6 TEST_CONCURRENCY: 6
DATADOG_API_KEY: ${{ secrets.DATA_DOG_API_KEY }}
NEXT_JUNIT_TEST_REPORT: 'true' NEXT_JUNIT_TEST_REPORT: 'true'
DD_ENV: 'ci'
# Turbopack specific customization for the test runner # Turbopack specific customization for the test runner
TURBOPACK: 1 TURBOPACK: 1
__INTERNAL_CUSTOM_TURBOPACK_BINDINGS: ${{ github.workspace }}/packages/next-swc/native/next-swc.linux-x64-gnu.node __INTERNAL_CUSTOM_TURBOPACK_BINDINGS: ${{ github.workspace }}/packages/next-swc/native/next-swc.linux-x64-gnu.node
...@@ -78,17 +76,15 @@ jobs: ...@@ -78,17 +76,15 @@ jobs:
corepack enable corepack enable
corepack prepare --activate yarn@1.22.19 corepack prepare --activate yarn@1.22.19
- name: Setup playwright
run: |
pnpm playwright install
- name: Run test/development - name: Run test/development
run: | run: |
ls $NEXT_TEST_SKIP_RETRY_MANIFEST NEXT_TEST_MODE=dev TURBOPACK=1 node run-tests.js -g ${{ matrix.group }}/6 -c ${TEST_CONCURRENCY} --type development
sudo npx playwright install-deps && pnpm playwright install
NEXT_TEST_MODE=dev TURBOPACK=1 node run-tests.js -g ${{ matrix.group }}/3 -c ${TEST_CONCURRENCY} --type development
ls test/turbopack-test-junit-report
# It is currently expected to fail some of next.js integration test, do not fail CI check. # It is currently expected to fail some of next.js integration test, do not fail CI check.
continue-on-error: true continue-on-error: true
env:
# marker to parse log output, do not delete / change.
NEXT_INTEGRATION_TEST: true
- name: Upload test report artifacts - name: Upload test report artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
...@@ -125,14 +121,14 @@ jobs: ...@@ -125,14 +121,14 @@ jobs:
corepack enable corepack enable
corepack prepare --activate yarn@1.22.19 corepack prepare --activate yarn@1.22.19
- name: Setup playwright
run: |
pnpm playwright install
- name: Run test/integration - name: Run test/integration
run: | run: |
sudo npx playwright install-deps && pnpm playwright install
TURBOPACK=1 node run-tests.js -g ${{ matrix.group }}/12 -c ${TEST_CONCURRENCY} --type integration TURBOPACK=1 node run-tests.js -g ${{ matrix.group }}/12 -c ${TEST_CONCURRENCY} --type integration
ls test/turbopack-test-junit-report
continue-on-error: true continue-on-error: true
env:
NEXT_INTEGRATION_TEST: true
- name: Upload test report artifacts - name: Upload test report artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
...@@ -192,6 +188,9 @@ jobs: ...@@ -192,6 +188,9 @@ jobs:
path: test/reports path: test/reports
- name: Upload to datadog - name: Upload to datadog
env:
DATADOG_API_KEY: ${{ secrets.DATA_DOG_API_KEY }}
DD_ENV: 'ci'
run: | run: |
# We'll tag this to the "Turbopack" datadog service, not "nextjs" # We'll tag this to the "Turbopack" datadog service, not "nextjs"
DD_ENV=ci npx @datadog/datadog-ci@2.23.1 junit upload --tags test.type:turbopack.daily --service Turbopack ./test/reports npx @datadog/datadog-ci@2.23.1 junit upload --tags test.type:turbopack.daily --service Turbopack ./test/reports
...@@ -31,7 +31,7 @@ jobs: ...@@ -31,7 +31,7 @@ jobs:
report-failure: report-failure:
name: report failure to slack name: report failure to slack
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt >= 3 && github.repository == 'vercel/next.js' }} if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt >= 3 && !github.event.workflow_run.head_repository.fork }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: send webhook - name: send webhook
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment