Unverified Commit 82026906 authored by Will Binns-Smith's avatar Will Binns-Smith Committed by GitHub

Read and write rspack test manifests by name (#75445)

Previously, rspack test runs were writing to `test-junit-report`, but
were expected to be found at `turbopack-test-junit-report`.

This renames both sides to be `rspack-test-junit-report`.
parent c5441e30
......@@ -99,7 +99,7 @@ jobs:
name: test-reports-start-${{ matrix.group }}
if-no-files-found: 'error'
path: |
test/turbopack-test-junit-report
test/rspack-test-junit-report
test-integration-production:
name: Next.js integration test (Integration)
......
......@@ -99,7 +99,7 @@ jobs:
name: test-reports-dev-${{ matrix.group }}
if-no-files-found: 'error'
path: |
test/turbopack-test-junit-report
test/rspack-test-junit-report
test-integration-development:
name: Next.js integration test (Integration)
......@@ -149,7 +149,7 @@ jobs:
name: test-reports-dev-integration-${{ matrix.group }}
if-no-files-found: 'error'
path: |
test/turbopack-test-junit-report
test/rspack-test-junit-report
# Collect integration test results from execute_tests,
# Store it as github artifact for next step to consume.
......
......@@ -38,11 +38,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_PULL_REQUESTS }}
BRANCH_NAME: rspack-manifest
SCRIPT: test/build-turbopack-dev-tests-manifest.js
SCRIPT: test/build-rspack-dev-tests-manifest.js
PR_TITLE: Update Rspack development test manifest
PR_BODY: This auto-generated PR updates the development integration test manifest used when testing Rspack.
update_build_manifest:
name: Update and upload Turbopack production test manifest
name: Update and upload Rspack production test manifest
if: github.repository_owner == 'vercel'
runs-on: ubuntu-latest
steps:
......@@ -71,6 +71,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_PULL_REQUESTS }}
BRANCH_NAME: rspack-manifest
SCRIPT: test/build-turbopack-build-tests-manifest.js
SCRIPT: test/build-rspack-build-tests-manifest.js
PR_TITLE: Update Rspack production test manifest
PR_BODY: This auto-generated PR updates the production integration test manifest used when testing Rspack.
......@@ -36,9 +36,14 @@ if (enableTestReport) {
customJestConfig.reporters = ['default']
}
const outputDirectory = process.env.TURBOPACK
? '<rootDir>/turbopack-test-junit-report'
: '<rootDir>/test-junit-report'
let outputDirectory
if (process.env.TURBOPACK) {
outputDirectory = '<rootDir>/turbopack-test-junit-report'
} else if (process.env.NEXT_RSPACK) {
outputDirectory = '<rootDir>/rspack-test-junit-report'
} else {
outputDirectory = '<rootDir>/test-junit-report'
}
customJestConfig.reporters.push([
'jest-junit',
......
......@@ -5,5 +5,6 @@ e2e/**/tsconfig.json
production/**/tsconfig.json
development/**/tsconfig.json
rspack-test-junit-report/
test-junit-report/
turbopack-test-junit-report/
\ No newline at end of file
turbopack-test-junit-report/
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