Skip to content

Commit

Permalink
Rename turbopack-tests-manifest to turbopack-dev-tests-manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Mar 18, 2024
1 parent cf3c552 commit dd0ee8c
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ Cargo.lock @timneutkens @i
/.cargo/config.toml @timneutkens @ijjk @shuding @huozhi @vercel/turbopack
/.config/nextest.toml @timneutkens @ijjk @shuding @huozhi @vercel/turbopack
/test/build-turbopack-tests-manifest.js @timneutkens @ijjk @shuding @huozhi @vercel/turbopack
/test/turbopack-tests-manifest.json @timneutkens @ijjk @shuding @huozhi @vercel/turbopack
/test/turbopack-dev-tests-manifest.json @timneutkens @ijjk @shuding @huozhi @vercel/turbopack
5 changes: 4 additions & 1 deletion .github/actions/upload-turboyet-data/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ const { createClient } = require('@vercel/kv')

async function main() {
try {
const file = path.join(process.cwd(), 'test/turbopack-tests-manifest.json')
const file = path.join(
process.cwd(),
'test/turbopack-dev-tests-manifest.json'
)

let passingTests = ''
let failingTests = ''
Expand Down
36 changes: 34 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ jobs:
group: [1/5, 2/5, 3/5, 4/5, 5/5]
uses: ./.github/workflows/build_reusable.yml
with:
afterBuild: RUST_BACKTRACE=0 NEXT_EXTERNAL_TESTS_FILTERS="$(pwd)/test/turbopack-tests-manifest.json" TURBOPACK=1 NEXT_E2E_TEST_TIMEOUT=240000 NEXT_TEST_MODE=dev node run-tests.js --test-pattern '^(test\/(development|e2e))/.*\.test\.(js|jsx|ts|tsx)$' --timings -g ${{ matrix.group }} -c ${TEST_CONCURRENCY}
afterBuild: RUST_BACKTRACE=0 NEXT_EXTERNAL_TESTS_FILTERS="$(pwd)/test/turbopack-dev-tests-manifest.json" TURBOPACK=1 NEXT_E2E_TEST_TIMEOUT=240000 NEXT_TEST_MODE=dev node run-tests.js --test-pattern '^(test\/(development|e2e))/.*\.test\.(js|jsx|ts|tsx)$' --timings -g ${{ matrix.group }} -c ${TEST_CONCURRENCY}
stepName: 'test-turbopack-dev-${{ matrix.group }}'
secrets: inherit

Expand All @@ -179,10 +179,42 @@ jobs:
uses: ./.github/workflows/build_reusable.yml
with:
nodeVersion: 18.17.0
afterBuild: RUST_BACKTRACE=0 NEXT_EXTERNAL_TESTS_FILTERS="$(pwd)/test/turbopack-tests-manifest.json" TURBOPACK=1 node run-tests.js --timings -g ${{ matrix.group }} -c ${TEST_CONCURRENCY} --type integration
afterBuild: RUST_BACKTRACE=0 NEXT_EXTERNAL_TESTS_FILTERS="$(pwd)/test/turbopack-dev-tests-manifest.json" TURBOPACK=1 node run-tests.js --timings -g ${{ matrix.group }} -c ${TEST_CONCURRENCY} --type integration
stepName: 'test-turbopack-integration-${{ matrix.group }}'
secrets: inherit

# test-turbopack-production:
# name: test turbopack production
# needs: ['changes', 'build-next']
# if: ${{ needs.changes.outputs.docs-only == 'false' }}

# strategy:
# fail-fast: false
# matrix:
# group: [1/5, 2/5, 3/5, 4/5, 5/5]
# uses: ./.github/workflows/build_reusable.yml
# with:
# nodeVersion: 18.17.0
# afterBuild: RUST_BACKTRACE=0 NEXT_EXTERNAL_TESTS_FILTERS="$(pwd)/test/turbopack-build-tests-manifest.json" TURBOPACK=1 TURBOPACK_BUILD=1 node run-tests.js --timings -g ${{ matrix.group }} -c ${TEST_CONCURRENCY} --type production
# stepName: 'test-turbopack-integration-${{ matrix.group }}'
# secrets: inherit

# test-turbopack-production-integration:
# name: test turbopack integration
# needs: ['changes', 'build-next']
# if: ${{ needs.changes.outputs.docs-only == 'false' }}

# strategy:
# fail-fast: false
# matrix:
# group: [1/5, 2/5, 3/5, 4/5, 5/5]
# uses: ./.github/workflows/build_reusable.yml
# with:
# nodeVersion: 18.17.0
# afterBuild: RUST_BACKTRACE=0 NEXT_EXTERNAL_TESTS_FILTERS="$(pwd)/test/turbopack-build-tests-manifest.json" TURBOPACK=1 TURBOPACK_BUILD=1 node run-tests.js --timings -g ${{ matrix.group }} -c ${TEST_CONCURRENCY} --type integration
# stepName: 'test-turbopack-integration-${{ matrix.group }}'
# secrets: inherit

test-next-swc-wasm:
name: test next-swc wasm
needs: ['changes', 'build-next']
Expand Down
2 changes: 1 addition & 1 deletion test/build-turbopack-tests-manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function format(text) {

const override = process.argv.includes('--override')

const PASSING_JSON_PATH = `${__dirname}/turbopack-tests-manifest.json`
const PASSING_JSON_PATH = `${__dirname}/turbopack-dev-tests-manifest.json`
const WORKING_PATH = '/root/actions-runner/_work/next.js/next.js/'

const INITIALIZING_TEST_CASES = [
Expand Down
File renamed without changes.

0 comments on commit dd0ee8c

Please sign in to comment.