https://bugzilla.wikimedia.org/show_bug.cgi?id=68671
Bug ID: 68671 Summary: test duration [tracking] Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: major Priority: Unprioritized Component: tests Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
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.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68671
--- Comment #1 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 160192 had a related patch set uploaded by John Vandenberg: Disable very slow tests
https://gerrit.wikimedia.org/r/160192
https://bugzilla.wikimedia.org/show_bug.cgi?id=68671
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=68671
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |NEW
--- Comment #2 from John Mark Vandenberg jayvdb@gmail.com --- still need to fix the tests
https://bugzilla.wikimedia.org/show_bug.cgi?id=68671
--- Comment #3 from John Mark Vandenberg jayvdb@gmail.com --- https://travis-ci.org/wikimedia/pywikibot-core/jobs/40468767
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
https://bugzilla.wikimedia.org/show_bug.cgi?id=68671
Fabian CommodoreFabianus@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |CommodoreFabianus@gmx.de
--- Comment #4 from Fabian CommodoreFabianus@gmx.de --- 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.
pywikipedia-bugs@lists.wikimedia.org