Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Turbopack production test manifest #75568

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

vercel-release-bot
Copy link
Collaborator

This auto-generated PR updates the production integration test manifest used when testing Turbopack.

@ijjk ijjk added CI approved Approve running CI for fork tests labels Feb 2, 2025
@ijjk
Copy link
Member

ijjk commented Feb 3, 2025

Failing test suites

Commit: cee4dcd

pnpm test-start-turbo test/e2e/app-dir/scss/webpack-error/webpack-error.test.ts (turbopack)

  • SCSS Support > Friendly Webpack Error > should be a friendly error successfully
Expand output

● SCSS Support › Friendly Webpack Error › should be a friendly error successfully

expect(received).toContain(expected) // indexOf

Expected substring: "To use Next.js' built-in Sass support, you first need to install `sass`."
Received string:    "   No config file found
   No config file found
   ▲ Next.js 15.2.0-canary.35 (Turbopack)·
   Linting and checking validity of types ...
   Creating an optimized production build ...
   No config file found
   No config file found
   Building (0/2) ...
 ✓ Building (2/2)·
> Build error occurred
[Error: Turbopack build failed with 1 errors:
Page: {\"type\":\"pages\",\"side\":\"server\",\"page\":\"_app\"}
./styles/global.scss
Error evaluating Node.js code
Error: Cannot find module 'sass'
Require stack:
- /tmp/next-install-eba441213ee9ee58035393c15a0b8f27764e1136de3218d34dfc0219e7c1dda1/node_modules/.pnpm/next@file+..+next-repo-b4829cb8c7be3c7d9eae97dfc5d496e7f2fee82881560229c90a751cefef1143+packa_it3hodqlzf5gcv4tx5bx5wwgte/node_modules/next/dist/compiled/sass-loader/cjs.js
- /tmp/next-install-eba441213ee9ee58035393c15a0b8f27764e1136de3218d34dfc0219e7c1dda1/node_modules/.pnpm/next@file+..+next-repo-b4829cb8c7be3c7d9eae97dfc5d496e7f2fee82881560229c90a751cefef1143+packa_it3hodqlzf5gcv4tx5bx5wwgte/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js
- /tmp/next-install-eba441213ee9ee58035393c15a0b8f27764e1136de3218d34dfc0219e7c1dda1/.next/build/chunks/[turbopack]_runtime.js
- /tmp/next-install-eba441213ee9ee58035393c15a0b8f27764e1136de3218d34dfc0219e7c1dda1/.next/webpack-loaders.js
    [at file+..+next-repo-b4829cb8c7be3c7d9eae97dfc5d496e7f2fee82881560229c90a751cefef1143+packa_it3hodqlzf5gcv4tx5bx5wwgte/node_modules/next/dist/compiled/sass-loader/cjs.js]
    [at file+..+next-repo-b4829cb8c7be3c7d9eae97dfc5d496e7f2fee82881560229c90a751cefef1143+packa_it3hodqlzf5gcv4tx5bx5wwgte/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js]
    [at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)]
    [at Module._load (node:internal/modules/cjs/loader:922:27)]
    [at Module.require (node:internal/modules/cjs/loader:1143:19)]
    [at require (node:internal/modules/cjs/helpers:119:18)]
    [at 438 (/tmp/next-install-eba441213ee9ee58035393c15a0b8f27764e1136de3218d34dfc0219e7c1dda1/node_modules/.pnpm/next@file+..+next-repo-b4829cb8c7be3c7d9eae97dfc5d496e7f2fee82881560229c90a751cefef1143+packa_it3hodqlzf5gcv4tx5bx5wwgte/node_modules/next/dist/compiled/sass-loader/cjs.js:1:12362)]
    [at __nccwpck_require__ (/tmp/next-install-eba441213ee9ee58035393c15a0b8f27764e1136de3218d34dfc0219e7c1dda1/node_modules/.pnpm/next@file+..+next-repo-b4829cb8c7be3c7d9eae97dfc5d496e7f2fee82881560229c90a751cefef1143+packa_it3hodqlzf5gcv4tx5bx5wwgte/node_modules/next/dist/compiled/sass-loader/cjs.js:1:14176)]
    [at getDefaultSassImplementation (/tmp/next-install-eba441213ee9ee58035393c15a0b8f27764e1136de3218d34dfc0219e7c1dda1/node_modules/.pnpm/next@file+..+next-repo-b4829cb8c7be3c7d9eae97dfc5d496e7f2fee82881560229c90a751cefef1143+packa_it3hodqlzf5gcv4tx5bx5wwgte/node_modules/next/dist/compiled/sass-loader/cjs.js:1:2786)]
    [at getSassImplementation (/tmp/next-install-eba441213ee9ee58035393c15a0b8f27764e1136de3218d34dfc0219e7c1dda1/node_modules/.pnpm/next@file+..+next-repo-b4829cb8c7be3c7d9eae97dfc5d496e7f2fee82881560229c90a751cefef1143+packa_it3hodqlzf5gcv4tx5bx5wwgte/node_modules/next/dist/compiled/sass-loader/cjs.js:1:2864)]
    [at Object.loader (/tmp/next-install-eba441213ee9ee58035393c15a0b8f27764e1136de3218d34dfc0219e7c1dda1/node_modules/.pnpm/next@file+..+next-repo-b4829cb8c7be3c7d9eae97dfc5d496e7f2fee82881560229c90a751cefef1143+packa_it3hodqlzf5gcv4tx5bx5wwgte/node_modules/next/dist/compiled/sass-loader/cjs.js:1:513)]
    [at LOADER_EXECUTION (/tmp/next-install-eba441213ee9ee58035393c15a0b8f27764e1136de3218d34dfc0219e7c1dda1/node_modules/.pnpm/next@file+..+next-repo-b4829cb8c7be3c7d9eae97dfc5d496e7f2fee82881560229c90a751cefef1143+packa_it3hodqlzf5gcv4tx5bx5wwgte/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:4134)]·
]
"

  15 |
  16 |       expect(cliOutput).toContain('./styles/global.scss')
> 17 |       expect(cliOutput).toContain(
     |                         ^
  18 |         "To use Next.js' built-in Sass support, you first need to install `sass`."
  19 |       )
  20 |       expect(cliOutput).toContain(

  at Object.toContain (e2e/app-dir/scss/webpack-error/webpack-error.test.ts:17:25)

Read more about building and testing Next.js in contributing.md.

pnpm test test/integration/invalid-middleware-matchers/test/index.test.js (turbopack)

  • Errors on invalid custom middleware matchers > production mode > should error when source length is exceeded
  • Errors on invalid custom middleware matchers > production mode > should error during next build for invalid matchers
Expand output

● Errors on invalid custom middleware matchers › production mode › should error when source length is exceeded

expect(received).toContain(expected) // indexOf

Expected substring: "exceeds max built length of 4096 for route"
Received string:    " ⚠ Linting is disabled.
"

  31 |     await writeMiddleware([{ source: `/${Array(4096).join('a')}` }])
  32 |     const stderr = await getStderr()
> 33 |     expect(stderr).toContain('exceeds max built length of 4096 for route')
     |                    ^
  34 |   })
  35 |
  36 |   it('should error during next build for invalid matchers', async () => {

  at Object.toContain (integration/invalid-middleware-matchers/test/index.test.js:33:20)

● Errors on invalid custom middleware matchers › production mode › should error during next build for invalid matchers

expect(received).toContain(expected) // indexOf

Expected substring: "Expected string, received object at \"matcher[0]\", or source is required at \"matcher[0].source\""
Received string:    " ⚠ Linting is disabled.
 ⚠ Turbopack build collected 1 warnings:
Page: {\"type\":\"root\",\"side\":\"server\",\"page\":\"middleware\"}
./test/integration/invalid-middleware-matchers/middleware.js
Unable to parse config export in source file
The exported configuration object in a source file need to have a very specific format from which some properties can be statically parsed at compiled-time.··
"

  86 |     const stderr = await getStderr()
  87 |
> 88 |     expect(stderr).toContain(
     |                    ^
  89 |       'Expected string, received object at "matcher[0]", or source is required at "matcher[0].source"'
  90 |     )
  91 |     expect(stderr).toContain(

  at Object.toContain (integration/invalid-middleware-matchers/test/index.test.js:88:20)

Read more about building and testing Next.js in contributing.md.

pnpm test test/integration/next-dynamic/test/index.test.js (turbopack)

  • next/dynamic > production mode > should render dynamic server rendered values on client mount
Expand output

● next/dynamic › production mode › should render dynamic server rendered values on client mount

expect(received).toMatch(expected)

Expected pattern: /^Index<!--\/?(\$|\s)-->1(<!--\/?(\$|\s)-->)+2(<!--\/?(\$|\s)-->)+3(<!--\/?(\$|\s)-->)+4(<!--\/?(\$|\s)-->)+4$/
Received string:  "Index4"

  24 |     expect(html).toMatch(/the-server-value/i)
  25 |   })
> 26 |
     | ^
  27 |   it('should render dynamic server rendered values on client mount', async () => {
  28 |     const browser = await webdriver(appPort, '/')
  29 |     const text = await browser.elementByCss('#first-render').text()

  at Object.<anonymous> (integration/next-dynamic/test/index.test.js:26:22)

Read more about building and testing Next.js in contributing.md.

pnpm test test/integration/invalid-document-image-import/test/index.test.js (turbopack)

  • Invalid static image import in _document > production mode > Should fail to build when no next.config.js
  • Invalid static image import in _document > production mode > Should fail to build when disableStaticImages in next.config.js
Expand output

● Invalid static image import in _document › production mode › Should fail to build when no next.config.js

expect(received).not.toBe(expected) // Object.is equality

Expected: not 0

  18 |           stderr: true,
  19 |         })
> 20 |         expect(code).not.toBe(0)
     |                          ^
  21 |         expect(stderr).toContain('Failed to compile')
  22 |         expect(stderr).toMatch(
  23 |           /Images.*cannot.*be imported within.*pages[\\/]_document\.js/

  at Object.toBe (integration/invalid-document-image-import/test/index.test.js:20:26)

● Invalid static image import in _document › production mode › Should fail to build when disableStaticImages in next.config.js

expect(received).not.toBe(expected) // Object.is equality

Expected: not 0

  37 |           stderr: true,
  38 |         })
> 39 |         expect(code).not.toBe(0)
     |                          ^
  40 |         expect(stderr).toMatch(
  41 |           /You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file/
  42 |         )

  at Object.toBe (integration/invalid-document-image-import/test/index.test.js:39:26)

Read more about building and testing Next.js in contributing.md.

pnpm test test/integration/error-load-fail/test/index.test.js (turbopack)

  • Failing to load _error > production mode > handles failing to load _error correctly
Expand output

● Failing to load _error › production mode › handles failing to load _error correctly

TIMED OUT: [object Object]

false

undefined

  735 |
  736 |   if (hardError) {
> 737 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  738 |   }
  739 |   return false
  740 | }

  at check (lib/next-test-utils.ts:737:11)
  at Object.<anonymous> (integration/error-load-fail/test/index.test.js:33:9)

Read more about building and testing Next.js in contributing.md.

pnpm test test/integration/index-index/test/index.test.js (turbopack)

  • nested index.js > production mode > should follow link to /index/index
Expand output

● nested index.js › production mode › should follow link to /index/index

TIMED OUT: /^index > index > index$/

link to / | link to /index | link to /index/index | link to /index/index/index | link to /index/user | link to /index/project

undefined

  735 |
  736 |   if (hardError) {
> 737 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  738 |   }
  739 |   return false
  740 | }

  at check (lib/next-test-utils.ts:737:11)
  at Object.<anonymous> (integration/index-index/test/index.test.js:156:7)

Read more about building and testing Next.js in contributing.md.

pnpm test-dev test/e2e/app-dir/rewrite-headers/rewrite-headers.test.ts

  • rewrite-headers > middleware rewrite external Prefetch RSC (/hello/vercel) > should have the expected headers
  • rewrite-headers > middleware rewrite external RSC (/hello/vercel) > should have the expected headers
Expand output

● rewrite-headers › middleware rewrite external RSC (/hello/vercel) › should have the expected headers

expect(received).toEqual(expected) // deep equality

- Expected  - 1
+ Received  + 1

  Object {
-   "x-nextjs-rewritten-path": null,
+   "x-nextjs-rewritten-path": "/home",
    "x-nextjs-rewritten-query": null,
  }

  404 |         })
  405 |
> 406 |         expect(headers).toEqual(expected)
      |                         ^
  407 |       })
  408 |     }
  409 |   )

  at Object.toEqual (e2e/app-dir/rewrite-headers/rewrite-headers.test.ts:406:25)

● rewrite-headers › middleware rewrite external Prefetch RSC (/hello/vercel) › should have the expected headers

expect(received).toEqual(expected) // deep equality

- Expected  - 1
+ Received  + 1

  Object {
-   "x-nextjs-rewritten-path": null,
+   "x-nextjs-rewritten-path": "/home",
    "x-nextjs-rewritten-query": null,
  }

  404 |         })
  405 |
> 406 |         expect(headers).toEqual(expected)
      |                         ^
  407 |       })
  408 |     }
  409 |   )

  at Object.toEqual (e2e/app-dir/rewrite-headers/rewrite-headers.test.ts:406:25)

Read more about building and testing Next.js in contributing.md.

pnpm test-start-turbo test/e2e/app-dir/app/experimental-compile.test.ts (turbopack)

  • app dir - basic > should encode chunk path correctly
Expand output

● app dir - basic › should encode chunk path correctly

TIMED OUT: found

["http://localhost:40323/dynamic-client/first/second","http://localhost:40323/_next/static/chunks/_2225ce._.css","http://localhost:40323/_next/static/chunks/components_button_button_module_dfc287.css","http://localhost:40323/_next/static/chunks/a04e5_next_dist_d67224._.js","http://localhost:40323/_next/static/chunks/a04e5_next_dist_fd9e58._.js","http://localhost:40323/_next/static/chunks/node_modules__pnpm_da8858._.js","http://localhost:40323/_next/static/chunks/a04e5_next_dist_7bbd69._.js","http://localhost:40323/_next/static/chunks/node_modules__pnpm_310bab._.js","http://localhost:40323/_next/static/chunks/_c4f9bb._.js","http://localhost:40323/_next/static/chunks/a04e5_next_dist_442835._.js","http://localhost:40323/_next/static/chunks/_483ad0._.js","http://localhost:40323/_next/static/chunks/components_button_79b132._.js"]

undefined

  735 |
  736 |   if (hardError) {
> 737 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  738 |   }
  739 |   return false
  740 | }

  at check (lib/next-test-utils.ts:737:11)
  at Object.<anonymous> (e2e/app-dir/app/index.test.ts:185:5)

Read more about building and testing Next.js in contributing.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI approved Approve running CI for fork tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants