Page MenuHomePhabricator

test_wikia tests of site_tests.TestSingleCodeFamilySite are failing
Closed, ResolvedPublic

Description

Wikia has been moved to fandom domain. Rename family file.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:\pwb\GIT\core>pwb site_tests -v TestSingleCodeFamilySite
tests: max_retries reduced from 15 to 1
test_omega (__main__.TestSingleCodeFamilySite)
Test www.omegawiki.org. ... ok
test_wikia (__main__.TestSingleCodeFamilySite)
Test www.wikia.com. ... WARNING: Non-JSON response received from server wikia:wi
kia; the server may be down.
WARNING: Waiting 5 seconds before retrying.
WARNING: Non-JSON response received from server wikia:wikia; the server may be d
own.
ERROR

======================================================================
ERROR: test_wikia (__main__.TestSingleCodeFamilySite)
Test www.wikia.com.
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\tests\site_tests.py", line 3466, in test_wikia
    self.assertIsInstance(site.namespaces, Mapping)
  File "C:\pwb\GIT\core\pywikibot\site.py", line 1020, in namespaces
    self._namespaces = NamespacesDict(self._build_namespaces())
  File "C:\pwb\GIT\core\pywikibot\site.py", line 2640, in _build_namespaces
    for nsdata in self.siteinfo.get('namespaces', cache=False).values():
  File "C:\pwb\GIT\core\pywikibot\site.py", line 1670, in get
    preloaded = self._get_general(key, expiry)
  File "C:\pwb\GIT\core\pywikibot\site.py", line 1616, in _get_general
    default_info = self._get_siteinfo(props, expiry)
  File "C:\pwb\GIT\core\pywikibot\site.py", line 1539, in _get_siteinfo
    data = request.submit()
  File "C:\pwb\GIT\core\pywikibot\data\api.py", line 2234, in submit
    self._data = super(CachedRequest, self).submit()
  File "C:\pwb\GIT\core\pywikibot\data\api.py", line 1989, in submit
    result = self._json_loads(rawdata)
  File "C:\pwb\GIT\core\pywikibot\data\api.py", line 1809, in _json_loads
    self.wait()
  File "C:\pwb\GIT\core\pywikibot\data\api.py", line 2087, in wait
    raise TimeoutError('Maximum retries attempted without success.')
pywikibot.exceptions.TimeoutError: Maximum retries attempted without success.

----------------------------------------------------------------------
Ran 2 tests in 6.784s

FAILED (errors=1)

C:\pwb\GIT\core>

See also T220908

Event Timeline

Xqt triaged this task as Low priority.Apr 14 2019, 6:27 PM

Change 503765 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [families] Move wikia to fandom

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

Xqt renamed this task from Wikia has been moved to fandom domain. Rename family file to test_wikia tests of site_tests.TestSingleCodeFamilySite are failing.Apr 20 2019, 2:19 PM
Xqt updated the task description. (Show Details)
Xqt raised the priority of this task from Low to High.Apr 20 2019, 2:26 PM
Xqt updated the task description. (Show Details)

Seems www.wikia.com which redirects to www.fandom.com is no longer a mediawiki project but a start page. generate_family_file ist not able to create a family file. I didn't found any Main page there.

Change 503765 merged by jenkins-bot:
[pywikibot/core@master] [families] remove wikia family file

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