https://bugzilla.wikimedia.org/show_bug.cgi?id=71971
Bug ID: 71971 Summary: site_tests.testImageusage timeout error after maximum retries Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: tests Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
The recent travis builds are regularly failing on site_tests.testImageusage with a timeout error only when run against en.wp. Travis runs this test for each checking against 2.6, 2.7.8 and 3.3.5 at the moment. It doesnt happen every time, and it hasnt happend on 2.6 yet for some reason.
Note this bug is _not_ bug 60214, which is about content & caching assumptions in the test case, which very affect mostly re-runs of the test suite on a warm cache, and only very rarely occur on a cold cache.
Python 2.7.8 log (https://travis-ci.org/wikimedia/pywikibot-core/jobs/37633107)
ERROR: testImageusage (tests.site_tests.TestSiteObject) Test the site.imageusage() method ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/travis/build/wikimedia/pywikibot-core/tests/site_tests.py", line 616, in testImageusage for using in mysite.imageusage(imagepage, filterredir=True, total=5): File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 971, in __iter__ self.data = self.request.submit() File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 764, in submit self._data = super(CachedRequest, self).submit() File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 535, in submit self.wait() File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 648, in wait raise TimeoutError("Maximum retries attempted without success.") TimeoutError: Maximum retries attempted without success.
----
Python 3.3.5 has a two part log (https://travis-ci.org/wikimedia/pywikibot-core/jobs/37633111)
Traceback (most recent call last): File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 517, in submit headers=headers, body=body) File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/tools.py", line 367, in wrapper return method(*__args, **__kw) File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py", line 258, in request raise request.data File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/threadedhttp.py", line 219, in request max_redirects, connection_type File "/home/travis/virtualenv/python3.3.5/lib/python3.3/site-packages/httplib2-0.9_pywikibot1-py3.3.egg/httplib2/__init__.py", line 1292, in request (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey) File "/home/travis/virtualenv/python3.3.5/lib/python3.3/site-packages/httplib2-0.9_pywikibot1-py3.3.egg/httplib2/__init__.py", line 1042, in _request (response, content) = self._conn_request(conn, request_uri, method, body, headers) File "/home/travis/virtualenv/python3.3.5/lib/python3.3/site-packages/httplib2-0.9_pywikibot1-py3.3.egg/httplib2/__init__.py", line 995, in _conn_request response = conn.getresponse() File "/opt/python/3.3.5/lib/python3.3/http/client.py", line 1147, in getresponse response.begin() File "/opt/python/3.3.5/lib/python3.3/http/client.py", line 358, in begin version, status, reason = self._read_status() File "/opt/python/3.3.5/lib/python3.3/http/client.py", line 320, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/opt/python/3.3.5/lib/python3.3/socket.py", line 297, in readinto return self._sock.recv_into(b) File "/opt/python/3.3.5/lib/python3.3/ssl.py", line 493, in recv_into return self.read(nbytes, buffer) File "/opt/python/3.3.5/lib/python3.3/ssl.py", line 367, in read v = self._sslobj.read(len, buffer) socket.timeout: The read operation timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/travis/build/wikimedia/pywikibot-core/tests/site_tests.py", line 616, in testImageusage for using in mysite.imageusage(imagepage, filterredir=True, total=5): File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 971, in __iter__ self.data = self.request.submit() File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 764, in submit self._data = super(CachedRequest, self).submit() File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 535, in submit self.wait() File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 648, in wait raise TimeoutError("Maximum retries attempted without success.") pywikibot.data.api.TimeoutError: Maximum retries attempted without success.
The lowest travis job number i've found with this problem is https://travis-ci.org/wikimedia/pywikibot-core/jobs/37481646