Is there a way to optimize Cypress launch time (terminal run for CI contexts)? #16675
-
Hi, ContextI'm in a pipeline context, doing cypress run (terminal execution). I notice that:
I'd like to optimize the CI step as much as possible, so that it takes as close to those 16s as possible. Job content
My thoughts:
I'd like a way to identify what takes time (where 90% of the step time goes) and/or any advise on how I can reduce that fat around tests execution time. I need to divide my tests into 2 CI steps, and I worry this will add extra load. Cypress seems slow to start and this gives a bad experience to our developpers in our CI context. Any feedback on how to mitigate or optimize that is very welcome. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can see more timings with DEBUG logs on. That message about verifying Cypress essentially means it will run You're likely seeing an increase in timing in 7.0 due to the screen size increase (this is what I've identified). You could try reducing the screen size to the default size prior to 7.0 (1280x720) to see if the increased time is related to the increase in screen size. Instructions here. I think the Generally I've seen people's runtimes increase with whatever file preprocessing they're doing which would run before cypress opens. Not sure if you have any of that setup in your plugins file. |
Beta Was this translation helpful? Give feedback.
You can see more timings with DEBUG logs on.
That message about verifying Cypress essentially means it will run
cypress verify
command to ensure everything is ok, dependency-wise, to run.You're likely seeing an increase in timing in 7.0 due to the screen size increase (this is what I've identified). You could try reducing the screen size to the default size prior to 7.0 (1280x720) to see if the increased time is related to the increase in screen size. Instructions here.
I think the
25l
and25h
are part of some malformed ANSI characters. It can be ignored.Generally I've seen people's runtimes increase with whatever file preprocessing they're doing which would run before cypress opens. No…