Closed
Bug 1642705
Opened 4 years ago
Closed 3 years ago
android_emulator_pgo.py can't connect to Marionette when run with Python 3
Categories
(Release Engineering :: Applications: MozharnessCore, defect)
Release Engineering
Applications: MozharnessCore
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mhentges, Unassigned)
References
Details
I'm migrating mach python
to use Python 3 instead of Python 2. In testing scripts that use mach python
, I've found that the generate-profile-android-api-16-shippable/opt
task starts to fail. See this example task.
[task 2020-06-01T21:12:22.073Z] 21:12:22 INFO - [mozharness: 2020-06-01 21:12:22.072414Z] Finished run-tests step (failed)
[task 2020-06-01T21:12:22.075Z] 21:12:22 FATAL - Uncaught exception: Traceback (most recent call last):
[task 2020-06-01T21:12:22.076Z] 21:12:22 FATAL - File "/builds/worker/workspace/build/venv/lib/python3.6/site-packages/marionette_driver/marionette.py", line 485, in start_binary
[task 2020-06-01T21:12:22.076Z] 21:12:22 FATAL - self.raise_for_port(timeout=timeout)
[task 2020-06-01T21:12:22.076Z] 21:12:22 FATAL - File "/builds/worker/workspace/build/venv/lib/python3.6/site-packages/marionette_driver/marionette.py", line 573, in raise_for_port
[task 2020-06-01T21:12:22.076Z] 21:12:22 FATAL - self.host, self.port))
[task 2020-06-01T21:12:22.076Z] 21:12:22 FATAL - socket.timeout: Timed out waiting for connection on 127.0.0.1:2828!
[task 2020-06-01T21:12:22.077Z] 21:12:22 FATAL -
[task 2020-06-01T21:12:22.077Z] 21:12:22 FATAL - During handling of the above exception, another exception occurred:
[task 2020-06-01T21:12:22.077Z] 21:12:22 FATAL -
[task 2020-06-01T21:12:22.077Z] 21:12:22 FATAL - Traceback (most recent call last):
[task 2020-06-01T21:12:22.077Z] 21:12:22 FATAL - File "/builds/worker/checkouts/gecko/testing/mozharness/mozharness/base/script.py", line 2132, in run
[task 2020-06-01T21:12:22.077Z] 21:12:22 FATAL - self.run_action(action)
[task 2020-06-01T21:12:22.078Z] 21:12:22 FATAL - File "/builds/worker/checkouts/gecko/testing/mozharness/mozharness/base/script.py", line 2071, in run_action
[task 2020-06-01T21:12:22.078Z] 21:12:22 FATAL - self._possibly_run_method(method_name, error_if_missing=True)
[task 2020-06-01T21:12:22.078Z] 21:12:22 FATAL - File "/builds/worker/checkouts/gecko/testing/mozharness/mozharness/base/script.py", line 2026, in _possibly_run_method
[task 2020-06-01T21:12:22.078Z] 21:12:22 FATAL - return getattr(self, method_name)()
[task 2020-06-01T21:12:22.078Z] 21:12:22 FATAL - File "/builds/worker/checkouts/gecko/testing/mozharness/scripts/android_emulator_pgo.py", line 250, in run_tests
[task 2020-06-01T21:12:22.079Z] 21:12:22 FATAL - symbols_path=self.symbols_path,
[task 2020-06-01T21:12:22.079Z] 21:12:22 FATAL - File "/builds/worker/workspace/build/venv/lib/python3.6/site-packages/marionette_driver/marionette.py", line 465, in __init__
[task 2020-06-01T21:12:22.079Z] 21:12:22 FATAL - self.start_binary(self.startup_timeout)
[task 2020-06-01T21:12:22.079Z] 21:12:22 FATAL - File "/builds/worker/workspace/build/venv/lib/python3.6/site-packages/marionette_driver/marionette.py", line 493, in start_binary
[task 2020-06-01T21:12:22.079Z] 21:12:22 FATAL - reraise(IOError, IOError(msg.format(timeout)), sys.exc_info()[2])
[task 2020-06-01T21:12:22.079Z] 21:12:22 FATAL - File "/builds/worker/checkouts/gecko/third_party/python/six/six.py", line 695, in reraise
[task 2020-06-01T21:12:22.080Z] 21:12:22 FATAL - raise value.with_traceback(tb)
[task 2020-06-01T21:12:22.080Z] 21:12:22 FATAL - File "/builds/worker/workspace/build/venv/lib/python3.6/site-packages/marionette_driver/marionette.py", line 485, in start_binary
[task 2020-06-01T21:12:22.080Z] 21:12:22 FATAL - self.raise_for_port(timeout=timeout)
[task 2020-06-01T21:12:22.080Z] 21:12:22 FATAL - File "/builds/worker/workspace/build/venv/lib/python3.6/site-packages/marionette_driver/marionette.py", line 573, in raise_for_port
[task 2020-06-01T21:12:22.080Z] 21:12:22 FATAL - self.host, self.port)
Comment 1•3 years ago
|
||
I'm under the impression we've cut over to py3; does that mean we've resolved this issue?
Flags: needinfo?(mhentges)
Reporter | ||
Comment 2•3 years ago
|
||
Yep, I think you're right, closing :)
Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(mhentges)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•