Closed
Bug 802877
Opened 14 years ago
Closed 13 years ago
Intermittent B2G emulator "TEST-UNEXPECTED-FAIL | * | EOFError: telnet connection closed"
Categories
(Testing :: Marionette Client and Harness, defect)
Testing
Marionette Client and Harness
Tracking
(firefox18 fixed, firefox19 fixed)
RESOLVED
FIXED
mozilla19
People
(Reporter: jgriffin, Assigned: jgriffin)
References
Details
(Keywords: intermittent-failure)
Attachments
(1 file)
|
817 bytes,
patch
|
Details | Diff | Splinter Review |
Sometimes WebAPI test runs are aborting during newSession in the first test with this stack trace:
Traceback (most recent call last):
File "/data/jenkins/workspace/webapi-marionette-test/testing/marionette/client/marionette/marionette_test.py", line 78, in setUp
self.marionette.start_session()
File "/data/jenkins/workspace/webapi-marionette-test/testing/marionette/client/marionette/marionette.py", line 243, in start_session
self.session = self._send_message('newSession', 'value')
File "/data/jenkins/workspace/webapi-marionette-test/testing/marionette/client/marionette/marionette.py", line 162, in _send_message
port = self.emulator.restart(self.local_port)
File "/data/jenkins/workspace/webapi-marionette-test/testing/marionette/client/marionette/emulator.py", line 255, in restart
self.start()
File "/data/jenkins/workspace/webapi-marionette-test/testing/marionette/client/marionette/emulator.py", line 309, in start
self.geo.set_default_location()
File "/data/jenkins/workspace/webapi-marionette-test/testing/marionette/client/marionette/emulator_geo.py", line 13, in set_default_location
self.set_location(self.lon, self.lat)
File "/data/jenkins/workspace/webapi-marionette-test/testing/marionette/client/marionette/emulator_geo.py", line 16, in set_location
self.emulator._run_telnet('geo fix %0.5f %0.5f' % (self.lon, self.lat))
File "/data/jenkins/workspace/webapi-marionette-test/testing/marionette/client/marionette/emulator.py", line 215, in _run_telnet
return self._get_telnet_response(command)
File "/data/jenkins/workspace/webapi-marionette-test/testing/marionette/client/marionette/emulator.py", line 204, in _get_telnet_response
line = self.telnet.read_until('\n')
File "/usr/lib/python2.7/telnetlib.py", line 319, in read_until
return self.read_very_lazy()
File "/usr/lib/python2.7/telnetlib.py", line 395, in read_very_lazy
raise EOFError, 'telnet connection closed'
TEST-UNEXPECTED-FAIL : EOFError: telnet connection closed
It appears that setting the default geolocation is sometimes causing the emulator to crash. I'm going to try and add a delay before this to see if that clears this up; if not, I will disable it.
| Assignee | ||
Comment 1•14 years ago
|
||
| Assignee | ||
Comment 2•14 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f549d4510829.
Leaving open for further tweaks.
Assignee: nobody → jgriffin
Target Milestone: --- → mozilla19
Comment 3•14 years ago
|
||
One of the changesets here turned marionette orange:
https://tbpl.mozilla.org/?tree=Mozilla-Inbound&jobname=marionette&rev=67f8d99d80fb
In that range, I believe this bug is the most likely contender.
Comment 4•14 years ago
|
||
> One of the changesets here turned marionette orange:
Fixed link:
https://tbpl.mozilla.org/?tree=Mozilla-Inbound&jobname=marionette&rev=67f8d99d80fb&noignore=1
| Assignee | ||
Comment 5•14 years ago
|
||
I haven't seen this problem recur, I'm closing this.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [automation-needed-in-aurora]
| Assignee | ||
Comment 6•14 years ago
|
||
| Assignee | ||
Comment 7•14 years ago
|
||
status-firefox18:
--- → fixed
status-firefox19:
--- → fixed
Whiteboard: [automation-needed-in-aurora]
Comment 8•14 years ago
|
||
Still seeing this occasionally on inbound (ignore the mozharness logcat exception):
https://tbpl.mozilla.org/php/getParsedLog.php?id=17217191&tree=Mozilla-Inbound
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 9•14 years ago
|
||
This is another weird emulator problem. I'm thinking the best fix is to add it to the retry code, so if it happens, we just try everything again.
Whiteboard: [orange]
Comment 11•14 years ago
|
||
Updated•14 years ago
|
Keywords: intermittent-failure
Summary: TEST-UNEXPECTED-FAIL : EOFError: telnet connection closed → Intermittent emulator TEST-UNEXPECTED-FAIL : EOFError: telnet connection closed
Comment 12•14 years ago
|
||
Comment 13•14 years ago
|
||
Looking at that last log I see:
00:57:25 INFO - F/libc ( 43): Fatal signal 11 (SIGSEGV) at 0x00000047 (code=1)
Maybe this bug is a side effect of bug 814695. Though the tests still seem to run even after that seg fault so maybe it is completely unrelated.
Updated•14 years ago
|
Whiteboard: [orange]
Comment 14•14 years ago
|
||
| Assignee | ||
Comment 15•14 years ago
|
||
(In reply to Ryan VanderMeulen from comment #14)
> https://tbpl.mozilla.org/php/getParsedLog.php?id=17358883&tree=Mozilla-Beta
This is an emulator crash, but one that occurred during a non-WebAPI test.
Comment 16•14 years ago
|
||
| Assignee | ||
Comment 17•14 years ago
|
||
(In reply to Ed Morley [:edmorley, UTC, email: emorley@moco] from comment #16)
> https://tbpl.mozilla.org/php/getParsedLog.php?id=17374301&tree=Firefox
This is an emulator crash during the test test_execute_async_script.py:test_execute_permission. We really need better crash detection and messaging.
Comment 18•14 years ago
|
||
https://tbpl.mozilla.org/php/getParsedLog.php?id=17362640&tree=Mozilla-Beta
(sorry, but gotta post this somewhere...)
| Assignee | ||
Comment 19•14 years ago
|
||
(In reply to Ryan VanderMeulen from comment #18)
> https://tbpl.mozilla.org/php/getParsedLog.php?id=17362640&tree=Mozilla-Beta
>
> (sorry, but gotta post this somewhere...)
This is a crash during the test test_execute_script.py:test_that_we_can_pass_in_floats. I'm beginning to think that re-enabling the telephony tests has caused some weird problem in which the emulator crashes after some delay.
Comment 20•14 years ago
|
||
| Assignee | ||
Comment 21•14 years ago
|
||
(In reply to Ryan VanderMeulen from comment #20)
> https://tbpl.mozilla.org/php/getParsedLog.php?id=17384033&tree=Mozilla-Beta
Another random emulator crash, the one during test_perf.py:test_perf_basic
Comment 22•14 years ago
|
||
| Assignee | ||
Comment 23•14 years ago
|
||
(In reply to Ryan VanderMeulen from comment #22)
> https://tbpl.mozilla.org/php/getParsedLog.php?id=17391237&tree=Mozilla-
> Inbound
Another random emulator crash, this one during test_execute_async_script.py:test_execute_no_return
Comment 24•14 years ago
|
||
Comment 25•14 years ago
|
||
Comment 26•14 years ago
|
||
| Assignee | ||
Comment 27•14 years ago
|
||
This is likely fallout from re-enabling the telephony tests in bug 790463, but it's hard to be sure because this is so infrequent.
One idea that ahal and I had was to cause this error to automatically retry the run, which would effectively hide it.
Comment 28•14 years ago
|
||
Comment 29•14 years ago
|
||
Comment 30•14 years ago
|
||
Comment 31•14 years ago
|
||
Comment 32•14 years ago
|
||
(In reply to Jonathan Griffin (:jgriffin) from comment #27)
> This is likely fallout from re-enabling the telephony tests in bug 790463,
> but it's hard to be sure because this is so infrequent.
>
> One idea that ahal and I had was to cause this error to automatically retry
> the run, which would effectively hide it.
Seems to be happening more frequently now. We already have the code to retry the job in mozharness, we'd just need to add a new magic string to it (boo)
Comment 34•14 years ago
|
||
Comment 35•14 years ago
|
||
Comment 36•14 years ago
|
||
Comment 37•13 years ago
|
||
Comment 38•13 years ago
|
||
Comment 42•13 years ago
|
||
Comment 43•13 years ago
|
||
Comment 44•13 years ago
|
||
Comment 45•13 years ago
|
||
Comment 46•13 years ago
|
||
Comment 47•13 years ago
|
||
Comment 48•13 years ago
|
||
Comment 49•13 years ago
|
||
Comment 50•13 years ago
|
||
Comment 51•13 years ago
|
||
Comment 52•13 years ago
|
||
Comment 53•13 years ago
|
||
Comment 54•13 years ago
|
||
Comment 55•13 years ago
|
||
Comment 56•13 years ago
|
||
Comment 60•13 years ago
|
||
Updated•13 years ago
|
Summary: Intermittent emulator TEST-UNEXPECTED-FAIL : EOFError: telnet connection closed → Intermittent B2G emulator "TEST-UNEXPECTED-FAIL | * | EOFError: telnet connection closed"
Comment 63•13 years ago
|
||
| Assignee | ||
Comment 64•13 years ago
|
||
This particular problem has been fixed due to bug 826132.
Status: REOPENED → RESOLVED
Closed: 14 years ago → 13 years ago
Resolution: --- → FIXED
Updated•3 years ago
|
Product: Testing → Remote Protocol
Comment 65•3 years ago
|
||
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.
Description
•