Closed
Bug 1701101
Opened 4 years ago
Closed 4 years ago
Glean 36.0.0 doesn't have a wheel, building `local-dev` fails
Categories
(Conduit :: General, defect)
Conduit
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mhentges, Assigned: mhentges)
Details
Attachments
(1 file)
Since there's no wheel, glean-sdk attempts to build from scratch, but fails because rustc isn't in the image:
$ docker-compose build local-dev
Building local-dev
[+] Building 3.2s (24/24) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 38B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/debian:stable-slim 0.5s
=> [internal] load build context 0.0s
=> => transferring context: 226B 0.0s
=> [ 1/20] FROM docker.io/library/debian:stable-slim@sha256:dc36b0d218debed99b354466f4d8984f0a3e4 0.0s
=> CACHED [ 2/20] RUN apt-get clean && apt-get update && apt-get install -y apt-utils 0.0s
=> CACHED [ 3/20] RUN apt-get install -y locales && sed --in-place '/en_US.UTF-8/s/^#//' /etc/lo 0.0s
=> CACHED [ 4/20] RUN apt-get install -y bash build-essential ca-certific 0.0s
=> CACHED [ 5/20] RUN pip install virtualenv && pip3 install virtualenv && python3 -m virtualen 0.0s
=> CACHED [ 6/20] RUN pip install mercurial==4.6 requests simplejson 0.0s
=> CACHED [ 7/20] RUN addgroup --gid 1000 phab && adduser --uid 1000 --ingroup phab --shell /bin 0.0s
=> CACHED [ 8/20] WORKDIR /home/phab 0.0s
=> CACHED [ 9/20] COPY arcrc .arcrc 0.0s
=> CACHED [10/20] RUN chmod 600 .arcrc 0.0s
=> CACHED [11/20] COPY hgrc .hgrc 0.0s
=> CACHED [12/20] COPY gitconfig .gitconfig 0.0s
=> CACHED [13/20] COPY moz-phab-config .moz-phab-config 0.0s
=> CACHED [14/20] COPY initfile.sh .initfile.sh 0.0s
=> CACHED [15/20] COPY clone_repositories.sh ./ 0.0s
=> CACHED [16/20] COPY generate_revision.sh ./ 0.0s
=> CACHED [17/20] RUN chown -R phab:phab /home/phab && ln -fs /home/phab/phabricator/cinnabarc/b 0.0s
=> CACHED [18/20] RUN git clone https://github.com/glandium/git-cinnabar.git --branch release --s 0.0s
=> CACHED [19/20] RUN mkdir -p phabricator && cd phabricator && git clone https://github.com/ph 0.0s
=> ERROR [20/20] RUN pip3 install MozPhab && echo "export PATH=/opt/mozphab/bin:/home/phab/phabr 2.6s
------
> [20/20] RUN pip3 install MozPhab && echo "export PATH=/opt/mozphab/bin:/home/phab/phabricator/arcanist/bin:/home/phab/git-cinnabar:/home/phab/review:/home/phab/.local/bin:$PATH" >> .bashrc:
#24 1.141 Collecting MozPhab
#24 1.437 Downloading https://files.pythonhosted.org/packages/1f/83/2cfa1f7d82287c02142143b825e511845d8db1a97bafb3ae5ab19549b3d1/MozPhab-0.1.97.tar.gz (79kB)
#24 1.726 Collecting distro (from MozPhab)
#24 1.809 Downloading https://files.pythonhosted.org/packages/25/b7/b3c4270a11414cb22c6352ebc7a83aaa3712043be29daa05018fd5a5c956/distro-1.5.0-py2.py3-none-any.whl
#24 1.845 Collecting glean-sdk>=36.0.0 (from MozPhab)
#24 1.978 Downloading https://files.pythonhosted.org/packages/e5/73/1fab7f7056520eabef2cf11acf4a63592bd0d49950588bbc8c6b393b25ac/glean-sdk-36.0.0.tar.gz (2.2MB)
#24 2.518 Complete output from command python setup.py egg_info:
#24 2.518 Traceback (most recent call last):
#24 2.518 File "<string>", line 1, in <module>
#24 2.518 File "/tmp/pip-install-vlxkgylh/glean-sdk/setup.py", line 16, in <module>
#24 2.518 from setup import *
#24 2.518 File "/tmp/pip-install-vlxkgylh/glean-sdk/glean-core/python/setup.py", line 145, in <module>
#24 2.518 target = get_rustc_info()["host"]
#24 2.518 File "/tmp/pip-install-vlxkgylh/glean-sdk/glean-core/python/setup.py", line 131, in get_rustc_info
#24 2.518 output = subprocess.check_output(["rustc", "--version", "--verbose"])
#24 2.518 File "/usr/lib/python3.7/subprocess.py", line 395, in check_output
#24 2.518 **kwargs).stdout
#24 2.518 File "/usr/lib/python3.7/subprocess.py", line 472, in run
#24 2.518 with Popen(*popenargs, **kwargs) as process:
#24 2.518 File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
#24 2.518 restore_signals, start_new_session)
#24 2.518 File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
#24 2.518 raise child_exception_type(errno_num, err_msg, err_filename)
#24 2.518 FileNotFoundError: [Errno 2] No such file or directory: 'rustc': 'rustc'
#24 2.518
#24 2.518 ----------------------------------------
#24 2.555 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-vlxkgylh/glean-sdk/
------
executor failed running [/bin/sh -c pip3 install MozPhab && echo "export PATH=$VIRTUAL_ENV/bin:/home/phab/phabricator/arcanist/bin:/home/phab/git-cinnabar:/home/phab/review:/home/phab/.local/bin:\$PATH" >> .bashrc]: exit code: 1
ERROR: Service 'local-dev' failed to build
glean-sdk==36.0.0 does have a cp36-abi3-manylinux2014_x86_64 wheel though, I don't know why it isn't getting picked up 🤔
| Assignee | ||
Comment 1•4 years ago
|
||
Oh, our local-dev docker image uses pip3==18.1, but manylinux2014-parsing support is only viable for pip >=19.3.
| Assignee | ||
Comment 2•4 years ago
|
||
Assignee: nobody → mhentges
| Assignee | ||
Updated•4 years ago
|
Status: NEW → ASSIGNED
Updated•4 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•