https://bugzilla.wikimedia.org/show_bug.cgi?id=72209

            Bug ID: 72209
           Summary: testExturlusage takes forever on test.wikipedia
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: tests
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

testExturlusage uses:

    for link in mysite.exturlusage('www.google.com', namespaces=[2, 3],
total=5)

This returns quickly on test.wikidata , as there is very little data that
matches

https://test.wikidata.org/w/index.php?title=Special%3ALinkSearch&target=http%3A%2F%2Fwww.google.com

All of the other travis build platforms also provide the five records requested
in a reasonable period of time.

While test.wikipedia has a lot of data that matches:

https://test.wikipedia.org/w/index.php?title=Special%3ALinkSearch&target=http%3A%2F%2Fwww.google.com

PageGenerator on test.wikipedia yields four results after a few API calls,
however after the fourth result it has backed off to requesting data with a
geulimit of 1, resulting in the following data request/results sequence:

{'inprop': [u'protection'], 'geuprotocol': [u'http'], 'iiprop': [u'timestamp',
u'user', u'comment', u'url', u'size', u'sha1', u'metadata'], 'maxlag': ['5'],
u'geuoffset': [u'20'], 'generator': [u'exturlusage'], 'format': ['json'],
'prop': [u'info', u'imageinfo', u'categoryinfo'], 'meta': ['userinfo'],
'indexpageids': [u''], u'geulimit': [u'1'], 'action': [u'query'],
u'geunamespace': [u'2', u'3'], 'geuquery': [u'www.google.com'], 'uiprop':
['blockinfo', 'hasmsg']}
{u'query-continue': {u'exturlusage': {u'geuoffset': 21}}, u'query':
{u'userinfo': {u'messages': u'', u'id': 25377, u'name': u'JVbot'}}}

{'inprop': [u'protection'], 'geuprotocol': [u'http'], 'iiprop': [u'timestamp',
u'user', u'comment', u'url', u'size', u'sha1', u'metadata'], 'maxlag': ['5'],
u'geuoffset': [u'21'], 'generator': [u'exturlusage'], 'format': ['json'],
'prop': [u'info', u'imageinfo', u'categoryinfo'], 'meta': ['userinfo'],
'indexpageids': [u''], u'geulimit': [u'1'], 'action': [u'query'],
u'geunamespace': [u'2', u'3'], 'geuquery': [u'www.google.com'], 'uiprop':
['blockinfo', 'hasmsg']}
{u'query-continue': {u'exturlusage': {u'geuoffset': 22}}, u'query':
{u'userinfo': {u'messages': u'', u'id': 25377, u'name': u'JVbot'}}}

{'inprop': [u'protection'], 'geuprotocol': [u'http'], 'iiprop': [u'timestamp',
u'user', u'comment', u'url', u'size', u'sha1', u'metadata'], 'maxlag': ['5'],
u'geuoffset': [u'22'], 'generator': [u'exturlusage'], 'format': ['json'],
'prop': [u'info', u'imageinfo', u'categoryinfo'], 'meta': ['userinfo'],
'indexpageids': [u''], u'geulimit': [u'1'], 'action': [u'query'],
u'geunamespace': [u'2', u'3'], 'geuquery': [u'www.google.com'], 'uiprop':
['blockinfo', 'hasmsg']}
{u'query-continue': {u'exturlusage': {u'geuoffset': 23}}, u'query':
{u'userinfo': {u'messages': u'', u'id': 25377, u'name': u'JVbot'}}}

{'inprop': [u'protection'], 'geuprotocol': [u'http'], 'iiprop': [u'timestamp',
u'user', u'comment', u'url', u'size', u'sha1', u'metadata'], 'maxlag': ['5'],
u'geuoffset': [u'23'], 'generator': [u'exturlusage'], 'format': ['json'],
'prop': [u'info', u'imageinfo', u'categoryinfo'], 'meta': ['userinfo'],
'indexpageids': [u''], u'geulimit': [u'1'], 'action': [u'query'],
u'geunamespace': [u'2', u'3'], 'geuquery': [u'www.google.com'], 'uiprop':
['blockinfo', 'hasmsg']}
{u'query-continue': {u'exturlusage': {u'geuoffset': 24}}, u'query':
{u'userinfo': {u'messages': u'', u'id': 25377, u'name': u'JVbot'}}}

It then proceeds to iterate continuously seemingly forever. (I killed it after
10 mins)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to