Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, Cosine02, Aklapper.

TASK DESCRIPTION

test_purge and test_watch methods of page_tests.TestPageUserAction are failing for wpbeta and wsbeta due to timeout exception

=================================== FAILURES ===================================
________________________ TestPageUserAction.test_purge _________________________

self = <tests.page_tests.TestPageUserAction testMethod=test_purge>

    def test_purge(self):
        """Test purging the mainpage."""
        mainpage = self.get_mainpage()
>       self.assertIsInstance(mainpage.purge(), bool)

tests/page_tests.py:978: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pywikibot/page.py:1408: in purge
    return self.site.purgepages([self], **kwargs)
pywikibot/site.py:1323: in callee
    return fn(self, *args, **kwargs)
pywikibot/site.py:6000: in purgepages
    result = req.submit()
pywikibot/data/api.py:2038: in submit
    if self._internal_api_error(code, error, result):
pywikibot/data/api.py:1921: in _internal_api_error
    self.wait()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = pywikibot.data.api.Request<wpbeta:zh->'/w/api.php?action=""

    def wait(self):
        """Determine how long to wait after a failed request."""
        self.max_retries -= 1
        if self.max_retries < 0:
>           raise TimeoutError('Maximum retries attempted without success.')
E           pywikibot.exceptions.TimeoutError: Maximum retries attempted without success.

pywikibot/data/api.py:2089: TimeoutError
------------------------------ Captured log setup ------------------------------
logging.py                 109 VERBOSE  Found 1 wpbeta:zh processes running, including this one.
------------------------------ Captured log call -------------------------------
logging.py                 109 VERBOSE  APISite("zh", "wpbeta").login(False) called when a previous login was in progress.
logging.py                 109 INFO     Sleeping for 9.8 seconds, 2019-02-17 12:16:49
logging.py                 109 WARNING  API error readonly: The wiki is currently in read-only mode.
logging.py                 109 ERROR    Detected MediaWiki API exception internal_api_error_readonly: The wiki is currently in read-only mode. [readonlyreason:The database has been automatically locked while the replica database servers catch up to the master.; *:See https://zh.wikipedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.; servedby:deployment-mediawiki-09]; retrying
logging.py                 109 VERBOSE  MediaWiki exception readonly details:
          query=
("{'action': ['purge'], 'titles': [Page('首页')], 'assert': ['user'], 'maxlag': "
 "['5'], 'format': ['json']}")
          response=
{'error': {'code': 'readonly', 'info': 'The wiki is currently in read-only mode.', 'readonlyreason': 'The database has been automatically locked while the replica database servers catch up to the master.', 'help': 'See https://zh.wikipedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.'}, 'servedby': 'deployment-mediawiki-09'}
logging.py                 109 WARNING  Waiting 5 seconds before retrying.
logging.py                 109 INFO     Sleeping for 4.9 seconds, 2019-02-17 12:17:04
logging.py                 109 WARNING  API error readonly: The wiki is currently in read-only mode.
logging.py                 109 ERROR    Detected MediaWiki API exception internal_api_error_readonly: The wiki is currently in read-only mode. [readonlyreason:The database has been automatically locked while the replica database servers catch up to the master.; *:See https://zh.wikipedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.; servedby:deployment-mediawiki-09]; retrying
logging.py                 109 VERBOSE  MediaWiki exception readonly details:
          query=
("{'action': ['purge'], 'titles': [Page('首页')], 'assert': ['user'], 'maxlag': "
 "['5'], 'format': ['json']}")
          response=
{'error': {'code': 'readonly', 'info': 'The wiki is currently in read-only mode.', 'readonlyreason': 'The database has been automatically locked while the replica database servers catch up to the master.', 'help': 'See https://zh.wikipedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.'}, 'servedby': 'deployment-mediawiki-09'}
logging.py                 109 WARNING  Waiting 10 seconds before retrying.
logging.py                 109 WARNING  API error readonly: The wiki is currently in read-only mode.
logging.py                 109 ERROR    Detected MediaWiki API exception internal_api_error_readonly: The wiki is currently in read-only mode. [readonlyreason:The database has been automatically locked while the replica database servers catch up to the master.; *:See https://zh.wikipedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.; servedby:deployment-mediawiki-09]; retrying
logging.py                 109 VERBOSE  MediaWiki exception readonly details:
          query=
("{'action': ['purge'], 'titles': [Page('首页')], 'assert': ['user'], 'maxlag': "
 "['5'], 'format': ['json']}")
          response=
{'error': {'code': 'readonly', 'info': 'The wiki is currently in read-only mode.', 'readonlyreason': 'The database has been automatically locked while the replica database servers catch up to the master.', 'help': 'See https://zh.wikipedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.'}, 'servedby': 'deployment-mediawiki-09'}
________________________ TestPageUserAction.test_watch _________________________

self = <tests.page_tests.TestPageUserAction testMethod=test_watch>

    def test_watch(self):
        """Test Page.watch, with and without unwatch enabled."""
        # Note: this test uses the userpage, so that it is unwatched and
        # therefore is not listed by script_tests test_watchlist_simulate.
        userpage = self.get_userpage()
>       rv = userpage.watch()

tests/page_tests.py:987: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pywikibot/page.py:1390: in watch
    return self.site.watch(self, unwatch)
pywikibot/site.py:1323: in callee
    return fn(self, *args, **kwargs)
pywikibot/site.py:5940: in watch
    results = req.submit()
pywikibot/data/api.py:2038: in submit
    if self._internal_api_error(code, error, result):
pywikibot/data/api.py:1921: in _internal_api_error
    self.wait()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = pywikibot.data.api.Request<wpbeta:zh->'/w/api.php?action=""

    def wait(self):
        """Determine how long to wait after a failed request."""
        self.max_retries -= 1
        if self.max_retries < 0:
>           raise TimeoutError('Maximum retries attempted without success.')
E           pywikibot.exceptions.TimeoutError: Maximum retries attempted without success.

pywikibot/data/api.py:2089: TimeoutError
------------------------------ Captured log call -------------------------------
logging.py                 109 INFO     Sleeping for 8.8 seconds, 2019-02-17 12:17:20
logging.py                 109 WARNING  API error readonly: The wiki is currently in read-only mode.
logging.py                 109 ERROR    Detected MediaWiki API exception internal_api_error_readonly: The wiki is currently in read-only mode. [readonlyreason:The database has been automatically locked while the replica database servers catch up to the master.; *:See https://zh.wikipedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.; servedby:deployment-mediawiki-09]; retrying
logging.py                 109 VERBOSE  MediaWiki exception readonly details:
          query=
("{'action': ['watch'], 'token': "
 "['24880d5171ef7a5843f5abca3938c1305c6950d0+\\\\'], 'unwatch': [False], "
 "'titles': [User('User:Pywikibot-oauth')], 'assert': ['user'], 'maxlag': "
 "['5'], 'format': ['json']}")
          response=
{'error': {'code': 'readonly', 'info': 'The wiki is currently in read-only mode.', 'readonlyreason': 'The database has been automatically locked while the replica database servers catch up to the master.', 'help': 'See https://zh.wikipedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.'}, 'servedby': 'deployment-mediawiki-09'}
logging.py                 109 WARNING  Waiting 5 seconds before retrying.
logging.py                 109 INFO     Sleeping for 4.9 seconds, 2019-02-17 12:17:34
logging.py                 109 WARNING  API error readonly: The wiki is currently in read-only mode.
logging.py                 109 ERROR    Detected MediaWiki API exception internal_api_error_readonly: The wiki is currently in read-only mode. [readonlyreason:The database has been automatically locked while the replica database servers catch up to the master.; *:See https://zh.wikipedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.; servedby:deployment-mediawiki-09]; retrying
logging.py                 109 VERBOSE  MediaWiki exception readonly details:
          query=
("{'action': ['watch'], 'token': "
 "['24880d5171ef7a5843f5abca3938c1305c6950d0+\\\\'], 'unwatch': [False], "
 "'titles': [User('User:Pywikibot-oauth')], 'assert': ['user'], 'maxlag': "
 "['5'], 'format': ['json']}")
          response=
{'error': {'code': 'readonly', 'info': 'The wiki is currently in read-only mode.', 'readonlyreason': 'The database has been automatically locked while the replica database servers catch up to the master.', 'help': 'See https://zh.wikipedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.'}, 'servedby': 'deployment-mediawiki-09'}
logging.py                 109 WARNING  Waiting 10 seconds before retrying.
logging.py                 109 WARNING  API error readonly: The wiki is currently in read-only mode.
logging.py                 109 ERROR    Detected MediaWiki API exception internal_api_error_readonly: The wiki is currently in read-only mode. [readonlyreason:The database has been automatically locked while the replica database servers catch up to the master.; *:See https://zh.wikipedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.; servedby:deployment-mediawiki-09]; retrying
logging.py                 109 VERBOSE  MediaWiki exception readonly details:
          query=
("{'action': ['watch'], 'token': "
 "['24880d5171ef7a5843f5abca3938c1305c6950d0+\\\\'], 'unwatch': [False], "
 "'titles': [User('User:Pywikibot-oauth')], 'assert': ['user'], 'maxlag': "
 "['5'], 'format': ['json']}")
          response=
{'error': {'code': 'readonly', 'info': 'The wiki is currently in read-only mode.', 'readonlyreason': 'The database has been automatically locked while the replica database servers catch up to the master.', 'help': 'See https://zh.wikipedia.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.'}, 'servedby': 'deployment-mediawiki-09'}

https://api.travis-ci.org/v3/job/494473839/log.txt


TASK DETAIL
https://phabricator.wikimedia.org/T216358

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Aklapper, Mpaa, Cosine02, Dalba, Xqt, pywikibot-bugs-list, Wenyi, Mahveotm, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to