Page MenuHomePhabricator

Internet Archive tests failing
Closed, ResolvedPublic

Description

The last two builds have been failing on the Internet Archive tests

https://travis-ci.org/wikimedia/pywikibot-core/builds/46652168
https://travis-ci.org/wikimedia/pywikibot-core/builds/46671213

======================================================================
ERROR: testInternetArchiveNewest (tests.weblib_tests.TestInternetArchive)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/wikimedia/pywikibot-core/tests/weblib_tests.py", line 31, in testInternetArchiveNewest
    archivedversion = weblib.getInternetArchiveURL('https://google.com')
  File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/weblib.py", line 39, in getInternetArchiveURL
    jsontext = http.fetch(uri).content
  File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py", line 365, in fetch
    error_handling_callback(request)
  File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py", line 282, in error_handling_callback
    raise request.data
ResponseNotReady
======================================================================
ERROR: testInternetArchiveOlder (tests.weblib_tests.TestInternetArchive)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/wikimedia/pywikibot-core/tests/weblib_tests.py", line 38, in testInternetArchiveOlder
    archivedversion = weblib.getInternetArchiveURL('https://google.com', '200606')
  File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/weblib.py", line 39, in getInternetArchiveURL
    jsontext = http.fetch(uri).content
  File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py", line 365, in fetch
    error_handling_callback(request)
  File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py", line 282, in error_handling_callback
    raise request.data
ResponseNotReady

Event Timeline

jayvdb raised the priority of this task from to Needs Triage.
jayvdb updated the task description. (Show Details)
jayvdb added projects: Pywikibot-tests, Pywikibot.
jayvdb updated the task description. (Show Details)
jayvdb set Security to None.
jayvdb added subscribers: Aklapper, Unknown Object (MLST), jayvdb.
jayvdb triaged this task as Unbreak Now! priority.Jan 11 2015, 11:54 PM

@jayvdb: This has been "Unbreak now" priority since Jan 11. Is this realistic if noone works on it?

Aklapper lowered the priority of this task from Unbreak Now! to High.Apr 2 2015, 1:13 PM

@jayvdb: This has been "Unbreak now" priority since Jan 11. Is this realistic if noone works on it?

No reply; decreasing priority.

jayvdb lowered the priority of this task from High to Low.Apr 2 2015, 1:24 PM

Sorry I missed that question. Lower priority is OK. This IA problem rears it head occasionally, but we've added test logic to disable these tests if IA is offline, which means this test failure only causes a red build very infrequently.

After the switch from httplib2 to requests, a similar error is occurring with a slightly different error message, but it is likely to be related to the prior problems.

https://travis-ci.org/wikimedia/pywikibot-core/jobs/69519304#L3696

jayvdb claimed this task.

This has effectively been solved by T85001, and related debugging for T104761.