aerokube / moon

Browser automation solution for Kubernetes and Openshift supporting Selenium, Playwright, Puppeteer and Cypress
http://aerokube.com/moon/latest
Apache License 2.0
224 stars 19 forks source link

Slow down of tests - Debugging #422

Closed whrostre closed 5 months ago

whrostre commented 6 months ago

Hello,

since a few weeks we have a strange slow down of our Selenium tests on moon. Several test execution steps take much longer than before e.g. opening the browser, clicking on elements etc. The time increase ranges from a second to several seconds.

We have already ruled out a few things:

Do you have any suggestions to better debug such an issue? I would like to determine where the additional time is used. So basically during test x moon communication or the real execution in the test pod.

vania-pooh commented 6 months ago

@whrostre make sure you have all required firewall rules to static resources: styles, scripts, images and so on. Some pages could be loading such files from third-party resources and this could slow down things.

whrostre commented 6 months ago

@whrostre make sure you have all required firewall rules to static resources: styles, scripts, images and so on. Some pages could be loading such files from third-party resources and this could slow down things.

Thanks for the hint, but we already ruled out that the webpage we are testing is the issue. Since just opening the browser takes more time than before, without loading a webpage

vania-pooh commented 6 months ago

@whrostre in that case I would check browser pods with kubectl describe po chrome-XXXX -n moon. Investigate this output and check how much time it takes to schedule the pod, to pull browser images and so on. Moon basically just creates a pod and waits for it to switch to Running state.

whrostre commented 5 months ago

Thank you. We fixed the problem with adding resources.