Xqt has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/349788 )
Change subject: Allow builds to retry twice
......................................................................
Allow builds to retry twice
This should reduce TimeoutError failures
Bug: T163635
Change-Id: I56e441e2d9838cb214ea950516a57b245e7ca84b
---
M tests/__init__.py
1 file changed, 4 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/88/349788/1
diff --git a/tests/__init__.py b/tests/__init__.py
index 9b5de60..dc3917c 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Package tests."""
#
-# (C) Pywikibot team, 2007-2015
+# (C) Pywikibot team, 2007-2017
#
# Distributed under the terms of the MIT license.
#
@@ -253,13 +253,11 @@
# Travis-CI builds are set to retry twice, which aims to reduce the number
# of 'red' builds caused by intermittant server problems, while also avoiding
# the builds taking a long time due to retries.
-# The following allows builds to retry twice, but higher default values are
-# overridden here to restrict retries to only 1, so developer builds fail more
-# frequently in code paths resulting from mishandled server problems.
+# The following allows builds to retry twice but not higher.
if config.max_retries > 2:
if 'PYWIKIBOT_TEST_QUIET' not in os.environ:
- print('tests: max_retries reduced from %d to 1' % config.max_retries)
- config.max_retries = 1
+ print('tests: max_retries reduced from %d to 2' % config.max_retries)
+ config.max_retries = 2
cache_misses = 0
cache_hits = 0
--
To view, visit https://gerrit.wikimedia.org/r/349788
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I56e441e2d9838cb214ea950516a57b245e7ca84b
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits