Page MenuHomePhabricator

Remove debugging output when recording videos of Selenium test runs
Closed, ResolvedPublic

Description

Example test run.

nobody@docker-desktop:/core$ npm run selenium-test

> @ selenium-test /core
> wdio ./tests/selenium/wdio.conf.js


Execution of 5 spec files started at 2021-06-04T18:02:04.167Z

(node:2586) ExperimentalWarning: The dns.promises API is experimental
(node:2586) ExperimentalWarning: The fs.promises API is experimental
[0-0] (node:2595) ExperimentalWarning: The dns.promises API is experimental
[0-0] (node:2595) ExperimentalWarning: The fs.promises API is experimental
[0-0] RUNNING in chrome - /tests/selenium/specs/page.js
[0-0] 
        Video location: /core/tests/selenium/log/Page-should-be-previewable-2021-06-04T18-02-14-611Z.mp4 

[0-0]   ffmpeg exited with code 255 /core/tests/selenium/log/Page-should-be-previewable-2021-06-04T18-02-14-611Z.mp4
[0-0] 
        Video location: /core/tests/selenium/log/Page-should-be-creatable-2021-06-04T18-02-20-868Z.mp4 

        ffmpeg exited with code 255 /core/tests/selenium/log/Page-should-be-creatable-2021-06-04T18-02-20-868Z.mp4
[0-0] 
        Video location: /core/tests/selenium/log/Page-should-be-re-creatable-2021-06-04T18-02-24-346Z.mp4 

[0-0]   ffmpeg exited with code 255 /core/tests/selenium/log/Page-should-be-re-creatable-2021-06-04T18-02-24-346Z.mp4
[0-0] 
        Video location: /core/tests/selenium/log/Page-should-be-editable-%40daily-2021-06-04T18-02-30-718Z.mp4 

        ffmpeg exited with code 255 /core/tests/selenium/log/Page-should-be-editable-%40daily-2021-06-04T18-02-30-718Z.mp4
[0-0] 
        Video location: /core/tests/selenium/log/Page-should-have-history-%40daily-2021-06-04T18-02-35-360Z.mp4 

[0-0]   ffmpeg exited with code 255 /core/tests/selenium/log/Page-should-have-history-%40daily-2021-06-04T18-02-35-360Z.mp4
[0-0] 
        Video location: /core/tests/selenium/log/Page-should-be-deletable-2021-06-04T18-02-38-306Z.mp4 

        ffmpeg exited with code 255 /core/tests/selenium/log/Page-should-be-deletable-2021-06-04T18-02-38-306Z.mp4
[0-0] PASSED in chrome - /tests/selenium/specs/page.js
[0-1] (node:3607) ExperimentalWarning: The dns.promises API is experimental
[0-1] (node:3607) ExperimentalWarning: The fs.promises API is experimental
[0-1] RUNNING in chrome - /tests/selenium/specs/recentchanges.js
[0-1] PASSED in chrome - /tests/selenium/specs/recentchanges.js
[0-2] (node:4089) ExperimentalWarning: The dns.promises API is experimental
[0-2] (node:4089) ExperimentalWarning: The fs.promises API is experimental
[0-2] RUNNING in chrome - /tests/selenium/specs/user.js
[0-2] 
        Video location: /core/tests/selenium/log/User-should-be-able-to-create-account-2021-06-04T18-03-25-091Z.mp4 

        ffmpeg exited with code 255 /core/tests/selenium/log/User-should-be-able-to-create-account-2021-06-04T18-03-25-091Z.mp4
[0-2] PASSED in chrome - /tests/selenium/specs/user.js
[0-3] (node:4583) ExperimentalWarning: The dns.promises API is experimental
[0-3] (node:4583) ExperimentalWarning: The fs.promises API is experimental
[0-3] RUNNING in chrome - /tests/selenium/specs/watchlist.js
[0-3] PASSED in chrome - /tests/selenium/specs/watchlist.js
[0-4] (node:5065) ExperimentalWarning: The dns.promises API is experimental
[0-4] (node:5065) ExperimentalWarning: The fs.promises API is experimental
[0-4] RUNNING in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js
[0-4] PASSED in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js

 "dot" Reporter:
.............

Spec Files:      5 passed, 5 total (100% completed) in 00:01:56

Remove lines:

Video location: /core/tests/selenium/log/Page-should-be-previewable-2021-06-04T18-02-14-611Z.mp4

and

ffmpeg exited with code 255 /core/tests/selenium/log/Page-should-be-previewable-2021-06-04T18-02-14-611Z.mp4

Video recording was introduced in 422933.

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptJun 4 2021, 6:04 PM

After 699451.

nobody@docker-desktop:/core$ npm run selenium-test

> @ selenium-test /core
> wdio ./tests/selenium/wdio.conf.js


Execution of 5 spec files started at 2021-06-11T17:25:50.392Z

(node:2409) ExperimentalWarning: The dns.promises API is experimental
(node:2409) ExperimentalWarning: The fs.promises API is experimental
[0-0] (node:2418) ExperimentalWarning: The dns.promises API is experimental
[0-0] (node:2418) ExperimentalWarning: The fs.promises API is experimental
[0-0] RUNNING in chrome - /tests/selenium/specs/page.js
[0-0] PASSED in chrome - /tests/selenium/specs/page.js
[0-1] (node:3396) ExperimentalWarning: The dns.promises API is experimental
[0-1] (node:3396) ExperimentalWarning: The fs.promises API is experimental
[0-1] RUNNING in chrome - /tests/selenium/specs/recentchanges.js
[0-1] PASSED in chrome - /tests/selenium/specs/recentchanges.js
[0-2] (node:3854) ExperimentalWarning: The dns.promises API is experimental
[0-2] (node:3854) ExperimentalWarning: The fs.promises API is experimental
[0-2] RUNNING in chrome - /tests/selenium/specs/user.js
[0-2] PASSED in chrome - /tests/selenium/specs/user.js
[0-3] (node:4325) ExperimentalWarning: The dns.promises API is experimental
[0-3] (node:4325) ExperimentalWarning: The fs.promises API is experimental
[0-3] RUNNING in chrome - /tests/selenium/specs/watchlist.js
[0-3] PASSED in chrome - /tests/selenium/specs/watchlist.js
[0-4] (node:4783) ExperimentalWarning: The dns.promises API is experimental
[0-4] (node:4783) ExperimentalWarning: The fs.promises API is experimental
[0-4] RUNNING in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js
[0-4] PASSED in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js

 "dot" Reporter:
..............

Spec Files:      5 passed, 5 total (100% completed) in 00:01:54

Change 699451 had a related patch set uploaded (by Zfilipin; author: Zfilipin):

[mediawiki/core@master] selenium: Remove debugging information for video recording

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

Change 699451 merged by jenkins-bot:

[mediawiki/core@master] selenium: Remove debugging information for video recording

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

zeljkofilipin claimed this task.