Closed Bug 963563 Opened 10 years ago Closed 9 years ago

test_install.py fails to run in some instances- make it more robust

Categories

(Testing :: Talos, defect)

All
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jmaher, Assigned: jmaher)

References

Details

Attachments

(1 file)

      No description provided.
On doing 'python runtests.py':

Cannot find a wheel for setuptools
Cannot find a wheel for pip
Installing setuptools, pip...
  Complete output from command c:\users\vaibhav\app...b\Scripts\python.exe -c "i
mport sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip:
  Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named pip
----------------------------------------
...Installing setuptools, pip...done.

:stderr: Traceback (most recent call last):
  File "c:\users\vaibhav\appdata\local\temp\tmp4acldp.py", line 2332, in <module
>
    main()
  File "c:\users\vaibhav\appdata\local\temp\tmp4acldp.py", line 818, in main
    symlink=options.symlink)
  File "c:\users\vaibhav\appdata\local\temp\tmp4acldp.py", line 986, in create_e
nvironment
    install_wheel(to_install, py_executable, search_dirs)
  File "c:\users\vaibhav\appdata\local\temp\tmp4acldp.py", line 954, in install_
wheel
    'PIP_NO_INDEX': '1'
  File "c:\users\vaibhav\appdata\local\temp\tmp4acldp.py", line 896, in call_sub
process
    % (cmd_desc, proc.returncode))
OSError: Command c:\users\vaibhav\app...b\Scripts\python.exe -c "import sys, pip
; sys...d\"] + sys.argv[1:]))" setuptools pip failed with error code 1

:returncode: 1
FAIL

This happens even though pip and setuptools are installed and are present on Windows path.
a slight chance it might be related to this bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=943240

I get this error on linux:
Installing setuptools, pip...
  Complete output from command /tmp/tmpHGww78/bin/python -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip:
  Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named pip
----------------------------------------
...Installing setuptools, pip...done.

:stderr: Traceback (most recent call last):
  File "/tmp/tmpXTkjJ_.py", line 2332, in <module>
    main()
  File "/tmp/tmpXTkjJ_.py", line 818, in main
    symlink=options.symlink)
  File "/tmp/tmpXTkjJ_.py", line 986, in create_environment
    install_wheel(to_install, py_executable, search_dirs)
  File "/tmp/tmpXTkjJ_.py", line 954, in install_wheel
    'PIP_NO_INDEX': '1'
  File "/tmp/tmpXTkjJ_.py", line 896, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /tmp/tmpHGww78/bin/python -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip failed with error code 1

vaibhav- can you take a look at the patch in bug 943240 and see if it helps you out locally?  Quite possibly there is something similar to that patch we can do to make this work.
Flags: needinfo?(vaibhavmagarwal)
thanks for all the information in this bug, we are much closer.
Assignee: nobody → jmaher
Status: NEW → ASSIGNED
Attachment #8369530 - Flags: review?(dminor)
Flags: needinfo?(vaibhavmagarwal)
Attachment #8369530 - Flags: review?(dminor) → review+
https://hg.mozilla.org/build/talos/rev/dccb97a196fe

we still have issues with windows, I will leave this open until we get those resolved.
Depends on: 968095
This is fixed I think since runtests.py and test_install.py files does not exists anymore (tests are run with "python setup.py test"). Also tests are running fine.

Closing this, please reopen it if I missed something.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: