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)

defect
Not set
normal

Tracking

(firefox18 fixed, firefox19 fixed)

RESOLVED FIXED
mozilla19
Tracking Status
firefox18 --- fixed
firefox19 --- fixed

People

(Reporter: jgriffin, Assigned: jgriffin)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

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: nobody → jgriffin
Target Milestone: --- → mozilla19
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.
> One of the changesets here turned marionette orange: Fixed link: https://tbpl.mozilla.org/?tree=Mozilla-Inbound&jobname=marionette&rev=67f8d99d80fb&noignore=1
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]
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 → ---
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.
Summary: TEST-UNEXPECTED-FAIL : EOFError: telnet connection closed → Intermittent emulator TEST-UNEXPECTED-FAIL : EOFError: telnet connection closed
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.
Whiteboard: [orange]
(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.
(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.
(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.
(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
(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
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.
(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)
Blocks: 823076
Summary: Intermittent emulator TEST-UNEXPECTED-FAIL : EOFError: telnet connection closed → Intermittent B2G emulator "TEST-UNEXPECTED-FAIL | * | EOFError: telnet connection closed"
Depends on: 813292
Depends on: 826182
This particular problem has been fixed due to bug 826132.
Status: REOPENED → RESOLVED
Closed: 14 years ago → 13 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: