refactor(CI): Extend areweturboyet integration test jobs for all bundlers (#76361)
Use the reusable configs defined in #76251 for rspack. Development tests: https://github.com/vercel/next.js/actions/runs/13514384329 Production tests: https://github.com/vercel/next.js/actions/runs/13514385828 Patch the `build-rspack-dev-tests-manifest.js` script: ``` diff --git a/test/build-rspack-dev-tests-manifest.js b/test/build-rspack-dev-tests-manifest.js index 22f8401ef7..8cc5ed4af6 100644 --- a/test/build-rspack-dev-tests-manifest.js +++ b/test/build-rspack-dev-tests-manifest.js @@ -91,7 +91,10 @@ async function fetchLatestTestArtifact() { const res = JSON.parse(stdout) for (const artifact of res.artifacts) { - if (artifact.expired || artifact.workflow_run.head_branch !== 'canary') { + if ( + artifact.expired || + artifact.workflow_run.head_branch !== 'bgw/round-robin-tests' + ) { continue } ``` ``` node test/build-turbopack-dev-tests-manifest.js ``` Inspect the generated JSON: https://gist.github.com/bgw/35b7f9d09cd95f64087a69ff5c7f8972
Showing
| ... | ... | @@ -16,21 +16,21 @@ |
| "test-types": "tsc", | ||
| "test-unit": "jest test/unit/ packages/next/ packages/font", | ||
| "test-dev": "cross-env NEXT_TEST_MODE=dev pnpm testheadless", | ||
| "test-dev-rspack": "cross-env NEXT_TEST_MODE=dev NEXT_TEST_USE_RSPACK=1 BUILTIN_FLIGHT_CLIENT_ENTRY_PLUGIN=1 BUILTIN_APP_LOADER=1 BUILTIN_SWC_LOADER=1 pnpm testheadless", | ||
| "test-dev-rspack": "pnpm run with-rspack pnpm run test-dev", | ||
| "test-dev-turbo": "cross-env NEXT_TEST_MODE=dev TURBOPACK=1 TURBOPACK_DEV=1 pnpm testheadless", | ||
| "test-start": "cross-env NEXT_TEST_MODE=start pnpm testheadless", | ||
| "test-start-rspack": "cross-env NEXT_TEST_MODE=start NEXT_RSPACK=1 BUILTIN_FLIGHT_CLIENT_ENTRY_PLUGIN=1 BUILTIN_APP_LOADER=1 BUILTIN_SWC_LOADER=1 pnpm testheadless", | ||
| "test-start-rspack": "pnpm run with-rspack pnpm run test-start", | ||
| "test-start-turbo": "cross-env NEXT_TEST_MODE=start TURBOPACK=1 TURBOPACK_BUILD=1 pnpm testheadless", | ||
| "test-deploy": "cross-env NEXT_TEST_MODE=deploy pnpm testheadless", | ||
| "testonly-dev": "cross-env NEXT_TEST_MODE=dev pnpm testonly", | ||
| "testonly-dev-rspack": "cross-env NEXT_TEST_MODE=dev NEXT_RSPACK=1 pnpm testonly", | ||
| "testonly-dev-rspack": "pnpm run with-rspack pnpm run testonly-dev", | ||
| "testonly-dev-turbo": "cross-env NEXT_TEST_MODE=dev TURBOPACK=1 TURBOPACK_DEV=1 pnpm testonly", | ||
| "testonly-start": "cross-env NEXT_TEST_MODE=start pnpm testonly", | ||
| "testonly-start-rspack": "cross-env NEXT_TEST_MODE=start NEXT_RSPACK=1 pnpm testonly", | ||
| "testonly-start-rspack": "pnpm run with-rspack pnpm run testonly-start", | ||
| "testonly-start-turbo": "cross-env NEXT_TEST_MODE=start TURBOPACK=1 TURBOPACK_BUILD=1 pnpm testonly", | ||
| "testonly-deploy": "cross-env NEXT_TEST_MODE=deploy pnpm testonly", | ||
| "test": "pnpm testheadless", | ||
| "test-rspack": "cross-env NEXT_RSPACK=1 pnpm testheadless", | ||
| "test-rspack": "pnpm run with-rspack pnpm run test", | ||
| "test-turbo": "cross-env TURBOPACK=1 TURBOPACK_DEV=1 TURBOPACK_BUILD=1 pnpm testheadless", | ||
| "testonly": "jest --runInBand", | ||
| "testheadless": "cross-env HEADLESS=true pnpm testonly", | ||
| ... | ... | @@ -76,7 +76,8 @@ |
| "update-error-codes": "cd packages/next && pnpm taskr compile check_error_codes", | ||
| "storybook": "turbo run storybook", | ||
| "build-storybook": "turbo run build-storybook", | ||
| "test-storybook": "turbo run test-storybook" | ||
| "test-storybook": "turbo run test-storybook", | ||
| "with-rspack": "cross-env NEXT_RSPACK=1 NEXT_TEST_USE_RSPACK=1 BUILTIN_FLIGHT_CLIENT_ENTRY_PLUGIN=1 BUILTIN_APP_LOADER=1 BUILTIN_SWC_LOADER=1" | ||
| }, | ||
| "devDependencies": { | ||
| "@actions/core": "1.10.1", | ||
| ... | ... |
Please
register
or
sign in
to comment