Percy adds 5+ mins to CI run time #473
-
Hi, When running our Cypress tests in CI (Jenkins), they take around 12-14mins to run, if I also run Percy as part of these tests then that time consistently goes up to 19-21mins. I emailed support the question above who asked me to post here with the following information: As you can probably guess from those answers 😄 Our configuration is extremely simple, the percy.yml is simply:
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hey @mncharlton! This sounds interesting. Can you provide full debug or verbose logs (unedited)? The logs provide timings between each action so we'll be able to see what exactly is slow: https://docs.percy.io/docs/debugging-sdks#debug-vs-verbose-logging |
Beta Was this translation helpful? Give feedback.
-
Hi @Robdel12, thanks for getting back to me. For context, our Cypress CI runs on two machines, with each machine running two instances of Cypress so we end up with 4 sets of logs that I've attached below. Nothing jumps out to me as taking a huge amount of time, but I might be missing something, one thing I've noticed, that I don't know if they're relevant or not is that as we have two instances running on each machine when Percy tries to start on the second instance it fails (see verbose0.2 for an example), this may be a separate problem, but is it possible to run Percy twice on one machine like this? (or have two instances of Cypress share one instance of Percy). For an idea of the difference in time, this is how long this run took: And this is a "normal" run (where the only difference is that we don't use Percy): Verbose Logs (The only snapshot in this run is in verbose0.1, corresponding Percy build: https://percy.io/37d22c48/percy-pr/builds/16231702/unchanged/914136074?browser=safari&viewLayout=overlay&viewMode=new&width=1526): Verbose0.1.txt Hopefully you can shed some light on this! 😄 |
Beta Was this translation helpful? Give feedback.
-
For the one instance failing to start, I had a re-read of https://docs.percy.io/docs/parallel-test-suites#introduction and I see there is a way to just start one Percy server on a machine and then share that amongst test runs. Is there a way to combine that with the |
Beta Was this translation helpful? Give feedback.
Hi @Robdel12, thanks for getting back to me. For context, our Cypress CI runs on two machines, with each machine running two instances of Cypress so we end up with 4 sets of logs that I've attached below.
Nothing jumps out to me as taking a huge amount of time, but I might be missing something, one thing I've noticed, that I don't know if they're relevant or not is that as we have two instances running on each machine when Percy tries to start on the second instance it fails (see verbose0.2 for an example), this may be a separate problem, but is it possible to run Percy twice on one machine like this? (or have two instances of Cypress share one instance of Percy).
For an idea of the diffe…