这是indexloc提供的服务,不要输入任何密码
Skip to content

exlcude turborepo-ffi in turbopack build #3654

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

Merged
merged 1 commit into from
Feb 6, 2023
Merged

Conversation

sokra
Copy link
Member

@sokra sokra commented Feb 6, 2023

No description provided.

@vercel
Copy link

vercel bot commented Feb 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 6, 2023 at 5:36PM (UTC)
9 Ignored Deployments
Name Status Preview Comments Updated
examples-basic-web ⬜️ Ignored (Inspect) Feb 6, 2023 at 5:36PM (UTC)
examples-cra-web ⬜️ Ignored (Inspect) Feb 6, 2023 at 5:36PM (UTC)
examples-designsystem-docs ⬜️ Ignored (Inspect) Feb 6, 2023 at 5:36PM (UTC)
examples-kitchensink-blog ⬜️ Ignored (Inspect) Feb 6, 2023 at 5:36PM (UTC)
examples-native-web ⬜️ Ignored (Inspect) Feb 6, 2023 at 5:36PM (UTC)
examples-nonmonorepo ⬜️ Ignored (Inspect) Feb 6, 2023 at 5:36PM (UTC)
examples-svelte-web ⬜️ Ignored (Inspect) Feb 6, 2023 at 5:36PM (UTC)
examples-tailwind-web ⬜️ Ignored (Inspect) Feb 6, 2023 at 5:36PM (UTC)
examples-vite-web ⬜️ Ignored (Inspect) Feb 6, 2023 at 5:36PM (UTC)

@sokra sokra changed the title exlucde turborepo-ffi exlcude turborepo-ffi in trubopack build Feb 6, 2023
@sokra sokra changed the title exlcude turborepo-ffi in trubopack build exlcude turborepo-ffi in turbopack build Feb 6, 2023
@sokra sokra marked this pull request as ready for review February 6, 2023 17:55
@sokra sokra requested review from a team as code owners February 6, 2023 17:55
@sokra sokra merged commit c3adaad into main Feb 6, 2023
@sokra sokra deleted the sokra/ci/fix-sandwich branch February 6, 2023 17:55
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2023

Failing next.js integration test suites

Commit: 4e3a603

Test summary

main (ae76b11 / v13.1.7-canary.6) Current (4e3a603 / v13.1.7-canary.6) Diff (Failed)
Test suites 🔴 12 / 🟢 0 (Total: 12) 🔴 12 / 🟢 0 (Total: 12) 0️⃣
Test cases 🔴 26 / 🟢 14 (Total: 40) 🔴 46 / 🟢 12 (Total: 68) 🔼 20

Fixed tests:

- test/e2e/middleware-base-path/test/index.test.ts 
- test/integration/404-page-app/test/index.test.js 
- test/development/acceptance/ReactRefresh.test.ts 
- test/e2e/app-dir/app-alias/app-alias.test.ts 
- test/e2e/middleware-base-path/test/index.test.ts 
- test/integration/404-page-app/test/index.test.js 
- test/development/acceptance/ReactRefresh.test.ts 
- test/e2e/app-dir/app-alias/app-alias.test.ts

Newly failed tests:

- test/e2e/404-page-router/index.test.ts 
- test/development/acceptance-app/editor-links.test.ts 
- test/e2e/app-dir/app-rendering/rendering.test.ts 
- test/e2e/404-page-router/index.test.ts 
- test/development/acceptance-app/editor-links.test.ts 
- test/e2e/app-dir/app-rendering/rendering.test.ts
Full test report

test/development/acceptance-app/component-stack.test.ts

  • Component Stack in error overlay > should show a component stack on hydration error
Expand output

● Component Stack in error overlay › should show a component stack on hydration error

page.waitForSelector: Timeout 30000ms exceeded.
=========================== logs ===========================
waiting for locator('[data-nextjs-toast]')
============================================================

  329 |     return this.chain(() => {
  330 |       return page
> 331 |         .waitForSelector(selector, { timeout, state: 'attached' })
      |          ^
  332 |         .then(async (el) => {
  333 |           // it seems selenium waits longer and tests rely on this behavior
  334 |           // so we wait for the load event fire before returning

  at lib/browsers/playwright.ts:331:10

test/e2e/404-page-router/index.test.ts

  • 404-page-router with basePath of false and i18n of false and middleware false > for /not/a/real/page > should have the correct router parameters after it is ready
  • 404-page-router with basePath of false and i18n of false and middleware false > for /not/a/real/page?with=query > should have the correct router parameters after it is ready
  • 404-page-router with basePath of false and i18n of true and middleware false > for /not/a/real/page > should have the correct router parameters after it is ready
  • 404-page-router with basePath of false and i18n of true and middleware false > for /not/a/real/page?with=query > should have the correct router parameters after it is ready
  • 404-page-router with basePath of true and i18n of false and middleware false > for /not/a/real/page > should have the correct router parameters after it is ready
  • 404-page-router with basePath of true and i18n of false and middleware false > for /not/a/real/page?with=query > should have the correct router parameters after it is ready
  • 404-page-router with basePath of true and i18n of true and middleware false > for /not/a/real/page > should have the correct router parameters after it is ready
  • 404-page-router with basePath of true and i18n of true and middleware false > for /not/a/real/page?with=query > should have the correct router parameters after it is ready
Expand output

● 404-page-router with basePath of false and i18n of true and middleware false › for /not/a/real/page?with=query › should have the correct router parameters after it is ready

TIMED OUT: yes

null

  559 |
  560 |   if (hardError) {
> 561 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  562 |   }
  563 |   return false
  564 | }

  at check (lib/next-test-utils.js:561:11)
  at Object.<anonymous> (e2e/404-page-router/index.test.ts:108:11)

● 404-page-router with basePath of false and i18n of true and middleware false › for /not/a/real/page › should have the correct router parameters after it is ready

TIMED OUT: yes

null

  559 |
  560 |   if (hardError) {
> 561 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  562 |   }
  563 |   return false
  564 | }

  at check (lib/next-test-utils.js:561:11)
  at Object.<anonymous> (e2e/404-page-router/index.test.ts:108:11)

● 404-page-router with basePath of true and i18n of false and middleware false › for /not/a/real/page?with=query › should have the correct router parameters after it is ready

TIMED OUT: yes

null

  559 |
  560 |   if (hardError) {
> 561 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  562 |   }
  563 |   return false
  564 | }

  at check (lib/next-test-utils.js:561:11)
  at Object.<anonymous> (e2e/404-page-router/index.test.ts:108:11)

● 404-page-router with basePath of true and i18n of false and middleware false › for /not/a/real/page › should have the correct router parameters after it is ready

TIMED OUT: yes

null

  559 |
  560 |   if (hardError) {
> 561 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  562 |   }
  563 |   return false
  564 | }

  at check (lib/next-test-utils.js:561:11)
  at Object.<anonymous> (e2e/404-page-router/index.test.ts:108:11)

● 404-page-router with basePath of true and i18n of true and middleware false › for /not/a/real/page?with=query › should have the correct router parameters after it is ready

TIMED OUT: yes

null

  559 |
  560 |   if (hardError) {
> 561 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  562 |   }
  563 |   return false
  564 | }

  at check (lib/next-test-utils.js:561:11)
  at Object.<anonymous> (e2e/404-page-router/index.test.ts:108:11)

● 404-page-router with basePath of true and i18n of true and middleware false › for /not/a/real/page › should have the correct router parameters after it is ready

TIMED OUT: yes

null

  559 |
  560 |   if (hardError) {
> 561 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  562 |   }
  563 |   return false
  564 | }

  at check (lib/next-test-utils.js:561:11)
  at Object.<anonymous> (e2e/404-page-router/index.test.ts:108:11)

● 404-page-router with basePath of false and i18n of false and middleware false › for /not/a/real/page?with=query › should have the correct router parameters after it is ready

TIMED OUT: yes

null

  559 |
  560 |   if (hardError) {
> 561 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  562 |   }
  563 |   return false
  564 | }

  at check (lib/next-test-utils.js:561:11)
  at Object.<anonymous> (e2e/404-page-router/index.test.ts:108:11)

● 404-page-router with basePath of false and i18n of false and middleware false › for /not/a/real/page › should have the correct router parameters after it is ready

TIMED OUT: yes

null

  559 |
  560 |   if (hardError) {
> 561 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  562 |   }
  563 |   return false
  564 | }

  at check (lib/next-test-utils.js:561:11)
  at Object.<anonymous> (e2e/404-page-router/index.test.ts:108:11)

test/integration/broken-webpack-plugin/test/index.test.js

  • Handles a broken webpack plugin (precompile) > should render error correctly
Expand output

● Handles a broken webpack plugin (precompile) › should render error correctly

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

Expected substring: "Internal Server Error"
Received string:    "Execution of get_from_source failed·
Caused by:
    0: Execution of resolve_source_request failed
    1: Execution of CombinedContentSource::get failed
    2: Execution of create_app_source failed
    3: Execution of load_next_config failed
    4: Execution of evaluate failed
    5: Execution of get_evaluate_pool failed
    6: Execution of turbo_tasks::completion::CompletionsVc::all failed
    7: Execution of turbopack_core::asset::AssetContentVc::write failed
    8: Execution of turbopack_ecmascript::chunk::EcmascriptChunkContentVc::content failed
    9: Execution of turbopack_ecmascript::chunk::EcmascriptChunkContentVc::code failed
   10: Execution of content_from_relative_path failed
   11: failed to canonicalize embedded file path
   12: No such file or directory (os error 2)"

  34 |   it('should render error correctly', async () => {
  35 |     const text = await renderViaHTTP(appPort, '/')
> 36 |     expect(text).toContain('Internal Server Error')
     |                  ^
  37 |
  38 |     expect(stderr).toMatch('Error: oops')
  39 |   })

  at Object.<anonymous> (integration/broken-webpack-plugin/test/index.test.js:36:18)

test/development/acceptance-app/editor-links.test.ts

  • ReactRefreshLogBox turbo > empty _app shows logbox
  • ReactRefreshLogBox turbo > empty _document shows logbox
  • ReactRefreshLogBox turbo > _app syntax error shows logbox
  • ReactRefreshLogBox turbo > _document syntax error shows logbox
Expand output

● ReactRefreshLogBox turbo › empty _app shows logbox

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

Expected: true
Received: false

  28 |         ])
  29 |       )
> 30 |       expect(await session.hasRedbox(true)).toBe(true)
     |                                             ^
  31 |       expect(await session.getRedboxDescription()).toMatchInlineSnapshot(
  32 |         `"Error: The default export is not a React Component in page: \\"/_app\\""`
  33 |       )

  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox-app-doc.test.ts:30:45)

● ReactRefreshLogBox turbo › empty _document shows logbox

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

Expected: true
Received: false

  58 |         ])
  59 |       )
> 60 |       expect(await session.hasRedbox(true)).toBe(true)
     |                                             ^
  61 |       expect(await session.getRedboxDescription()).toMatchInlineSnapshot(
  62 |         `"Error: The default export is not a React Component in page: \\"/_document\\""`
  63 |       )

  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox-app-doc.test.ts:60:45)

● ReactRefreshLogBox turbo › _app syntax error shows logbox

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

Expected: true
Received: false

  109 |         ])
  110 |       )
> 111 |       expect(await session.hasRedbox(true)).toBe(true)
      |                                             ^
  112 |       expect(await session.getRedboxSource()).toMatchSnapshot()
  113 |
  114 |       await session.patch(

  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox-app-doc.test.ts:111:45)

● ReactRefreshLogBox turbo › _document syntax error shows logbox

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

Expected: true
Received: false

  158 |         ])
  159 |       )
> 160 |       expect(await session.hasRedbox(true)).toBe(true)
      |                                             ^
  161 |       expect(await session.getRedboxSource()).toMatchSnapshot()
  162 |
  163 |       await session.patch(

  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox-app-doc.test.ts:160:45)

test/e2e/app-dir/app-rendering/rendering.test.ts

  • app dir rendering > should serve app/page.server.js at /
  • app dir rendering > ISR > should revalidate the page when revalidate is configured
  • app dir rendering > SSR only > should run data in layout and page
  • app dir rendering > SSR only > should run data fetch in parallel
  • app dir rendering > static only > should run data in layout and page
  • app dir rendering > static only > should run data in parallel during development
Expand output

● app dir rendering › should serve app/page.server.js at /

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

Expected substring: "app/page.server.js"
Received string:    "Execution of get_from_source failed·
Caused by:
    0: Execution of resolve_source_request failed
    1: Execution of CombinedContentSource::get failed
    2: Execution of create_app_source failed
    3: Execution of load_next_config failed
    4: Execution of evaluate failed
    5: Execution of get_evaluate_pool failed
    6: Execution of turbo_tasks::completion::CompletionsVc::all failed
    7: Execution of turbopack_core::asset::AssetContentVc::write failed
    8: Execution of turbopack_ecmascript::chunk::EcmascriptChunkContentVc::content failed
    9: Execution of turbopack_ecmascript::chunk::EcmascriptChunkContentVc::code failed
   10: Execution of content_from_relative_path failed
   11: failed to canonicalize embedded file path
   12: No such file or directory (os error 2)"

  12 |     it('should serve app/page.server.js at /', async () => {
  13 |       const html = await next.render('/')
> 14 |       expect(html).toContain('app/page.server.js')
     |                    ^
  15 |     })
  16 |
  17 |     describe('SSR only', () => {

  at Object.<anonymous> (e2e/app-dir/app-rendering/rendering.test.ts:14:20)

● app dir rendering › SSR only › should run data in layout and page

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

Expected: "hello from layout"
Received: ""

  18 |       it('should run data in layout and page', async () => {
  19 |         const $ = await next.render$('/ssr-only/nested')
> 20 |         expect($('#layout-message').text()).toBe('hello from layout')
     |                                             ^
  21 |         expect($('#page-message').text()).toBe('hello from page')
  22 |       })
  23 |

  at Object.<anonymous> (e2e/app-dir/app-rendering/rendering.test.ts:20:45)

● app dir rendering › SSR only › should run data fetch in parallel

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

Expected: "hello from slow layout"
Received: ""

  30 |         // Using 7 seconds to ensure external factors causing slight slowness don't fail the tests
  31 |         expect(duration < 7000).toBe(true)
> 32 |         expect($('#slow-layout-message').text()).toBe('hello from slow layout')
     |                                                  ^
  33 |         expect($('#slow-page-message').text()).toBe('hello from slow page')
  34 |       })
  35 |     })

  at Object.<anonymous> (e2e/app-dir/app-rendering/rendering.test.ts:32:50)

● app dir rendering › static only › should run data in layout and page

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

Expected: "hello from layout"
Received: ""

  38 |       it('should run data in layout and page', async () => {
  39 |         const $ = await next.render$('/static-only/nested')
> 40 |         expect($('#layout-message').text()).toBe('hello from layout')
     |                                             ^
  41 |         expect($('#page-message').text()).toBe('hello from page')
  42 |       })
  43 |

  at Object.<anonymous> (e2e/app-dir/app-rendering/rendering.test.ts:40:45)

● app dir rendering › static only › should run data in parallel during development

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

Expected: "hello from slow layout"
Received: ""

  54 |         // expect(duration < (isDev ? 7000 : 2000)).toBe(true)
  55 |         // expect(duration < 7000).toBe(true)
> 56 |         expect($('#slow-layout-message').text()).toBe('hello from slow layout')
     |                                                  ^
  57 |         expect($('#slow-page-message').text()).toBe('hello from slow page')
  58 |       })
  59 |     })

  at Object.<anonymous> (e2e/app-dir/app-rendering/rendering.test.ts:56:50)

● app dir rendering › ISR › should revalidate the page when revalidate is configured

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

Expected: "hello from layout"
Received: ""

  71 |         }
  72 |         const { $ } = await getPage()
> 73 |         expect($('#layout-message').text()).toBe('hello from layout')
     |                                             ^
  74 |         expect($('#page-message').text()).toBe('hello from page')
  75 |
  76 |         const layoutNow = $('#layout-now').text()

  at Object.<anonymous> (e2e/app-dir/app-rendering/rendering.test.ts:73:45)

test/integration/404-page-custom-error/test/index.test.js

  • Default 404 Page with custom _error > dev mode > should respond to 404 correctly
  • Default 404 Page with custom _error > dev mode > should render error correctly
  • Default 404 Page with custom _error > dev mode > should render index page normal
Expand output

● Default 404 Page with custom _error › dev mode › should respond to 404 correctly

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

Expected: 404
Received: 500

  24 |   it('should respond to 404 correctly', async () => {
  25 |     const res = await fetchViaHTTP(appPort, '/404')
> 26 |     expect(res.status).toBe(404)
     |                        ^
  27 |     expect(await res.text()).toContain('This page could not be found')
  28 |   })
  29 |

  at Object.<anonymous> (integration/404-page-custom-error/test/index.test.js:26:24)

● Default 404 Page with custom _error › dev mode › should render error correctly

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

Expected substring: "oops"
Received string:    "Execution of get_from_source failed·
Caused by:
    0: Execution of resolve_source_request failed
    1: Execution of CombinedContentSource::get failed
    2: Execution of create_app_source failed
    3: Execution of load_next_config failed
    4: Execution of evaluate failed
    5: Execution of get_evaluate_pool failed
    6: Execution of turbo_tasks::completion::CompletionsVc::all failed
    7: Execution of turbopack_core::asset::AssetContentVc::write failed
    8: Execution of turbopack_ecmascript::chunk::EcmascriptChunkContentVc::content failed
    9: Execution of turbopack_ecmascript::chunk::EcmascriptChunkContentVc::code failed
   10: Execution of content_from_relative_path failed
   11: failed to canonicalize embedded file path
   12: No such file or directory (os error 2)"

  30 |   it('should render error correctly', async () => {
  31 |     const text = await renderViaHTTP(appPort, '/err')
> 32 |     expect(text).toContain(isDev ? 'oops' : 'Internal Server Error')
     |                  ^
  33 |   })
  34 |
  35 |   it('should render index page normal', async () => {

  at Object.<anonymous> (integration/404-page-custom-error/test/index.test.js:32:18)

● Default 404 Page with custom _error › dev mode › should render index page normal

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

Expected substring: "hello from index"
Received string:    "Execution of get_from_source failed·
Caused by:
    0: Execution of resolve_source_request failed
    1: Execution of CombinedContentSource::get failed
    2: Execution of create_app_source failed
    3: Execution of load_next_config failed
    4: Execution of evaluate failed
    5: Execution of get_evaluate_pool failed
    6: Execution of turbo_tasks::completion::CompletionsVc::all failed
    7: Execution of turbopack_core::asset::AssetContentVc::write failed
    8: Execution of turbopack_ecmascript::chunk::EcmascriptChunkContentVc::content failed
    9: Execution of turbopack_ecmascript::chunk::EcmascriptChunkContentVc::code failed
   10: Execution of content_from_relative_path failed
   11: failed to canonicalize embedded file path
   12: No such file or directory (os error 2)"

  35 |   it('should render index page normal', async () => {
  36 |     const html = await renderViaHTTP(appPort, '/')
> 37 |     expect(html).toContain('hello from index')
     |                  ^
  38 |   })
  39 |
  40 |   if (!isDev) {

  at Object.<anonymous> (integration/404-page-custom-error/test/index.test.js:37:18)

test/development/acceptance-app/component-stack.test.ts

  • Component Stack in error overlay > should show a component stack on hydration error
Expand output

● Component Stack in error overlay › should show a component stack on hydration error

page.waitForSelector: Timeout 30000ms exceeded.
=========================== logs ===========================
waiting for locator('[data-nextjs-toast]')
============================================================

  329 |     return this.chain(() => {
  330 |       return page
> 331 |         .waitForSelector(selector, { timeout, state: 'attached' })
      |          ^
  332 |         .then(async (el) => {
  333 |           // it seems selenium waits longer and tests rely on this behavior
  334 |           // so we wait for the load event fire before returning

  at lib/browsers/playwright.ts:331:10

test/e2e/404-page-router/index.test.ts

  • 404-page-router with basePath of false and i18n of false and middleware false > for /not/a/real/page > should have the correct router parameters after it is ready
  • 404-page-router with basePath of false and i18n of false and middleware false > for /not/a/real/page?with=query > should have the correct router parameters after it is ready
  • 404-page-router with basePath of false and i18n of true and middleware false > for /not/a/real/page > should have the correct router parameters after it is ready
  • 404-page-router with basePath of false and i18n of true and middleware false > for /not/a/real/page?with=query > should have the correct router parameters after it is ready
  • 404-page-router with basePath of true and i18n of false and middleware false > for /not/a/real/page > should have the correct router parameters after it is ready
  • 404-page-router with basePath of true and i18n of false and middleware false > for /not/a/real/page?with=query > should have the correct router parameters after it is ready
  • 404-page-router with basePath of true and i18n of true and middleware false > for /not/a/real/page > should have the correct router parameters after it is ready
  • 404-page-router with basePath of true and i18n of true and middleware false > for /not/a/real/page?with=query > should have the correct router parameters after it is ready
Expand output

● 404-page-router with basePath of false and i18n of true and middleware false › for /not/a/real/page?with=query › should have the correct router parameters after it is ready

TIMED OUT: yes

null

  559 |
  560 |   if (hardError) {
> 561 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  562 |   }
  563 |   return false
  564 | }

  at check (lib/next-test-utils.js:561:11)
  at Object.<anonymous> (e2e/404-page-router/index.test.ts:108:11)

● 404-page-router with basePath of false and i18n of true and middleware false › for /not/a/real/page › should have the correct router parameters after it is ready

TIMED OUT: yes

null

  559 |
  560 |   if (hardError) {
> 561 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  562 |   }
  563 |   return false
  564 | }

  at check (lib/next-test-utils.js:561:11)
  at Object.<anonymous> (e2e/404-page-router/index.test.ts:108:11)

● 404-page-router with basePath of true and i18n of false and middleware false › for /not/a/real/page?with=query › should have the correct router parameters after it is ready

TIMED OUT: yes

null

  559 |
  560 |   if (hardError) {
> 561 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  562 |   }
  563 |   return false
  564 | }

  at check (lib/next-test-utils.js:561:11)
  at Object.<anonymous> (e2e/404-page-router/index.test.ts:108:11)

● 404-page-router with basePath of true and i18n of false and middleware false › for /not/a/real/page › should have the correct router parameters after it is ready

TIMED OUT: yes

null

  559 |
  560 |   if (hardError) {
> 561 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  562 |   }
  563 |   return false
  564 | }

  at check (lib/next-test-utils.js:561:11)
  at Object.<anonymous> (e2e/404-page-router/index.test.ts:108:11)

● 404-page-router with basePath of true and i18n of true and middleware false › for /not/a/real/page?with=query › should have the correct router parameters after it is ready

TIMED OUT: yes

null

  559 |
  560 |   if (hardError) {
> 561 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  562 |   }
  563 |   return false
  564 | }

  at check (lib/next-test-utils.js:561:11)
  at Object.<anonymous> (e2e/404-page-router/index.test.ts:108:11)

● 404-page-router with basePath of true and i18n of true and middleware false › for /not/a/real/page › should have the correct router parameters after it is ready

TIMED OUT: yes

null

  559 |
  560 |   if (hardError) {
> 561 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  562 |   }
  563 |   return false
  564 | }

  at check (lib/next-test-utils.js:561:11)
  at Object.<anonymous> (e2e/404-page-router/index.test.ts:108:11)

● 404-page-router with basePath of false and i18n of false and middleware false › for /not/a/real/page?with=query › should have the correct router parameters after it is ready

TIMED OUT: yes

null

  559 |
  560 |   if (hardError) {
> 561 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  562 |   }
  563 |   return false
  564 | }

  at check (lib/next-test-utils.js:561:11)
  at Object.<anonymous> (e2e/404-page-router/index.test.ts:108:11)

● 404-page-router with basePath of false and i18n of false and middleware false › for /not/a/real/page › should have the correct router parameters after it is ready

TIMED OUT: yes

null

  559 |
  560 |   if (hardError) {
> 561 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content)
      |           ^
  562 |   }
  563 |   return false
  564 | }

  at check (lib/next-test-utils.js:561:11)
  at Object.<anonymous> (e2e/404-page-router/index.test.ts:108:11)

test/integration/broken-webpack-plugin/test/index.test.js

  • Handles a broken webpack plugin (precompile) > should render error correctly
Expand output

● Handles a broken webpack plugin (precompile) › should render error correctly

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

Expected substring: "Internal Server Error"
Received string:    "Execution of get_from_source failed·
Caused by:
    0: Execution of resolve_source_request failed
    1: Execution of CombinedContentSource::get failed
    2: Execution of create_app_source failed
    3: Execution of load_next_config failed
    4: Execution of evaluate failed
    5: Execution of get_evaluate_pool failed
    6: Execution of turbo_tasks::completion::CompletionsVc::all failed
    7: Execution of turbopack_core::asset::AssetContentVc::write failed
    8: Execution of turbopack_ecmascript::chunk::EcmascriptChunkContentVc::content failed
    9: Execution of turbopack_ecmascript::chunk::EcmascriptChunkContentVc::code failed
   10: Execution of content_from_relative_path failed
   11: failed to canonicalize embedded file path
   12: No such file or directory (os error 2)"

  34 |   it('should render error correctly', async () => {
  35 |     const text = await renderViaHTTP(appPort, '/')
> 36 |     expect(text).toContain('Internal Server Error')
     |                  ^
  37 |
  38 |     expect(stderr).toMatch('Error: oops')
  39 |   })

  at Object.<anonymous> (integration/broken-webpack-plugin/test/index.test.js:36:18)

test/development/acceptance-app/editor-links.test.ts

  • ReactRefreshLogBox turbo > empty _app shows logbox
  • ReactRefreshLogBox turbo > empty _document shows logbox
  • ReactRefreshLogBox turbo > _app syntax error shows logbox
  • ReactRefreshLogBox turbo > _document syntax error shows logbox
Expand output

● ReactRefreshLogBox turbo › empty _app shows logbox

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

Expected: true
Received: false

  28 |         ])
  29 |       )
> 30 |       expect(await session.hasRedbox(true)).toBe(true)
     |                                             ^
  31 |       expect(await session.getRedboxDescription()).toMatchInlineSnapshot(
  32 |         `"Error: The default export is not a React Component in page: \\"/_app\\""`
  33 |       )

  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox-app-doc.test.ts:30:45)

● ReactRefreshLogBox turbo › empty _document shows logbox

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

Expected: true
Received: false

  58 |         ])
  59 |       )
> 60 |       expect(await session.hasRedbox(true)).toBe(true)
     |                                             ^
  61 |       expect(await session.getRedboxDescription()).toMatchInlineSnapshot(
  62 |         `"Error: The default export is not a React Component in page: \\"/_document\\""`
  63 |       )

  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox-app-doc.test.ts:60:45)

● ReactRefreshLogBox turbo › _app syntax error shows logbox

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

Expected: true
Received: false

  109 |         ])
  110 |       )
> 111 |       expect(await session.hasRedbox(true)).toBe(true)
      |                                             ^
  112 |       expect(await session.getRedboxSource()).toMatchSnapshot()
  113 |
  114 |       await session.patch(

  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox-app-doc.test.ts:111:45)

● ReactRefreshLogBox turbo › _document syntax error shows logbox

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

Expected: true
Received: false

  158 |         ])
  159 |       )
> 160 |       expect(await session.hasRedbox(true)).toBe(true)
      |                                             ^
  161 |       expect(await session.getRedboxSource()).toMatchSnapshot()
  162 |
  163 |       await session.patch(

  at Object.<anonymous> (development/acceptance/ReactRefreshLogBox-app-doc.test.ts:160:45)

test/e2e/app-dir/app-rendering/rendering.test.ts

  • app dir rendering > should serve app/page.server.js at /
  • app dir rendering > ISR > should revalidate the page when revalidate is configured
  • app dir rendering > SSR only > should run data in layout and page
  • app dir rendering > SSR only > should run data fetch in parallel
  • app dir rendering > static only > should run data in layout and page
  • app dir rendering > static only > should run data in parallel during development
Expand output

● app dir rendering › should serve app/page.server.js at /

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

Expected substring: "app/page.server.js"
Received string:    "Execution of get_from_source failed·
Caused by:
    0: Execution of resolve_source_request failed
    1: Execution of CombinedContentSource::get failed
    2: Execution of create_app_source failed
    3: Execution of load_next_config failed
    4: Execution of evaluate failed
    5: Execution of get_evaluate_pool failed
    6: Execution of turbo_tasks::completion::CompletionsVc::all failed
    7: Execution of turbopack_core::asset::AssetContentVc::write failed
    8: Execution of turbopack_ecmascript::chunk::EcmascriptChunkContentVc::content failed
    9: Execution of turbopack_ecmascript::chunk::EcmascriptChunkContentVc::code failed
   10: Execution of content_from_relative_path failed
   11: failed to canonicalize embedded file path
   12: No such file or directory (os error 2)"

  12 |     it('should serve app/page.server.js at /', async () => {
  13 |       const html = await next.render('/')
> 14 |       expect(html).toContain('app/page.server.js')
     |                    ^
  15 |     })
  16 |
  17 |     describe('SSR only', () => {

  at Object.<anonymous> (e2e/app-dir/app-rendering/rendering.test.ts:14:20)

● app dir rendering › SSR only › should run data in layout and page

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

Expected: "hello from layout"
Received: ""

  18 |       it('should run data in layout and page', async () => {
  19 |         const $ = await next.render$('/ssr-only/nested')
> 20 |         expect($('#layout-message').text()).toBe('hello from layout')
     |                                             ^
  21 |         expect($('#page-message').text()).toBe('hello from page')
  22 |       })
  23 |

  at Object.<anonymous> (e2e/app-dir/app-rendering/rendering.test.ts:20:45)

● app dir rendering › SSR only › should run data fetch in parallel

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

Expected: "hello from slow layout"
Received: ""

  30 |         // Using 7 seconds to ensure external factors causing slight slowness don't fail the tests
  31 |         expect(duration < 7000).toBe(true)
> 32 |         expect($('#slow-layout-message').text()).toBe('hello from slow layout')
     |                                                  ^
  33 |         expect($('#slow-page-message').text()).toBe('hello from slow page')
  34 |       })
  35 |     })

  at Object.<anonymous> (e2e/app-dir/app-rendering/rendering.test.ts:32:50)

● app dir rendering › static only › should run data in layout and page

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

Expected: "hello from layout"
Received: ""

  38 |       it('should run data in layout and page', async () => {
  39 |         const $ = await next.render$('/static-only/nested')
> 40 |         expect($('#layout-message').text()).toBe('hello from layout')
     |                                             ^
  41 |         expect($('#page-message').text()).toBe('hello from page')
  42 |       })
  43 |

  at Object.<anonymous> (e2e/app-dir/app-rendering/rendering.test.ts:40:45)

● app dir rendering › static only › should run data in parallel during development

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

Expected: "hello from slow layout"
Received: ""

  54 |         // expect(duration < (isDev ? 7000 : 2000)).toBe(true)
  55 |         // expect(duration < 7000).toBe(true)
> 56 |         expect($('#slow-layout-message').text()).toBe('hello from slow layout')
     |                                                  ^
  57 |         expect($('#slow-page-message').text()).toBe('hello from slow page')
  58 |       })
  59 |     })

  at Object.<anonymous> (e2e/app-dir/app-rendering/rendering.test.ts:56:50)

● app dir rendering › ISR › should revalidate the page when revalidate is configured

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

Expected: "hello from layout"
Received: ""

  71 |         }
  72 |         const { $ } = await getPage()
> 73 |         expect($('#layout-message').text()).toBe('hello from layout')
     |                                             ^
  74 |         expect($('#page-message').text()).toBe('hello from page')
  75 |
  76 |         const layoutNow = $('#layout-now').text()

  at Object.<anonymous> (e2e/app-dir/app-rendering/rendering.test.ts:73:45)

test/integration/404-page-custom-error/test/index.test.js

  • Default 404 Page with custom _error > dev mode > should respond to 404 correctly
  • Default 404 Page with custom _error > dev mode > should render error correctly
  • Default 404 Page with custom _error > dev mode > should render index page normal
Expand output

● Default 404 Page with custom _error › dev mode › should respond to 404 correctly

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

Expected: 404
Received: 500

  24 |   it('should respond to 404 correctly', async () => {
  25 |     const res = await fetchViaHTTP(appPort, '/404')
> 26 |     expect(res.status).toBe(404)
     |                        ^
  27 |     expect(await res.text()).toContain('This page could not be found')
  28 |   })
  29 |

  at Object.<anonymous> (integration/404-page-custom-error/test/index.test.js:26:24)

● Default 404 Page with custom _error › dev mode › should render error correctly

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

Expected substring: "oops"
Received string:    "Execution of get_from_source failed·
Caused by:
    0: Execution of resolve_source_request failed
    1: Execution of CombinedContentSource::get failed
    2: Execution of create_app_source failed
    3: Execution of load_next_config failed
    4: Execution of evaluate failed
    5: Execution of get_evaluate_pool failed
    6: Execution of turbo_tasks::completion::CompletionsVc::all failed
    7: Execution of turbopack_core::asset::AssetContentVc::write failed
    8: Execution of turbopack_ecmascript::chunk::EcmascriptChunkContentVc::content failed
    9: Execution of turbopack_ecmascript::chunk::EcmascriptChunkContentVc::code failed
   10: Execution of content_from_relative_path failed
   11: failed to canonicalize embedded file path
   12: No such file or directory (os error 2)"

  30 |   it('should render error correctly', async () => {
  31 |     const text = await renderViaHTTP(appPort, '/err')
> 32 |     expect(text).toContain(isDev ? 'oops' : 'Internal Server Error')
     |                  ^
  33 |   })
  34 |
  35 |   it('should render index page normal', async () => {

  at Object.<anonymous> (integration/404-page-custom-error/test/index.test.js:32:18)

● Default 404 Page with custom _error › dev mode › should render index page normal

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

Expected substring: "hello from index"
Received string:    "Execution of get_from_source failed·
Caused by:
    0: Execution of resolve_source_request failed
    1: Execution of CombinedContentSource::get failed
    2: Execution of create_app_source failed
    3: Execution of load_next_config failed
    4: Execution of evaluate failed
    5: Execution of get_evaluate_pool failed
    6: Execution of turbo_tasks::completion::CompletionsVc::all failed
    7: Execution of turbopack_core::asset::AssetContentVc::write failed
    8: Execution of turbopack_ecmascript::chunk::EcmascriptChunkContentVc::content failed
    9: Execution of turbopack_ecmascript::chunk::EcmascriptChunkContentVc::code failed
   10: Execution of content_from_relative_path failed
   11: failed to canonicalize embedded file path
   12: No such file or directory (os error 2)"

  35 |   it('should render index page normal', async () => {
  36 |     const html = await renderViaHTTP(appPort, '/')
> 37 |     expect(html).toContain('hello from index')
     |                  ^
  38 |   })
  39 |
  40 |   if (!isDev) {

  at Object.<anonymous> (integration/404-page-custom-error/test/index.test.js:37:18)

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2023

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust tests (mac/win, non-blocking)

See workflow summary for details

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2023

Benchmark for 4e3a603

Click to view benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 10.03ms ± 0.07ms 10.07ms ± 0.09ms +0.40%
bench_hmr_to_commit/Turbopack RCC/1000 modules 10.22ms ± 0.09ms 10.32ms ± 0.06ms +0.98%
bench_hmr_to_commit/Turbopack RSC/1000 modules 506.13ms ± 3.07ms 508.86ms ± 3.39ms +0.54%
bench_hmr_to_commit/Turbopack SSR/1000 modules 10.24ms ± 0.08ms 10.27ms ± 0.09ms +0.22%
bench_hmr_to_eval/Turbopack CSR/1000 modules 9158.37µs ± 89.64µs 9053.83µs ± 94.82µs -1.14%
bench_hmr_to_eval/Turbopack RCC/1000 modules 9290.49µs ± 82.69µs 9234.36µs ± 80.83µs -0.60%
bench_hmr_to_eval/Turbopack SSR/1000 modules 9197.11µs ± 75.97µs 9137.31µs ± 71.49µs -0.65%
bench_hydration/Turbopack RCC/1000 modules 4373.79ms ± 8.28ms 4357.01ms ± 8.59ms -0.38%
bench_hydration/Turbopack RSC/1000 modules 3947.15ms ± 17.66ms 3957.96ms ± 26.59ms +0.27%
bench_hydration/Turbopack SSR/1000 modules 3793.04ms ± 30.13ms 3811.98ms ± 22.10ms +0.50%
bench_startup/Turbopack CSR/1000 modules 2850.96ms ± 9.66ms 2817.97ms ± 12.73ms -1.16%
bench_startup/Turbopack RCC/1000 modules 2652.50ms ± 5.16ms 2652.19ms ± 7.57ms -0.01%
bench_startup/Turbopack RSC/1000 modules 2527.57ms ± 7.47ms 2542.70ms ± 10.46ms +0.60%
bench_startup/Turbopack SSR/1000 modules 2168.44ms ± 2.61ms 2170.41ms ± 1.35ms +0.09%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant