Last modified: 2014-11-10 01:53:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70671, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68671 - test duration [tracking]
test duration [tracking]
Status: NEW
Product: Pywikibot
Classification: Unclassified
tests (Other open bugs)
core-(2.0)
All All
: Unprioritized major
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-27 11:37 UTC by John Mark Vandenberg
Modified: 2014-11-10 01:53 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mark Vandenberg 2014-07-27 11:37:45 UTC
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.
Comment 1 Gerrit Notification Bot 2014-09-13 05:21:55 UTC
Change 160192 had a related patch set uploaded by John Vandenberg:
Disable very slow tests

https://gerrit.wikimedia.org/r/160192
Comment 2 John Mark Vandenberg 2014-09-14 14:19:43 UTC
still need to fix the tests
Comment 3 John Mark Vandenberg 2014-11-09 17:27:35 UTC
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
Comment 4 Fabian 2014-11-10 01:53:28 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links