Page MenuHomePhabricator

Test duration
Closed, ResolvedPublic

Description

The following tests take longer than 10s on travis-ci for the enwp py2.7 build

testQueryApiGetter (tests.wikidataquery_tests.TestApiSlowFunctions) ... 10.522s ok
...
testLinkMethods (tests.site_tests.TestSiteObject)
Test site methods for getting links to and from a page ... Retrieving 5 pages from wikipedia:en.
344.035s ok
...
testWebCiteOlder (tests.weblib_tests.TestArchiveSites) ... 16.051s ok
...
testLinks (tests.page_tests.TestPageObject) ... 15.409s ok
...

https://travis-ci.org/wikimedia/pywikibot-core/jobs/30944822

testLinkMethods is the worst, and many parts of it do not depend on the initialisation at the beginning of the method.


Version: core-(2.0)
Severity: major

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:40 AM
bzimport added a project: Pywikibot-tests.
bzimport set Reference to bz68671.
bzimport added a subscriber: Unknown Object (????).

Change 160192 had a related patch set uploaded by John Vandenberg:
Disable very slow tests

https://gerrit.wikimedia.org/r/160192

https://travis-ci.org/wikimedia/pywikibot-core/jobs/40468767 - ar.wikipedia

testLinkMethods (tests.site_tests.TestSiteObject)
Test site methods for getting links to and from a page. ... Sleeping for 120.0 seconds, 2014-11-09 17:05:51
No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.
The build has been terminated

All tests which use statically configured sites (aka family/code set or sites) only need to be run once. Maybe we can set a environment variable which doesn't execute such tests.

In fact there are also tests which don't need a site at all. Those together with the static sites could run the tests only once per version.

Another locked up build, this time in ..

testLinks (tests.page_tests.TestPageObject) ...
No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.
The build has been terminated

https://travis-ci.org/wikimedia/pywikibot-core/jobs/42813049

Change 178070 had a related patch set uploaded (by John Vandenberg):
Run only site tests on fr.wikt and test.wd

https://gerrit.wikimedia.org/r/178070

Patch-For-Review

Change 178070 merged by jenkins-bot:
Run only site tests on fr.wikt and test.wd

https://gerrit.wikimedia.org/r/178070

jayvdb claimed this task.

No benefit keeping this open. Can re-raise new specific tasks for any problems with test duration.

Danny_B renamed this task from test duration [tracking] to Test duration.Jul 20 2016, 12:59 AM