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

Add failing test for server-side compilation error #24054

Conversation

timneutkens
Copy link
Member

@timneutkens timneutkens commented Apr 14, 2021

Related issue: #24056

Bug

  • Related issues linked using fixes #number
  • Integration tests added

Feature

  • Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
  • Related issues linked using fixes #number
  • Integration tests added
  • Documentation added
  • Telemetry added. In case of a feature if it's used or not.

Documentation / Examples

  • Make sure the linting passes

@ijjk
Copy link
Member

ijjk commented Apr 14, 2021

Stats from current PR

Default Server Mode (Decrease detected ✓)
General
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
buildDuration 15.1s 15.3s ⚠️ +211ms
nodeModulesSize 46.2 MB 46.2 MB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
/ failed reqs 0 0
/ total time (seconds) 2.699 2.675 -0.02
/ avg req/sec 926.2 934.49 +8.29
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.513 1.535 ⚠️ +0.02
/error-in-render avg req/sec 1652.65 1628.61 ⚠️ -24.04
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
597-3f457946..288d.js gzip 13.3 kB 13.3 kB
778-9c11a899..1178.js gzip 7.05 kB 7.05 kB
framework.HASH.js gzip 39.3 kB 39.3 kB
main-HASH.js gzip 151 B 151 B
webpack-HASH.js gzip 993 B 993 B
Overall change 60.8 kB 60.8 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
polyfills-HASH.js gzip 31.1 kB 31.1 kB
Overall change 31.1 kB 31.1 kB
Client Pages
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
_app-5cc66b2..6f03.js gzip 1.3 kB 1.3 kB
_error-55112..054d.js gzip 3.68 kB 3.68 kB
amp-89a5460c..567f.js gzip 558 B 558 B
hooks-8c2e74..be37.js gzip 924 B 924 B
index-fec729..83b2.js gzip 243 B 243 B
link-dd34d9b..0ade.js gzip 1.66 kB 1.66 kB
routerDirect..5759.js gzip 336 B 336 B
withRouter-1..98bf.js gzip 334 B 334 B
Overall change 9.03 kB 9.03 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
_buildManifest.js gzip 349 B 349 B
Overall change 349 B 349 B
Rendered Page Sizes
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
index.html gzip 609 B 609 B
link.html gzip 616 B 616 B
withRouter.html gzip 605 B 605 B
Overall change 1.83 kB 1.83 kB

Serverless Mode
General
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
buildDuration 18.9s 19.1s ⚠️ +184ms
nodeModulesSize 46.2 MB 46.2 MB
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
597-3f457946..288d.js gzip 13.3 kB 13.3 kB
778-9c11a899..1178.js gzip 7.05 kB 7.05 kB
framework.HASH.js gzip 39.3 kB 39.3 kB
main-HASH.js gzip 151 B 151 B
webpack-HASH.js gzip 993 B 993 B
Overall change 60.8 kB 60.8 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
polyfills-HASH.js gzip 31.1 kB 31.1 kB
Overall change 31.1 kB 31.1 kB
Client Pages
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
_app-5cc66b2..6f03.js gzip 1.3 kB 1.3 kB
_error-55112..054d.js gzip 3.68 kB 3.68 kB
amp-89a5460c..567f.js gzip 558 B 558 B
hooks-8c2e74..be37.js gzip 924 B 924 B
index-fec729..83b2.js gzip 243 B 243 B
link-dd34d9b..0ade.js gzip 1.66 kB 1.66 kB
routerDirect..5759.js gzip 336 B 336 B
withRouter-1..98bf.js gzip 334 B 334 B
Overall change 9.03 kB 9.03 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
_buildManifest.js gzip 349 B 349 B
Overall change 349 B 349 B
Serverless bundles
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
_error.js 1.39 MB 1.39 MB
404.html 2.76 kB 2.76 kB
500.html 2.75 kB 2.75 kB
amp.amp.html 10.7 kB 10.7 kB
amp.html 1.96 kB 1.96 kB
hooks.html 2.01 kB 2.01 kB
index.js 1.39 MB 1.39 MB
link.js 1.45 MB 1.45 MB
routerDirect.js 1.44 MB 1.44 MB
withRouter.js 1.44 MB 1.44 MB
Overall change 7.14 MB 7.14 MB

Webpack 5 Mode (Decrease detected ✓)
General
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
buildDuration 15s 14.8s -190ms
nodeModulesSize 46.2 MB 46.2 MB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
/ failed reqs 0 0
/ total time (seconds) 2.65 2.672 ⚠️ +0.02
/ avg req/sec 943.46 935.74 ⚠️ -7.72
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.54 1.544 0
/error-in-render avg req/sec 1623.63 1618.91 ⚠️ -4.72
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
597-3f457946..288d.js gzip 13.3 kB 13.3 kB
778-9c11a899..1178.js gzip 7.05 kB 7.05 kB
framework.HASH.js gzip 39.3 kB 39.3 kB
main-HASH.js gzip 151 B 151 B
webpack-HASH.js gzip 993 B 993 B
Overall change 60.8 kB 60.8 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
polyfills-HASH.js gzip 31.1 kB 31.1 kB
Overall change 31.1 kB 31.1 kB
Client Pages
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
_app-5cc66b2..6f03.js gzip 1.3 kB 1.3 kB
_error-55112..054d.js gzip 3.68 kB 3.68 kB
amp-89a5460c..567f.js gzip 558 B 558 B
hooks-8c2e74..be37.js gzip 924 B 924 B
index-fec729..83b2.js gzip 243 B 243 B
link-dd34d9b..0ade.js gzip 1.66 kB 1.66 kB
routerDirect..5759.js gzip 336 B 336 B
withRouter-1..98bf.js gzip 334 B 334 B
Overall change 9.03 kB 9.03 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
_buildManifest.js gzip 349 B 349 B
Overall change 349 B 349 B
Rendered Page Sizes
vercel/next.js canary timneutkens/next.js fix/failing-test-404-compilation-error Change
index.html gzip 609 B 609 B
link.html gzip 616 B 616 B
withRouter.html gzip 605 B 605 B
Overall change 1.83 kB 1.83 kB

Diffs

Diff for index.html
@@ -48,7 +48,7 @@
         "props": { "pageProps": {} },
         "page": "/",
         "query": {},
-        "buildId": "-gxcE0WlRNEJcmjFtwsrR",
+        "buildId": "m1ElCbCFsVGLcgKyss1Q7",
         "isFallback": false,
         "gip": true
       }
@@ -86,11 +86,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/-gxcE0WlRNEJcmjFtwsrR/_buildManifest.js"
+      src="/_next/static/m1ElCbCFsVGLcgKyss1Q7/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/-gxcE0WlRNEJcmjFtwsrR/_ssgManifest.js"
+      src="/_next/static/m1ElCbCFsVGLcgKyss1Q7/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for link.html
@@ -53,7 +53,7 @@
         "props": { "pageProps": {} },
         "page": "/link",
         "query": {},
-        "buildId": "-gxcE0WlRNEJcmjFtwsrR",
+        "buildId": "m1ElCbCFsVGLcgKyss1Q7",
         "isFallback": false,
         "gip": true
       }
@@ -91,11 +91,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/-gxcE0WlRNEJcmjFtwsrR/_buildManifest.js"
+      src="/_next/static/m1ElCbCFsVGLcgKyss1Q7/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/-gxcE0WlRNEJcmjFtwsrR/_ssgManifest.js"
+      src="/_next/static/m1ElCbCFsVGLcgKyss1Q7/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for withRouter.html
@@ -48,7 +48,7 @@
         "props": { "pageProps": {} },
         "page": "/withRouter",
         "query": {},
-        "buildId": "-gxcE0WlRNEJcmjFtwsrR",
+        "buildId": "m1ElCbCFsVGLcgKyss1Q7",
         "isFallback": false,
         "gip": true
       }
@@ -86,11 +86,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/-gxcE0WlRNEJcmjFtwsrR/_buildManifest.js"
+      src="/_next/static/m1ElCbCFsVGLcgKyss1Q7/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/-gxcE0WlRNEJcmjFtwsrR/_ssgManifest.js"
+      src="/_next/static/m1ElCbCFsVGLcgKyss1Q7/_ssgManifest.js"
       async=""
     ></script>
   </body>
Commit: 1931c46

@ijjk
Copy link
Member

ijjk commented Apr 14, 2021

Failing test suites

Commit: 1931c46

test/acceptance/ReactRefreshLogBox.dev.test.js

  • server-side only compilation errors

Expand output

● server-side only compilation errors

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

Expected: true
Received: false

  1283 |   )
  1284 |
> 1285 |   expect(await session.hasRedbox(true)).toBe(true)
       |                                         ^
  1286 |
  1287 |   await cleanup()
  1288 | })

  at Object.<anonymous> (acceptance/ReactRefreshLogBox.dev.test.js:1285:41)

@shuding
Copy link
Member

shuding commented Apr 22, 2021

Closing as fixed in #24331.

@shuding shuding closed this Apr 22, 2021
@vercel vercel locked as resolved and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants