./mach android-emulator is broken
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox68 fixed)
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: aerickson, Assigned: aerickson)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
It looks like the location for tooltool that this code uses (https://raw.githubusercontent.com/mozilla/build-tooltool/master/tooltool.py) has changed.
https://github.com/mozilla/build-tooltool/commit/8d739683dbab92c1d8734425da3661be9e61944b
Error output:
➜ mozilla-source-2 hg:(03bf514a9721 default tip) ✗ ./mach android-emulator
0:01.07 Fetching and installing AVD. This may take a few minutes...
Error running mach:
['android-emulator']
The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.
If filing a bug, please include the full output of mach, including this error
message.
The details of the failure are as follows:
HTTPError: HTTP Error 404: Not Found
File "/Users/aerickson/hg/mozilla-source-2/mobile/android/mach_commands.py", line 662, in emulator
emulator.update_avd(force_update)
File "/Users/aerickson/hg/mozilla-source-2/testing/mozbase/mozrunner/mozrunner/devices/android_device.py", line 529, in update_avd
_tooltool_fetch()
File "/Users/aerickson/hg/mozilla-source-2/testing/mozbase/mozrunner/mozrunner/devices/android_device.py", line 867, in _tooltool_fetch
_download_file(TOOLTOOL_URL, 'tooltool.py', EMULATOR_HOME_DIR)
File "/Users/aerickson/hg/mozilla-source-2/testing/mozbase/mozrunner/mozrunner/devices/android_device.py", line 830, in _download_file
f = urllib.request.urlopen(url)
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
➜ mozilla-source-2 hg:(03bf514a9721 default tip) ✗
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
I have a fix. Will post shortly.
Comment 3•6 years ago
|
||
That file is available in-tree, although at some odd locations:
./python/mozbuild/mozbuild/action/tooltool.py
./testing/mozharness/external_tools/tooltool.py
it'd be fine to put it at another location, or use one of those, if that's more reliable than fetching it on every task.
Assignee | ||
Comment 4•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 6•6 years ago
|
||
Backed out changeset 67463f3dd222 (Bug 1545860) for flake lint failure on android_device.py
Push with failure: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=67463f3dd222b254016a8bd210d9f5e3052bf1d8&selectedJob=241838079
Backout link: https://hg.mozilla.org/integration/autoland/rev/efe40065f0ea38258a80f80b2330e63104281c51
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=241838079&repo=autoland&lineNumber=288
[vcs 2019-04-22T18:01:22.043Z] TinderboxPrint:<a href=https://hg.mozilla.org/integration/autoland/rev/67463f3dd222b254016a8bd210d9f5e3052bf1d8 title='Built from autoland revision 67463f3dd222b254016a8bd210d9f5e3052bf1d8'>67463f3dd222b254016a8bd210d9f5e3052bf1d8</a>
[task 2019-04-22T18:01:22.043Z] executing ['bash', '-cx', 'cd $GECKO_PATH && ./mach lint -l flake8 -f treeherder -f json:/builds/worker/mozlint.json']
[task 2019-04-22T18:01:22.045Z] + cd /builds/worker/checkouts/gecko
[task 2019-04-22T18:01:22.045Z] + ./mach lint -l flake8 -f treeherder -f json:/builds/worker/mozlint.json
[task 2019-04-22T18:01:23.026Z] New python executable in /builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/_virtualenvs/init/bin/python2.7
[task 2019-04-22T18:01:23.026Z] Also creating executable in /builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/_virtualenvs/init/bin/python
[task 2019-04-22T18:01:24.744Z] Installing setuptools, pip, wheel...done.
[task 2019-04-22T18:01:26.155Z] running build_ext
[task 2019-04-22T18:01:26.155Z] building 'psutil._psutil_linux' extension
[task 2019-04-22T18:01:26.155Z] creating build
[task 2019-04-22T18:01:26.155Z] creating build/temp.linux-x86_64-2.7
[task 2019-04-22T18:01:26.155Z] creating build/temp.linux-x86_64-2.7/psutil
[task 2019-04-22T18:01:26.155Z] x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=543 -DPSUTIL_LINUX=1 -I/usr/include/python2.7 -c psutil/_psutil_common.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_common.o
[task 2019-04-22T18:01:26.155Z] x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=543 -DPSUTIL_LINUX=1 -I/usr/include/python2.7 -c psutil/_psutil_posix.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o
[task 2019-04-22T18:01:26.155Z] x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=543 -DPSUTIL_LINUX=1 -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o
[task 2019-04-22T18:01:26.155Z] creating build/lib.linux-x86_64-2.7
[task 2019-04-22T18:01:26.155Z] creating build/lib.linux-x86_64-2.7/psutil
[task 2019-04-22T18:01:26.155Z] x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/psutil/_psutil_common.o build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o -o build/lib.linux-x86_64-2.7/psutil/_psutil_linux.so
[task 2019-04-22T18:01:26.155Z] building 'psutil._psutil_posix' extension
[task 2019-04-22T18:01:26.155Z] x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=543 -DPSUTIL_LINUX=1 -I/usr/include/python2.7 -c psutil/_psutil_common.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_common.o
[task 2019-04-22T18:01:26.155Z] x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=543 -DPSUTIL_LINUX=1 -I/usr/include/python2.7 -c psutil/_psutil_posix.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o
[task 2019-04-22T18:01:26.155Z] x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/psutil/_psutil_common.o build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o -o build/lib.linux-x86_64-2.7/psutil/_psutil_posix.so
[task 2019-04-22T18:01:26.155Z] copying build/lib.linux-x86_64-2.7/psutil/_psutil_linux.so -> psutil
[task 2019-04-22T18:01:26.155Z] copying build/lib.linux-x86_64-2.7/psutil/_psutil_posix.so -> psutil
[task 2019-04-22T18:01:26.155Z]
[task 2019-04-22T18:01:26.155Z] Error processing command. Ignoring because optional. (optional:packages.txt:comm/build/virtualenv_packages.txt)
[task 2019-04-22T18:04:02.809Z] TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/testing/mozbase/mozrunner/mozrunner/devices/android_device.py:30:100 | line too long (114 > 99 characters) (E501)
[taskcluster 2019-04-22 18:04:03.290Z] === Task Finished ===
[taskcluster 2019-04-22 18:04:04.065Z] Unsuccessful task run with exit code: 1 completed in 486.569 seconds
Assignee | ||
Comment 7•6 years ago
|
||
fix flake error
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b3ff6570a179
fix tooltool url, r2 r=bc,gbrown
Comment 9•6 years ago
|
||
bugherder |
Description
•