Page MenuHomePhabricator

site_detect_tests.StandardVersionSiteTestCase.test_proofwiki failed with RuntimeError
Closed, ResolvedPublic

Description

https://travis-ci.org/wikimedia/pywikibot-core/jobs/274159151#L5620

======================================================================

ERROR: test_proofwiki (tests.site_detect_tests.StandardVersionSiteTestCase)

Test detection of MediaWiki sites for www.proofwiki.org.

----------------------------------------------------------------------

Traceback (most recent call last):

  File "/home/travis/build/wikimedia/pywikibot-core/tests/site_detect_tests.py", line 60, in test_proofwiki

    self.assertSite('http://www.proofwiki.org/wiki/$1')

  File "/home/travis/build/wikimedia/pywikibot-core/tests/site_detect_tests.py", line 34, in assertSite

    self.assertIsInstance(MWSite(url), MWSite)

  File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/site_detect.py", line 96, in __init__

    raise RuntimeError('Unsupported url: {0}'.format(self.fromurl))

RuntimeError: Unsupported url: https://proofwiki.org/wiki/Main_Page

----------------------------------------------------------------------

Ran 1743 tests in 668.133s

At time of the failure I could confirm that the https://proofwiki.org/wiki/Main_Page URL was returning "502 Bad Gateway" response.

Event Timeline

Change 377282 had a related patch set uploaded (by Dalba; owner: Dalba):
[pywikibot/core@master] site_detect.py: Raise ServerError for 502 response status

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

Dalba renamed this task from site_detect_tests.StandardVersionSiteTestCase.test_proofwiki failed with 502 Bad Gateway to site_detect_tests.StandardVersionSiteTestCase.test_proofwiki failed with RuntimeError.Sep 11 2017, 3:18 PM
Dalba updated the task description. (Show Details)

Change 377282 merged by jenkins-bot:
[pywikibot/core@master] site_detect.py: Raise ServerError for 502 response status

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