Lock python dependencies version's to avoid bot breakages
| Bugzilla Link | 28347 |
| Resolution | FIXED |
| Resolved on | Jun 29, 2016 13:42 |
| Version | unspecified |
| OS | All |
| CC | @rengolin |
Extended Description
Whenever the default version of a package in our dependencies changes, the bots break because they keep an offline copy of the software dependencies that also needs to be updated. Further, these new versions introduce bugs, like we saw with the Flask version change from 0.10.1 to 0.11.
I think we should hard code our versions, and update as needed.
My current list of working dependencies is:
Flask==0.10.1 Flask-RESTful==0.3.4 Jinja2==2.7.2 MarkupSafe==0.23 PyYAML==3.11 SQLAlchemy==0.9.4 Werkzeug==0.9.4 aniso8601==1.0.0 argparse==1.3.0 itsdangerous==0.24 progressbar==2.3 psycopg2==2.5.3 python-dateutil==1.5 python-gnupg==0.3.7 pytz==2015.4 requests==2.3.0 six==1.9.0 wsgiref==0.1.2 WTForms==2.0.2 Flask-WTF==0.12
Yup, thanks! :)
Alright, this might not have been responsible for Renato's issues, but I still think it is the better way to keep the dependencies. I'm calling this done.
I think most of the old versions are kept. At least a lot of them. Hopefully if we refresh often enough, we would not run into that problem.
Oh, the problem was a new dependency of a new package, that didn't work. Right!
Indeed, forcing deps to a single release would fix the problem original problem.
But I don't think that's what happened to me this time:
http://lab.llvm.org:8011/builders/clang-cmake-aarch64-quick/builds/8218
Searching for aniso8601>=0.82 Reading https://pypi.python.org/simple/aniso8601/ Download error on https://pypi.python.org/simple/aniso8601/: [Errno 107] Transport endpoint is not connected -- Some packages may not be found! Couldn't find index page for 'aniso8601' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.python.org/simple/ No local packages or download links found for aniso8601>=0.82 error: Could not find suitable distribution for Requirement.parse('aniso8601>=0.82')
Whereas build 8219 passed without changes...
http://lab.llvm.org:8011/builders/clang-cmake-aarch64-quick/builds/8219
I committed r274063.
It changes us to use explicit versions. It also separates a client and server version, so you can install fewer dependencies if you don't need a real web stack.
Wouldn't locking them break as soon as the repository deletes old versions that we require? Can we do something like:
0.10 <= Flask <= 0.30
so that, we originally start with:
0.10 <= Flask
and then when 0.31 breaks, we change to:
0.10 <= Flask <= 0.30
Would that be possible?
I think most of the old versions are kept. At least a lot of them. Hopefully if we refresh often enough, we would not run into that problem.
Wouldn't locking them break as soon as the repository deletes old versions that we require? Can we do something like:
0.10 <= Flask <= 0.30
so that, we originally start with:
0.10 <= Flask
and then when 0.31 breaks, we change to:
0.10 <= Flask <= 0.30
Would that be possible?
assigned to @cmatthew