Comment 8 for bug 1501272

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/291397
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=37c6e3179f96c6cd22b357030eee7a4218f3becd
Submitter: Jenkins
Branch: master

commit 37c6e3179f96c6cd22b357030eee7a4218f3becd
Author: Valeriy Ponomaryov <email address hidden>
Date: Thu Mar 10 21:56:31 2016 +0200

    Fix unstable DB migration tests

    Unit test 'test_walk_versions' in
    'manila.tests.db.migrations.alembic.test_migration' module
    takes abnormally very long time sometimes.
    In common cases it takes about 5-10 seconds in CI for Mitaka set of
    DB migrations.
    In CI runs when this test fails, 'postgres' variant takes
    about 47 seconds and mysql reaches common test timeout of 60 seconds.

    Note, that this test becomes slower with each
    addition of new DB migration. Also, 'pymysql' works much slower
    on slow nodes than 'psycopg2'.

    So, add new test decorator that sets individual test timeout.
    And make it be 5 minutes for mentioned test. In worst case of Mitaka
    DB migrations set it can take about 2 minutes, but make it bigger
    to have a margin for future releases.

    Change-Id: I233f96f29fe62231c2e7013b74c06396dd923f27
    Closes-Bug: #1501272