There are issues where ffmpeg isn't killed in CI see https://phabricator.wikimedia.org/T324766#10778643
One thing to make our code safer is to catch taking a screenshot fails and then always try to kill ffmpeg.
There are issues where ffmpeg isn't killed in CI see https://phabricator.wikimedia.org/T324766#10778643
One thing to make our code safer is to catch taking a screenshot fails and then always try to kill ffmpeg.
Change #1139980 had a related patch set uploaded (by Phedenskog; author: Phedenskog):
[mediawiki/core@master] Always try to kill ffmpeg.
Change #1139943 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):
[mediawiki/core@master] selenium: set explicit timeout when spawning ffmpeg
I had also made the patch above (set a timeout) for T392963. I think it would be nice to have both safeguards in place.
Change #1139980 merged by jenkins-bot:
[mediawiki/core@master] selenium: Always try to stop FFMPEG.
I'll do a follow up later where we can make sure that the process really exists and if not we try to kill it harder.
Change #1140761 had a related patch set uploaded (by Phedenskog; author: Phedenskog):
[mediawiki/core@master] selenium: log the actual ffmpeg error.
Change #1140761 merged by jenkins-bot:
[mediawiki/core@master] selenium: log the actual ffmpeg error.
Change #1141565 had a related patch set uploaded (by Phedenskog; author: Phedenskog):
[mediawiki/core@master] selenium: Verify that ffmpeg is stopped, else hard kill it.
Change #1141565 abandoned by Phedenskog:
[mediawiki/core@master] selenium: Verify that ffmpeg is stopped, else hard kill it.
Reason:
This is a nicer solution: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1139943
Change #1141565 restored by Phedenskog:
[mediawiki/core@master] selenium: Verify that ffmpeg is stopped, else hard kill it.
Change #1147006 had a related patch set uploaded (by Phedenskog; author: Phedenskog):
[mediawiki/core@master] selenium: Do not hide screenshots errors
Change #1147006 abandoned by Phedenskog:
[mediawiki/core@master] selenium: Do not hide screenshots errors
Reason:
This happens afterTest so failure here will not fail the test.