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

Add ability to upload videos only when test fails #343

Closed facusantillo closed 2 years ago

facusantillo commented 2 years ago

Currently, all videos are uploaded to S3 storage. If the suite contains 1k+ tests, you won't likely be interested in all the tests but the ones who fail.

This feature would enable us to be more efficient with our S3 storage overall.

I think that maybe we can achieve it by communicating the test status from the container to the video container to make the choice to upload it or not.

vania-pooh commented 2 years ago

@facusantillo This is not possible, because Moon is just an API to start browsers. Moon even does not know that you are running tests. Our recommended approach is running all tests without video recording and then rerun failed test cases with video recording enabled. Otherwise every parallel browser session with video recording consumes +1 CPU and +1 GB RAM and this is too expensive.