Closed
Bug 1237600
Opened 9 years ago
Closed 9 years ago
Installing firefox-ui-packages from firefox_ui_requirements.txt should not download packages from pypi
Categories
(Release Engineering :: Applications: MozharnessCore, defect)
Release Engineering
Applications: MozharnessCore
Tracking
(firefox45 fixed, firefox46 fixed)
RESOLVED
FIXED
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
Attachments
(2 files)
132.64 KB,
text/plain
|
Details | |
2.87 KB,
patch
|
jlund
:
review+
|
Details | Diff | Splinter Review |
Not sure why this happens but somehow the puppeteer package gets downloaded from pypi / internal mirror while it is present locally:
05:33:15 INFO - Collecting firefox-puppeteer<4.0.0,>=3.1.0 (from firefox-ui-tests==0.3.1->-r /Users/mozauto/jenkins/workspace/mozilla-central_functional/build/tests/config/firefox_ui_requirements.txt (line 3))
05:33:16 INFO - Could not find a version that satisfies the requirement firefox-puppeteer<4.0.0,>=3.1.0 (from firefox-ui-tests==0.3.1->-r /Users/mozauto/jenkins/workspace/mozilla-central_functional/build/tests/config/firefox_ui_requirements.txt (line 3)) (from versions: 3.0.0)
05:33:17 INFO - No matching distribution found for firefox-puppeteer<4.0.0,>=3.1.0 (from firefox-ui-tests==0.3.1->-r /Users/mozauto/jenkins/workspace/mozilla-central_functional/build/tests/config/firefox_ui_requirements.txt (line 3))
Assignee | ||
Comment 1•9 years ago
|
||
For now I filed bug 1237599 to get the new packages mirrored to the internal pypi mirror. That should hopefully stop the bustage.
Assignee | ||
Comment 2•9 years ago
|
||
Here an example build.log from Jenkins.
Assignee | ||
Comment 3•9 years ago
|
||
Ok, so even when I run `pip install -r mozbase_requirements.txt` from within testing/config/ I can see that some mozbase packages are getting downloaded from pypi and NOT installed from in-tree.
Downloading/unpacking mozfile>=1.0 (from mozcrash==0.16->-r mozbase_requirements.txt (line 2))
Getting page https://pypi.python.org/simple/mozfile/
URLs to search for versions for mozfile>=1.0 (from mozcrash==0.16->-r mozbase_requirements.txt (line 2)):
* https://pypi.python.org/simple/mozfile/
Analyzing links from page https://pypi.python.org/simple/mozfile/
[..]
Using version 1.2 (newest of versions: 1.2, 1.1, 1.0)
Downloading mozfile-1.2.tar.gz
Downloading from URL https://pypi.python.org/packages/source/m/mozfile/mozfile-1.2.tar.gz#md5=414e32aa6266fd4c7344fbcea1e6bccc (from https://pypi.python.org/simple/mozfile/)
So I don't think that this a problem for our firefox_ui_requirements.txt but a more general issue.
Andrew or Jonathan, do you know what that happens? Do I miss an option for the pip command? Thing is that also mozharness fails in that step and tries to download a package from the internal mirror. And this is definitely not wanted here.
Flags: needinfo?(jgriffin)
Flags: needinfo?(ahalberstadt)
Assignee | ||
Comment 4•9 years ago
|
||
Just found bug 908356 which originally added this requirements file to the tree. Looks like I miss the two_pass when running pip.
Assignee | ||
Comment 5•9 years ago
|
||
Ok, it's indeed the missing two_pass option in `register_virtualenv_module()` which is causing this behavior. I should have a patch shortly.
Flags: needinfo?(jgriffin)
Flags: needinfo?(ahalberstadt)
Assignee | ||
Comment 6•9 years ago
|
||
With the fix in place I get the following:
23:42:50 INFO - Unpacking /mozilla/code/gecko/testing/mozharness/build/tests/firefox-ui/harness
23:42:50 INFO - Running setup.py (path:/tmp/pip-T61RY2-build/setup.py) egg_info for package from file:///mozilla/code/gecko/testing/mozharness/build/tests/firefox-ui/harness
23:42:50 INFO - Unpacking /mozilla/code/gecko/testing/mozharness/build/tests/firefox-ui/tests
23:42:50 INFO - Running setup.py (path:/tmp/pip-5Fjeab-build/setup.py) egg_info for package from file:///mozilla/code/gecko/testing/mozharness/build/tests/firefox-ui/tests
23:42:50 INFO - Unpacking /mozilla/code/gecko/testing/mozharness/build/tests/puppeteer/firefox
23:42:50 INFO - Running setup.py (path:/tmp/pip-hkGshS-build/setup.py) egg_info for package from file:///mozilla/code/gecko/testing/mozharness/build/tests/puppeteer/firefox
And that looks great!
Assignee | ||
Comment 7•9 years ago
|
||
So this is a mozharness issue -> moving to the appropriate component.
Component: Firefox UI Tests → Mozharness
Product: Testing → Release Engineering
QA Contact: hskupin → jlund
Assignee | ||
Comment 8•9 years ago
|
||
Those changes fix our problem with the unwanted download of packages from pypi or the internal mirror.
Attachment #8705379 -
Flags: review?(jlund)
Assignee | ||
Comment 9•9 years ago
|
||
FYI I removed the "# Optional packages to be installed, e.g. for Jenkins" section because its not in use anymore.
Comment 10•9 years ago
|
||
Comment on attachment 8705379 [details] [diff] [review]
Patch v1
Review of attachment 8705379 [details] [diff] [review]:
-----------------------------------------------------------------
lgtm :)
Attachment #8705379 -
Flags: review?(jlund) → review+
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
bugherder |
Assignee | ||
Comment 13•9 years ago
|
||
Currently we run our tests in mozmill-ci via the mozilla-central version of mozharness. But this might change for the 45ESR branch. I don't want to keep backward-compat code around for more than a year. So lets get the mozharness changes uplifted for 45:
https://hg.mozilla.org/releases/mozilla-aurora/rev/468638b88f3c
status-firefox45:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•