go test github.com/juju/juju/state takes > 10 minutes to run

Dimiter Naydenov dimiter.naydenov at canonical.com
Sat May 21 09:33:36 UTC 2016


Thanks Roger, I'll give your tool a try for sure!

>  localServerSuite.TestStopInstanceSecurityGroupNotDeleted 29.152

I've already filed a bug and a tech-debt kanban card for that slow test
in provider/openstack, and it's indeed a low hanging fruit:

https://bugs.launchpad.net/juju-core/+bug/1580626

Cheers,
Dimiter

On 05/20/2016 10:26 PM, roger peppe wrote:
> A bit more info for those interested, I ran all the juju tests through
> that tool:
> 
>     go test -p 1 -v -timeout 60m github.com/juju/juju/... -check.vv
> 2>&1 | timestamp
> 
> and this is what it said:
> 
> total suites 1219
> total test time 49m10.093s
> total suite time 1h18m9.061s
> total setup test 14m27.71s
> total teardown test 1m10.401s
> total setup suite 35.9s
> total teardown suite 28m41.037s
> total fixture overhead 44m55.048s
> longest test 5m1.207s ( serverSuite.TestNewServerDoesNotAccessState)
> setup 276ms teardown 19ms
> overall time 1h18m29.001s
> 
> For the record, it produced just under 750000 lines of output (61MB)
> 
> The top 10 longest tests are these:
> 
>  serverSuite.TestNewServerDoesNotAccessState 301.207
>  StatusHistorySuite.TestPruneStatusHistoryBySize 83.978
>  UniterSuite.TestActionEvents 41.471
>  localServerSuite.TestStopInstanceSecurityGroupNotDeleted 29.152
>  UniterSuite.TestUniterRelations 21.693
>  ShowOutputSuite.TestRun 18.056
>  StatusSuite.TestStatusAllFormats 15.697
>  oplogSuite.TestWithRealOplog 15.503
>  kvmProvisionerSuite.TestContainerStartedAndStopped 15.465
>  lxcProvisionerSuite.TestContainerStartedAndStopped 15.366
> 
> I suspect there's a bunch of low hanging fruit that can
> be picked to speed up the tests.
> 
>   cheers,
>     rog.
> 
> 
> 
> On 17 May 2016 at 03:52, David Cheney <david.cheney at canonical.com> wrote:
>> Testing this package takes 16 minutes on my machine*; it sure didn't
>> use to take this long.
>>
>> What happened ?
>>
>> * yes, you have to raise the _10 minute_ timeout to make this test run.
>>
>> --
>> Juju-dev mailing list
>> Juju-dev at lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju-dev
> 


-- 
Dimiter Naydenov <dimiter.naydenov at canonical.com>
Juju Core Sapphire team <http://juju.ubuntu.com>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20160521/db2ca647/attachment.pgp>


More information about the Juju-dev mailing list