Page MenuHomePhabricator

Make sure FFMPEG is killed if screenshot fails
Closed, ResolvedPublic

Description

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.

Event Timeline

Change #1139980 had a related patch set uploaded (by Phedenskog; author: Phedenskog):

[mediawiki/core@master] Always try to kill ffmpeg.

https://gerrit.wikimedia.org/r/1139980

Change #1139943 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/core@master] selenium: set explicit timeout when spawning ffmpeg

https://gerrit.wikimedia.org/r/1139943

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.

https://gerrit.wikimedia.org/r/1139980

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.

https://gerrit.wikimedia.org/r/1140761

Change #1140761 merged by jenkins-bot:

[mediawiki/core@master] selenium: log the actual ffmpeg error.

https://gerrit.wikimedia.org/r/1140761

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.

https://gerrit.wikimedia.org/r/1141565

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

https://gerrit.wikimedia.org/r/1141565

This is good enough what we have now.

Change #1141565 restored by Phedenskog:

[mediawiki/core@master] selenium: Verify that ffmpeg is stopped, else hard kill it.

https://gerrit.wikimedia.org/r/1141565

@Peter an un-merged patch (1139943) from @Daimona references this task. Should the task be reopened, or should the commit be referencing another open task?

Change #1147006 had a related patch set uploaded (by Phedenskog; author: Phedenskog):

[mediawiki/core@master] selenium: Do not hide screenshots errors

https://gerrit.wikimedia.org/r/1147006

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.

https://gerrit.wikimedia.org/r/1147006