jayvdb created this task. jayvdb added subscribers: jayvdb, Aklapper, Qgil. jayvdb added projects: Pywikibot-Wikidata, Google-Code-in-2014, Pywikibot-tests.
TASK DESCRIPTION Pywikibot has some tests which use test.wikidata in https://github.com/wikimedia/pywikibot-core/tree/master/tests , however these test wikis appear to have a very odd configuration wrt integration tests. Where should people (such as #Google-Code-In-2014 participants) do analysis / testing of integration of client and repo?
"You can use [[testwiki:|testwiki]] or [[test2wiki:|test2wiki]] an test clients." was added to the main page [[https://test.wikidata.org/w/index.php?title=Wikidata:Main_Page&diff=5229... in March]] by user [[user:GZWDer]], and I guess that is true in a sense. However it doesnt appear possible to add sitelinks to testwiki or test2wiki, as far as I am aware.
Could someone confirm that (and that I am not going crazy)?
Is there an open Phab task about that? (I searched in Phab for "testwiki wikidata" but came up empty).
e.g. 1. go to https://test2.wikipedia.org/wiki/0.8319452734493841_Moved 2. click add sitelink / add a lang / link with page 3. input language: extwiki 4. input page: Wikipedia 5. click 'Link with Page' to perform the operation
Result: error: "The external client site 'enwiki' did not provide page information for page '0.8319452734493841 Moved'."
Which is odd, I think..?
If the test wikis arnt able to be used together for integration testing, what other options are there? 1. use test.wikidata as client and repo , or 2. use beta.wmflabs.org, or 3. ??
TASK DETAIL https://phabricator.wikimedia.org/T85358
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Aklapper, jayvdb, Qgil, pywikipedia-bugs
jayvdb added a comment.
Here is an example of the problem (after the rough patch on https://phabricator.wikimedia.org/T85356 is applied)
$ python pwb.py scripts/harvest_template.py -family:wikipedia -lang:test -template:test test P404 -simulate WARNING: cacheSources: Could not load sources: Page [[wikidata:test:Wikidata:List of wikis/python]] doesn't exist. Finding redirects... Retrieving 9 pages from wikipedia:test. WARNING: API warning (wbgetentities): Unrecognized value for parameter 'sites': testwiki ERROR: param-missing: A parameter that is required was missing (Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages) Traceback (most recent call last): File "./pywikibot/bot.py", line 1190, in run item = pywikibot.ItemPage.fromPage(page) File "./pywikibot/page.py", line 3251, in fromPage if not lazy_load and not i.exists(): File "./pywikibot/page.py", line 2867, in exists self.get() File "./pywikibot/page.py", line 3263, in get super(ItemPage, self).get(force=force, *args, **kwargs) File "./pywikibot/page.py", line 2901, in get data = self.repo.loadcontent(identification, *args) File "./pywikibot/site.py", line 5173, in loadcontent data = req.submit() File "./pywikibot/data/api.py", line 1093, in submit raise APIError(code, info, **result["error"]) APIError: param-missing: A parameter that is required was missing (Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages)
TASK DETAIL https://phabricator.wikimedia.org/T85358
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Aklapper, jayvdb, Qgil, pywikipedia-bugs
Qgil added a subscriber: Quality-Assurance. Qgil added a project: Quality-Assurance. Qgil set Security to none.
TASK DETAIL https://phabricator.wikimedia.org/T85358
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Qgil Cc: Aklapper, jayvdb, Qgil, dduvall, zeljkofilipin, greg, Cmcmahon, pywikipedia-bugs
zeljkofilipin triaged this task as "Normal" priority. zeljkofilipin edited projects, added Browser-Tests; removed Quality-Assurance.
TASK DETAIL https://phabricator.wikimedia.org/T85358
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: zeljkofilipin Cc: jayvdb, Qgil, Aklapper, dduvall, zeljkofilipin, greg, Cmcmahon, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org