want to know breakdown of test run time by area of development

Bug #5814 reported by Steve Alexander
6
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Francis J. Lacoste

Bug Description

In order to look at making test runs in pqm take less time, I want to see a breakdown of the time taken to run tests for the different areas of development.

For example:

  - launchpad webapp pagetests
  - launchpad webapp system doc tests
  - launchpad webapp other
  - cronscripts
  - trebuchet
  - hct
  - soyuz backend

and so on.

Dafydd Harries (daf)
Changed in launchpad:
status: New → Accepted
Revision history for this message
Stuart Bishop (stub) wrote :

Looks like the existing test runner can log most of the information we are interested in - I'm updating the makefile. Once we have the per test timeings raw data available, we can summarize it.

Changed in launchpad:
assignee: nobody → stub
Revision history for this message
Stuart Bishop (stub) wrote :

I've switched on the Z3 test runners timing mechanism. An initial score is that the main launchpad tests take 9 minutes to run, which indicates that:
a) The Z3 test runners timing mechanism isn't counting setup/teardown time
b) Most of our time is spent doing setup/teardown

As the Z3 functional framework is cached and cannot be torn down, the setup/teardown that is hurting us would be the postgresql fixture and to a lesser extent the librarian.

Revision history for this message
Robert Collins (lifeless) wrote :

I'd already figured that out ;). The thing that I think steve was asking for was a list of the sections of the tests that take the most aggregate time. This could be estimated by multiplying the number of tests in each area by the ratio of uncounted time/total setup - but a better way is to actually get the aggregate time for each of the areas - not the 'in-test-method' time.

Revision history for this message
Stuart Bishop (stub) wrote : Re: [Bug 5814] want to know breakdown of test run time by area of development

Robert Collins wrote:
> Public bug report changed:
> https://launchpad.net/malone/bugs/5814
>
> Comment:
> I'd already figured that out ;). The thing that I think steve was asking
> for was a list of the sections of the tests that take the most aggregate
> time. This could be estimated by multiplying the number of tests in each
> area by the ratio of uncounted time/total setup - but a better way is to
> actually get the aggregate time for each of the areas - not the 'in-
> test-method' time.

Yup. Just reporting where I got to ;)

--
Stuart Bishop <email address hidden> http://www.canonical.com/
Canonical Ltd. http://www.ubuntu.com/

Revision history for this message
Francis J. Lacoste (flacoste) wrote :

Will attempt as part of the testsuite-optimization work.

Changed in launchpad:
assignee: stub → flacoste
Revision history for this message
Francis J. Lacoste (flacoste) wrote :

Steve, is the current "Tests and runtime by layer" section of the 'PQM test report' satisfies your need?

Revision history for this message
Francis J. Lacoste (flacoste) wrote :

After discussion with Steve, it would be beneficial to track the time spent tests with external dependencies like Soyuz or the libraries we use for bzr imports like cscvs.

It might be possible to group those tests in a new layer. Otherwise, probably define a test tag system.

I'll see if grouping these tests using a layer is possible, otherwise, I'll open a new bug about the 'tag' proposal.

Changed in launchpad:
milestone: 1.1.10 → 1.1.11
Changed in launchpad:
milestone: 1.1.11 → none
Jonathan Lange (jml)
tags: added: build-infrastructure
Jonathan Lange (jml)
tags: removed: test-system
Revision history for this message
Francis J. Lacoste (flacoste) wrote :

I claim that the current report by layer is good enough. And if it ain't, we should file a more specific bug about what is needed.

Changed in launchpad:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.