Run nailgun tests in parallel in CI

Bug #1388751 reported by Aleksey Kasatkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Igor Belikov

Bug Description

Now we have ability to run nailgun tests in parallel but this ability is not in use within our CI.
We need to run these tests in parallel as it is the longest part of tests that is executed for fuel-web requests in CI.

Changed in fuel:
assignee: nobody → Fuel OSCI Team (fuel-osci)
Roman Vyalov (r0mikiam)
Changed in fuel:
assignee: Fuel OSCI Team (fuel-osci) → Fuel QA Team (fuel-qa)
Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Fuel DevOps (fuel-devops)
Revision history for this message
Dima Shulyak (dshulyak) wrote :

Please check this patch for information on how to configure fuel-web/run_tests.sh to work in isolated environments.
https://review.openstack.org/#/c/104535/

Changed in fuel:
status: New → Triaged
Changed in fuel:
assignee: Fuel DevOps (fuel-devops) → Dima Shulyak (dshulyak)
status: Triaged → In Progress
Dima Shulyak (dshulyak)
Changed in fuel:
assignee: Dima Shulyak (dshulyak) → Fuel DevOps (fuel-devops)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/133257
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=6b01a6c7d2f1c2f76b5f3164d95680d8fa5e0303
Submitter: Jenkins
Branch: master

commit 6b01a6c7d2f1c2f76b5f3164d95680d8fa5e0303
Author: Dima Shulyak <email address hidden>
Date: Fri Nov 7 17:01:18 2014 +0200

    Parallel test execution with py.test

    Patch adds ability to execute test run distributed over
    several processes, each one with isolated database.

    Assumptions:
    - nailgun user, requires createdb permission, if not please precreate
      databases in format described below
    - postgres database will be used for initial connection
    - for environment where createdb can not be granted, like ci
      operator need to create several databases, nailgun[0-7],
      count of databases should be equal to TEST_WORKERS variable
    - If no TEST_WORKERS provided - default database name will be used,
      it is almost every time nailgun, but you can overwrite it with
      TEST_NAILGUN_DB env variable

    To execute tests on your local environment:
      py.test -n 4 nailgun/tests/

    DocImpact
    Partial-Bug: 1388751
    Change-Id: I6037108f1888b61f971a10db5209b20712467173

Igor Belikov (ibelikov)
Changed in fuel:
assignee: Fuel DevOps (fuel-devops) → Igor Belikov (ibelikov)
Revision history for this message
Igor Belikov (ibelikov) wrote :

Test are running using 4 threads for a couple of days now.

Changed in fuel:
status: In Progress → 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.