New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade pip in travis. #2227
Upgrade pip in travis. #2227
Conversation
By analyzing the blame information on this pull request, we identified @djmitche, @stevepeak and @rutsky to be potential reviewers |
- "echo 'travis_fold:start:codecov'; pip install codecov; echo 'travis_fold:end:codecov'" | ||
- "echo 'travis_fold:start:tw'; [ $TWISTED = latest ] || pip install Twisted==$TWISTED; echo 'travis_fold:end:tw'" | ||
- "echo 'travis_fold:start:sa'; [ $SQLALCHEMY = latest ] || pip install sqlalchemy==$SQLALCHEMY; echo 'travis_fold:end:sa'" | ||
- pip install codecov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Travis automatically folds individual install steps, so folding again inside the step is a waste (and just makes seeing the contents of the fold more annoying).
4fc6827
to
b917e97
Compare
Note that because of how cache inheritance works, this will probably only show a benefit after a build of this on master. |
Nice side effect: after removing folding we see that there were actually an error: https://travis-ci.org/buildbot/buildbot/jobs/129764461#L334 We need to add |
Output will be collapsed for the same reason as in PR #2227. Previously if some of testing steps failed `pip list` command is not issued at all.
Updated to (hopefully) fix the build. |
@@ -77,20 +77,22 @@ matrix: | |||
fast_finish: true | |||
include: | |||
# Tests of buildbot-worker and buildbot-slave on python 2.6 | |||
# Specify SQLALCHEMY=latest to avoid errors installling. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a typo: "installling"
11786c9
to
5338e07
Compare
Starting a Twisted reactor within a Mercurial hook is problematic because a hook can get called multiple times (from the same Mercurial process) which conflicts with the one-time only nature of the Twisted reactor start/stop calls. By moving to HTTP requests the hook is now re-entrant which fixes ReactorNotRestartable exceptions being raised all the time. The requests library is used to make the calls, since it has a functional TLS implementation (unlike urllib/httplib in Python 2).
Starting a Twisted reactor within a Mercurial hook is problematic because a hook can get called multiple times (from the same Mercurial process) which conflicts with the one-time only nature of the Twisted reactor start/stop calls. By moving to HTTP requests the hook is now re-entrant which fixes ReactorNotRestartable exceptions being raised all the time. The requests library is used to make the calls, since it has a functional TLS implementation (unlike urllib/httplib in Python 2). Additionally, the codebase argument is added to the base ChangeHook, so it can properly be used with a codebaseGenerator.
Starting a Twisted reactor within a Mercurial hook is problematic because a hook can get called multiple times (from the same Mercurial process) which conflicts with the one-time only nature of the Twisted reactor start/stop calls. By moving to HTTP requests the hook is now re-entrant which fixes ReactorNotRestartable exceptions being raised all the time. The requests library is used to make the calls, since it has a functional TLS implementation (unlike urllib/httplib in Python 2 until recently). Additionally, the codebase argument is added to the base ChangeHook, so it can properly be used with a codebaseGenerator. Finally, if a venv argument is used, it is now properly used to activate the environment [1]. Possible improvements to this changeset are: - send requests in parallel; - switch back to urllib2 so the hook doesn't depend on anything; - a few more cleanups. [1] https://github.com/pypa/virtualenv/blob/master/virtualenv_embedded/activate_this.py
Starting a Twisted reactor within a Mercurial hook is problematic because a hook can get called multiple times (from the same Mercurial process) which conflicts with the one-time only nature of the Twisted reactor start/stop calls. By moving to HTTP requests the hook is now re-entrant which fixes ReactorNotRestartable exceptions being raised all the time. The requests library is used to make the calls, since it has a functional TLS implementation (unlike urllib/httplib in Python 2 until recently). Additionally, the codebase argument is added to the base ChangeHook, so it can properly be used with a codebaseGenerator. Finally, if a venv argument is used, it is now properly used to activate the environment [1]. Possible improvements to this changeset are: - send requests in parallel; - switch back to urllib2 so the hook doesn't depend on anything; - a few more cleanups. [1] https://github.com/pypa/virtualenv/blob/master/virtualenv_embedded/activate_this.py
Starting a Twisted reactor within a Mercurial hook is problematic because a hook can get called multiple times (from the same Mercurial process) which conflicts with the one-time only nature of the Twisted reactor start/stop calls. By moving to HTTP requests the hook is now re-entrant which fixes ReactorNotRestartable exceptions being raised all the time. The requests library is used to make the calls, since it has a functional TLS implementation (unlike urllib/httplib in Python 2 until recently). Additionally, the codebase argument is added to the base ChangeHook, so it can properly be used with a codebaseGenerator. Finally, if a venv argument is used, it is now properly used to activate the environment [1]. Possible improvements to this changeset are: - send requests in parallel; - switch back to urllib2 so the hook doesn't depend on anything; - a few more cleanups. [1] https://github.com/pypa/virtualenv/blob/master/virtualenv_embedded/activate_this.py
Starting a Twisted reactor within a Mercurial hook is problematic because a hook can get called multiple times (from the same Mercurial process) which conflicts with the one-time only nature of the Twisted reactor start/stop calls. By moving to HTTP requests the hook is now re-entrant which fixes ReactorNotRestartable exceptions being raised all the time. The requests library is used to make the calls, since it has a functional TLS implementation (unlike urllib/httplib in Python 2 until recently). Additionally, the codebase argument is added to the base ChangeHook, so it can properly be used with a codebaseGenerator. Finally, if a venv argument is used, it is now properly used to activate the environment [1]. Possible improvements to this changeset are: - send requests in parallel; - switch back to urllib2 so the hook doesn't depend on anything; - a few more cleanups. [1] https://github.com/pypa/virtualenv/blob/master/virtualenv_embedded/activate_this.py
Move to a ChangeHook in hgbuildbot.py (closes #2227)
Newer pip will cache wheels for installed packages, which should speed up the build.