Page MenuHomePhabricator

Tests: handle network problems gracefully
Closed, ResolvedPublic

Description

https://integration.wikimedia.org/ci/job/pywikibot-core-tests/186/consoleFull

Retrying often is probably not the best option for unit tests. This could either be solved by handling the network errors gracefully in some way (and then passing the test?), or by switching tests to run on a local mediawiki (see https://bugzilla.wikimedia.org/56961 )


Version: core-(2.0)
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=66063
https://bugzilla.wikimedia.org/show_bug.cgi?id=70754

Details

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:33 AM
bzimport added a project: Pywikibot-tests.
bzimport set Reference to bz56963.
bzimport added a subscriber: Unknown Object (????).

Change 177985 had a related patch set uploaded (by John Vandenberg):
Skip tests that use a site which is failing

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

Patch-For-Review

Change 177985 merged by jenkins-bot:
Skip tests that use a site which is failing

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

jayvdb claimed this task.

This is basically done. While the test framework doesnt automatically fall back to using a different site (e.g. localhost), many tests are 'default site' tests which means they run against whatever site the developer selects using mylang & family in user-config.py , and that could be a mediawiki on localhost.

Setting up a local mediawiki to run tests against is T58961.