experimentalJustInTimeCompile feedback #30024
Replies: 4 comments 4 replies
-
I am seeing great improvements to performance, for a codebase with 132 component test specs. I'd be excited to make this default. Initial CompileBefore
After
RecompilingBefore
After
|
Beta Was this translation helpful? Give feedback.
-
@AtofStryker @jennifer-shehane Quick question if Cypress team evaluated migrating from Webpack to Turbopack/ESBuild/SWC for bundling? Adopting Turbopack could potentially yield significant performance improvements, particularly in reducing startup times for both component and end-to-end tests. |
Beta Was this translation helpful? Give feedback.
-
I am running nx component tests for my angular components through an azure devops pipeline while connected to cypress cloud. Before setting this value we would randomly get the chunk load error. I don't know if this fixed it or not because I can't actually complete a run. Because webpack now builds everything before each spec it errors out after 30 minutes. I get a "disconnected" error which is fine as after 30 minutes it only ran 5 out of 60 specs. Without the setting it is 30 minutes to run all specs. I am searching for ways to make webpack cache in hoping that helps but have not found anything yet. Ideally I could just use the same tools for cypress that I use for my apps (vite) and then I could move on from this problem. Any suggestions how to run 1 spec in under 5 minutes with this setting would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
-
@AtofStryker we still see these webpack chunk loading errors, even with the experimental jit compile feature enabled for component testing in Cypress v13.15.1. E.g. this one from today: It happens quite regularly and makes our ci really flaky. We use the default runners from Github actions, so they are not the most perfomant out there. But we do split our tests using cypress-split. We use the normal webpack dev server provided by Cypress, configured for Next:
Looking at the settings, the jit feature should be enabled: Our code base is not so large in this specific project, we are talking about 236 component test files split across 8 runners. |
Beta Was this translation helpful? Give feedback.
-
The
experimentalJustInTimeCompile
option was released in Cypress 13.14.0. Full details on its implementation can be found here: https://docs.cypress.io/guides/references/experiments#Experimental-Just-In-Time-CompileWe would like to move forward with making this default, but want to hear everyone's feedback on how this impacts their Component Tests, especially in terms of performance.
Please leave feedback!
Beta Was this translation helpful? Give feedback.
All reactions