Closed Bug 1274948 Opened 9 years ago Closed 8 years ago

Intermittent test_window_management.py TestSwitchWindow.test_windows | ScriptTimeoutException: ScriptTimeoutException: timed out

Categories

(Testing :: Marionette Client and Harness, defect)

Version 3
All
Linux
defect
Not set
normal

Tracking

(e10s-, firefox49 wontfix, firefox50 affected, firefox51 affected, firefox52 affected)

RESOLVED WORKSFORME
Tracking Status
e10s - ---
firefox49 --- wontfix
firefox50 --- affected
firefox51 --- affected
firefox52 --- affected

People

(Reporter: cbook, Unassigned)

References

()

Details

(Keywords: intermittent-failure)

https://treeherder.mozilla.org/logviewer.html#?job_id=2631750&repo=mozilla-aurora#L1556 09:30:21 ERROR - TEST-UNEXPECTED-ERROR | test_window_management.py TestSwitchWindow.test_windows | ScriptTimeoutException: ScriptTimeoutException: timed out
The problem is in this call to execute_async_script(): https://dxr.mozilla.org/mozilla-central/rev/82d0a583a9a39bf0b0000bccbf6d5c9ec2596bcc/testing/marionette/harness/marionette/tests/unit/test_window_management.py#14 I think that this code causes a race when waiting for the load event. When the call to openWindow() returns the window object, the load event might have already been happened. So to ensure we do not wait forever or run into this script_timeout a check for win.readyState should be done beside setting up the event handler.
tracking-e10s: --- → ?
OS: Unspecified → Linux
Hardware: Unspecified → All
Summary: Intermittent test_window_management.py TestSwitchWindow.test_windows | ScriptTimeoutException: ScriptTimeoutException: timed out → [e10s] Intermittent test_window_management.py TestSwitchWindow.test_windows | ScriptTimeoutException: ScriptTimeoutException: timed out
Hm, so the first time this failure has been starred on Treeherder was August 4th. So far this is all Linux debug only with e10s enabled. Not sure if my idea from above still holds. I would more assume a timeout due to a very slow loading of the window.
Summary: [e10s] Intermittent test_window_management.py TestSwitchWindow.test_windows | ScriptTimeoutException: ScriptTimeoutException: timed out → Intermittent test_window_management.py TestSwitchWindow.test_windows | ScriptTimeoutException: ScriptTimeoutException: timed out
Closing as intermittent has not been seen in last 45 days
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
Product: Testing → Remote Protocol
Moving bug to Testing::Marionette Client and Harness component per bug 1815831.
Component: Marionette → Marionette Client and Harness
Product: Remote Protocol → Testing
You need to log in before you can comment on or make changes to this bug.