Re: [openstack-dev] Import errors in tests
On Thu, Oct 2, 2014 at 12:47 PM, Dmitry Tantsur wrote: > On 10/02/2014 01:30 PM, Lucas Alvares Gomes wrote: >> >> Hi, >> >> I don't know if it's a known issue, but we have this patch in Ironic >> here https://review.openstack.org/#/c/124610/ and the gate jobs for >> python26 and python27 are failing because of some import error[1] and >> it doesn't show me what is the error exactly, it's important to say >> also that the tests run locally without any problem so I can't >> reproduce the error locally here. > > Did you try with fresh environment? Yes, I even tried spawning a VM with a fresh OS and running the tests there :/ > >> >> Have anyone seem something like that ? > > I have to say that our test toolchain is completely inadequate in case of > import errors, even locally spotting import error involves manually > importing all suspicious modules, because tox just outputs garbage. > Something has to be done with it. > >> >> I will continue to dig into it and see if I can spot something, but I >> thought it would be nice to share it here too cause that's maybe a >> potential gate problem. >> >> [1] >> http://logs.openstack.org/10/124610/14/check/gate-ironic-python27/5c21433/console.html >> >> Cheers, >> Lucas >> >> ___ >> OpenStack-dev mailing list >> OpenStack-dev@lists.openstack.org >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev >> > > > ___ > OpenStack-dev mailing list > OpenStack-dev@lists.openstack.org > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] Import errors in tests
On 10/02/2014 01:30 PM, Lucas Alvares Gomes wrote: Hi, I don't know if it's a known issue, but we have this patch in Ironic here https://review.openstack.org/#/c/124610/ and the gate jobs for python26 and python27 are failing because of some import error[1] and it doesn't show me what is the error exactly, it's important to say also that the tests run locally without any problem so I can't reproduce the error locally here. Did you try with fresh environment? Have anyone seem something like that ? I have to say that our test toolchain is completely inadequate in case of import errors, even locally spotting import error involves manually importing all suspicious modules, because tox just outputs garbage. Something has to be done with it. I will continue to dig into it and see if I can spot something, but I thought it would be nice to share it here too cause that's maybe a potential gate problem. [1] http://logs.openstack.org/10/124610/14/check/gate-ironic-python27/5c21433/console.html Cheers, Lucas ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[openstack-dev] Import errors in tests
Hi, I don't know if it's a known issue, but we have this patch in Ironic here https://review.openstack.org/#/c/124610/ and the gate jobs for python26 and python27 are failing because of some import error[1] and it doesn't show me what is the error exactly, it's important to say also that the tests run locally without any problem so I can't reproduce the error locally here. Have anyone seem something like that ? I will continue to dig into it and see if I can spot something, but I thought it would be nice to share it here too cause that's maybe a potential gate problem. [1] http://logs.openstack.org/10/124610/14/check/gate-ironic-python27/5c21433/console.html Cheers, Lucas ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] Import errors in tests are not reported in python 2.7
> On 06/12/2014 10:32 AM, Thomas Herve wrote: > > Hi all, > > > > I don't know if it's a know issue or not, but I noticed on one of my patch > > (https://review.openstack.org/#/c/99648/) that the 2.7 gate was passing > > whereas the 2.6 is failing because of import errors. It seems to be a > > problem related to the difference in the discover module, so presumably an > > issue in testtools. The problem appears locally when using tox, so it's > > fairly annoying not to be able to trust the test result. > > > > Thanks, > > > > I'm actually really confused by the testr commands that are generated > here - > http://logs.openstack.org/48/99648/2/check/gate-heat-python27/aa8fead/console.html > > vs. what you see in a Nova unit test run. > > Is there some particular wrappers you have kicking off in the unit tests? Hum, not that I know. Our tox.ini does "python setup.py testr --slowest" -- Thomas ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] Import errors in tests are not reported in python 2.7
On 06/12/2014 10:32 AM, Thomas Herve wrote: > Hi all, > > I don't know if it's a know issue or not, but I noticed on one of my patch > (https://review.openstack.org/#/c/99648/) that the 2.7 gate was passing > whereas the 2.6 is failing because of import errors. It seems to be a problem > related to the difference in the discover module, so presumably an issue in > testtools. The problem appears locally when using tox, so it's fairly > annoying not to be able to trust the test result. > > Thanks, > I'm actually really confused by the testr commands that are generated here - http://logs.openstack.org/48/99648/2/check/gate-heat-python27/aa8fead/console.html vs. what you see in a Nova unit test run. Is there some particular wrappers you have kicking off in the unit tests? -Sean -- Sean Dague http://dague.net signature.asc Description: OpenPGP digital signature ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[openstack-dev] Import errors in tests are not reported in python 2.7
Hi all, I don't know if it's a know issue or not, but I noticed on one of my patch (https://review.openstack.org/#/c/99648/) that the 2.7 gate was passing whereas the 2.6 is failing because of import errors. It seems to be a problem related to the difference in the discover module, so presumably an issue in testtools. The problem appears locally when using tox, so it's fairly annoying not to be able to trust the test result. Thanks, -- Thomas ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev