concurrency doesn't work for tests which setup resources in resource_setup

Bug #1659797 reported by Vasyl Saienko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Expired
Undecided
Unassigned

Bug Description

resource_setup() is class method and it is called when tempest is initializing tests. As result --concurrency doesn't take affect.
It is not possible to control concurrency of resources that initiated in resource_setup()

Vasyl Saienko (vsaienko)
description: updated
Revision history for this message
Jordan Pittier (jordan-pittier) wrote :

What are you suggesting ? :) Have you opened this bug report for information or are you expecting a fix ?

Revision history for this message
Vasyl Saienko (vsaienko) wrote :

The way resource_setup realized in tempest doesn't allow to scale it.

I would love to see that tempest uses OptimisingTestSuite from testresources https://pypi.python.org/pypi/testresources

Some working examples may be found here: https://github.com/openstack/oslo.db/blob/master/oslo_db/sqlalchemy/test_fixtures.py#L553-L626

Revision history for this message
Jordan Pittier (jordan-pittier) wrote :

Yeah, that looks interesting. Thanks for the pointer.

I am not sure, Tempest should "scale". What does that mean ? If you are talking about overall runtime , then we should measure how much time in spent in resource_setup() vs in actual test code. I don"t want us to start optimizing the wrong part here.

Revision history for this message
chandan kumar (chkumar246) wrote :

@vsaienko, Please add some more pointers regarding what does Tempest should "scale" means, so that we can work together to get it done.
@Jordon, setting the flag incomplete in order to get more info from the reporter.

Changed in tempest:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for tempest because there has been no activity for 60 days.]

Changed in tempest:
status: Incomplete → Expired
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.