Use "preflight_run_cmd_suites" for Marionette for unique screen size and to disable various Windows notifications
Categories
(Remote Protocol :: Marionette, enhancement, P1)
Tracking
(firefox67 fixed)
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
Attachments
(1 file)
Assignee | ||
Comment 1•5 years ago
|
||
Just noticed when comparing test results for the following try job:
Each job on a Win10 tester has a resolution of 1024x768 only.
It would be great to increase it to 1600x1200 like for other platforms and Windows 7.
Comment 2•5 years ago
|
||
btw, I think most windows 10 test tasks change the resolution to 1280x1024, as seen here:
00:32:04 INFO - Running command: ('c:\mozilla-build\python\python.exe', 'Z:\task_1547771067\mozharness\external_tools\mouse_and_screen_resolution.py', '--configuration-file', 'Z:\task_1547771067\mozharness\external_tools\machine-configuration.json') in Z:\task_1547771067\build
00:32:04 INFO - Copy/paste: c:\mozilla-build\python\python.exe Z:\task_1547771067\mozharness\external_tools\mouse_and_screen_resolution.py --configuration-file Z:\task_1547771067\mozharness\external_tools\machine-configuration.json
00:32:07 INFO - Screen resolution (current): (1024, 768)
00:32:07 INFO - Changing the screen resolution...
00:32:07 INFO - Screen resolution (new): (1280, 1024)
00:32:07 INFO - Mouse position (current): (640, 512)
00:32:07 INFO - Mouse position (new): (1010, 10)
00:32:07 INFO - Return code: 0
and windows 7 tests change from 1600x1200 to 1280x1024 (if logs are to accurate).
Assignee | ||
Comment 3•5 years ago
|
||
So that is more a problem of Marionette jobs only?
Comment 4•5 years ago
|
||
Windows tasks based on desktop_unittest.py use
to run the screen resolution change. wpt runs the same command. So, yes, maybe only Marionette is different.
Comment 5•5 years ago
|
||
thanks :gbrown, I have been slow to respond to this and you dug in and did better than me in answering this.
Assignee | ||
Comment 6•5 years ago
|
||
Oh, we don't use any of those preflight_run_cmd_suites
commands. Some of them sound very important, especially those for notifications, which our tests might be affected from.
Geoff, is there anything from that list of commands which should not be run for Marionette?
Comment 7•5 years ago
|
||
They all sound useful to me: Probably all of them should be run for Marionette.
Assignee | ||
Comment 8•5 years ago
|
||
Taking with the hope that this will fix a couple of our intermittent failures which are focus related.
Assignee | ||
Comment 9•5 years ago
|
||
Please note that we also don't run all those preflight run commands for web-platform-tests. I wonder if that is on purpose, or if it should also be added. I think it was most likely missed.
Assignee | ||
Comment 10•5 years ago
•
|
||
First try works fine on Linux and MacOS but has string formatting problems for Windows:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=27824123bf24171d667e11dd1741204472f9be45&selectedJob=223020713
I reverted those extra changes for Windows and pushed another try build:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c672fab1d46691ab8835a6a8df87370fd1f01307
Assignee | ||
Comment 11•5 years ago
|
||
When running Marionette tests in Taskcluster a default window size
per platform has to be set. Further no screen saver, nor notifications
should be active which could interfere with the focus of the
application. Further there is no need to display the taskbar too.
Comment 12•5 years ago
|
||
(In reply to Henrik Skupin (:whimboo) [⌚️UTC+1] from comment #9)
Please note that we also don't run all those preflight run commands for web-platform-tests. I wonder if that is on purpose, or if it should also be added. I think it was most likely missed.
I also suspect it was an accidental omission, but I don't know; hopefully jgraham can say with more certainty.
Assignee | ||
Comment 13•5 years ago
|
||
Ok, the patch as attached will be for Marionette only. Once James replied I will file a separate bug for web-platform-tests.
Geoff, I wonder why each and every test job has to opt-in to use those scripts. Wouldn't it be better to enable those by default, and those which eg. don't want to set the screensize can opt-out? I think that this would help a lot in lowering the number of intermittent failures, given that most people aren't aware of those settings.
Comment 15•5 years ago
|
||
Yes, I guess? I don't really know what this does but if it's a thing that all testsuites are supposed to do then wpt should probably do it too. But I agree with the premise that if it's a thing that everyone is supposed to do it shouldn't rely on everyone providing the same dozen lines of configuration.
Assignee | ||
Comment 16•5 years ago
|
||
(In reply to Geoff Brown [:gbrown] from comment #14)
Yes, enabled by default sounds right to me.
Ok, I filed bug 1527840 to track enabling it by default in all suite configs.
(In reply to James Graham [:jgraham] from comment #15)
Yes, I guess? I don't really know what this does but if it's a thing that all testsuites are supposed to do then wpt should probably do it too.
I will file a new bug for it.
Assignee | ||
Comment 17•5 years ago
|
||
I updated the Marionette configs to just be a 1:1 copy from unittests:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=2fd1ab90b39c3f9934c049b0771b960a60cdaf97
Comment 18•5 years ago
|
||
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2e6a0be2fb27 [marionette] Use "preflight_run_cmd_suites" in mozharness config. r=jmaher,gbrown
Comment 19•5 years ago
|
||
bugherder |
Updated•1 year ago
|
Description
•