Merge lp:~wgrant/launchpad/trim-bugtask-search-tests into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | William Grant on 2012-04-19 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 15122 |
| Proposed branch: | lp:~wgrant/launchpad/trim-bugtask-search-tests |
| Merge into: | lp:launchpad |
| Diff against target: |
393 lines (+180/-161) 1 file modified
lib/lp/bugs/tests/test_bugtask_search.py (+180/-161) |
| To merge this branch: | bzr merge lp:~wgrant/launchpad/trim-bugtask-search-tests |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Steve Kowalik (community) | code | 2012-04-19 | Approve on 2012-04-19 |
|
Review via email:
|
|||
Commit Message
Cut test_bugtask_search runtime by >20 minutes without significantly reducing test coverage.
Description of the Change
test_bugtask_search currently multiplies most of its tests across three dimensions: target type (Product, Distribution, etc.), result type (preloaded BugTasks, not preloaded BugTasks, or Bug.id), and implementation (legacy or BugTaskFlat). The last is temporary, but the others are permanent. The tests currently take half an hour to run on modern hardware.
This branch cuts the number of effective tests by nearly 2/3, and most of the eliminated tests are the slow ones (Distribution, DistributionSou

LAND IT! NOW!