[Pywikipedia-bugs] [Maniphest] [Commented On] T336630: TestShortLink::test_create_short_link sometimes fails with oauth credentials in user-config.py

2023-05-15 Thread zhuyifei1999
zhuyifei1999 added a comment.


  > I think the bottom line here is that the pywikibot system as a whole 
depends too much on external resources (such as user-config.py) which makes the 
test suite fragile. There really needs to be a way for the test framework to 
supply a complete configuration without looking at an external configuration 
file.
  
  I agree.

TASK DETAIL
  https://phabricator.wikimedia.org/T336630

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, Aklapper, pywikibot-bugs-list, RoySmith, PotsdamLamb, 
Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, 
Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, binbot, 
Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Commented On] T181443: Pywikibot stops when finding the character \uFFFD - 'REPLACEMENT CHARACTER'

2021-11-05 Thread zhuyifei1999
zhuyifei1999 added a comment.


  (trying to reproduce it again)

TASK DETAIL
  https://phabricator.wikimedia.org/T181443

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Count_Count, Dvorapa, zhuyifei1999, TheSandDoctor, Mpaa, Aklapper, 
pywikibot-bugs-list, Fructibus, Jyoo1011, Y.ssk, JohnsonLee01, SHEKH, Dijkstra, 
Muchiri124, CBogen, Khutuck, Zkhalido, Viztor, Wenyi, Chicocvenancio, Tbscho, 
MayS, Mdupont, JJMC89, Poyekhali, Altostratus, Taiwania_Justo, Avicennasis, 
Ixocactus, Wong128hk, mys_721tx, El_Grafo, Dinoguy1000, jayvdb, Masti, 
Alchimista, Steinsplitter, Krenair
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Commented On] T181443: Pywikibot stops when finding the character \uFFFD - 'REPLACEMENT CHARACTER'

2021-11-04 Thread zhuyifei1999
zhuyifei1999 added a comment.


  Sorry, I think I was working on it last year and then forgot about this
  ticket. I'll check what I was doing back then.
  
  Is this bug still reproducible?

TASK DETAIL
  https://phabricator.wikimedia.org/T181443

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Count_Count, Dvorapa, zhuyifei1999, TheSandDoctor, Mpaa, Aklapper, 
pywikibot-bugs-list, Fructibus, Jyoo1011, Y.ssk, JohnsonLee01, SHEKH, Dijkstra, 
Muchiri124, CBogen, Khutuck, Zkhalido, Viztor, Wenyi, Chicocvenancio, Tbscho, 
MayS, Mdupont, JJMC89, Poyekhali, Altostratus, Taiwania_Justo, Avicennasis, 
Ixocactus, Wong128hk, mys_721tx, El_Grafo, Dinoguy1000, jayvdb, Masti, 
Alchimista, Steinsplitter, Krenair
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Commented On] T284863: bot suggests it doesn't have a delete right while it has

2021-06-12 Thread zhuyifei1999
zhuyifei1999 added a comment.


  How it finds whether you can delete: 
https://github.com/wikimedia/pywikibot/blob/595b2497374e40a990303afc75672144ab18ae5f/pywikibot/page/__init__.py#L1746:
  
self.site.has_right('delete')
  
  which expands to 
https://github.com/wikimedia/pywikibot/blob/595b2497374e40a990303afc75672144ab18ae5f/pywikibot/site/_apisite.py#L597:
  
def has_right(self, right):
"""Return true if and only if the user has a specific right.
Possible values of 'right' may vary depending on wiki settings.
https://www.mediawiki.org/wiki/API:Userinfo
:param right: a specific right to be validated
:type right: str
"""
return right.lower() in self.userinfo['rights']
  
  which works fine for me:
  
$ python pwb.py shell
family and mylang are not set.
Defaulting to family='wikipedia' and mylang='test'.
Welcome to the Pywikibot interactive shell!
>>> site = pywikibot.Site('zh', 'wikivoyage', user='Zhuyifei1999')
>>> site.login()
>>> site.userinfo['rights']
['editinterface', 'editsitecss', 'editsitejson', 'editsitejs', 
'editusercss', 'edituserjson', 'edituserjs', 'suppressredirect', 'noratelimit', 
'deleterevision', 'deletelogentry', 'editcontentmodel', 'block', 
'createaccount', 'delete', 'deletedhistory', 'deletedtext', 'undelete', 'move', 
'move-subpages', 'move-rootuserpages', 'move-categorypages', 'patrol', 
'autopatrol', 'protect', 'editprotected', 'rollback', 'upload', 'reupload', 
'reupload-shared', 'autoconfirmed', 'editsemiprotected', 'ipblock-exempt', 
'blockemail', 'markbotedits', 'apihighlimits', 'browsearchive', 'movefile', 
'tboverride', 'titleblacklistlog', 'transcode-reset', 'nuke', 'skipcaptcha', 
'override-antispoof', 'abusefilter-log-detail', 'abusefilter-view-private', 
'abusefilter-log-private', 'massmessage', 'read', 'edit', 'createpage', 
'createtalk', 'writeapi', 'viewmywatchlist', 'editmywatchlist', 
'viewmyprivateinfo', 'editmyoptions', 'abusefilter-view', 'abusefilter-log', 
'reupload-own', 'minoredit', 'editmyusercss', 'editmyuserjson', 'editmyuserjs', 
'purge', 'sendemail', 'applychangetags', 'changetags', 'spamblacklistlog']
>>> 'delete' in site.userinfo['rights']
True
>>> site.has_right('delete')
True
>>> site = pywikibot.Site('commons', 'commons', user='YiFeiBot')
>>> site.login()
>>> site.has_right('bot')
True
  
  Can you print `site.userinfo['rights']` and see what's going on there?

TASK DETAIL
  https://phabricator.wikimedia.org/T284863

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, Aklapper, pywikibot-bugs-list, Rubin16, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Commented On] T283957: Pywikibot memory leak after accessing BasePage.botMayEdit

2021-05-29 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T283957#7123071 <https://phabricator.wikimedia.org/T283957#7123071>, @Xqt 
wrote:
  
  > @zhuyifei1999: what is your Python version running?
  >
  > See also https://bugs.python.org/issue19859
  
  Python 3.5.3 on Toolforge (where it used 4G memory and got killed), Python 
3.7.10 local (where I was debugging with guppy)

TASK DETAIL
  https://phabricator.wikimedia.org/T283957

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt, zhuyifei1999
Cc: Dvorapa, Rubin16, Aklapper, pywikibot-bugs-list, Xqt, zhuyifei1999, 
Shalomori123, Lalamarie69, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, 
Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, 
joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, 
Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Altostratus, 
Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Created] T283957: Pywikibot memory leak after accessing BasePage.botMayEdit

2021-05-29 Thread zhuyifei1999
zhuyifei1999 created this task.
zhuyifei1999 added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  BasePage.botMayEdit is annotated with `@cache`
  
@cache
def botMayEdit(self) -> bool:
  
  This is an unbounded strongref cache, so whenever `botMayEdit` is called, 
`self` will be added to the cache as key, and the key will never be deleted 
from cache. The `self` will then go on to reference way too many objects and 
keeping them alive. One of my long-running bots used up 4 gigabytes of memory 
before hitting rlimit and getting killed.
  
  I tested that script with guppy3 to visualize just how much is being kept 
alive by botMayEdit cache: (`dominos` is "The set 'dominated' by the set of 
objects in x. This is the objects that will become deallocated, directly or 
indirectly, when the objects in x are deallocated.")
  
  When the bot first starts:
  
>>> import guppy
>>> hp = guppy.hpy()
>>> hp.heap()
Partition of a set of 270151 objects. Total size = 32191012 bytes.
 Index  Count   % Size   % Cumulative  % Kind (class / dict of class)
 0 114602  42  9772353  30   9772353  30 str
 1  10927   4  5288952  16  15061305  47 dict (no owner)
 2  42074  16  4030904  13  19092209  59 tuple
 3  20385   8  1538948   5  20631157  64 bytes
 4   1565   1  1524032   5  22155189  69 type
 5  10142   4  1464520   5  23619709  73 types.CodeType
 6   9655   4  1390320   4  25010029  78 function
 7  27941  10   796952   2  25806981  80 int
 8   1565   1   790760   2  26597741  83 dict of type
 9   5001   2   690752   2  27288493  85 list
<552 more rows. Type e.g. '_.more' to view.>
>>> hp.iso(pywikibot.page.BasePage.botMayEdit).dominos
Partition of a set of 11848 objects. Total size = 1652473 bytes.
 Index  Count   % Size   % Cumulative  % Kind (class / dict of class)
 0   2474  21   752160  46752160  46 dict (no owner)
 1   6271  53   498823  30   1250983  76 str
 2   1145  1095872   6   1346855  82 list
 3150   164576   4   1411431  85 collections.OrderedDict
 4146   156016   3   1467447  89 dict of pywikibot.page.Page
 5193   242328   3   1509775  91 dict of pywikibot.page.Link
 6158   136656   2   1546431  94 set
 7 85   121080   1   1567511  95 dict of pywikibot.page.Claim
 8265   219480   1   1586991  96 tuple
 9 46   013040   1   1600031  97 dict of pywikibot.page.ItemPage
<28 more rows. Type e.g. '_.more' to view.>
>>> pywikibot.page.BasePage.botMayEdit.cache_info()
CacheInfo(hits=0, misses=5, maxsize=None, currsize=5)
  
  After running for a few minutes:
  
>>> hp.heap()
Partition of a set of 1603419 objects. Total size = 208454157 bytes.
 Index  Count   % Size   % Cumulative  % Kind (class / dict of class)
 0 230842  14 71763136  34  71763136  34 dict (no owner)
 1 840630  52 60144617  29 131907753  63 str
 2 129444   8 13086752   6 144994505  70 list
 3  36258   2 13024648   6 158019153  76 collections.OrderedDict
 4  19909   1  7455544   4 165474697  79 dict of pywikibot.page.Link
 5  28394   2  7041712   3 172516409  83 dict of pywikibot.page.Claim
 6  52982   3  4815056   2 177331465  85 tuple
 7  12188   1  3108712   1 180440177  87 dict of pywikibot.page.ItemPage
 8   7112   0  2737112   1 183177289  88 dict of pywikibot.page.Page
 9   8177   1  2124904   1 185302193  89 set
<557 more rows. Type e.g. '_.more' to view.>
>>> hp.iso(pywikibot.page.BasePage.botMayEdit).dominos
Partition of a set of 1049673 objects. Total size = 141565142 bytes.
 Index  Count   % Size   % Cumulative  % Kind (class / dict of class)
 0 193668  18 53690232  38  53690232  38 dict (no owner)
 1 500122  48 33602128  24  87292360  62 str
 2  35999   3 12842600   9 100134960  71 collections.OrderedDict
 3 115539  11 10840032   8 110974992  78 list
 4  19908   2  7455168   5 118430160  84 dict of pywikibot.page.Link
 5  28394   3  7041712   5 125471872  89 dict of pywikibot.page.Claim
 6  12188   1  3108712   2 128580584  91 dict of pywikibot.page.ItemPage
 7   7111   1  2736736   2 131317320  93 dict of pywikibot.page.Page
 8  28394   3  1817216   1 133134536  94 pywikibot.page.Claim
 9   7567   1  1755544   1 134890080  95 set
<42 more rows. Type e.g. '_.more' to view.>
>>> pywikibot.page.BasePage.botMayEdit.cache_info()
CacheInfo(hits=0, misses=225, maxsize=None, currsize=225)
  
  This is since rPWBC8b952048ab61: [bugfix] cache botMayEdit result 
<h

[Pywikipedia-bugs] [Maniphest] [Unassigned] T133443: pywikibot WARNING Offset was not supplied. with chunked upload

2020-10-27 Thread zhuyifei1999
zhuyifei1999 removed zhuyifei1999 as the assignee of this task.

TASK DETAIL
  https://phabricator.wikimedia.org/T133443

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: gerritbot, zhuyifei1999, Aklapper, Avicennasis, pywikibot-bugs-list, 
Multichill, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, 
Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, mys_721tx, jayvdb, Masti, 
Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Unassigned] T129216: Pywikibot should support async chunked uploading

2020-10-27 Thread zhuyifei1999
zhuyifei1999 removed zhuyifei1999 as the assignee of this task.

TASK DETAIL
  https://phabricator.wikimedia.org/T129216

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Dominicbm, Jeff_G, Fae, gerritbot, XZise, Aklapper, Steinsplitter, Sporti, 
pywikibot-bugs-list, zhuyifei1999, JohnsonLee01, SHEKH, Dijkstra, Khutuck, 
Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, 
Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T265817: Remove Python 2 workarounds in family.py

2020-10-18 Thread zhuyifei1999
zhuyifei1999 added a comment.


  We can
  
- cls.__new__ = staticmethod(lambda cls: cls.instance)  # shortcut
+ cls.__new__ = lambda cls: cls.instance

- cls.__init__ = deprecated(cls.__dict__['__init__'])
+ cls.__init__ = deprecated(cls.__init__)

TASK DETAIL
  https://phabricator.wikimedia.org/T265817

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Aklapper, zhuyifei1999, Xqt, pywikibot-bugs-list, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, 
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Closed] T260831: category_redirect Exiting due to uncaught exception: MemoryError

2020-09-23 Thread zhuyifei1999
zhuyifei1999 closed this task as "Invalid".
zhuyifei1999 added a comment.


  Memory issues are environmental. They are not actionable unless a. there is a 
memory leak or b. there is a significant memory use inefficiency.

TASK DETAIL
  https://phabricator.wikimedia.org/T260831

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, Aklapper, Alchimista, pywikibot-bugs-list, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, 
JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Rxy, 
Krenair
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Declined] T261162: pywikibot keeps refcount even after clear_cache (osmium fails with "Node callback keeps reference to OSM object. This is not allowed.")

2020-08-24 Thread zhuyifei1999
zhuyifei1999 closed this task as "Declined".
zhuyifei1999 added a comment.


  This is an instance of cyclic reference. The frame refers to the entry, the 
entry has _getexception, the exception refers to the frame. The exception would 
also definitely reference the inner frame where the exception is instantiated 
and that frame would refer to the outer frame by `f_back`
  
  To prove this is a reference cycle, this works:
  
import osmium, pywikibot
import gc
en_wiki = pywikibot.Site("en", "wikipedia")

class TestHandler(osmium.SimpleHandler):
def node(self, n):
print(n.id)
entry = pywikibot.Page(en_wiki, 'non-existing article or even 
redirect')
entry.text
entry.clear_cache()  # Clear cache even works if there is no call 
to `.text`
del entry
gc.collect()

h = TestHandler()
# Download from 
http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf
h.apply_file('liechtenstein-latest.osm.pbf')
  
  `gc.collect` would kill unused reference cycles.
  
  osmium should not care about reference cycles. Ask them to perform a GC if 
they suspect values being used referred to outside the function.

TASK DETAIL
  https://phabricator.wikimedia.org/T261162

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, Aklapper, pywikibot-bugs-list, Stalker, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, 
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T261162: pywikibot keeps refcount even after clear_cache (osmium fails with "Node callback keeps reference to OSM object. This is not allowed.")

2020-08-24 Thread zhuyifei1999
zhuyifei1999 added a comment.


  Using [[github.com/zhuyifei1999/guppy3|guppy]] to traverse the reference 
graph:
  
import osmium, pywikibot
import guppy
en_wiki = pywikibot.Site("en", "wikipedia")

thisframe = []
class TestHandler(osmium.SimpleHandler):
def node(self, n):
print(n.id)
entry = pywikibot.Page(en_wiki, 'non-existing article or even 
redirect')
entry.text
entry.clear_cache()  # Clear cache even works if there is no call 
to `.text`
thisframe.append(guppy.hpy().iso(n).referrers.theone)
# n = None

h = TestHandler()
# Download from 
http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf
try:
h.apply_file('liechtenstein-latest.osm.pbf')
except Exception:
pass

hp = guppy.hpy()
print(hp.iso(thisframe[0]).referrers)
print(hp.iso(thisframe[0]).referrers[0].referrers)
print(hp.iso(thisframe[0]).referrers[0].referrers[1].sp)
  
  
  
    (venv) zhuyifei1999@zhuyifei1999-ThinkPad-T480 ~/mw-dev/pywikibot-core $ 
python T261162.py 
family and mylang are not set.
Defaulting to family='wikipedia' and mylang='test'.
26032956
Partition of a set of 2 objects. Total size = 568 bytes.
 Index  Count   % Size   % Cumulative  % Kind (class / dict of class)
 0  1  50  464  82   464  82 types.FrameType
 1  1  50  104  18   568 100 list
Partition of a set of 2 objects. Total size = 640 bytes.
 Index  Count   % Size   % Cumulative  % Kind (class / dict of class)
 0  1  50  568  89   568  89 types.FrameType
 1  1  50   72  11   640 100 types.TracebackType
 0: 
hp.Root.i0_modules['__main__'].__dict__['thisframe'][0].f_locals['entry'].__dict__['_getexception'].??

TASK DETAIL
  https://phabricator.wikimedia.org/T261162

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, Aklapper, pywikibot-bugs-list, Stalker, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, 
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T261063: Pywikibot suppresses some log lines in debug mode

2020-08-23 Thread zhuyifei1999
zhuyifei1999 added a comment.


  Ah I see what is happening.
  
  With diff:
  
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index 7e01efe83..96cbc887c 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -783,6 +783,7 @@ def handle_args(args=None, do_help=True):
 @return: list of arguments not recognised globally
 @rtype: list of str
 """
+__import__('traceback').print_stack()
 if pywikibot._sites:
 warn('Site objects have been created before arguments were 
handled',
  UserWarning)
diff --git a/pywikibot/comms/http.py b/pywikibot/comms/http.py
index 848a0b1dc..310707f7a 100644
--- a/pywikibot/comms/http.py
+++ b/pywikibot/comms/http.py
@@ -60,6 +60,7 @@ cookie_file_path = config.datafilepath('pywikibot.lwp')
 file_mode_checker(cookie_file_path, create=True)
 cookie_jar = cookiejar.LWPCookieJar(cookie_file_path)
 try:
+__import__('traceback').print_stack()
 cookie_jar.load()
 except cookiejar.LoadError:
 debug('Loading cookies failed.', _logger)
  
  The linked debug() calls happen at:
  
File "pwb.py", line 199, in 
  import pywikibot as pwb
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
    File "", line 219, in _call_with_frames_removed
File "/home/zhuyifei1999/mw-dev/pywikibot-core/pywikibot/__init__.py", line 
35, in 
  from pywikibot.data.api import UploadWarning
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
    File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/zhuyifei1999/mw-dev/pywikibot-core/pywikibot/data/api.py", line 
31, in 
  from pywikibot.comms import http
File "", line 1035, in _handle_fromlist
File "", line 219, in _call_with_frames_removed
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/zhuyifei1999/mw-dev/pywikibot-core/pywikibot/comms/http.py", 
line 63, in 
  __import__('traceback').print_stack()
  
  but this is much earlier than the loglevel being initialized in:
  
File "/home/zhuyifei1999/mw-dev/pywikibot-core/pywikibot/comms/http.py", 
line 63, in 
  __import__('traceback').print_stack()
File "pwb.py", line 360, in 
  if not main():
File "pwb.py", line 355, in main
  file_package)
File "pwb.py", line 74, in run_python_file
  main_mod.__dict__)
File "./scripts/login.py", line 185, in 
  main()
File "./scripts/login.py", line 121, in main
  for arg in pywikibot.handle_args(args):
File "/home/zhuyifei1999/mw-dev/pywikibot-core/pywikibot/bot.py", line 786, 
in handle_args
  __import__('traceback').print_stack()
  
  So this is a chicken and egg problem. Ideas for a workaround?

TASK DETAIL
  https://phabricator.wikimedia.org/T261063

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, Aklapper, pywikibot-bugs-list, Tgr, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, 
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T261063: Pywikibot suppresses some log lines in debug mode

2020-08-23 Thread zhuyifei1999
zhuyifei1999 added a comment.


  I remember debug log logs to a file. Do you have some steps to reproduce this?

TASK DETAIL
  https://phabricator.wikimedia.org/T261063

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, Aklapper, pywikibot-bugs-list, Tgr, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, 
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T257559: APIHiddenTestCase.test_ecoreality test of site_detect_tests.py unexpectedly pass

2020-07-09 Thread zhuyifei1999
zhuyifei1999 added a comment.


  Or just host such a server. ;)

TASK DETAIL
  https://phabricator.wikimedia.org/T257559

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt, zhuyifei1999
Cc: zhuyifei1999, Dvorapa, Aklapper, pywikibot-bugs-list, Xqt, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, 
JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T228322: Python is killed by recent patch

2020-07-07 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T228322#5344565 <https://phabricator.wikimedia.org/T228322#5344565>, @Xqt 
wrote:
  
  > lang property must be resolved from siteinfo whereas code property is 
already given when instantiating the site object. I think 
TestAPIMWException.test_API_error_encoding_ASCII uses a fake http request and 
the siteinfo is never retrieved - am I right?
  
  Does not seem so. It's doing a request, and the request wants the user agent, 
and the user agent wants to have the lang, and the lang requires a request to 
siteinfo. You have a dependency cycle.

TASK DETAIL
  https://phabricator.wikimedia.org/T228322

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, Dvorapa, Aklapper, pywikibot-bugs-list, Dalba, Xqt, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T228322: Python is killed by recent patch

2020-07-07 Thread zhuyifei1999
zhuyifei1999 added a comment.


  P11763 (An Untitled Masterwork) <https://phabricator.wikimedia.org/P11763>

TASK DETAIL
  https://phabricator.wikimedia.org/T228322

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, Dvorapa, Aklapper, pywikibot-bugs-list, Dalba, Xqt, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T171886: installing pywikibot with pip fails because the package isn't a git repository; setup.py is unable to find the version of pywikibot

2020-07-07 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T171886#6284238 <https://phabricator.wikimedia.org/T171886#6284238>, 
@Seppl2013 wrote:
  
  > Please reopen this issue - marking it invalid since it's not reproducible  
in the Wikimedia Universe is not helpful for those having the problem in their 
own environment .
  
  See below:
  
  In T171886#6282297 <https://phabricator.wikimedia.org/T171886#6282297>, @Xqt 
wrote:
  
  > In result that snippet does not describe any failure and is insufficient 
for further investigation. Therefore I asked for a complete trackback. Verbose 
option would be helpful. See also the other comments above.
  
  
  
  In T171886#6280927 <https://phabricator.wikimedia.org/T171886#6280927>, 
@zhuyifei1999 wrote:
  
  > Reopen only if you are able to provide a steps for reproducing, or, a 
dockerfile or docker image, or your disk image that we can run in a VM, that 
would exhibit the described behavior.
  
  https://www.chiark.greenend.org.uk/~sgtatham/bugs.html#showmehow
  
  If you have your environment, you may tell us exactly how your environment is 
set up so we may replicate your problem. Your description of "Ubuntu 18.04 LTS" 
has been insufficient to reproduce the problem, as shown in my raw paste above.

TASK DETAIL
  https://phabricator.wikimedia.org/T171886

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: valhallasw, zhuyifei1999
Cc: JJMC89, Multichill, Xqt, Dvorapa, Seppl2013, valhallasw, zhuyifei1999, 
Framawiki, pywikibot-bugs-list, Aklapper, Mateusz_Konieczny, JohnsonLee01, 
SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, 
Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, 
Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, Maathavan, 
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T171886: installing pywikibot with pip fails because the package isn't a git repository; setup.py is unable to find the version of pywikibot

2020-07-06 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T171886#6284149 <https://phabricator.wikimedia.org/T171886#6284149>, @Xqt 
wrote:
  
  > Installation was done as I said
  
  That was responding to @JJMC89 quoting your message. Sorry if unclear.

TASK DETAIL
  https://phabricator.wikimedia.org/T171886

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: valhallasw, zhuyifei1999
Cc: JJMC89, Multichill, Xqt, Dvorapa, Seppl2013, valhallasw, zhuyifei1999, 
Framawiki, pywikibot-bugs-list, Aklapper, Mateusz_Konieczny, JohnsonLee01, 
SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, 
Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, 
Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, Maathavan, 
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T171886: installing pywikibot with pip fails because the package isn't a git repository; setup.py is unable to find the version of pywikibot

2020-07-06 Thread zhuyifei1999
zhuyifei1999 added a comment.


  Also, see above,
  
  In T171886#6279580 <https://phabricator.wikimedia.org/T171886#6279580>, @Xqt 
wrote:
  
  > I installed pywikibot with `-v` verbose and got the same fatal error but 
pywikibot was installed anyway:
  
  Are you sure in your output it did not install?

TASK DETAIL
  https://phabricator.wikimedia.org/T171886

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: valhallasw, zhuyifei1999
Cc: JJMC89, Multichill, Xqt, Dvorapa, Seppl2013, valhallasw, zhuyifei1999, 
Framawiki, pywikibot-bugs-list, Aklapper, Mateusz_Konieczny, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, 
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T171886: installing pywikibot with pip fails because the package isn't a git repository; setup.py is unable to find the version of pywikibot

2020-07-06 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T171886#6283074 <https://phabricator.wikimedia.org/T171886#6283074>, 
@JJMC89 wrote:
  
  > The paste? If so, you should be able to access it now.
  
  What is the repository and the travis.yml? Again, insufficient information 
has been given to reproduce the issue.

TASK DETAIL
  https://phabricator.wikimedia.org/T171886

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: valhallasw, zhuyifei1999
Cc: JJMC89, Multichill, Xqt, Dvorapa, Seppl2013, valhallasw, zhuyifei1999, 
Framawiki, pywikibot-bugs-list, Aklapper, Mateusz_Konieczny, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, 
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T171886: installing pywikibot with pip fails because the package isn't a git repository; setup.py is unable to find the version of pywikibot

2020-07-06 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T171886#6282167 <https://phabricator.wikimedia.org/T171886#6282167>, 
@JJMC89 wrote:
  
  > I've seen this fatal in multiple repositories installing pywikibot 
3.0.20200703 via PyPI with Python 3.5-3.10a on xenial (Travis CI)
  >
  > {P11754}
  
  403

TASK DETAIL
  https://phabricator.wikimedia.org/T171886

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: valhallasw, zhuyifei1999
Cc: JJMC89, Multichill, Xqt, Dvorapa, Seppl2013, valhallasw, zhuyifei1999, 
Framawiki, pywikibot-bugs-list, Aklapper, Mateusz_Konieczny, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, 
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Closed] T171886: installing pywikibot with pip fails because the package isn't a git repository; setup.py is unable to find the version of pywikibot

2020-07-06 Thread zhuyifei1999
zhuyifei1999 closed this task as "Invalid".
zhuyifei1999 added a comment.


  Cannot reproduce on Ubuntu 18.04 LTS docker image.
  
  P11743 (An Untitled Masterwork) <https://phabricator.wikimedia.org/P11743>
  
  Closing. Reopen only if you are able to provide a steps for reproducing, or, 
a dockerfile or docker image, or your disk image that we can run in a VM, that 
would exhibit the described behavior.

TASK DETAIL
  https://phabricator.wikimedia.org/T171886

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: valhallasw, zhuyifei1999
Cc: JJMC89, matej_suchanek, Multichill, Xqt, Dvorapa, Seppl2013, valhallasw, 
zhuyifei1999, Framawiki, pywikibot-bugs-list, Aklapper, Mateusz_Konieczny, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T249114: E-mails from nore...@pypi.org to tools.pywiki...@tools.wmflabs.org are not forwarded to certain recipients due to SPF

2020-05-10 Thread zhuyifei1999
zhuyifei1999 added a comment.


  You can refer them to this ticket if needed.

TASK DETAIL
  https://phabricator.wikimedia.org/T249114

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: herron, aborrero, Ladsgroup, bd808, zhuyifei1999, Xqt, pywikibot-bugs-list, 
Aklapper, Dvorapa, JohnsonLee01, Dijkstra, Zkhalido, Phamhi, Viztor, Wenyi, 
sietec, Zylc, Bstorm, 1978Gage2001, DSquirrelGM, Chicocvenancio, Allthingsgo, 
Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Altostratus, Avicennasis, 
Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, 
coren, Rxy, Krenair
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T249114: E-mails from nore...@pypi.org to tools.pywiki...@tools.wmflabs.org are not forwarded to certain recipients due to SPF

2020-05-10 Thread zhuyifei1999
zhuyifei1999 added a comment.


  It seems normal for AWS server to have that sort of FQDN internally. This is 
one of my AWS servers I sometimes test stuffs on:
  
[ec2-user@ip-172-31-3-[...] ~]$ hostname -f
ip-172-31-3-[...].us-east-2.compute.internal
  
  Whoever maintains kernel wiki installs need to make the server hostname FQDN 
make sense to the public non-AWS world. We don't relay emails if that email has 
unknown sender.

TASK DETAIL
  https://phabricator.wikimedia.org/T249114

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: herron, aborrero, Ladsgroup, bd808, zhuyifei1999, Xqt, pywikibot-bugs-list, 
Aklapper, Dvorapa, JohnsonLee01, Dijkstra, Zkhalido, Phamhi, Viztor, Wenyi, 
sietec, Zylc, Bstorm, 1978Gage2001, DSquirrelGM, Chicocvenancio, Allthingsgo, 
Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Altostratus, Avicennasis, 
Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, 
coren, Rxy, Krenair
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T249114: E-mails from nore...@pypi.org to tools.pywiki...@tools.wmflabs.org are not forwarded to certain recipients due to SPF

2020-05-10 Thread zhuyifei1999
zhuyifei1999 added a comment.


2020-05-10 08:22:46 H=ec2-34-211-101-61.us-west-2.compute.amazonaws.com 
(ip-10-30-118-124.us-west-2.compute.internal) [34.211.101.61] Warning: Sender 
address web...@ip-10-30-118-124.us-west-2.compute.internal has exceeded rate 
limit of  messages per 1h
2020-05-10 08:22:46 H=ec2-34-211-101-61.us-west-2.compute.amazonaws.com 
(ip-10-30-118-124.us-west-2.compute.internal) [34.211.101.61] sender verify 
fail for : Unrouteable 
address
2020-05-10 08:22:46 H=ec2-34-211-101-61.us-west-2.compute.amazonaws.com 
(ip-10-30-118-124.us-west-2.compute.internal) [34.211.101.61] 
X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 CV=no 
F= rejected RCPT 
: Sender verify failed
  
  The sender of the email is 
`web...@ip-10-30-118-124.us-west-2.compute.internal`. The hostname of the email 
address is not valid.

TASK DETAIL
  https://phabricator.wikimedia.org/T249114

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: herron, aborrero, Ladsgroup, bd808, zhuyifei1999, Xqt, pywikibot-bugs-list, 
Aklapper, Dvorapa, JohnsonLee01, Dijkstra, Zkhalido, Phamhi, Viztor, Wenyi, 
sietec, Zylc, Bstorm, 1978Gage2001, DSquirrelGM, Chicocvenancio, Allthingsgo, 
Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Altostratus, Avicennasis, 
Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, 
coren, Rxy, Krenair
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T249114: E-mails from nore...@pypi.org to tools.pywiki...@tools.wmflabs.org are not forwarded to certain recipients due to SPF

2020-05-10 Thread zhuyifei1999
zhuyifei1999 added a comment.


  Same thing as T249114#6073998 
<https://phabricator.wikimedia.org/T249114#6073998>:
  
09:09:37 0 ✓ zhuyifei1999@tools-mail-02: ~$ sudo less 
/var/log/exim4/mainlog | grep pywikibot
2020-05-10 08:22:46 H=ec2-34-211-101-61.us-west-2.compute.amazonaws.com 
(ip-10-30-118-124.us-west-2.compute.internal) [34.211.101.61] 
X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 CV=no 
F= rejected RCPT 
: Sender verify failed
  
  I'll also note that `btrfs.wiki.kernel.org` 's address is also in AWS 
us-west-2 region.

TASK DETAIL
  https://phabricator.wikimedia.org/T249114

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: herron, aborrero, Ladsgroup, bd808, zhuyifei1999, Xqt, pywikibot-bugs-list, 
Aklapper, Dvorapa, JohnsonLee01, Dijkstra, Zkhalido, Phamhi, Viztor, Wenyi, 
sietec, Zylc, Bstorm, 1978Gage2001, DSquirrelGM, Chicocvenancio, Allthingsgo, 
Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Altostratus, Avicennasis, 
Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, 
coren, Rxy, Krenair
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Retitled] T252290: Pywikibot on PAWS is not getting updates to latest stable

2020-05-09 Thread zhuyifei1999
zhuyifei1999 renamed this task from "Update Pywikibot to the most recent 
version" to "Pywikibot on PAWS is not getting updates to latest stable".

TASK DETAIL
  https://phabricator.wikimedia.org/T252290

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Salgo60, Dvorapa, zhuyifei1999, Chicocvenancio, Xqt, pywikibot-bugs-list, 
Abbe98, Kroger4, JohnsonLee01, Dijkstra, Zkhalido, Demian, AshokChakra, Viztor, 
94rain, DannyS712, Wenyi, Jinoytommanjaly, R96340, Allthingsgo, Tbscho, MayS, 
Framawiki, Mdupont, JJMC89, StuartPrior, Altostratus, Avicennasis, Volker_E, 
SBisson, mys_721tx, Jane023, Xelgen, yuvipanda, Capt_Swing, jayvdb, Masti, 
Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Closed] T252290: Update Pywikibot to the most recent version

2020-05-09 Thread zhuyifei1999
zhuyifei1999 closed this task as "Resolved".
zhuyifei1999 claimed this task.
zhuyifei1999 added a comment.


  PR, https://github.com/toolforge/paws/pull/47 self-merged.
  
  I tested and seems to work, resolving. Reopen if not.

TASK DETAIL
  https://phabricator.wikimedia.org/T252290

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Salgo60, Dvorapa, zhuyifei1999, Chicocvenancio, Xqt, pywikibot-bugs-list, 
Abbe98, Kroger4, JohnsonLee01, Dijkstra, Zkhalido, Demian, AshokChakra, Viztor, 
94rain, DannyS712, Wenyi, Jinoytommanjaly, R96340, Allthingsgo, Tbscho, MayS, 
Framawiki, Mdupont, JJMC89, StuartPrior, Altostratus, Avicennasis, Volker_E, 
SBisson, mys_721tx, Jane023, Xelgen, yuvipanda, Capt_Swing, jayvdb, Masti, 
Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T252290: Update Pywikibot to the most recent version

2020-05-09 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T252290#6121258 <https://phabricator.wikimedia.org/T252290#6121258>, @Xqt 
wrote:
  
  > See T217908 <https://phabricator.wikimedia.org/T217908> and I propose to 
decline this request. The stable tag should be used by default. The master 
branch is for development only.
  
  The problem is it runs the stable from last year.

TASK DETAIL
  https://phabricator.wikimedia.org/T252290

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, Chicocvenancio, Xqt, pywikibot-bugs-list, Abbe98, Kroger4, 
JohnsonLee01, Dijkstra, Zkhalido, Demian, AshokChakra, Viztor, 94rain, 
DannyS712, Wenyi, Jinoytommanjaly, R96340, Allthingsgo, Tbscho, MayS, 
Framawiki, Mdupont, JJMC89, StuartPrior, Dvorapa, Altostratus, Avicennasis, 
Volker_E, SBisson, mys_721tx, Jane023, Xelgen, yuvipanda, Capt_Swing, jayvdb, 
Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T252290: Update Pywikibot to the most recent version

2020-05-09 Thread zhuyifei1999
zhuyifei1999 added a comment.


  
https://github.com/toolforge/paws/blob/9f524591cf7cc72ff9e10212f07023ee28618347/paws/values.yaml#L133
 This needs fixing
  
  This is so convoluted.

TASK DETAIL
  https://phabricator.wikimedia.org/T252290

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, Chicocvenancio, Xqt, pywikibot-bugs-list, Abbe98, Kroger4, 
JohnsonLee01, Dijkstra, Zkhalido, Demian, AshokChakra, Viztor, 94rain, 
DannyS712, Wenyi, Jinoytommanjaly, R96340, Allthingsgo, Tbscho, MayS, 
Framawiki, Mdupont, JJMC89, StuartPrior, Dvorapa, Altostratus, Avicennasis, 
Volker_E, SBisson, mys_721tx, Jane023, Xelgen, yuvipanda, Capt_Swing, jayvdb, 
Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T252290: Update Pywikibot to the most recent version

2020-05-09 Thread zhuyifei1999
zhuyifei1999 added a comment.


  It's pinned to the stable tag. 
https://github.com/toolforge/paws/blob/f0362dfe2899ab00d0e8870b8967f942368a6874/images/singleuser/Dockerfile#L125
  
  I need to figure out how to update the docker image.

TASK DETAIL
  https://phabricator.wikimedia.org/T252290

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, Chicocvenancio, Xqt, pywikibot-bugs-list, Abbe98, 
JohnsonLee01, Dijkstra, Zkhalido, Demian, AshokChakra, Viztor, 94rain, 
DannyS712, Wenyi, Jinoytommanjaly, R96340, Allthingsgo, Tbscho, MayS, 
Framawiki, Mdupont, JJMC89, StuartPrior, Dvorapa, Altostratus, Avicennasis, 
Volker_E, SBisson, mys_721tx, Jane023, Xelgen, yuvipanda, Capt_Swing, jayvdb, 
Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Closed] T250939: pywikibot login failed

2020-04-23 Thread zhuyifei1999
zhuyifei1999 closed this task as "Invalid".

TASK DETAIL
  https://phabricator.wikimedia.org/T250939

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: AntiCompositeNumber, Bugreporter, Xqt, Dvorapa, Aklapper, Bdijkstra, 
pywikibot-bugs-list, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, 
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T249114: E-mails from nore...@pypi.org to tools.pywiki...@tools.wmflabs.org are not forwarded to certain recipients due to SPF

2020-04-20 Thread zhuyifei1999
zhuyifei1999 added a comment.


01:37:33 0 ✓ zhuyifei1999@tools-mail-02: ~$ sudo less 
/var/log/exim4/mainlog | grep pywikibot
2020-04-20 15:24:48 H=ec2-34-211-101-61.us-west-2.compute.amazonaws.com 
(ip-10-30-118-118.us-west-2.compute.internal) [34.211.101.61] 
X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 CV=no 
F= rejected RCPT 
: Sender verify failed

TASK DETAIL
  https://phabricator.wikimedia.org/T249114

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Ladsgroup, bd808, zhuyifei1999, Xqt, pywikibot-bugs-list, Aklapper, 
Dvorapa, Zkhalido, Phamhi, Viztor, Wenyi, sietec, Zylc, Bstorm, 1978Gage2001, 
DSquirrelGM, Chicocvenancio, Allthingsgo, Tbscho, MayS, Freddy2001, Mdupont, 
JJMC89, Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, 
jayvdb, Masti, scfc, Alchimista, coren, Rxy, Krenair
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T249114: E-mails from nore...@pypi.org to tools.pywiki...@tools.wmflabs.org are not forwarded to certain recipients due to SPF

2020-04-20 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T249114#6073828 <https://phabricator.wikimedia.org/T249114#6073828>, 
@Dvorapa wrote:
  
  > @zhuyifei1999 Could you once more look for any message(s) from kernel.org? 
(T245350#6043128 <https://phabricator.wikimedia.org/T245350#6043128>)
  
  Don't see it in my inbox. My last email that has anything to do with 
kernel.org was last December.

TASK DETAIL
  https://phabricator.wikimedia.org/T249114

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Ladsgroup, bd808, zhuyifei1999, Xqt, pywikibot-bugs-list, Aklapper, 
Dvorapa, Zkhalido, Phamhi, Viztor, Wenyi, sietec, Zylc, Bstorm, 1978Gage2001, 
DSquirrelGM, Chicocvenancio, Allthingsgo, Tbscho, MayS, Freddy2001, Mdupont, 
JJMC89, Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, 
jayvdb, Masti, scfc, Alchimista, coren, Rxy, Krenair
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T249114: E-mails from nore...@pypi.org to tools.pywiki...@tools.wmflabs.org are not forwarded to certain recipients due to SPF

2020-04-02 Thread zhuyifei1999
zhuyifei1999 added a comment.


  Forwarded

TASK DETAIL
  https://phabricator.wikimedia.org/T249114

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Ladsgroup, bd808, zhuyifei1999, Xqt, pywikibot-bugs-list, Aklapper, 
Dvorapa, Zkhalido, Phamhi, Viztor, Wenyi, sietec, Zylc, Bstorm, 1978Gage2001, 
DSquirrelGM, Chicocvenancio, Allthingsgo, Tbscho, MayS, Freddy2001, Mdupont, 
JJMC89, Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, 
jayvdb, Masti, scfc, Alchimista, coren, Rxy, Krenair
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T249114: E-mails from nore...@pypi.org to tools.pywiki...@tools.wmflabs.org are not forwarded to certain recipients due to SPF

2020-04-02 Thread zhuyifei1999
zhuyifei1999 added a comment.


  I can forward them when I wake up.

TASK DETAIL
  https://phabricator.wikimedia.org/T249114

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Ladsgroup, bd808, zhuyifei1999, Xqt, pywikibot-bugs-list, Aklapper, 
Dvorapa, Zkhalido, Phamhi, Viztor, Wenyi, sietec, Zylc, Bstorm, 1978Gage2001, 
DSquirrelGM, Chicocvenancio, Allthingsgo, Tbscho, MayS, Freddy2001, Mdupont, 
JJMC89, Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, 
jayvdb, Masti, scfc, Alchimista, coren, Rxy, Krenair
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T249114: E-mails from nore...@pypi.org to tools.pywiki...@tools.wmflabs.org are not forwarded to certain recipients due to SPF

2020-04-01 Thread zhuyifei1999
zhuyifei1999 added a comment.


  @Dvorapa I got the verify mail, I can PM you the link on IRC if you want.

TASK DETAIL
  https://phabricator.wikimedia.org/T249114

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: bd808, zhuyifei1999, Xqt, pywikibot-bugs-list, Aklapper, Dvorapa, Zkhalido, 
Phamhi, Viztor, Wenyi, sietec, Zylc, Bstorm, 1978Gage2001, DSquirrelGM, 
Chicocvenancio, Allthingsgo, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, 
Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, 
Masti, scfc, Alchimista, coren, Rxy, Krenair
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Retitled] T249114: E-mails from nore...@pypi.org to tools.pywiki...@tools.wmflabs.org are not forwarded to certain recipients due to SPF

2020-04-01 Thread zhuyifei1999
zhuyifei1999 renamed this task from "E-mails from nore...@pypi.org are not 
delivered to tools.pywiki...@tools.wmflabs.org for more than a year" to 
"E-mails from nore...@pypi.org to tools.pywiki...@tools.wmflabs.org are not 
forwarded to certain recipients due to SPF".

TASK DETAIL
  https://phabricator.wikimedia.org/T249114

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, Xqt, pywikibot-bugs-list, Aklapper, Dvorapa, Zkhalido, 
Phamhi, Viztor, Wenyi, sietec, Zylc, Bstorm, 1978Gage2001, DSquirrelGM, 
Chicocvenancio, Allthingsgo, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, 
Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, 
Masti, scfc, Alchimista, coren, Rxy, bd808, Krenair
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T249114: E-mails from nore...@pypi.org are not delivered to tools.pywiki...@tools.wmflabs.org for more than a year

2020-04-01 Thread zhuyifei1999
zhuyifei1999 added a comment.


  `sudo less /var/log/exim4/mainlog | grep pywikibot`:
  
2020-04-01 12:02:28 1jJc4g-0002aF-7I ** [xqt email] 
 R=dnslookup T=remote_smtp H=[REDACTED] 
X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 CV=no: SMTP error from remote mail 
server after pipelined MAIL 
FROM:<01010171359efc66-6126f5a5-9d4c-435d-b199-28a8c2db379d-000...@ses.pypi.org>
 SIZE=4599: 550 5.7.1 spf policy (FAILED)
2020-04-01 12:02:29 1jJc4g-0002aF-7I => [multichill email] 
 R=dnslookup T=remote_smtp H=[REDACTED] 
X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 CV=yes C="250 [REDACTED]"
2020-04-01 12:02:29 1jJc4g-0002aF-7I => [jayvdb email] 
 R=dnslookup T=remote_smtp H=[REDACTED] 
X=TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256 CV=yes C="250 [REDACTED]"
2020-04-01 12:02:29 1jJc4g-0002aF-7I -> [legoktm email] 
 R=dnslookup T=remote_smtp H=[REDACTED] 
X=TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256 CV=yes C="250 [REDACTED]"
2020-04-01 12:02:29 1jJc4g-0002aF-7I -> [zhuyifei1999 email] 
 R=dnslookup T=remote_smtp H=[REDACTED] 
X=TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256 CV=yes C="250 [REDACTED]"
2020-04-01 12:02:29 1jJc4g-0002aF-7I -> [dalba email] 
 R=dnslookup T=remote_smtp H=[REDACTED] 
X=TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256 CV=yes C="250 [REDACTED]"
2020-04-01 12:02:29 1jJc4g-0002aF-7I -> [ladsgroup email] 
 R=dnslookup T=remote_smtp H=[REDACTED] 
X=TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256 CV=yes C="250 [REDACTED]"
2020-04-01 12:02:29 1jJc4g-0002aF-7I => [valhallasw email] 
 R=dnslookup T=remote_smtp H=[REDACTED] 
X=TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256 CV=yes C="250 [REDACTED]"
2020-04-01 12:02:30 1jJc4g-0002aF-7I => [framawiki email] 
 R=dnslookup T=remote_smtp H=[REDACTED] 
X=TLS1.2:RSA_AES_256_GCM_SHA384:256 CV=yes C="250 [REDACTED]"
2020-04-01 12:02:31 1jJc4g-0002aF-7I ** [dvorapa email] 
 R=dnslookup T=remote_smtp H=[REDACTED] 
X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 CV=yes: SMTP error from remote mail 
server after pipelined MAIL 
FROM:<01010171359efc66-6126f5a5-9d4c-435d-b199-28a8c2db379d-000...@ses.pypi.org>
 SIZE=4599: 550 5.7.1 Sender Policy Framework of `ses.pypi.org' domain denied 
your IP address.
2020-04-01 12:02:32 1jJc4g-0002aF-7I => [russblau email] 
 R=dnslookup T=remote_smtp H=[REDACTED] 
X=TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128 CV=yes C="250 [REDACTED]"

TASK DETAIL
  https://phabricator.wikimedia.org/T249114

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, Xqt, pywikibot-bugs-list, Aklapper, Dvorapa, Zkhalido, 
Phamhi, Viztor, Wenyi, sietec, Zylc, Bstorm, 1978Gage2001, DSquirrelGM, 
Chicocvenancio, Allthingsgo, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, 
Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, 
Masti, scfc, Alchimista, coren, Rxy, bd808, Krenair
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Reopened] T181443: Pywikibot stops when finding the character \uFFFD - 'REPLACEMENT CHARACTER'

2020-03-11 Thread zhuyifei1999
zhuyifei1999 reopened this task as "Open".
zhuyifei1999 claimed this task.
zhuyifei1999 added a comment.


  Sorry, was extremely busy last two weeks. I think if it's a bug it should 
stay open. I'll work on it next week.

TASK DETAIL
  https://phabricator.wikimedia.org/T181443

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Count_Count, Dvorapa, zhuyifei1999, TheSandDoctor, Mpaa, Aklapper, 
pywikibot-bugs-list, Fructibus, CBogen, Zkhalido, Viztor, DannyS712, Wenyi, 
Chicocvenancio, Tbscho, MayS, Mdupont, JJMC89, Poyekhali, Altostratus, 
Taiwania_Justo, Avicennasis, Ixocactus, Wong128hk, mys_721tx, El_Grafo, 
Dinoguy1000, jayvdb, Masti, Alchimista, Steinsplitter, Rxy, Krenair, Keegan
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T181443: Pywikibot stops when finding the character \uFFFD - 'REPLACEMENT CHARACTER'

2020-02-28 Thread zhuyifei1999
zhuyifei1999 added a comment.


  Whichever is simplest.

TASK DETAIL
  https://phabricator.wikimedia.org/T181443

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dvorapa, zhuyifei1999
Cc: Count_Count, Dvorapa, zhuyifei1999, TheSandDoctor, Mpaa, Aklapper, 
pywikibot-bugs-list, Fructibus, CBogen, Zkhalido, Viztor, DannyS712, Wenyi, 
Chicocvenancio, Tbscho, MayS, Mdupont, JJMC89, Poyekhali, Altostratus, 
Taiwania_Justo, Avicennasis, Ixocactus, Wong128hk, mys_721tx, El_Grafo, 
Dinoguy1000, jayvdb, Masti, Alchimista, Steinsplitter, Rxy, Krenair, Keegan
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T181443: Pywikibot stops when finding the character \uFFFD - 'REPLACEMENT CHARACTER'

2020-02-28 Thread zhuyifei1999
zhuyifei1999 added a project: Upstream.

TASK DETAIL
  https://phabricator.wikimedia.org/T181443

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dvorapa, zhuyifei1999
Cc: Count_Count, Dvorapa, zhuyifei1999, TheSandDoctor, Mpaa, Aklapper, 
pywikibot-bugs-list, Fructibus, CBogen, Zkhalido, Viztor, DannyS712, Wenyi, 
Chicocvenancio, Tbscho, MayS, Mdupont, JJMC89, Poyekhali, Altostratus, 
Taiwania_Justo, Avicennasis, Ixocactus, Wong128hk, mys_721tx, El_Grafo, 
Dinoguy1000, jayvdb, Masti, Alchimista, Steinsplitter, Rxy, Krenair, Keegan
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T181443: Pywikibot stops when finding the character \uFFFD - 'REPLACEMENT CHARACTER'

2020-02-28 Thread zhuyifei1999
zhuyifei1999 added a comment.


  I will be running the script with pdb + save all sseclient trace over the 
weekend.

TASK DETAIL
  https://phabricator.wikimedia.org/T181443

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dvorapa, zhuyifei1999
Cc: Count_Count, Dvorapa, zhuyifei1999, TheSandDoctor, Mpaa, Aklapper, 
pywikibot-bugs-list, Fructibus, CBogen, Zkhalido, Viztor, DannyS712, Wenyi, 
Chicocvenancio, Tbscho, MayS, Mdupont, JJMC89, Poyekhali, Altostratus, 
Taiwania_Justo, Avicennasis, Ixocactus, Wong128hk, mys_721tx, El_Grafo, 
Dinoguy1000, jayvdb, Masti, Alchimista, Steinsplitter, Rxy, Keegan
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T181443: Pywikibot stops when finding the character \uFFFD - 'REPLACEMENT CHARACTER'

2020-02-25 Thread zhuyifei1999
zhuyifei1999 added a comment.


  Yes, what I was saying was, the first and the third and two separate 
consumers, so events on first should also be received on the third. If there 
were something fundamentally wrong with the event data, then both would crash. 
Since this is not the case, there is nothing fundamentally wrong with the event 
data and therefore the error must be in other places, such as transmission / 
decoding, which leads to the linked bug report / PR.
  
  In any case, could you see if that fixes the issue?

TASK DETAIL
  https://phabricator.wikimedia.org/T181443

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dvorapa, zhuyifei1999
Cc: Count_Count, Dvorapa, zhuyifei1999, TheSandDoctor, Mpaa, Aklapper, 
pywikibot-bugs-list, Fructibus, CBogen, Zkhalido, Viztor, DannyS712, Wenyi, 
Chicocvenancio, Tbscho, MayS, Mdupont, JJMC89, Poyekhali, Altostratus, 
Taiwania_Justo, Avicennasis, Ixocactus, Wong128hk, mys_721tx, El_Grafo, 
Dinoguy1000, jayvdb, Masti, Alchimista, Steinsplitter, Rxy, Keegan
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T181443: Pywikibot stops when finding the character \uFFFD - 'REPLACEMENT CHARACTER'

2020-02-25 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T181443#5916753 <https://phabricator.wikimedia.org/T181443#5916753>, 
@TheSandDoctor wrote:
  
  > @zhuyifei1999 the first and second traceback are from "production" worker 
instances and pop items off of the same redis queue (all fed by a single 
instance of rcwatcher.py), thus they wouldn't get the same image. So it isn't 
feasible that they would crash all at once. They basically get images 
first-come, first-serve from recent changes.
  
  The first and third are two separate consumers of rcstreams right?

TASK DETAIL
  https://phabricator.wikimedia.org/T181443

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dvorapa, zhuyifei1999
Cc: Count_Count, Dvorapa, zhuyifei1999, TheSandDoctor, Mpaa, Aklapper, 
pywikibot-bugs-list, Fructibus, CBogen, Zkhalido, Viztor, DannyS712, Wenyi, 
Chicocvenancio, Tbscho, MayS, Mdupont, JJMC89, Poyekhali, Altostratus, 
Taiwania_Justo, Avicennasis, Ixocactus, Wong128hk, mys_721tx, El_Grafo, 
Dinoguy1000, jayvdb, Masti, Alchimista, Steinsplitter, Rxy, Keegan
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Changed Subscribers] T181443: Pywikibot stops when finding the character \uFFFD - 'REPLACEMENT CHARACTER'

2020-02-25 Thread zhuyifei1999
zhuyifei1999 added a subscriber: Count_Count.
zhuyifei1999 added a comment.


  So while the event data are loaded from json 
<https://github.com/wikimedia/pywikibot/blob/34bf10f585ba8ca8e24c8d317686c3694c17d6e6/pywikibot/comms/eventstreams.py#L312>,
 hex escaping non-acsii are optional:
  
>>> json.loads('{"a":"File:Januš Radzivił. Януш Радзівіл (1646-53).jpg"}')
{'a': 'File:Januš Radzivił. Януш Радзівіл (1646-53).jpg'}
>>> json.loads('{"a":"File:Janu\u0161 Radzivi\u0142. 
\u042f\u043d\u0443\u0448 \u0420\u0430\u0434\u0437\u0456\u0432\u0456\u043b 
(1646-53).jpg"}')
{'a': 'File:Januš Radzivił. Януш Радзівіл (1646-53).jpg'}
  
  This leaves me to believe the input to the decoder is already corrupted. 
Possibly packet / chunk boundary?
  
  This remind me of https://github.com/btubbs/sseclient/issues/38 
https://github.com/btubbs/sseclient/pull/39. @TheSandDoctor Could you see if 
the issue is still there after the patch? CC @Count_Count

TASK DETAIL
  https://phabricator.wikimedia.org/T181443

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dvorapa, zhuyifei1999
Cc: Count_Count, Dvorapa, zhuyifei1999, TheSandDoctor, Mpaa, Aklapper, 
pywikibot-bugs-list, Fructibus, CBogen, Zkhalido, Viztor, DannyS712, Wenyi, 
Chicocvenancio, Tbscho, MayS, Mdupont, JJMC89, Poyekhali, Altostratus, 
Taiwania_Justo, Avicennasis, Ixocactus, Wong128hk, mys_721tx, El_Grafo, 
Dinoguy1000, jayvdb, Masti, Alchimista, Steinsplitter, Rxy, Keegan
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T181443: Pywikibot stops when finding the character \uFFFD - 'REPLACEMENT CHARACTER'

2020-02-25 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T181443#5916068 <https://phabricator.wikimedia.org/T181443#5916068>, 
@TheSandDoctor wrote:
  
  > The first traceback above
  > 2020-02-22 20:02:09 <- start
  > 2020-02-24 08:42:16 <- crash
  > The second traceback I posted above
  > 2020-02-22 20:02:20 <-start
  > 2020-02-23 19:44:35 <-crash
  > 2020-02-23 07:46:35 <- test_rc.py launched
  > 2020-02-24 19:52:12 <- crash
  
  Hmm so the first one crashed during the third's run? I would assume that if 
events were global then all readers would crash at once.

TASK DETAIL
  https://phabricator.wikimedia.org/T181443

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dvorapa, zhuyifei1999
Cc: Dvorapa, zhuyifei1999, TheSandDoctor, Mpaa, Aklapper, pywikibot-bugs-list, 
Fructibus, CBogen, Zkhalido, Viztor, DannyS712, Wenyi, Chicocvenancio, Tbscho, 
MayS, Mdupont, JJMC89, Poyekhali, Altostratus, Taiwania_Justo, Avicennasis, 
Ixocactus, Wong128hk, mys_721tx, El_Grafo, Dinoguy1000, jayvdb, Masti, 
Alchimista, Steinsplitter, Rxy, Keegan
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T181443: Pywikibot stops when finding the character \uFFFD - 'REPLACEMENT CHARACTER'

2020-02-25 Thread zhuyifei1999
zhuyifei1999 added a comment.


  Would you mind posting the code of the 'minimal test case' somewhere?

TASK DETAIL
  https://phabricator.wikimedia.org/T181443

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dvorapa, zhuyifei1999
Cc: Dvorapa, zhuyifei1999, TheSandDoctor, Mpaa, Aklapper, pywikibot-bugs-list, 
Fructibus, CBogen, Zkhalido, Viztor, DannyS712, Wenyi, Chicocvenancio, Tbscho, 
MayS, Mdupont, JJMC89, Poyekhali, Altostratus, Taiwania_Justo, Avicennasis, 
Ixocactus, Wong128hk, mys_721tx, El_Grafo, Dinoguy1000, jayvdb, Masti, 
Alchimista, Steinsplitter, Rxy, Keegan
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T181443: Pywikibot stops when finding the character \uFFFD - 'REPLACEMENT CHARACTER'

2020-02-22 Thread zhuyifei1999
zhuyifei1999 added a comment.


  > rcworker.py would just be reduced to a few lines
  
  Is redis queue critical to reproducing the issue? If not, that is an extra 
layer of complexity and a minimal reproducible test case does not need that.

TASK DETAIL
  https://phabricator.wikimedia.org/T181443

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dvorapa, zhuyifei1999
Cc: Dvorapa, zhuyifei1999, TheSandDoctor, Mpaa, Aklapper, pywikibot-bugs-list, 
Fructibus, CBogen, Zkhalido, Viztor, DannyS712, Wenyi, Chicocvenancio, Tbscho, 
MayS, Mdupont, JJMC89, Poyekhali, Altostratus, Taiwania_Justo, Avicennasis, 
Ixocactus, Wong128hk, mys_721tx, El_Grafo, Dinoguy1000, jayvdb, Masti, 
Alchimista, Steinsplitter, Rxy, Keegan
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T181443: Pywikibot stops when finding the character \uFFFD - 'REPLACEMENT CHARACTER'

2020-02-22 Thread zhuyifei1999
zhuyifei1999 added a comment.


  What is the traceback?
  
  Any minimal reproducible test case (even if it takes a long time to reproduce 
that's still something)?

TASK DETAIL
  https://phabricator.wikimedia.org/T181443

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dvorapa, zhuyifei1999
Cc: Dvorapa, zhuyifei1999, TheSandDoctor, Mpaa, Aklapper, pywikibot-bugs-list, 
Fructibus, CBogen, Zkhalido, Viztor, DannyS712, Wenyi, Chicocvenancio, Tbscho, 
MayS, Mdupont, JJMC89, Poyekhali, Altostratus, Taiwania_Justo, Avicennasis, 
Ixocactus, Wong128hk, mys_721tx, El_Grafo, Dinoguy1000, jayvdb, Masti, 
Alchimista, Steinsplitter, Rxy, Keegan
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T245209: Create symlink to PWB py2 version in /shared/pywikibot

2020-02-18 Thread zhuyifei1999
zhuyifei1999 added a comment.


  (idc)

TASK DETAIL
  https://phabricator.wikimedia.org/T245209

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Xqt, Dvorapa, Aklapper, zhuyifei1999, pywikibot-bugs-list, Framawiki, 
Zkhalido, Viztor, Wenyi, Zylc, 1978Gage2001, aborrero, DSquirrelGM, 
Chicocvenancio, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Altostratus, 
Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, 
Alchimista, coren, Rxy, Krenair
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T245487: mkwiki isCategoryRedirect causes RuntimeError

2020-02-17 Thread zhuyifei1999
zhuyifei1999 added a comment.


  Yeah thanks. I 'fixed' it by deleting apicache directory

TASK DETAIL
  https://phabricator.wikimedia.org/T245487

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Zoranzoki21, Aklapper, pywikibot-bugs-list, zhuyifei1999, Zkhalido, Viztor, 
Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, 
mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Closed] T245487: mkwiki isCategoryRedirect causes RuntimeError

2020-02-17 Thread zhuyifei1999
zhuyifei1999 closed this task as "Invalid".
zhuyifei1999 added a comment.
Restricted Application removed a subscriber: Liuxinyu970226.


  Looks like API cache have the namespace dict.

TASK DETAIL
  https://phabricator.wikimedia.org/T245487

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Zoranzoki21, Aklapper, pywikibot-bugs-list, zhuyifei1999, Zkhalido, Viztor, 
Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, 
mys_721tx, jayvdb, Masti, Alchimista, Rxy, Liuxinyu970226
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T245487: mkwiki isCategoryRedirect causes RuntimeError

2020-02-17 Thread zhuyifei1999
zhuyifei1999 added a comment.


  Looks like the localization of namepace names is broken:
  
>>> pywikibot.Page(pywikibot.Site('mk', 'wikipedia'), 
'Предлошка:ABCD').namespace()
Namespace(id=0, custom_name='', canonical_name='', aliases=[], 
case='first-letter', content=True, nonincludable=False, subpages=False)
>>> pywikibot.Page(pywikibot.Site('mk', 'wikipedia'), 
'Шаблон:ABCD').namespace()
Namespace(id=10, custom_name='Шаблон', canonical_name='Template', 
aliases=[], case='first-letter', content=False, nonincludable=False, 
subpages=True)

TASK DETAIL
  https://phabricator.wikimedia.org/T245487

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Zoranzoki21, Aklapper, Liuxinyu970226, pywikibot-bugs-list, zhuyifei1999, 
Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, 
Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Created] T245487: mkwiki isCategoryRedirect causes RuntimeError

2020-02-17 Thread zhuyifei1999
zhuyifei1999 created this task.
zhuyifei1999 added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Liuxinyu970226, 
Aklapper.

TASK DESCRIPTION
$ /data/project/shared/pywikipedia/core/pwb.py shell
Welcome to the Pywikibot interactive shell!
>>> pywikibot.Page(pywikibot.Site('mk', 'wikipedia'), 'Категорија:Митски 
суштества').isCategoryRedirect()
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core/pywikibot/page.py",
 line 863, in isCategoryRedirect
catredirs = self.site.category_redirects()
  File 
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core/pywikibot/family.py",
 line 1074, in category_redirects
self._get_cr_templates(code, fallback)
  File 
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core/pywikibot/family.py",
 line 1096, in _get_cr_templates
namespaces=tpl_ns):
  File 
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core/pywikibot/tools/__init__.py",
 line 1790, in wrapper
return obj(*__args, **__kw)
  File 
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core/pywikibot/page.py",
 line 1085, in backlinks
content=content
  File 
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core/pywikibot/tools/__init__.py",
 line 1790, in wrapper
return obj(*__args, **__kw)
  File 
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core/pywikibot/site.py",
 line 3705, in pagebacklinks
if redir.getRedirectTarget() == page:
  File 
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core/pywikibot/page.py",
 line 1708, in getRedirectTarget
return self.site.getredirtarget(self)
  File 
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core/pywikibot/site.py",
 line 3225, in getredirtarget
.format(title))
RuntimeError: getredirtarget: No 'redirects' found for page 
Шаблон:Предлошка:Катпремести.

TASK DETAIL
  https://phabricator.wikimedia.org/T245487

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Aklapper, Liuxinyu970226, pywikibot-bugs-list, zhuyifei1999, Zkhalido, 
Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, 
Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T245209: Create symlink to PWB py2 version in /shared/pywikibot

2020-02-17 Thread zhuyifei1999
zhuyifei1999 added a comment.


  
https://github.com/pywikibot/Pywikibot-nightly-creator/commit/f97f3901fb79a13967b04896005b344ffc8a36a5
 ?

TASK DETAIL
  https://phabricator.wikimedia.org/T245209

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Xqt, Dvorapa, Aklapper, zhuyifei1999, pywikibot-bugs-list, Framawiki, 
Zkhalido, Viztor, Wenyi, Zylc, 1978Gage2001, aborrero, DSquirrelGM, 
Chicocvenancio, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Altostratus, 
Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, 
Alchimista, coren, Rxy, Krenair
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T245209: Create symlink to PWB py2 version in /shared/pywikibot

2020-02-14 Thread zhuyifei1999
zhuyifei1999 added a comment.


  I think too long is fine because it will soon be unsupported. Annoyance is 
sometimes a good thing :)
  
  In any case, you have write access to that directory right?

TASK DETAIL
  https://phabricator.wikimedia.org/T245209

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Dvorapa, Aklapper, zhuyifei1999, pywikibot-bugs-list, Framawiki, Zkhalido, 
Viztor, Wenyi, Zylc, 1978Gage2001, aborrero, DSquirrelGM, Chicocvenancio, 
Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Altostratus, Avicennasis, 
Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, 
coren, Rxy, Krenair
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Closed] T235768: generate_family_file.py crashes when run against private wikis

2019-11-13 Thread zhuyifei1999
zhuyifei1999 closed this task as "Resolved".

TASK DETAIL
  https://phabricator.wikimedia.org/T235768

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: gbenson, zhuyifei1999
Cc: A2093064, zhuyifei1999, Dvorapa, Aklapper, gbenson, pywikibot-bugs-list, 
Zkhalido, Hook696, Daryl-TTMG, RomaAmorRoma, 0010318400, E.S.A-Sheild, 
Meekrab2012, joker88john, Viztor, DannyS712, CucyNoiD, NebulousIris, Wenyi, 
Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, 
Af420, Darkminds3113, Bsandipan, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, 
Liugev6, Tbscho, MayS, WSH1906, Lewizho99, Mdupont, JJMC89, Maathavan, 
Altostratus, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Closed] T235320: test_articles and test_members methods of category_tests.TestCategoryObject are failing

2019-10-13 Thread zhuyifei1999
zhuyifei1999 closed this task as "Resolved".
zhuyifei1999 added a comment.


  https://travis-ci.org/wikimedia/pywikibot/jobs/597288441

TASK DETAIL
  https://phabricator.wikimedia.org/T235320

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt, zhuyifei1999
Cc: zhuyifei1999, Aklapper, pywikibot-bugs-list, Xqt, Zkhalido, Viztor, 
DannyS712, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, 
Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T71283: dualism between user and sysop needs to be overtaken

2019-08-28 Thread zhuyifei1999
zhuyifei1999 added a comment.


  This is assuming the default family/lang is Commons. The same applies to any 
other site if the parameters passed to the Site constructor matches any case 
given to the `usernames` dict.
  
  `del usernames['commons']`:
  
>>> pywikibot.Site().username()
[Error about username not set]
>>> pywikibot.Site(user='MyBot0').username()
'MyBot0'
  
  `usernames['commons']['commons'] = 'MyBot1'`:
  
>>> pywikibot.Site().username()
'MyBot1'
>>> pywikibot.Site(user='MyBot0').username()
'MyBot0'
  
  `usernames['commons']['commons'] = []`:
  
>>> pywikibot.Site().username()
[Error about username not set]
>>> pywikibot.Site(user='MyBot0').username()
[Error about username constraint not satisfied]
  
  `usernames['commons']['commons'] = ['MyBot1']`:
  
>>> pywikibot.Site().username()
'MyBot1'
>>> pywikibot.Site(user='MyBot1').username()
'MyBot1'
>>> pywikibot.Site(user='MyBot0').username()
[Error about username constraint not satisfied]
  
  `usernames['commons']['commons'] = ['MyBot1', 'MyBot2']`:
  
>>> pywikibot.Site().username()
[Error about username not set]
>>> pywikibot.Site(user='MyBot1').username()
'MyBot1'
>>> pywikibot.Site(user='MyBot0').username()
[Error about username constraint not satisfied]
  
  The `list` is not the focus. The container will be turned into a set object 
for de-duplication, and the order does not matter anyways.

TASK DETAIL
  https://phabricator.wikimedia.org/T71283

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Huji, zhuyifei1999
Cc: Urbanecm, Dvorapa, Huji, Dalba, zhuyifei1999, Sn1per, Aklapper, 
Ciencia_Al_Poder, gerritbot, XZise, jayvdb, Ricordisamoa, pywikibot-bugs-list, 
Hook696, Daryl-TTMG, RomaAmorRoma, 0010318400, E.S.A-Sheild, joker88john, 
Viztor, DannyS712, CucyNoiD, NebulousIris, Wenyi, Gaboe420, Versusxo, 
Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Af420, Darkminds3113, 
Bsandipan, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, 
WSH1906, Lewizho99, Mdupont, JJMC89, Maathavan, Altostratus, Avicennasis, 
mys_721tx, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T71283: dualism between user and sysop needs to be overtaken

2019-08-28 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T71283#5446694 <https://phabricator.wikimedia.org/T71283#5446694>, 
@Urbanecm wrote:
  
  > True that, it can be just one username per site, the preferred one? But 
listing that usernames can be actually useful as a safeguard, to not allow an 
username that's defined, but not allowed in usernames list, in case I don't 
want to use one username somewhere for some reason. Feel free to make it only 
default username, that's fine as well, just thinking loud :).
  
  How about:
  
  - If it is not defined: No constraint, no defaults. One of my web tools use 
pywikibot this way and uses OAuth tokens from mwoauth to switch between users.
  - If it is a string: No constraint, default to string value. I use a few bots 
that switch to another non-default user by simply setting user= in site 
constructor
  - If it is a set of 0 strings: Unsatisfible constraint. Non-loginable, 
read-only.
  - If it is a set of 1 string: Constraint to default, default to string value.
  - If it is a set of multiple strings: Constraint to the set, no defaults.

TASK DETAIL
  https://phabricator.wikimedia.org/T71283

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Huji, zhuyifei1999
Cc: Urbanecm, Dvorapa, Huji, Dalba, zhuyifei1999, Sn1per, Aklapper, 
Ciencia_Al_Poder, gerritbot, XZise, jayvdb, Ricordisamoa, pywikibot-bugs-list, 
Hook696, Daryl-TTMG, RomaAmorRoma, 0010318400, E.S.A-Sheild, joker88john, 
Viztor, DannyS712, CucyNoiD, NebulousIris, Wenyi, Gaboe420, Versusxo, 
Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Af420, Darkminds3113, 
Bsandipan, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, 
WSH1906, Lewizho99, Mdupont, JJMC89, Maathavan, Altostratus, Avicennasis, 
mys_721tx, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T71283: dualism between user and sysop needs to be overtaken

2019-08-28 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T71283#5446611 <https://phabricator.wikimedia.org/T71283#5446611>, 
@Dvorapa wrote:
  
  > BTW Pywikibot tests miss the way to simply switch between several accounts 
(OAuth, BotPasswords, regular password) as well.
  
  The login manager is too stateful. You want PEP 554 
<https://www.python.org/dev/peps/pep-0554/>.

TASK DETAIL
  https://phabricator.wikimedia.org/T71283

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Huji, zhuyifei1999
Cc: Urbanecm, Dvorapa, Huji, Dalba, zhuyifei1999, Sn1per, Aklapper, 
Ciencia_Al_Poder, gerritbot, XZise, jayvdb, Ricordisamoa, pywikibot-bugs-list, 
Hook696, Daryl-TTMG, RomaAmorRoma, 0010318400, E.S.A-Sheild, joker88john, 
Viztor, DannyS712, CucyNoiD, NebulousIris, Wenyi, Gaboe420, Versusxo, 
Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Af420, Darkminds3113, 
Bsandipan, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, 
WSH1906, Lewizho99, Mdupont, JJMC89, Maathavan, Altostratus, Avicennasis, 
mys_721tx, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T71283: dualism between user and sysop needs to be overtaken

2019-08-28 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T71283#5446608 <https://phabricator.wikimedia.org/T71283#5446608>, 
@Urbanecm wrote:
  
  > name=user-config.py
  >   accounts = {
  >   "oznamovatel": {
  >   "username": "Oznamovatel",
  >   "oauth": [ consumer key, consumer secret, client key, client 
secret ]
  >   },
  >   "urbanecmbot": {
  >   "username": "UrbanecmBot",
  >   "oauth": [ consumer key, consumer secret, client key, client 
secret ]
  >   }
  >   }
  >   usernames['wikipedia']['cs'] = [  'urbanecmbot', 'oznamovatelbot' ] # 
both urbanecmbot and oznamovatelbot used
  >   usernames['wikipedia']['en'] = [  'urbanecmbot' ] # only urbanecmbot used
  
  I like the idea of supporting OAuth tokens for an infinite number of users 
per site. However, given that the user is provided by command line, and that 
the family/lang tuple is provided in the site constructor, what is the point of 
providing a user list per site? It is not like pywikibot will attempt to 
fallback through this list.
  
  > To put it simply, Czech Wikipedia is less developped than the English one 
speaking of policies, which leaves us with only a policy about how a human can 
become an admin, but none policy about how can a computer/bot become an admin. 
Bureacurats don't want to implement a precedent with granting sysop rights to 
alterego accounts, which is what bot account kinda-is. For instance, all my 
adminbot activity is distinguished only by summary prefixed with `Bot`, and 
runs from my own account.
  
  This is risking your own personal account getting blocked for bot activity, 
in the case that it malfunctions.

TASK DETAIL
  https://phabricator.wikimedia.org/T71283

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Huji, zhuyifei1999
Cc: Urbanecm, Dvorapa, Huji, Dalba, zhuyifei1999, Sn1per, Aklapper, 
Ciencia_Al_Poder, gerritbot, XZise, jayvdb, Ricordisamoa, pywikibot-bugs-list, 
Hook696, Daryl-TTMG, RomaAmorRoma, 0010318400, E.S.A-Sheild, joker88john, 
Viztor, DannyS712, CucyNoiD, NebulousIris, Wenyi, Gaboe420, Versusxo, 
Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Af420, Darkminds3113, 
Bsandipan, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, 
WSH1906, Lewizho99, Mdupont, JJMC89, Maathavan, Altostratus, Avicennasis, 
mys_721tx, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T71283: dualism between user and sysop needs to be overtaken

2019-08-28 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T71283#5446512 <https://phabricator.wikimedia.org/T71283#5446512>, 
@Dvorapa wrote:
  
  > This is quite common situation on Czech Wikipedia, one bot account and one 
sysop account for every sysop bot operator, edits by Pywikibot are made from 
each of them depending on whether sysop rights are needed or not. I suggest 
somethng like this (pseudocode):
  
  
  
  1. Why is the separation necessary? It's not like you can't use 
BotPasswords...
  2. T71283#5442078 <https://phabricator.wikimedia.org/T71283#5442078>:
  
user_a = Site(user='UserA')
user_b = Site(user='UserB')
pywikibot.Page(user_a, 'foobar').do_stuffs()
pywikibot.Page(user_b, 'foobar').do_stuffs()
  
  
  
  >   usernames[wikipedia][cs] = ['DvorapaBot', 'Dvorapa', 'DvorapaTest']
  
  Are you proposing to test each user for whether they have rights? This does 
not feels right to me. Errors should not fail silently by using a fallback, 
especially in the case when the 'actor' is being changed. If one account is 
blocked, the bot should stop, not continuing operating on an alt.
  
  In T71283#5446517 <https://phabricator.wikimedia.org/T71283#5446517>, 
@Dvorapa wrote:
  
  > What is ZOI rule? Never heard about it and Wiki article does not explain it 
at all. Not sure what do you want to say.
  
  How about these?
  
  - https://en.wiktionary.org/wiki/zero_one_infinity_rule
  - http://www.catb.org/jargon/html/Z/Zero-One-Infinity-Rule.html
  
  The point being, if we have dualism, why not tri-ism, quad-ism, quint-ism?

TASK DETAIL
  https://phabricator.wikimedia.org/T71283

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Huji, zhuyifei1999
Cc: Urbanecm, Dvorapa, Huji, Dalba, zhuyifei1999, Sn1per, Aklapper, 
Ciencia_Al_Poder, gerritbot, XZise, jayvdb, Ricordisamoa, pywikibot-bugs-list, 
Hook696, Daryl-TTMG, RomaAmorRoma, 0010318400, E.S.A-Sheild, joker88john, 
Viztor, DannyS712, CucyNoiD, NebulousIris, Wenyi, Gaboe420, Versusxo, 
Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Af420, Darkminds3113, 
Bsandipan, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, 
WSH1906, Lewizho99, Mdupont, JJMC89, Maathavan, Altostratus, Avicennasis, 
mys_721tx, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T71283: dualism between user and sysop needs to be overtaken

2019-08-27 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T71283#5443879 <https://phabricator.wikimedia.org/T71283#5443879>, 
@Dvorapa wrote:
  
  > The only thing needed is to support specifying two accounts, one bot, one 
sysop and allow to switch between them easily (by a parameter?)
  
  This violates zero one infinity rule 
<https://en.wikipedia.org/wiki/Zero_one_infinity_rule>. If sysop is different, 
why would any other right be different? T71283#1040594 
<https://phabricator.wikimedia.org/T71283#1040594>
  
  Besides, what is the need for the separation? And how frequent do they appear?

TASK DETAIL
  https://phabricator.wikimedia.org/T71283

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Huji, zhuyifei1999
Cc: Dvorapa, Huji, Dalba, zhuyifei1999, Sn1per, Aklapper, Ciencia_Al_Poder, 
gerritbot, XZise, jayvdb, Ricordisamoa, pywikibot-bugs-list, Hook696, 
Daryl-TTMG, RomaAmorRoma, 0010318400, E.S.A-Sheild, joker88john, Viztor, 
DannyS712, CucyNoiD, NebulousIris, Wenyi, Gaboe420, Versusxo, 
Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Af420, Darkminds3113, 
Bsandipan, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, 
WSH1906, Lewizho99, Mdupont, JJMC89, Maathavan, Altostratus, Avicennasis, 
mys_721tx, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T71283: dualism between user and sysop needs to be overtaken

2019-08-27 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T71283#5441831 <https://phabricator.wikimedia.org/T71283#5441831>, @Huji 
wrote:
  
  > At this point, all that would be left to be done is to devise a strategy 
for those who need to use different accounts on different wikis (or different 
accounts for different parts of the same script). The latter is such a rare use 
case, that I don't think we should prioritize working on it for now.
  
  
  
user_a = Site(user='UserA')
user_b = Site(user='UserB')

TASK DETAIL
  https://phabricator.wikimedia.org/T71283

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: jayvdb, zhuyifei1999
Cc: Huji, Dalba, zhuyifei1999, Sn1per, Aklapper, Ciencia_Al_Poder, gerritbot, 
XZise, jayvdb, Ricordisamoa, pywikibot-bugs-list, Hook696, Daryl-TTMG, 
RomaAmorRoma, 0010318400, E.S.A-Sheild, joker88john, Viztor, DannyS712, 
CucyNoiD, NebulousIris, Wenyi, Gaboe420, Versusxo, Majesticalreaper22, 
Giuliamocci, Adrian1985, Cpaulf30, Af420, Darkminds3113, Bsandipan, Lordiis, 
Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, WSH1906, Lewizho99, 
Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, 
Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T71283: dualism between user and sysop needs to be overtaken

2019-08-22 Thread zhuyifei1999
zhuyifei1999 added a comment.


  config2.py needs to emit a warning that sysopnames don't work anymore (if we 
decide to just break it)

TASK DETAIL
  https://phabricator.wikimedia.org/T71283

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: jayvdb, zhuyifei1999
Cc: Huji, Dalba, zhuyifei1999, Sn1per, Aklapper, Ciencia_Al_Poder, gerritbot, 
XZise, jayvdb, Ricordisamoa, pywikibot-bugs-list, Hook696, Daryl-TTMG, 
RomaAmorRoma, 0010318400, E.S.A-Sheild, joker88john, Viztor, DannyS712, 
CucyNoiD, NebulousIris, Wenyi, Gaboe420, Versusxo, Majesticalreaper22, 
Giuliamocci, Adrian1985, Cpaulf30, Af420, Darkminds3113, Bsandipan, Lordiis, 
Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, WSH1906, Lewizho99, 
Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, mys_721tx, 
Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T226507: Port pywikibot-core to new pywikibot IV repository (tracking)

2019-06-26 Thread zhuyifei1999
zhuyifei1999 added a comment.


  I don't remember what was the proposed solution at the meetup (maybe branch 
or tags, but no memory of creating a new repo at all), but the problem was 
discussed AFAICR. You also have to account for that at the meetup there are 
many of those who are just 'using pywikibot', but here, pretty much everyone is 
a pywikibot dev, who may have different priorities than end users.
  
  From my 'pywikibot user / out-of-tree scripts developer' perspective, yes, 
breaking compatibility is gonna generate a huge amount of work for me (almost 
all of my pywikibot scripts have only been tested with py2 because, well, I 
have been procrastinating to rebuild my toolforge virtualenv -- it's not just a 
virtualenv but a 'prefix' for a few compiled binaries as well), but this work 
is coming sooner or later anyways, with the pending EOL of py2. As long as I 
want to keep my bots alive it has to be done, whether it's Pywikibot killing 
py2 first or Toolforge does.
  
  From my 'pywikibot dev' perspective, really, if you are auto updating from 
git, have you not have enough breakages already from randomly pulling, that 
this py3 breakage isn't a big deal? If not, then that's our bad; we aren't 
enforcing deprecations properly.
  
  So yeah, I prefer breaking py2 soonish, a few weeks after an announcement, 
rather than creating a new repo and make migrations harder than git pull + 
rebuild virtualenv.

TASK DETAIL
  https://phabricator.wikimedia.org/T226507

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: matej_suchanek, Frettie, Geertivp, Tobias1984, Chicocvenancio, Ladsgroup, 
Aklapper, pywikibot-bugs-list, zhuyifei1999, hashar, D3r1ck01, Lokal_Profil, 
Framawiki, valhallasw, Multichill, Mpaa, Dvorapa, Dalba, Xqt, Viztor, 
DannyS712, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, 
mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T226507: Port pywikibot-core to new pywikibot IV repository (tracking)

2019-06-25 Thread zhuyifei1999
zhuyifei1999 added a comment.


  pwbc... pywikibot core; pwbd... pywikibot... daemon?

TASK DETAIL
  https://phabricator.wikimedia.org/T226507

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: matej_suchanek, Frettie, Geertivp, Tobias1984, Chicocvenancio, Ladsgroup, 
Aklapper, pywikibot-bugs-list, zhuyifei1999, hashar, D3r1ck01, Lokal_Profil, 
Framawiki, valhallasw, Multichill, Mpaa, Dvorapa, Dalba, Xqt, Viztor, 
DannyS712, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, 
mys_721tx, jayvdb, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T221801: Pywikibot meetup (usage and/or development workshop, issues and future discussion, other stuff to talk about)

2019-05-18 Thread zhuyifei1999
zhuyifei1999 added a comment.


  k. I'll be there

TASK DETAIL
  https://phabricator.wikimedia.org/T221801

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Andrawaag, Geertivp, Frettie, Jayprakash12345, valhallasw, Ladsgroup, 
Chicocvenancio, Multichill, zhuyifei1999, Xqt, Aklapper, pywikibot-bugs-list, 
Dvorapa, darthmon_wmde, Ferenczy, sarhan.alaa, Samuditha24, IM3847, Viztor, 
DannyS712, Wenyi, kostajh, MichaelSchoenitzer_WMDE, Tbscho, MayS, Mdupont, 
JJMC89, Jogi_don, D3r1ck01, Avicennasis, Samwilson, mys_721tx, Jdlrobson, 
jayvdb, Dalba, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T221801: Pywikibot meetup (usage and/or development workshop, issues and future discussion, other stuff to talk about)

2019-05-18 Thread zhuyifei1999
zhuyifei1999 added a comment.


  You mean 3PM? Sure. Where though?

TASK DETAIL
  https://phabricator.wikimedia.org/T221801

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Andrawaag, Geertivp, Frettie, Jayprakash12345, valhallasw, Ladsgroup, 
Chicocvenancio, Multichill, zhuyifei1999, Xqt, Aklapper, pywikibot-bugs-list, 
Dvorapa, darthmon_wmde, Ferenczy, sarhan.alaa, Samuditha24, IM3847, Viztor, 
DannyS712, Wenyi, kostajh, MichaelSchoenitzer_WMDE, Tbscho, MayS, Mdupont, 
JJMC89, Jogi_don, D3r1ck01, Avicennasis, Samwilson, mys_721tx, Jdlrobson, 
jayvdb, Dalba, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T184712: Page.title(as_url=True) should encode also slashes

2019-05-16 Thread zhuyifei1999
zhuyifei1999 added a comment.


  No, the title was 'fixed', but is reopened for a (partial) revert afaict.

TASK DETAIL
  https://phabricator.wikimedia.org/T184712

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, Dvorapa, Xqt, Yurik, Aklapper, Dalba, gerritbot, Framawiki, 
pywikibot-bugs-list, Blahma, E.S.A-Sheild, joker88john, Viztor, DannyS712, 
CucyNoiD, NebulousIris, Wenyi, Gaboe420, Versusxo, Majesticalreaper22, 
Giuliamocci, Adrian1985, Cpaulf30, Baloch007, Darkminds3113, Bsandipan, 
Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, WSH1906, 
Lewizho99, Mdupont, JJMC89, Maathavan, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T221801: Pywikibot meetup (usage and/or development workshop, issues and future discussion, other stuff to talk about)

2019-05-16 Thread zhuyifei1999
zhuyifei1999 added a comment.


  Anyone at the bar?

TASK DETAIL
  https://phabricator.wikimedia.org/T221801

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Geertivp, Frettie, Jayprakash12345, valhallasw, Ladsgroup, Chicocvenancio, 
Multichill, zhuyifei1999, Xqt, Aklapper, pywikibot-bugs-list, Dvorapa, 
darthmon_wmde, Ferenczy, sarhan.alaa, Samuditha24, IM3847, Viztor, DannyS712, 
Wenyi, kostajh, MichaelSchoenitzer_WMDE, Tbscho, MayS, Mdupont, JJMC89, 
Jogi_don, D3r1ck01, Avicennasis, Samwilson, mys_721tx, Jdlrobson, jayvdb, 
Dalba, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T192733: Remove old symlinks to trunk/rewrite/compat/pywikipedia in /shared

2019-05-11 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T192733#5174491 <https://phabricator.wikimedia.org/T192733#5174491>, 
@Dvorapa wrote:
  
  > Some people perhaps add it to PATH in their .profile etc.
  
  
  Depending on how people did this, there are
  
  - .profile
  - .bash_profile
  - .bashrc
  - .bash_aliases
  - 
  
  And considering this will be NFS operation, it will be much more expensive 
than fixing crontabs.

TASK DETAIL
  https://phabricator.wikimedia.org/T192733

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Urbanecm, matej_suchanek, valhallasw, Multichill, Xqt, zhuyifei1999, 
Framawiki, Aklapper, pywikibot-bugs-list, Dvorapa, Viztor, DannyS712, Wenyi, 
AndyTan, sietec, Zylc, Bstorm, 1978Gage2001, aborrero, Chicocvenancio, 
Allthingsgo, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Avicennasis, srodlund, 
Luke081515, mys_721tx, Gryllida, jayvdb, Dalba, Masti, scfc, Alchimista, coren, 
Rxy, bd808, Krenair, chasemp
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T192733: Remove old symlinks to trunk/rewrite/compat/pywikipedia in /shared

2019-05-11 Thread zhuyifei1999
zhuyifei1999 added a comment.


  If we really want to move forward with this task, how about this?
  
  - Send a mail to lists pywikibot, cloud, cloud-announce (somehow get approved 
for this). With an explicit date that the symlinks will be removed.
  - A week before the date of removal, toolforge roots can sed through all the 
crontabs and replace all the references.
  - After the date, a tools.pywikibot member can remove the symlinks. Any 
further access will ENOENT.
  
  Sadly, this is gonna cost all my 4-digit job IDs. They are the last remains 
<https://tools.wmflabs.org/sge-status/> :'( Low entropy is hard...

TASK DETAIL
  https://phabricator.wikimedia.org/T192733

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Urbanecm, matej_suchanek, valhallasw, Multichill, Xqt, zhuyifei1999, 
Framawiki, Aklapper, pywikibot-bugs-list, Dvorapa, Viztor, DannyS712, Wenyi, 
AndyTan, sietec, Zylc, Bstorm, 1978Gage2001, aborrero, Chicocvenancio, 
Allthingsgo, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Avicennasis, srodlund, 
Luke081515, mys_721tx, Gryllida, jayvdb, Dalba, Masti, scfc, Alchimista, coren, 
Rxy, bd808, Krenair, chasemp
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T221801: Pywikibot usage and/or development workshop

2019-04-25 Thread zhuyifei1999
zhuyifei1999 added a comment.


  > solve sysop dualism
  
  I will also be there

TASK DETAIL
  https://phabricator.wikimedia.org/T221801

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, Xqt, Aklapper, pywikibot-bugs-list, Dvorapa, Ferenczy, 
sarhan.alaa, Samuditha24, IM3847, Wenyi, kostajh, Jayprakash12345, 
Chicocvenancio, Tbscho, MayS, Mdupont, JJMC89, Jogi_don, D3r1ck01, Avicennasis, 
Samwilson, SBisson, mys_721tx, Jdlrobson, jayvdb, Dalba, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T217908: Don't update pywikibot directly from master but from last published tag

2019-03-15 Thread zhuyifei1999
zhuyifei1999 added a comment.


  > $(git tag | tail -1)
  
  Need repo cloned. Seperate into two commands?

TASK DETAIL
  https://phabricator.wikimedia.org/T217908

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt, zhuyifei1999
Cc: zhuyifei1999, Dvorapa, pywikibot-bugs-list, Chicocvenancio, Xqt, Wenyi, 
R96340, Allthingsgo, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Avicennasis, 
mys_721tx, Jane023, yuvipanda, Capt_Swing, jayvdb, Dalba, Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T217639: Should novices patches run full tests?

2019-03-05 Thread zhuyifei1999
zhuyifei1999 added a comment.


  Historically, CI was insecure. The ability to run full tests means that you 
can run arbitrary code on it, and historically CI test runners were not as 
'isolated' as they currently are, so you had all sorts of opportunities to 
hijack the CI servers... a whitelist was needed. This was worked on in the CI 
isolation project 
<https://www.mediawiki.org/wiki/Continuous_integration/Architecture/Isolation>, 
and now we do have nice isolation. I don't know why the whitelist was not 
removed, considering it was part of the long term plan 
<https://phabricator.wikimedia.org/T107668#1501069>. (perhaps to prevent, say 
DOS attacks?)

TASK DETAIL
  https://phabricator.wikimedia.org/T217639

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Aklapper, pywikibot-bugs-list, Dvorapa, Dalba, zhuyifei1999, Xqt, Wenyi, 
Tbscho, MayS, Framawiki, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, 
Masti, Alchimista, Rxy
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T134495: Create a "my first Pywikibot bot" tutorial for Toolforge

2019-02-26 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T134495#4986303 <https://phabricator.wikimedia.org/T134495#4986303>, 
@Dvorapa wrote:
  
  > both pretty good
  
  
  both interior to the other in some aspects.
  
  > https://wikitech.wikimedia.org/wiki/Help:Toolforge/Pywikibot
  
  
  
  - Should use `/shared/pywikibot/core` (if grid-only 
<https://github.com/wikimedia/puppet/blob/aec9ccc093f2ba54f88e3d8aad4721732a5a98bd/modules/profile/manifests/toolforge/grid/base.pp#L91>)
 or `/data/project/shared/pywikibot/core` (works also in k8s, but I very few 
run bots in k8s...)
  - Modifying `PYTHONPATH` is evil. There is no guarantee 
<https://phabricator.wikimedia.org/T164277> that bash_profile will be loaded at 
all. (T134495#4078967 <https://phabricator.wikimedia.org/T134495#4078967>)
- Highly recommend either using venv and/or the pwb.py in the shared 
nightly clone.
- Honestly, some people tell you to modify env vars with .bashrc, some 
.bash_profile, some .profile, and some .bash_aliases. The outcome? A terrible 
mess. (My opinion: .bash_aliases should go into .bashrc and .bashrc should be 
loaded by .profile after testing if the shell is bash; .bash_profile should go 
into .profile. Keep login shell configuration in .profile and non-login shell 
configuration in .bashrc)
  - Doesn't explain T60784#3925224 
<https://phabricator.wikimedia.org/T60784#3925224> (Granted, people are very 
unlikely to hit this bug if they use pywikibot's own scripts, but if some more 
advanced people start to code their own pywikibot scripts and start adding some 
print statements, oh, gotta expect some fun...)
  - `generate_user_files.py` is evil. (my opinion doesn't help does it? 
admittedly, the script does help newcomers a lot, so, ignore this complaint)
  - Should seriously stop talking about compat. It ain't supported.
  - `Setup web-space` is like 4 years outdated. I'd recommend just remove the 
section.
  - qcronsub?! Is this toolserver?
  - Why `h_vmem` when we have `-mem`?
  - 256MB was default limit... until 3 years ago 
<https://phabricator.wikimedia.org/T120517>
  - Should start talking about python3 rather than this aged python2
  
  tl;dr: badly outdated.
  
  > https://wikitech.wikimedia.org/wiki/Help:Toolforge/My_first_Pywikibot_tool
  
  - Nice docs on how to access toolforge
  - Local clone is the only way? This should not be used unless you're 
developing pywikibot code itself.
  - The instruction for webpage... while it works, it has nothing to do with 
pywikibot.
  - Doesn't even talk about how to submit a job to wither grid or k8s.
  - And yeah... empty sections
  
  tl;dr: nice start, but bad finish, lacking in so much stuffs that should be 
said.
  
  > https://wikitech.wikimedia.org/wiki/User:Dvorapa/Toolforge_for_beginners
  
  Looking forward to it :)

TASK DETAIL
  https://phabricator.wikimedia.org/T134495

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: srodlund, zhuyifei1999
Cc: Wenyi, binbot, Dvorapa, pywikibot-bugs-list, Framawiki, Xephyr826, 
tom29739, Vaishnav980123, zhuyifei1999, Mattias_Ostmar-WMSE, jayvdb, Aklapper, 
bd808, Zppix, Urstrulykkr, AndyTan, Zylc, Cpaulf30, 1978Gage2001, aborrero, 
Ivana_Isadora, Jayprakash12345, Chicocvenancio, Tbscho, MayS, Freddy2001, 
Mdupont, JJMC89, Avicennasis, srodlund, Luke081515, mys_721tx, Dinoguy1000, 
Gryllida, -jem-, Dalba, Masti, scfc, Alchimista, coren, Rxy, Jay8g, Krenair, 
chasemp
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T216741: MySQL page generator throws error on sock.close() on toolforge

2019-02-21 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T216741#4973335 <https://phabricator.wikimedia.org/T216741#4973335>, 
@bd808 wrote:
  
  > Is 
https://wikitech.wikimedia.org/wiki/Help:Toolforge/My_first_Flask_OAuth_tool a 
bad tutorial in your opinion, or just not relevant to your particular problem?
  
  
  It focuses on python webservice on k8s. `$ webservice --backend=kubernetes 
python shell` would be misleading. It also does not contain information on how 
to load the venv from a cron job submitthing to grid.
  
  It's a good tutorial for its use case, but it needs quite a bit digestion for 
one to setup a venv for a grid cron job,

TASK DETAIL
  https://phabricator.wikimedia.org/T216741

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: bd808, Xqt, zhuyifei1999, Mpaa, Aklapper, pywikibot-bugs-list, Dvorapa, 
Wenyi, AndyTan, Zylc, 1978Gage2001, aborrero, Chicocvenancio, Tbscho, MayS, 
Freddy2001, Mdupont, JJMC89, Avicennasis, srodlund, Luke081515, mys_721tx, 
Gryllida, jayvdb, Dalba, Masti, scfc, Alchimista, coren, Rxy, Krenair, chasemp
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T216741: MySQL page generator throws error on sock.close() on toolforge

2019-02-21 Thread zhuyifei1999
zhuyifei1999 added a comment.


  The fix was 
https://github.com/PyMySQL/PyMySQL/commit/0e01158fb8a204144c5ae983bea2b3e4ff93,
 part of v0.7.11 release.

TASK DETAIL
  https://phabricator.wikimedia.org/T216741

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Xqt, zhuyifei1999, Mpaa, Aklapper, pywikibot-bugs-list, Dvorapa, Wenyi, 
AndyTan, Zylc, 1978Gage2001, aborrero, Chicocvenancio, Tbscho, MayS, 
Freddy2001, Mdupont, JJMC89, Avicennasis, srodlund, Luke081515, mys_721tx, 
Gryllida, jayvdb, Dalba, Masti, scfc, Alchimista, coren, Rxy, Krenair, chasemp
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T216741: MySQL page generator throws error on sock.close() on toolforge

2019-02-21 Thread zhuyifei1999
zhuyifei1999 added a comment.


  In T216741#4973067 <https://phabricator.wikimedia.org/T216741#4973067>, 
@zhuyifei1999 wrote:
  
  > If close happened due to 'MySQL server has gone away', we should have 
received a `OperationalError`.
  
  
  This was nullified by `except Exception:` `pass`

TASK DETAIL
  https://phabricator.wikimedia.org/T216741

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Xqt, zhuyifei1999, Mpaa, Aklapper, pywikibot-bugs-list, Dvorapa, Wenyi, 
AndyTan, Zylc, 1978Gage2001, aborrero, Chicocvenancio, Tbscho, MayS, 
Freddy2001, Mdupont, JJMC89, Avicennasis, srodlund, Luke081515, mys_721tx, 
Gryllida, jayvdb, Dalba, Masti, scfc, Alchimista, coren, Rxy, Krenair, chasemp
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T216741: MySQL page generator throws error on sock.close() on toolforge

2019-02-21 Thread zhuyifei1999
zhuyifei1999 added a comment.


  If close happened due to 'MySQL server has gone away', we should have 
received a `OperationalError`.

TASK DETAIL
  https://phabricator.wikimedia.org/T216741

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Xqt, zhuyifei1999, Mpaa, Aklapper, pywikibot-bugs-list, Dvorapa, Wenyi, 
AndyTan, Zylc, 1978Gage2001, aborrero, Chicocvenancio, Tbscho, MayS, 
Freddy2001, Mdupont, JJMC89, Avicennasis, srodlund, Luke081515, mys_721tx, 
Gryllida, jayvdb, Dalba, Masti, scfc, Alchimista, coren, Rxy, Krenair, chasemp
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T216741: MySQL page generator throws error on sock.close() on toolforge

2019-02-21 Thread zhuyifei1999
zhuyifei1999 added a comment.


def _write_bytes(self, data):
self._sock.settimeout(self._write_timeout)
try:
self._sock.sendall(data)
except IOError as e:
self._force_close()
raise err.OperationalError(
CR.CR_SERVER_GONE_ERROR,
"MySQL server has gone away (%r)" % (e,))
  
  
  
def _force_close(self):
"""Close connection without QUIT message"""
if self._sock:
try:
self._sock.close()
except:
pass
self._sock = None
self._rfile = None

TASK DETAIL
  https://phabricator.wikimedia.org/T216741

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Xqt, zhuyifei1999, Mpaa, Aklapper, pywikibot-bugs-list, Dvorapa, Wenyi, 
AndyTan, Zylc, 1978Gage2001, aborrero, Chicocvenancio, Tbscho, MayS, 
Freddy2001, Mdupont, JJMC89, Avicennasis, srodlund, Luke081515, mys_721tx, 
Gryllida, jayvdb, Dalba, Masti, scfc, Alchimista, coren, Rxy, Krenair, chasemp
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T216741: MySQL page generator throws error on sock.close() on toolforge

2019-02-21 Thread zhuyifei1999
zhuyifei1999 added a comment.


def close(self):
"""Send the quit message and close the socket"""
if self._closed:
raise err.Error("Already closed")
self._closed = True
if self._sock is None:
return
send_data = struct.pack('https://phabricator.wikimedia.org/T216741#4972984>, @Xqt 
wrote:
  
  > Can't you try to update the package?
  
  
  No. You have to persuade debian package maintainers to update it. No other 
version is install-able under our current policy.
  
$ apt-cache policy python-pymysql
python-pymysql:
  Installed: 0.7.10-1
  Candidate: 0.7.10-1
  Version table:
 *** 0.7.10-1 500
500 http://deb.debian.org/debian stretch/main amd64 Packages
100 /var/lib/dpkg/status

TASK DETAIL
  https://phabricator.wikimedia.org/T216741

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Xqt, zhuyifei1999, Mpaa, Aklapper, pywikibot-bugs-list, Dvorapa, Wenyi, 
AndyTan, Zylc, 1978Gage2001, aborrero, Chicocvenancio, Tbscho, MayS, 
Freddy2001, Mdupont, JJMC89, Avicennasis, srodlund, Luke081515, mys_721tx, 
Gryllida, jayvdb, Dalba, Masti, scfc, Alchimista, coren, Rxy, Krenair, chasemp
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T216741: MySQL page generator throws error on sock.close() on toolforge

2019-02-21 Thread zhuyifei1999
zhuyifei1999 added a comment.


  Which host (or via what means; bastion/grid/k8s; trusty/jessie/stretch) is 
the script executed on?

TASK DETAIL
  https://phabricator.wikimedia.org/T216741

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: zhuyifei1999, Mpaa, Aklapper, pywikibot-bugs-list, Dvorapa, Wenyi, AndyTan, 
Zylc, 1978Gage2001, aborrero, Chicocvenancio, Tbscho, MayS, Freddy2001, 
Mdupont, JJMC89, Avicennasis, srodlund, Luke081515, mys_721tx, Gryllida, 
jayvdb, Dalba, Masti, scfc, Alchimista, coren, Rxy, Krenair, chasemp
___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Retitled] T215038: Pywikibot failing with non-jSON response errors due to FANDOM url change

2019-01-31 Thread zhuyifei1999
zhuyifei1999 renamed this task from "Bot problems" to "Pywikibot failing with non-jSON response errors due to FANDOM url change".zhuyifei1999 removed a subscriber: pywikibot-bugs-list.
TASK DETAILhttps://phabricator.wikimedia.org/T215038EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999Cc: Aklapper, Gurte, Wenyi, Mahveotm, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy, pywikibot-bugs-list___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: generate_user_files creates user-config.py with mode 777 on WSL, and then pywikibot refuse to load the config for security

2019-01-05 Thread zhuyifei1999
zhuyifei1999 added a comment.
Yeah, I also suspected Windows, as the only possible permission for files coming from Windows is 777.

Ummm.. not really?

We are triggering warning, maybe we should try to change permissions before we throw the warning?

From a stricter security standpoint, if the file is chmodded badly the contents is not trusted. It needs to be manually inspected immediately after chmodded to a securer mode.
(From an even stricter security standpoint, if the file is chmodded badly the file inode must be discarded. There's no telling how many random hackers have already opened the file and will keep their privileges even after chmodding to a restricted value. But that's for Linux, not sure about WSL.)TASK DETAILhttps://phabricator.wikimedia.org/T212723EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999Cc: Framawiki, zhuyifei1999, Dvorapa, Xqt, Zoranzoki21, Aklapper, Wesalius, pywikibot-bugs-list, Wenyi, Mahveotm, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: generate_user_files creates user-config.py with mode 777 on WSL, and then pywikibot refuse to load the config for security

2019-01-05 Thread zhuyifei1999
zhuyifei1999 added a comment.
https://bugs.python.org/issue29214 sigh...TASK DETAILhttps://phabricator.wikimedia.org/T212723EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999Cc: Framawiki, zhuyifei1999, Dvorapa, Xqt, Zoranzoki21, Aklapper, Wesalius, pywikibot-bugs-list, Wenyi, Mahveotm, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Retitled] T212723: generate_user_files creates user-config.py with mode 777 on WSL, and then pywikibot refuse to load the config for security

2019-01-05 Thread zhuyifei1999
zhuyifei1999 renamed this task from "user-config.py with mode 777 is not readable" to "generate_user_files creates user-config.py with mode 777 on WSL, and then pywikibot refuse to load the config for security".
TASK DETAILhttps://phabricator.wikimedia.org/T212723EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999Cc: Framawiki, zhuyifei1999, Dvorapa, Xqt, Zoranzoki21, Aklapper, Wesalius, pywikibot-bugs-list, Wenyi, Mahveotm, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: user-config.py with mode 777 is not readable

2019-01-05 Thread zhuyifei1999
zhuyifei1999 added a comment.
oh, os.open default mode is 777. Why doesn't WSL have a sane umask?TASK DETAILhttps://phabricator.wikimedia.org/T212723EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999Cc: Framawiki, zhuyifei1999, Dvorapa, Xqt, Zoranzoki21, Aklapper, Wesalius, pywikibot-bugs-list, Wenyi, Mahveotm, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: user-config.py with mode 777 is not readable

2019-01-05 Thread zhuyifei1999
zhuyifei1999 added a comment.
Could it be https://github.com/wikimedia/pywikibot/blob/e57dbff2bf6d4dd719a6f576d96a3b285acbc4ea/pywikibot/config2.py#L1054:

if OSWIN32 or _filemode & 0o02 == 0:
with open(_filename, 'rb') as f:
exec(compile(f.read(), _filename, 'exec'), _uc)
else:
warning("Skipped '%(fn)s': writeable by others."
% {'fn': _filename})TASK DETAILhttps://phabricator.wikimedia.org/T212723EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999Cc: Framawiki, zhuyifei1999, Dvorapa, Xqt, Zoranzoki21, Aklapper, Wesalius, pywikibot-bugs-list, Wenyi, Mahveotm, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: user-config.py with mode 777 is not readable

2019-01-05 Thread zhuyifei1999
zhuyifei1999 added a comment.
Though, POSIX ACLs might be able to prevent reading 777 files; I have not looked into that. However, POSIX ACLs should not be 'enabled' for a clean install, and even if it's 'enabled' ls should show clearly that the file has ACLs.TASK DETAILhttps://phabricator.wikimedia.org/T212723EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999Cc: Framawiki, zhuyifei1999, Dvorapa, Xqt, Zoranzoki21, Aklapper, Wesalius, pywikibot-bugs-list, Wenyi, Mahveotm, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: user-config.py with mode 777 is not readable

2019-01-05 Thread zhuyifei1999
zhuyifei1999 added a comment.
mode 777 being un-readable is not POSIX-conformant and is not Linux bahavior. filesystem default to 777 is also not Linux bahavior (which is mode to open(2) - umask).

The paths in the traceback (/mnt/c/) looks like Windows Subsystem for Linux, and I suspect NTFS ACLs are at play here; I don't have a easily-testable windows setup ready so I cannot test this.TASK DETAILhttps://phabricator.wikimedia.org/T212723EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999Cc: Framawiki, zhuyifei1999, Dvorapa, Xqt, Zoranzoki21, Aklapper, Wesalius, pywikibot-bugs-list, Wenyi, Mahveotm, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: Exception - No username

2018-12-31 Thread zhuyifei1999
zhuyifei1999 added a comment.
I think it's loading a wrong user-config.py or something...TASK DETAILhttps://phabricator.wikimedia.org/T212723EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999Cc: zhuyifei1999, Dvorapa, Xqt, Zoranzoki21, Aklapper, Wesalius, pywikibot-bugs-list, Wenyi, Mahveotm, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Commented On] T212046: --help option should works too

2018-12-21 Thread zhuyifei1999
zhuyifei1999 added a comment.

In T212046#4826224, @Dvorapa wrote:
Pywikibot was warned multiple times about this issue.


Pywikibot 4.0 needed  to deprecate all non-standard behavior :) and then there's dd from GNU coreutils that's not really conformant either

Why didn't we use argparse when we rewrote trunk/compat to rewrite/core...TASK DETAILhttps://phabricator.wikimedia.org/T212046EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999Cc: zhuyifei1999, Framawiki, Dvorapa, Xqt, Aklapper, Zoranzoki21, pywikibot-bugs-list, Wenyi, Mahveotm, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Merged] T211886: Fatal error: request has exceeded memory limit in /srv/mediawiki/php-1.33.0-wmf.8/vendor/guzzlehttp/psr7/src/Stream.php on line 97

2018-12-15 Thread zhuyifei1999
zhuyifei1999 added subscribers: Fae, Dvorapa, Steinsplitter, zhuyifei1999, pywikibot-bugs-list.zhuyifei1999 merged a task: T211882: New uploads receiving apparently false empty-file API errors.
TASK DETAILhttps://phabricator.wikimedia.org/T211886EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: BPirkle, zhuyifei1999Cc: pywikibot-bugs-list, zhuyifei1999, Steinsplitter, Dvorapa, Fae, Framawiki, Yann, Stashbot, gerritbot, Legoktm, Reedy, BPirkle, Aklapper, TerraCodes, zeljkofilipin, Liuxinyu970226, Eladio.15___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T211882: New uploads receiving apparently false empty-file API errors

2018-12-15 Thread zhuyifei1999
zhuyifei1999 closed this task as a duplicate of T211886: Fatal error: request has exceeded memory limit in /srv/mediawiki/php-1.33.0-wmf.8/vendor/guzzlehttp/psr7/src/Stream.php on line 97 .
TASK DETAILhttps://phabricator.wikimedia.org/T211882EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999Cc: Yann, Dvorapa, Steinsplitter, zhuyifei1999, Aklapper, Fae, pywikibot-bugs-list, Wenyi, Mahveotm, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


[Pywikipedia-bugs] [Maniphest] [Updated] T211882: New uploads receiving apparently false empty-file API errors

2018-12-13 Thread zhuyifei1999
zhuyifei1999 added a comment.
Likely same as T211900 -> T211886TASK DETAILhttps://phabricator.wikimedia.org/T211882EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999Cc: Dvorapa, Steinsplitter, zhuyifei1999, Aklapper, Fae, pywikibot-bugs-list, Wenyi, Mahveotm, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy___
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs


  1   2   3   4   5   6   >