jayvdb created this task.
jayvdb assigned this task to Omegat.
jayvdb added subscribers: jayvdb, XZise, Omegat, pywikipedia-bugs.
jayvdb added projects: PyWikiBot-Interwiki-Map, pywikibot-core, Pywikibot-tests.
Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION
A repo with Wikia patches is at:
https://github.com/opensourceware/pywikibot-core/
It needs to be a dedicated named branch (not master), and needs to have wikia added to the .travis.yml
TASK DETAIL
https://phabricator.wikimedia.org/T88603
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: Omegat, jayvdb
Cc: pywikipedia-bugs, Omegat, XZise, jayvdb, Aklapper
Ricordisamoa created this task.
Ricordisamoa added subscribers: Aklapper, pywikipedia-bugs, Ricordisamoa.
Ricordisamoa added a project: Pywikibot-General.
Ricordisamoa changed Security from none to none.
TASK DESCRIPTION
Instead of filling it manually, as it is now.
TASK DETAIL
https://phabricator.wikimedia.org/T78393
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: Ricordisamoa
Cc: Aklapper, Ricordisamoa, pywikipedia-bugs
jayvdb created this task.
jayvdb added subscribers: Aklapper, pywikipedia-bugs, jayvdb.
jayvdb added projects: Pywikibot-tests, pywikibot-core.
TASK DESCRIPTION
The last two builds have been failing on the Internet Archive tests
https://travis-ci.org/wikimedia/pywikibot-core/builds/46652168https://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
TASK DETAIL
https://phabricator.wikimedia.org/T86499
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, pywikipedia-bugs
jayvdb created this task.
jayvdb assigned this task to Omegat.
jayvdb added subscribers: pywikipedia-bugs, jayvdb, XZise, Omegat.
jayvdb added projects: PyWikiBot-Interwiki-Map, pywikibot-core, Pywikibot-tests.
TASK DESCRIPTION
The following tests depend on the user having certain token
site_tests.TestSiteTokens.*
site_tests.TestSiteObjectDeprecatedFunctions.test_token
site_tests.SiteUserTestCase2.testPatrol
If the test depends on having a token, the test is non-functional if the test user doesnt have that token, and the test should be marked as skipped.
TASK DETAIL
https://phabricator.wikimedia.org/T85353
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: Omegat, jayvdb
Cc: Aklapper, jayvdb, XZise, Omegat, pywikipedia-bugs
Ricordisamoa created this task.
Ricordisamoa added a subscriber: Ricordisamoa.
Ricordisamoa added projects: Pywikibot-General, tracking.
Ricordisamoa changed Security from none to none.
TASK DESCRIPTION
To lighten the framework and make it more usable with custom configurations.
TASK DETAIL
https://phabricator.wikimedia.org/T78390
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: Ricordisamoa
Cc: Aklapper, Ricordisamoa, pywikipedia-bugs
jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: pywikibot-core.
TASK DESCRIPTION
The patrol token is not being loaded correctly for earlier versions.
Since patrol was added in v1.14, until v1.16, the patrol token was the same as the edit token.
For 1.17-19, the patrol token must be obtained from the query list recentchanges.
https://en.wikipedia.org/w/api.php?action=query&list=recentchanges&rctoken=…
TASK DETAIL
https://phabricator.wikimedia.org/T85727
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, pywikipedia-bugs
Mineo created this task.
Mineo added a subscriber: Mineo.
Mineo added a project: pywikibot-core.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
The line https://github.com/mineo/mb2wikidatabot/blob/master/bot/const.py#L36 sometimes causes the whole python interpreter to block, so it doesn't even exit on ^C anymore. Since this might be a very specific problem related to the order things are imported in etc., here's a rough overview of how that line is reached.
https://github.com/mineo/mb2wikidatabot/blob/master/run.py is the main entry point of the bot, which imports
https://github.com/mineo/mb2wikidatabot/blob/master/bot/common.py, which (in line 8) imports the `const.py` file.
I've added print statements around every statement in `const.py` and the one before the creation of the ItemPage is the last one that gets executed.
I have now found a reliable way to fix this and that is the execution of a file that contains only the following code (yes, this is basically a variation of the `const.py` file):
```
import pywikibot as wp
WIKIDATA = wp.Site('wikidata', 'wikidata')
WIKIDATA_DATASITE = WIKIDATA.data_repository()
MUSICBRAINZ_WIKIDATAPAGE = wp.ItemPage(WIKIDATA_DATASITE, "Q14005")
MUSICBRAINZ_CLAIM = wp.Claim(WIKIDATA_DATASITE, "P248")
```
Other ways to fix it include deletions of most files in the pywikibot user directory and/or random invokations of pywikibots `scripts/login.py` script.
This happens on Python 2.6.5 on Ubuntu 10.04.4 in a virtual environment. This has happened over the last few year every once in a while with different revisions of pywikibot, but I feel like it's now happening way more often. The currently used pywikibot version is 6b2e416b1bd67d16cf70f3c02420bd9124217a13.
TASK DETAIL
https://phabricator.wikimedia.org/T87742
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: Mineo
Cc: pywikipedia-bugs, Aklapper, Mineo, jayvdb
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&ol… 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