In some cases our db migration tests which run on MySQL are
failing with timeout and it happens due to slow VMs on which
job is running.
Sometimes it may also happen that timeout exception is raised
in the middle of some sqlalchemy operations and
sqlalchemy.InterfaceError is raised as last one.
Details about this exception can be found in [1].
To avoid many rechecks because of this reason this patch
introduces new decorator which is very similar to "unstable_test"
but will skip test only if one of exceptions mentioned above will
be raised.
In all other cases it will fail test.
That should be a bit more safe for us because we will not miss
some other failures raised in those tests and will avoid rechecks
because of this "well-known" reason described in related bug.
Reviewed: https:/ /review. openstack. org/638121 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=55daaeca3e9 4aab0c27b82e59c 79f182dd3ec1ea
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit 55daaeca3e94aab 0c27b82e59c79f1 82dd3ec1ea
Author: Slawek Kaplonski <email address hidden>
Date: Thu Feb 14 11:08:19 2019 +0100
Add new test decorator skip_if_timeout
In some cases our db migration tests which run on MySQL are InterfaceError is raised as last one.
failing with timeout and it happens due to slow VMs on which
job is running.
Sometimes it may also happen that timeout exception is raised
in the middle of some sqlalchemy operations and
sqlalchemy.
Details about this exception can be found in [1].
To avoid many rechecks because of this reason this patch
introduces new decorator which is very similar to "unstable_test"
but will skip test only if one of exceptions mentioned above will
be raised.
In all other cases it will fail test.
That should be a bit more safe for us because we will not miss
some other failures raised in those tests and will avoid rechecks
because of this "well-known" reason described in related bug.
[1] http:// sqlalche. me/e/rvf5
Conflicts:
neutron/ tests/functiona l/db/test_ migrations. py
neutron/ tests/base. py
Change-Id: Ie291fda7d23a69 6aaa1160d126a3c f72b08c522f 0516cf3d4af0dcc c0fe832095) 0d45d290b185b73 6501e6dd1e)
Related-Bug: #1687027
(cherry picked from commit c0fec676723649a
(cherry picked from commit e6f22ce81c0a113