Order of Tests in tox.ini Causes Failure

Bug #1415446 reported by Terry Howe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python Jenkins
Fix Released
Undecided
Unassigned
python-neutronclient
Fix Released
Undecided
Terry Howe

Bug Description

Order of tests in tox.ini causes a failure because of an incompatibility in the test repository. If py27 or py26 tests are run before py33 or py34, the py3 tests fail.

Changed in python-neutronclient:
assignee: nobody → Terry Howe (thowe-g)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-neutronclient (master)

Reviewed: https://review.openstack.org/143657
Committed: https://git.openstack.org/cgit/openstack/python-neutronclient/commit/?id=6f7cd146726391c5fe37d2e64ea57469319f455a
Submitter: Jenkins
Branch: master

commit 6f7cd146726391c5fe37d2e64ea57469319f455a
Author: Terry Howe <email address hidden>
Date: Tue Dec 23 05:09:42 2014 -0700

    Reverse order of tests to avoid incompatibility

    If py26 tests are run first, there is a incompatibility in the
    .testrepository that breaks several tests. To get around this, you
    need to run the py33 tests first. This change was made over in the
    cliff project.

    Before:

        (.venv)terry@brat:~/hp/ncli$ rm -rf .testrepository/
        (.venv)terry@brat:~/hp/ncli$ tox
          ...
          py26: commands succeeded
          py27: commands succeeded
        ERROR: py33: commands failed
        ERROR: py34: commands failed
        ERROR: pypy: commands failed
          pep8: commands succeeded

    After:

        (.venv)terry@brat:~/hp/ncli$ rm -rf .testrepository/
        (.venv)terry@brat:~/hp/ncli$ tox
          ...
          py33: commands succeeded
          py34: commands succeeded
          py26: commands succeeded
          py27: commands succeeded
          pypy: commands succeeded
          pep8: commands succeeded
          congratulations :)
        (.venv)terry@brat:~/hp/ncli$

    Closes-Bug: 1415446

    Change-Id: Ia0b44cc4a05dd1c668204d8d4dce5381d35373fe

Changed in python-neutronclient:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in python-neutronclient:
milestone: none → 2.3.11
status: Fix Committed → Fix Released
Revision history for this message
Antoine "hashar" Musso (hashar) wrote :

For later reference, that affected python-jenkins as well. Solved by changing the envlist order https://review.openstack.org/223306

Changed in python-jenkins:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.