Closed Bug 1322109 Opened 8 years ago Closed 7 years ago

Intermittent test_fallback_update.py TestFallbackUpdate.test_update | MarionetteException: Please start a session

Categories

(Testing :: Firefox UI Tests, defect)

Version 3
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

Details

(Keywords: bulk-close-intermittents, intermittent-failure)

 05:03:56     INFO - Traceback (most recent call last):

 05:03:56     INFO -   File "c:\jenkins\workspace\mozilla-aurora_update\build\venv\lib\site-packages\marionette\marionette_test\testcases.py", line 162, in run

 05:03:56     INFO -     testMethod()

 05:03:56     INFO -   File "c:\jenkins\workspace\mozilla-aurora_update\build\tests\firefox-ui\tests\update\fallback\test_fallback_update.py", line 21, in test_update

 05:03:56     INFO -     self.download_and_apply_forced_update()

 05:03:56     INFO -   File "c:\jenkins\workspace\mozilla-aurora_update\build\venv\lib\site-packages\firefox_ui_harness\testcases.py", line 320, in download_and_apply_forced_update

 05:03:56     INFO -     self.updates[self.current_update_index]['patch'] = self.patch_info

 05:03:56     INFO -   File "c:\jenkins\workspace\mozilla-aurora_update\build\venv\lib\site-packages\firefox_ui_harness\testcases.py", line 106, in patch_info

 05:03:56     INFO -     patch = self.software_update.patch_info

 05:03:56     INFO -   File "c:\jenkins\workspace\mozilla-aurora_update\build\venv\lib\site-packages\firefox_puppeteer\api\software_update.py", line 295, in patch_info

 05:03:56     INFO -     info = {'channel': self.update_channel}

 05:03:56     INFO -   File "c:\jenkins\workspace\mozilla-aurora_update\build\venv\lib\site-packages\firefox_puppeteer\api\software_update.py", line 320, in update_channel

 05:03:56     INFO -     return self.prefs.get_pref(self.PREF_APP_UPDATE_CHANNEL, default_branch=True)

 05:03:56     INFO -   File "c:\jenkins\workspace\mozilla-aurora_update\build\venv\lib\site-packages\firefox_puppeteer\api\prefs.py", line 34, in get_pref

 05:03:56     INFO -     with self.marionette.using_context('chrome'):

 05:03:56     INFO -   File "C:\Python27\Lib\contextlib.py", line 17, in __enter__

 05:03:56     INFO -     return self.gen.next()

 05:03:56     INFO -   File "c:\jenkins\workspace\mozilla-aurora_update\build\venv\lib\site-packages\marionette_driver\marionette.py", line 1503, in using_context

 05:03:56     INFO -     scope = self._send_message("getContext", key="value")

 05:03:56     INFO -   File "c:\jenkins\workspace\mozilla-aurora_update\build\venv\lib\site-packages\marionette_driver\decorators.py", line 23, in _

 05:03:56     INFO -     return func(*args, **kwargs)

 05:03:56     INFO -   File "c:\jenkins\workspace\mozilla-aurora_update\build\venv\lib\site-packages\marionette_driver\marionette.py", line 696, in _send_message

 05:03:56     INFO -     raise errors.MarionetteException("Please start a session")

05:03:56 INFO - TEST-INFO took 203394ms 

Not sure yet why we end-up in this situation but it looks like that we try to get the patch_info AFTER we requested to restart the application:


 05:00:49     INFO -  1480683648737	Marionette	TRACE	conn2 -> [0,2050,"quitApplication",{"flags":["eRestart"]}]
 05:00:49     INFO -  1480683648737	Marionette	INFO	New connections will no longer be accepted
 05:00:49     INFO -  1480683648737	Marionette	TRACE	conn2 <- [1,2050,null,{}]
 05:00:49     INFO -  1480683648784	Marionette	DEBUG	Closed connection conn2
 05:03:56 INFO - TEST-UNEXPECTED-ERROR | test_fallback_update.py TestFallbackUpdate.test_update | MarionetteException: Please start a session
Basically Marionette should always ensure that a session is running before the test continuous. So this is an interesting situation. It failed a couple of times in the last Firefox 54.0 beta. We should keep an eye on it.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.