How to properly disassemble selenium/video to generate evidence in gitlab-ci? #2258
Unanswered
alexandremariano4
asked this question in
Q&A
Replies: 1 comment 6 replies
-
May I know video image tag is used in this setup? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following test scenario:
I have a gitlab that is using runner that I have configured on my machine, so the configuration is something simple, it is being done as follows:
And my gitlab-ci.yml file, which is basically my pipelnie, looks like this
Using this way, I'm getting the audio file to be correctly sent to my project folder so that I can use it as evidence and later visualization in case of errors.
However, the file is coming in at 256KB, which basically means that there is no content in this video file. From what I've investigated, I've come to the conclusion that the video container that runs inside Runner wasn't having a "soft drop", I don't know what expression to use for that.
But basically, while on my machine I could use a docker compose file to do "docker compose up -d" and then "docker compose down" which gives the container time to shut down and compile the video correctly, when this scenario goes to gitlab's Runner this no longer happens, as it is shut down abruptly.
In the image below you can see the exact moment when the local container is closed and selenium/video has time to correctly create the .mp4 file
Now, on the other hand, when the selenium/video container that is running in the gitlab runner is shut down, it shuts down dramatically and consequently doesn't mount the video correctly.
Has anyone had this problem and managed to solve it in any way other than "docker:dind"?
Beta Was this translation helpful? Give feedback.
All reactions