Functional tests spend too much time creating the DB
Bug #1172475 reported by
John Bresnahan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Undecided
|
John Bresnahan |
Bug Description
Every functional test in glance that creates a registry service and/or a api service also creates a fresh sqlite db by forking out a call to glance-manage db_sync. This is expensive now, and will only get more expensive, because db_sync must walk every migration.
We should change that a clean db is only created once and then cached. A copy of the cache could then be used for each test. An initial proof of concept shows that this could speed up tests by 3x
Changed in glance: | |
assignee: | nobody → John Bresnahan (jbresnah) |
Changed in glance: | |
milestone: | none → havana-1 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | havana-1 → 2013.2 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/27450
Review: https:/