Run pip v9's new 'pip check' feature during the test run

RESOLVED FIXED

Status

P3
normal
RESOLVED FIXED
2 years ago
a year ago

People

(Reporter: emorley, Assigned: emorley)

Tracking

Details

Attachments

(1 attachment)

(Assignee)

Description

2 years ago
The just released pip v9 includes a new `pip check` feature, which ensures there are no incompatibilities in the currently installed Python packages.

This would have caught the issue in bug 1312096, so we should enable it on Travis/runtests.sh.
(Assignee)

Comment 1

2 years ago
This would have also saved an hour of debugging whilst working on bug 1324707.

(Turns out djangorestframework-filters had pinned to a less-than-latest version of django-filter, but this wasn't apparent after having updated requirements/common.txt by hand, resulting in obscure exceptions).
Created attachment 8890274 [details] [review]
[treeherder] mozilla:pip-check > mozilla:master
(Assignee)

Updated

a year ago
Attachment #8890274 - Flags: review?(cdawson)
Attachment #8890274 - Flags: review?(cdawson) → review+

Comment 3

a year ago
Commit pushed to master at https://github.com/mozilla/treeherder

https://github.com/mozilla/treeherder/commit/270b2b25c1df10435fbb26ebc550601db9f902bb
Bug 1317275 - Run pip check on Travis

Verifies installed packages have compatible dependencies, to help
prevent issues like bug 1324707. This will reduce the time taken to
review pyup bot PRs.

Example output if errors found:
```
Running pip check
celery 3.1.25 has requirement kombu<3.1,>=3.0.37, but you have kombu 4.1.0.
```
(Assignee)

Updated

a year ago
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.