Page MenuHomePhabricator

Add video reporting for wdio specs in wikibase-release-pipeline
Closed, ResolvedPublic

Description

Debugging selenium inside docker is a pain, reporting with video could make it easier.

Recording videos is already a part of wdio-mediawiki 1.1.1 but the feature hasn't been enabled and is not used in Github Actions or the actual testing of the pipeline.

A/C:

  • Follow the guide to enable the feature in the pipeline.
  • Test artifacts should be available to download in Github Actions

Event Timeline

It's already implemented in our framework! See Selenium/How-to/Record videos of test runs. You need the latest version of wdio-mediawiki (v1.1.1). An intern (@Sahilgrewalhere) is working on the update, see T283597: Update wdio-mediawiki to 1.1.1 in all repositories. I'm not sure for which repository is this task (Wikibase?). Let me know and I'll him to update the repo, if it's not already updated. Also, feel free to update yourself, of ask him to update the repo at T283597.

Core used to use wdio-video-reporter package but there were problems with it. (I can go into detail if you're curious.) We've replaced it with the way we used to record videos before the package (Xvfb+ffmpeg). See T253113: Record videos of all Selenium tests and 685877.

Addshore renamed this task from Add video reporting for wdio specs to Add video reporting for wdio specs in wikibase-release-pipeline.Jun 28 2021, 3:02 PM
Addshore moved this task from Inbox to To Prioritize on the [DEPRECATED] wdwb-tech board.

It's already implemented in our framework! See Selenium/How-to/Record videos of test runs. You need the latest version of wdio-mediawiki (v1.1.1). An intern (@Sahilgrewalhere) is working on the update, see T283597: Update wdio-mediawiki to 1.1.1 in all repositories. I'm not sure for which repository is this task (Wikibase?). Let me know and I'll him to update the repo, if it's not already updated. Also, feel free to update yourself, of ask him to update the repo at T283597.

Cool, thanks for the comments. Looks like we are currently using 1.0.0 of wdio-mediawiki so when this gets picked up we probably wanna bump this and follow the guide.

All repositories should now be using wdio-mediawiki v1.1.1. T283597: Update wdio-mediawiki to 1.1.1 in all repositories is resolved. Can this task be resolved too?

All repositories should now be using wdio-mediawiki v1.1.1. T283597: Update wdio-mediawiki to 1.1.1 in all repositories is resolved. Can this task be resolved too?

Hey, yeah we are currently using that version. However we've yet to actually follow any guides to enable the feature.

Let me update the task description to reflect this (if this ever gets picked up :P)

Nothing needs to be done. Videos are recorded automatically in CI. These instructions explain how to do it on a local machine.

https://www.mediawiki.org/wiki/Selenium/How-to/Record_videos_of_test_runs

I think I understand now. Video recording is set up in wikimedia CI. If you're using github actions, you'll have to set it up yourself.

I think I understand now. Video recording is set up in wikimedia CI. If you're using github actions, you'll have to set it up yourself.

Sorry for any confusion this ticket may have caused.

No problem at all, I just didn't understand the problem. I think I do now.

darthmon_wmde claimed this task.
darthmon_wmde subscribed.

this has been solved in the past months