[openstack-dev] testr and automatic python-subunit installation

Monty Taylor mordred at inaugust.com
Thu Jan 24 04:10:57 UTC 2013



On 01/24/2013 05:10 AM, Clark Boylan wrote:
> On Wed, Jan 23, 2013 at 9:06 AM, Pitucha, Stanislaw Izaak
> <stanislaw.pitucha at hp.com> wrote:
>> Hi all,
>> I was wondering if anyone ran into issues with generating packages after
>> 23'rd Jan. The commit that seems to change the test runner is:
>>
>> 7c5b0989474959a6f10e687871b94ae4a3f62244
>> Use setup.py testr to run testr in run_tests.sh.
>>
>> The main part is:
>> -TESTRTESTS="testr run --parallel $testropts"
>> +TESTRTESTS="python setup.py testr $testropts"
>>
>> As a side effect it seems to break isolated builds (i.e. breaks packaging
>> for me). After the command is run setup.py tries to install python-subunit
>> for some reason even though it's already installed system-wide and there's
>> no version constraint on it in test-requires. I end up with:
>>
>> """
>> Running ` python setup.py testr  --slowest --testr-args=''`
>> Checking .pth file support in .
>> /usr/bin/python -E -c pass
>> Searching for python-subunit
>> Reading http://pypi.python.org/simple/python-subunit/
>> Download error on http://pypi.python.org/simple/python-subunit/: timed out
>> -- Some packages may not be found!
>> """
>>
>> So - do you know how to stop that? I'm running the tests with -N so
>> virtualenv is not involved and I really don't expect setup.py to install
>> anything.
>>
>> Regards,
>> Stanisław Pitucha
>> Cloud Services
>> Hewlett Packard
>>
>>
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
> 
> This change was made so that the run_tests.sh script and tox would run
> the same command to run tests. The "Running `...`" string doesn't
> include "tools/with_venv.sh" which indicates the -N flag is working
> properly. I think this means `python setup.py testr` is trying to
> install python-subunit globally for some reason. Testrepository
> depends on python-subunit, could this be a transitive requirement?
> 
> I have tried to reproduce this error with no luck; however, I do have
> the latest version of testrepository installed out of pypi. Does
> upgrading testrepository to the latest version help? Also, happy to
> help debug this in #openstack-dev or #openstack-infra if real time
> communication will help.

I'd very much like to get to the bottom of this - so please do stop by
and we'll sort it out. I imagine it has to do with a version difference
between what you have installed and what testrepository itself wants
(even though nova doesn't list a version of python-subunit, I believe
testrepository does. Yay for versioning!) Anyway - please drop by the
channel and we'll get you sorted.

Monty



More information about the OpenStack-dev mailing list