Может у нас по ошибке в тестах больше одного скедулера запускается?
Sent from Renat's iPad
> 29 сент. 2015 г., в 17:32, Nikolay Makhotkin <email address hidden> написал(а):
>
> Not only the one test fails. test_scheduler_with_factory,
> test_scheduler_without_factory also fail once in a while. But these
> tests don't assume we have multi instance scheduler. Here is a
> concurrency problem.
>
> ======================================================================
> FAIL: mistral.tests.unit.services.test_scheduler.SchedulerServiceTest.test_scheduler_without_factory
> tags: worker-2
> ----------------------------------------------------------------------
> Empty attachments:
> pythonlogging:''
> stderr
> stdout
>
> Traceback (most recent call last):
> File "/home/kolyan/projects/mistral/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
> return func(*args, **keywargs)
> File "mistral/tests/unit/services/test_scheduler.py", line 119, in test_scheduler_without_factory
> method.assert_called_once_with(name='task', id='321')
> File "/home/kolyan/projects/mistral/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 947, in assert_called_once_with
> raise AssertionError(msg)
> AssertionError: Expected 'factory_method' to be called once. Called 2 times.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1497269
>
> Title:
> test_scheduler_multi_instance fails once in a while
>
> Status in Mistral:
> Incomplete
> Status in Mistral liberty series:
> Incomplete
>
> Bug description:
> http://logs.openstack.org/59/222159/7/gate/gate-mistral-
> python27/6e11234/testr_results.html.gz
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mistral/+bug/1497269/+subscriptions
Может у нас по ошибке в тестах больше одного скедулера запускается?
Sent from Renat's iPad
> 29 сент. 2015 г., в 17:32, Nikolay Makhotkin <email address hidden> написал(а): with_factory, without_ factory also fail once in a while. But these ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.unit. services. test_scheduler. SchedulerServic eTest.test_ scheduler_ without_ factory ------- ------- ------- ------- ------- ------- ------- ------- ------- kolyan/ projects/ mistral/ .tox/py27/ local/lib/ python2. 7/site- packages/ mock/mock. py", line 1305, in patched tests/unit/ services/ test_scheduler. py", line 119, in test_scheduler_ without_ factory assert_ called_ once_with( name='task' , id='321') kolyan/ projects/ mistral/ .tox/py27/ local/lib/ python2. 7/site- packages/ mock/mock. py", line 947, in assert_ called_ once_with /bugs.launchpad .net/bugs/ 1497269 multi_instance fails once in a while logs.openstack. org/59/ 222159/ 7/gate/ gate-mistral- 6e11234/ testr_results. html.gz /bugs.launchpad .net/mistral/ +bug/1497269/ +subscriptions
>
> Not only the one test fails. test_scheduler_
> test_scheduler_
> tests don't assume we have multi instance scheduler. Here is a
> concurrency problem.
>
> =======
> FAIL: mistral.
> tags: worker-2
> -------
> Empty attachments:
> pythonlogging:''
> stderr
> stdout
>
> Traceback (most recent call last):
> File "/home/
> return func(*args, **keywargs)
> File "mistral/
> method.
> File "/home/
> raise AssertionError(msg)
> AssertionError: Expected 'factory_method' to be called once. Called 2 times.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> test_scheduler_
>
> Status in Mistral:
> Incomplete
> Status in Mistral liberty series:
> Incomplete
>
> Bug description:
> http://
> python27/
>
> To manage notifications about this bug go to:
> https:/