zhuyifei1999
*Not* Serious business title.

Projects (19)

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Wednesday

  • Clear sailing ahead.

User Details

User Since
Oct 13 2014, 10:19 AM (196 w, 21 m)
Availability
Available
IRC Nick
zhuyifei1999
LDAP User
Zhuyifei1999
MediaWiki User
Zhuyifei1999 [ Global Accounts ]

There is currently no text in this page. You can search for this page title in other pages, or search the related logs.

Recent Activity

Yesterday

zhuyifei1999 renamed T199652: Tool 'wp-world' gives 404s from Every link transcluded from Wikidata regarding Google Maps geo-locations give a 404-error to Tool 'wp-world' gives 404s.
Sun, Jul 15, 5:56 PM · Wikidata, Commons, Tools
zhuyifei1999 added a project to T199652: Tool 'wp-world' gives 404s: Commons.
Sun, Jul 15, 5:56 PM · Wikidata, Commons, Tools
zhuyifei1999 edited projects for T199652: Tool 'wp-world' gives 404s, added: Tools; removed WMF-CTO-Team-InProgress, WMF-CTO-Team-Backlog, WMF-CTO-Admin-Sensitive, Phabricator, Toolforge.
Sun, Jul 15, 5:54 PM · Wikidata, Commons, Tools
zhuyifei1999 added a comment to T199615: filter_unique leaks memory.

We could

  • use hash function for the filter_unique key
  • use hash function for the filter_unique key by default
  • use a GeneratorFactory Container attribute to hold the seen pages which could be reused when we have more than one duplicate filter
Sun, Jul 15, 5:59 AM · Patch-For-Review, Pywikibot-core
zhuyifei1999 merged T199640: Provide a way to store a breakpoint when running some scripts into T139842: Restartable bot framework.
Sun, Jul 15, 5:12 AM · User-DrTrigon, Pywikibot-core
zhuyifei1999 merged task T199640: Provide a way to store a breakpoint when running some scripts into T139842: Restartable bot framework.
Sun, Jul 15, 5:12 AM · Pywikibot-pagegenerators.py

Sat, Jul 14

zhuyifei1999 added a comment to T199615: filter_unique leaks memory.

I see the getsizeof() counts the pointers only but not the Page objects itself.

Sat, Jul 14, 7:21 PM · Patch-For-Review, Pywikibot-core
zhuyifei1999 renamed T199615: filter_unique leaks memory from Long-running tasks may end on MemoryError to filter_unique leaks memory.
Sat, Jul 14, 5:27 PM · Patch-For-Review, Pywikibot-core
zhuyifei1999 added a comment to T199577: Create Wikiversity Chinese.
Sat, Jul 14, 8:59 AM · Patch-For-Review, Chinese-Sites, User-Urbanecm, Wiki-Setup (Create)

Fri, Jul 13

zhuyifei1999 added a comment to T172399: Tool "corenlp" loads assets from google, cloudflare, bootstrapcdn.

@Framawiki My personally suggestion is that we should also copy-paste those common java files (.class?) to our /cdnjs/ajax/libs/,

Fri, Jul 13, 6:28 PM · Tools
zhuyifei1999 updated subscribers of T199338: tools-exec-1419 SSH flapping unresponsiveness, graphite graph holes.

I still don't know why excesive swaps cause issues with SSH & Graphite, but

Fri, Jul 13, 6:52 AM · Toolforge, cloud-services-team

Thu, Jul 12

zhuyifei1999 added a comment to T199338: tools-exec-1419 SSH flapping unresponsiveness, graphite graph holes.

D-sleeps are somewhat frequent, I suspect that's due to the swapping rather than NFS usage. strace shows most syscalls are on fd 3 which is a TCP connection to text-lb.eqiad.wikimedia.org:https, rather than some file IO

Thu, Jul 12, 4:08 PM · Toolforge, cloud-services-team
zhuyifei1999 added a comment to T199338: tools-exec-1419 SSH flapping unresponsiveness, graphite graph holes.
root@tools-exec-1419:~# free -mh
             total       used       free     shared    buffers     cached
Mem:          7.8G       7.6G       226M       328K        10M        41M
-/+ buffers/cache:       7.5G       278M
Swap:          23G       5.8G        18G
root@tools-exec-1419:~# ps uf -u tools.cluebot3
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
tools.c+ 23327  0.0  0.0   4444     4 ?        SNs  Jun29   0:00 /bin/sh /var/spool/gridengine/execd/tools-exec-1419/job_scripts/6896716
tools.c+ 23328 15.6 86.9 13364304 7112052 ?    SN   Jun29 2921:20  \_ php -f /data/project/cluebot3/cluebot3/cluebot3.php
Thu, Jul 12, 4:03 PM · Toolforge, cloud-services-team
zhuyifei1999 added a comment to T199199: Documentation of -recentchanges is misleading.

@Dalba I think jenkins hates me, and I gtg in a few minutes. Could you get the revert merged and cherry pick the original patch to master so we can build upon the original patch?

Thu, Jul 12, 11:54 AM · Patch-For-Review, Pywikibot-Documentation, Pywikibot-core, Pywikibot-pagegenerators.py
zhuyifei1999 closed T124869: replace.py: -sql option is not documented as Resolved.

Thanks @Dvorapa @Framawiki

Thu, Jul 12, 11:20 AM · Patch-For-Review, Pywikibot-Documentation, Easy, Pywikibot-replace.py, Documentation, Pywikibot-core
zhuyifei1999 added a comment to T199071: test_titleblacklist is failing.

@Framawiki?

Thu, Jul 12, 9:26 AM · Pywikibot-tests, Pywikibot-core
zhuyifei1999 closed T199199: Documentation of -recentchanges is misleading as Resolved.
Thu, Jul 12, 9:26 AM · Patch-For-Review, Pywikibot-Documentation, Pywikibot-core, Pywikibot-pagegenerators.py

Wed, Jul 11

zhuyifei1999 updated the task description for T199338: tools-exec-1419 SSH flapping unresponsiveness, graphite graph holes.
Wed, Jul 11, 3:43 PM · Toolforge, cloud-services-team
zhuyifei1999 created T199338: tools-exec-1419 SSH flapping unresponsiveness, graphite graph holes.
Wed, Jul 11, 3:40 PM · Toolforge, cloud-services-team
zhuyifei1999 created P7359 tools-exec-1419 dmesg.
Wed, Jul 11, 3:00 PM
zhuyifei1999 edited projects for T149441: python (python3 only) kubernetes image missing virtualenv command, added: Toolforge; removed Cloud-Services, Tools-Kubernetes.
Wed, Jul 11, 2:10 PM · Toolforge
zhuyifei1999 closed T149441: python (python3 only) kubernetes image missing virtualenv command as Resolved.

You're not in kubernetes.

Wed, Jul 11, 2:09 PM · Toolforge

Tue, Jul 10

zhuyifei1999 added a comment to T199225: https://tools.wmflabs.org/ldap down with 502.

Is ldap querying broken or something? We are having T199185: https://tools.wmflabs.org/contact/ down or removed? at the same time

Tue, Jul 10, 2:18 PM · LDAP, Tools
zhuyifei1999 updated subscribers of T199185: https://tools.wmflabs.org/contact/ down or removed?.
Tue, Jul 10, 9:16 AM · Tools
zhuyifei1999 added a comment to T199071: test_titleblacklist is failing.

Maybe it needs <noedit>? I thought this wasn't required.

Tue, Jul 10, 6:27 AM · Pywikibot-tests, Pywikibot-core
zhuyifei1999 added a comment to T190015: Create separate user group for editing sitewide CSS/JavaScript that does not include administrators by default.

@Tgr I'm afraid only zhuyifei can answer why "two weeks are however not plenty of time to leave a comment on zhwiki"

Tue, Jul 10, 5:39 AM · User-Tgr, Trust-and-Safety, Wikimedia-General-or-Unknown, Patch-For-Review, Security, JavaScript, Security-Core

Sun, Jul 8

zhuyifei1999 added a comment to T198817: Make pagefromfile.py experience better for single page upload.

Also take a look at editarticle.py

Sun, Jul 8, 1:25 PM · Patch-For-Review, Pywikibot-Other-scripts, Pywikibot-core

Fri, Jul 6

zhuyifei1999 added a comment to T198817: Make pagefromfile.py experience better for single page upload.

Add the --recursive flag to git clone.

Fri, Jul 6, 4:23 PM · Patch-For-Review, Pywikibot-Other-scripts, Pywikibot-core
zhuyifei1999 added a comment to T198817: Make pagefromfile.py experience better for single page upload.

@David_Hedlund Everything resolved for you? Can we close this?

Fri, Jul 6, 4:53 AM · Patch-For-Review, Pywikibot-Other-scripts, Pywikibot-core

Thu, Jul 5

zhuyifei1999 added a comment to T198817: Make pagefromfile.py experience better for single page upload.

Creating pages is done, overwriting exiting pages... add_text can't replace.

Thu, Jul 5, 5:43 PM · Patch-For-Review, Pywikibot-Other-scripts, Pywikibot-core
zhuyifei1999 added a comment to T198889: Allow different projects of the same language to have different configs in clean_sandbox.py.

I was suggesting to switch content by dbname, but this can potentially break third-party wikis.

Thu, Jul 5, 5:08 PM · Patch-For-Review, Easy, Pywikibot-core, Pywikibot-Other-scripts
zhuyifei1999 added a comment to T198817: Make pagefromfile.py experience better for single page upload.

I am wondering that it is able for Linux because the option parameter -text:"$(cat Test.wiki)" is just a text. No glue why/how the bot can Interpret this as a batch command

Thu, Jul 5, 3:25 PM · Patch-For-Review, Pywikibot-Other-scripts, Pywikibot-core
zhuyifei1999 closed T198849: Argument processing chokes on python 2 when an argument contains non-ascii as Resolved.

@.avgas It should land on toolforge nightly at 1 UTC.

Thu, Jul 5, 1:25 PM · Patch-For-Review, Regression, Pywikibot-core
zhuyifei1999 added a comment to T198817: Make pagefromfile.py experience better for single page upload.

I suggest to improve both pagefromfile.py and add_text.py/basic.py:

  • pagefromfile.py to make the batch uploading as easy as possible. It should be able to read from the stream, from one file or multiple files.
  • add_text.py/basic.py to make the single page change as easy as possible. It should be able to edit redirects, replace the whole page, create missing page and read from piped input.
  • (probably rename those two scripts to something like single.py and multiple.py or something similar)
Thu, Jul 5, 1:21 PM · Patch-For-Review, Pywikibot-Other-scripts, Pywikibot-core
zhuyifei1999 updated subscribers of T198849: Argument processing chokes on python 2 when an argument contains non-ascii.

I did this diff:

zhuyifei1999@zhuyifei1999-ThinkPad-X260:~/mw-dev/pywikibot-core$ git diff
diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py
index ec06f313..95cf67dd 100644
--- a/pywikibot/pagegenerators.py
+++ b/pywikibot/pagegenerators.py
@@ -1176,6 +1176,7 @@ class GeneratorFactory(object):
         if value == '':
             value = None
Thu, Jul 5, 12:24 PM · Patch-For-Review, Regression, Pywikibot-core
zhuyifei1999 added a project to T198849: Argument processing chokes on python 2 when an argument contains non-ascii: Regression.

shell.py uses sys.argv instread of pywikibot.argvu, I'll just ignore that for now since there isn't really a reason to provide non-ascii args to shell.py.

Thu, Jul 5, 12:10 PM · Patch-For-Review, Regression, Pywikibot-core
zhuyifei1999 claimed T198849: Argument processing chokes on python 2 when an argument contains non-ascii.

I'm debugging this.

Thu, Jul 5, 11:59 AM · Patch-For-Review, Regression, Pywikibot-core
zhuyifei1999 created T198849: Argument processing chokes on python 2 when an argument contains non-ascii.
Thu, Jul 5, 11:59 AM · Patch-For-Review, Regression, Pywikibot-core
zhuyifei1999 added a comment to T198817: Make pagefromfile.py experience better for single page upload.

You may easily add 25 000 delimited entries to that single file and upload them by a single command at once.

Thu, Jul 5, 11:09 AM · Patch-For-Review, Pywikibot-Other-scripts, Pywikibot-core
zhuyifei1999 added a comment to T198817: Make pagefromfile.py experience better for single page upload.

First of all, the file should have correct Pywikibot license.

Thu, Jul 5, 4:54 AM · Patch-For-Review, Pywikibot-Other-scripts, Pywikibot-core

Wed, Jul 4

zhuyifei1999 closed T198760: TypeError: Cannot read property 'replace' of undefined with VFC as Invalid.

I don't know if the Commons community tracks their gadget issues on Phabricator.

Wed, Jul 4, 3:00 PM · Commons

Mon, Jul 2

zhuyifei1999 added a comment to T197930: Build or backport .deb for kubernetes python client for Jessie and Trusty.

It should be python-kubernetes sid => trusty & jessie

Mon, Jul 2, 11:50 AM · Toolforge, Kubernetes
zhuyifei1999 added a comment to T197029: Define in a single place the pseudoname of unnamed queries.

How about a @property in the Query object?

Mon, Jul 2, 10:23 AM · Quarry
zhuyifei1999 merged T198581: Rollbacks by users with autopatrol right on Commons are not being autopatrolled into T198449: Rollback from autopatrolled user was marked as not patrolled.
Mon, Jul 2, 5:57 AM · User-Daniel, MW-1.32-release-notes (WMF-deploy-2018-06-26 (1.32.0-wmf.10)), User-notice, Multi-Content-Revisions (MCR-SDC Storage Layer - phase 1), MediaWiki-Page-editing, Regression, MediaWiki-Patrolling, User-Urbanecm
zhuyifei1999 merged task T198581: Rollbacks by users with autopatrol right on Commons are not being autopatrolled into T198449: Rollback from autopatrolled user was marked as not patrolled.
Mon, Jul 2, 5:57 AM · Commons
zhuyifei1999 added a comment to T198578: Create more Phabricator administrators.

Redundant to T198576?

Mon, Jul 2, 5:50 AM · Phabricator
zhuyifei1999 updated subscribers of T196525: Allow /query/new to accept sql parameter.

Sorry, totally didn't see your reply and forgot to check back.

Mon, Jul 2, 12:18 AM · Quarry

Sun, Jul 1

zhuyifei1999 added a member for Trusted-Contributors: JJMC89.
Sun, Jul 1, 6:25 AM
zhuyifei1999 renamed T194198: The Commons bot should use credentials from replica.my.cnf from The Commons bot should use credentials from my.replica.cnf to The Commons bot should use credentials from replica.my.cnf.
Sun, Jul 1, 6:05 AM · Community-Tech, Commons

Sat, Jun 30

zhuyifei1999 closed T182839: Phabricator uses a variant of upstream favicon when there are unread message(s) in Conpherence as Resolved.

Looks like resolved?

Sat, Jun 30, 6:48 AM · Phabricator

Fri, Jun 29

zhuyifei1999 updated the task description for T198503: CropTool sometimes locks and have to be manually restarted.
Fri, Jun 29, 5:14 PM · Tools, Toolforge
zhuyifei1999 added a comment to T198503: CropTool sometimes locks and have to be manually restarted.

Lots of open connections:

Fri, Jun 29, 5:11 PM · Tools, Toolforge
zhuyifei1999 updated the task description for T198503: CropTool sometimes locks and have to be manually restarted.
Fri, Jun 29, 5:08 PM · Tools, Toolforge
zhuyifei1999 added a comment to T198388: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working.

Is pyparsing.py a concern?

Fri, Jun 29, 8:32 AM · Patch-For-Review, Pywikibot-core
zhuyifei1999 added a comment to T196619: newitem.py ignores -namespace: parameter.

@JAnD resolved now?

Fri, Jun 29, 8:30 AM · Easy, Regression, Pywikibot-core, Pywikibot-pagegenerators.py, Pywikibot-Wikidata
zhuyifei1999 added a comment to T198428: db_username and db_password don't work sometimes.

Not even driver-dependent.

db_connect_file = user_home_path('.my.cnf')
if config.db_connect_file is None:
    credentials = {'user': config.db_username,
                   'passwd': config.db_password}
else:
    credentials = {'read_default_file': config.db_connect_file}
Fri, Jun 29, 5:40 AM · Easy, Pywikibot-core, Pywikibot-Documentation

Thu, Jun 28

zhuyifei1999 added a comment to T196619: newitem.py ignores -namespace: parameter.

Looks like a no-op to me.

Thu, Jun 28, 7:58 PM · Easy, Regression, Pywikibot-core, Pywikibot-pagegenerators.py, Pywikibot-Wikidata
zhuyifei1999 added a comment to T196619: newitem.py ignores -namespace: parameter.
Thu, Jun 28, 7:31 PM · Easy, Regression, Pywikibot-core, Pywikibot-pagegenerators.py, Pywikibot-Wikidata

Wed, Jun 27

zhuyifei1999 added a member for Trusted-Contributors: Jdx.
Wed, Jun 27, 11:21 AM

Tue, Jun 26

zhuyifei1999 created P7302 my nagf fork.
Tue, Jun 26, 6:01 PM
zhuyifei1999 added a comment to T195834: mono-based bot hangs after mono version upgrade.

P7294

Tue, Jun 26, 12:34 PM · Toolforge
zhuyifei1999 created P7294 (An Untitled Masterwork).
Tue, Jun 26, 12:34 PM
zhuyifei1999 added a comment to T195834: mono-based bot hangs after mono version upgrade.

20:15:37 <Nemo_bis> This host is too busy with mono bots anyway ;) Reminded me to check back. Using T195834#4241876, there are 110 such processes from dibot and one from mbh (@MaxBioHazard yours is tools.mbh /mnt/nfs/labstore-secondary-tools-project/mbh/mono48/bin/mono-sgen /data/project/mbh/bots/retired_counter.exe).

Tue, Jun 26, 12:32 PM · Toolforge

Sat, Jun 23

zhuyifei1999 added a comment to T197930: Build or backport .deb for kubernetes python client for Jessie and Trusty.

python-kubernetes exists in sid, but not in stretch or lower. Backporting from sid => trusty... sounds like a long winding journey

Sat, Jun 23, 4:43 PM · Toolforge, Kubernetes
zhuyifei1999 added a comment to T197930: Build or backport .deb for kubernetes python client for Jessie and Trusty.

That might be a wrong package. https://github.com/openstack/python-k8sclient

Sat, Jun 23, 3:33 PM · Toolforge, Kubernetes
zhuyifei1999 added a comment to T196683: pwb.py cannot login to self-hosted mediawiki site.
Sat, Jun 23, 2:26 PM · Pywikibot-core
zhuyifei1999 added a comment to T197997: Script dependency appears to not exist when script is run in job grid even though dependency is otherwise installed.

Confirming this 'normalization'. With T197997#4309225

Sat, Jun 23, 1:53 PM · Toolforge
zhuyifei1999 added a comment to T197997: Script dependency appears to not exist when script is run in job grid even though dependency is otherwise installed.

I think this is what's going on:

tools.mediaviews-api@tools-bastion-05:~$ ls /data/project/mediaviews-api/www/python/venv/bin/python3 -al
lrwxrwxrwx 1 tools.mediaviews-api tools.mediaviews-api 16 Jun 16 06:34 /data/project/mediaviews-api/www/python/venv/bin/python3 -> /usr/bin/python3
Sat, Jun 23, 1:49 PM · Toolforge
zhuyifei1999 added a comment to T197997: Script dependency appears to not exist when script is run in job grid even though dependency is otherwise installed.
tools.mediaviews-api@tools-bastion-05:~$ rm cron-logprocessor.*
tools.mediaviews-api@tools-bastion-05:~$ /usr/bin/jsub -N cron-logprocessor -once -quiet /data/project/mediaviews-api/www/python/venv/bin/python3 -c "'"'print(__import__("sys").executable)'"'"
tools.mediaviews-api@tools-bastion-05:~$ cat cron-logprocessor.{out,err}
/usr/bin/python3.4
tools.mediaviews-api@tools-bastion-05:~$ /data/project/mediaviews-api/www/python/venv/bin/python3 -c 'print(__import__("sys").executable)'
/data/project/mediaviews-api/www/python/venv/bin/python3

sys.executable is broken. This is a python built-in and not something customized by site.

Sat, Jun 23, 1:45 PM · Toolforge
zhuyifei1999 added a comment to T197997: Script dependency appears to not exist when script is run in job grid even though dependency is otherwise installed.

Not sure if relevant, but grid gets the absolute path for argv[0].

tools.zhuyifei1999-test@tools-bastion-02:~$ cat arg0.c
#include <stdio.h>
Sat, Jun 23, 12:36 PM · Toolforge
zhuyifei1999 added a comment to T197997: Script dependency appears to not exist when script is run in job grid even though dependency is otherwise installed.
tools.mediaviews-api@tools-bastion-05:~$ rm cron-logprocessor.
cron-logprocessor.err      cron-logprocessor.err.bak  cron-logprocessor.out      
tools.mediaviews-api@tools-bastion-05:~$ rm cron-logprocessor.*
tools.mediaviews-api@tools-bastion-05:~$ /data/project/mediaviews-api/www/python/venv/bin/python3 -c 'print(__import__("sys").prefix, __import__("sys").base_prefix)'
/data/project/mediaviews-api/www/python/venv /usr
tools.mediaviews-api@tools-bastion-05:~$ /usr/bin/jsub -N cron-logprocessor -once -quiet /data/project/mediaviews-api/www/python/venv/bin/python3 -c "'"'print(__import__("sys").prefix, __import__("sys").base_prefix)'"'"
tools.mediaviews-api@tools-bastion-05:~$ cat cron-logprocessor.{out,err}
/usr /usr

sys.prefix is broken.

Sat, Jun 23, 12:26 PM · Toolforge
zhuyifei1999 added a comment to T197997: Script dependency appears to not exist when script is run in job grid even though dependency is otherwise installed.

sys.path is sane if it's directly executed on the exec node:

tools.mediaviews-api@tools-exec-1401:~$ /data/project/mediaviews-api/www/python/venv/bin/python3 -c 'print(__import__("sys").path)'
['', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-x86_64-linux-gnu', '/usr/lib/python3.4/lib-dynload', '/data/project/mediaviews-api/www/python/venv/lib/python3.4/site-packages']
Sat, Jun 23, 12:21 PM · Toolforge
zhuyifei1999 added a comment to T197997: Script dependency appears to not exist when script is run in job grid even though dependency is otherwise installed.

For some reason, site-packages is missing from sys.path and in its place it's dist-packages:

tools.mediaviews-api@tools-bastion-05:~$ mv cron-logprocessor.err cron-logprocessor.err.bak
tools.mediaviews-api@tools-bastion-05:~$ /data/project/mediaviews-api/www/python/venv/bin/python3 -c 'print(__import__("sys").path)'
['', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-x86_64-linux-gnu', '/usr/lib/python3.4/lib-dynload', '/data/project/mediaviews-api/www/python/venv/lib/python3.4/site-packages']
tools.mediaviews-api@tools-bastion-05:~$ bash -c '/data/project/mediaviews-api/www/python/venv/bin/python3 -c '"'"'print(__import__("sys").path)'"'"
['', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-x86_64-linux-gnu', '/usr/lib/python3.4/lib-dynload', '/data/project/mediaviews-api/www/python/venv/lib/python3.4/site-packages']
tools.mediaviews-api@tools-bastion-05:~$ /usr/bin/jsub -N cron-logprocessor -once -quiet /data/project/mediaviews-api/www/python/venv/bin/python3 -c "'"'print(__import__("sys").path)'"'"
tools.mediaviews-api@tools-bastion-05:~$ cat cron-logprocessor.{out,err}
['', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-x86_64-linux-gnu', '/usr/lib/python3.4/lib-dynload', '/usr/local/lib/python3.4/dist-packages', '/usr/lib/python3/dist-packages']
Sat, Jun 23, 12:18 PM · Toolforge
zhuyifei1999 added a comment to T198008: Install hg on the grid.

This is installed on dev_environ but not exec_environ.

Sat, Jun 23, 12:06 PM · Toolforge
zhuyifei1999 added a comment to T198006: Request to change autoconfirmed settings on Chinese Wikivoyage.
Your local administrators are responsible for having the gadget updated if it is used from other wiki, or develop it, if it is developed locally
Sat, Jun 23, 11:18 AM · Patch-For-Review, User-Urbanecm, Wikimedia-Site-requests, Chinese-Sites
zhuyifei1999 renamed T198006: Request to change autoconfirmed settings on Chinese Wikivoyage from Request to change autoconfirmed settings, add some namespace alias, and update the extension: listing editor on Chinese Wikivoyage to Request to change autoconfirmed settings on Chinese Wikivoyage.
Sat, Jun 23, 11:14 AM · Patch-For-Review, User-Urbanecm, Wikimedia-Site-requests, Chinese-Sites

Fri, Jun 22

zhuyifei1999 added a comment to T197930: Build or backport .deb for kubernetes python client for Jessie and Trusty.
root@tools-static-12:~# apt-cache policy python-k8sclient
python-k8sclient:
  Installed: (none)
  Candidate: 0.3.0-1
  Version table:
     0.3.0-1 500
        500 http://deb.debian.org/debian stretch/main amd64 Packages

This is available on stretch.

Fri, Jun 22, 9:14 AM · Toolforge, Kubernetes
zhuyifei1999 merged T197921: Please preserve metadata when thumbnailing into T20871: Include at least some EXIF metadata in resized pictures.
Fri, Jun 22, 5:56 AM · WMF-Legal, Commons, Multimedia, MediaWiki-File-management
zhuyifei1999 merged task T197921: Please preserve metadata when thumbnailing into T20871: Include at least some EXIF metadata in resized pictures.
Fri, Jun 22, 5:56 AM
zhuyifei1999 merged T13793: Image thumbnails don't preserve EXIF data into T20871: Include at least some EXIF metadata in resized pictures.
Fri, Jun 22, 5:56 AM · WMF-Legal, Commons, Multimedia, MediaWiki-File-management
zhuyifei1999 merged task T13793: Image thumbnails don't preserve EXIF data into T20871: Include at least some EXIF metadata in resized pictures.
Fri, Jun 22, 5:56 AM · Commons, Multimedia, MediaWiki-File-management

Wed, Jun 20

zhuyifei1999 added a comment to T197798: Video2Commons mp3 to ogg to mp3.

Actually, thinking about this, not everyone is allowed to upload mp3s to commons. More most users a conversion from mp3 to ogg are 'useful'.

Wed, Jun 20, 4:30 PM · video2commons
zhuyifei1999 closed T197798: Video2Commons mp3 to ogg to mp3 as Invalid.

Filed as https://github.com/toolforge/video2commons/issues/98, will hopefully work on it tomorrow.

Wed, Jun 20, 2:30 PM · video2commons

Tue, Jun 19

zhuyifei1999 added a comment to T197642: InvalidTitle raised for title that is a newline.

Scratch that

>>> u'\x85'.strip()
u''
Tue, Jun 19, 6:30 AM · Easy, Pywikibot-core
zhuyifei1999 added a comment to T197642: InvalidTitle raised for title that is a newline.
>>> '\x85'.strip()
'\x85'
Tue, Jun 19, 6:28 AM · Easy, Pywikibot-core

Mon, Jun 18

zhuyifei1999 added a comment to T197125: MediaWiki deadlock when multiple files of same SHA1 are deleted simultaneously.

I'm not sure about the internals, but the first lock error is lockmanager-fail-acquirelock and the second is internal_api_error_LocalFileLockError. Could it be something going on with multiple different locks handled by different routines?

Mon, Jun 18, 12:23 PM · Multimedia, Commons, MediaWiki-Page-deletion, MediaWiki-File-management
zhuyifei1999 added a comment to T197551: Cache user.get_user().

The user object isn't a serializable (or are we using pickle and it is serializable?). Anything in session has to be serialized in order to be stored into redis.

Mon, Jun 18, 8:36 AM · Quarry

Sun, Jun 17

zhuyifei1999 added a comment to T197529: 'instancemethod' object has no attribute '__full_name__'.

I am a noob programer, what is the outcome for me? That it might change again in the future?

Sun, Jun 17, 10:19 AM · Patch-For-Review, Pywikibot-core
zhuyifei1999 added a comment to T197529: 'instancemethod' object has no attribute '__full_name__'.

Well, yeah, but note that since families became singletons use of __init__ to initialize the instance is deprecated.

Sun, Jun 17, 9:44 AM · Patch-For-Review, Pywikibot-core
zhuyifei1999 added a comment to T197529: 'instancemethod' object has no attribute '__full_name__'.

This error is from attempting to assign __full_name__ attribute to a built-in object of type instancemethod.

Sun, Jun 17, 8:19 AM · Patch-For-Review, Pywikibot-core
zhuyifei1999 added a comment to T197529: 'instancemethod' object has no attribute '__full_name__'.

full_name isn't part of Python Data Model.

Sun, Jun 17, 7:52 AM · Patch-For-Review, Pywikibot-core

Sat, Jun 16

zhuyifei1999 added a comment to T196396: Adoption request for "tools-info".

Let's go ahead with this? Or is there other concerns? I think @Ladsgroup can add @MusikAnimal to the maintainer list.

Sat, Jun 16, 6:07 PM · User-Ladsgroup, Toolforge-standards-committee
zhuyifei1999 edited projects for T197517: Create redirect from partnermetrics.wmflabs.org to Toolforge, added: VPS-Projects; removed Cloud-VPS.
Sat, Jun 16, 4:11 PM · cloud-services-team (Kanban), VPS-Projects

Jun 15 2018

zhuyifei1999 added a comment to T197444: Our Phabricator is being attacked.

Is this a security bug or is it part of the attack? T184368 (linked by T184337#3881237)

Jun 15 2018, 9:48 AM · Phabricator
zhuyifei1999 added a comment to T197258: Ask python scripts to use custom user agents.
MariaDB [quarry]> SELECT
    ->   COUNT(DISTINCT query.id) AS numempty,
    ->   user_id,
    ->   (SELECT username FROM user WHERE user.id = user_id) AS username
    -> FROM query
    -> LEFT JOIN query_revision
    ->   ON query_id = query.id
    -> WHERE query_id IS NULL
    -> GROUP BY user_id
    -> HAVING numempty > 30
    -> ORDER BY numempty DESC;
+----------+---------+-----------------------------------------+
| numempty | user_id | username                                |
+----------+---------+-----------------------------------------+
|       85 |     653 | ASammour                                |
|       72 |    1000 | جار الله                                |
|       59 |       2 | EpochFail                               |
|       56 |     785 | Shbib Al-Subaie                         |
|       42 |      66 | EGalvez (WMF)                           |
|       41 |     633 | Ananth subray                           |
|       35 |     376 | రహ్మానుద్దీన్                           |
|       33 |     250 | Dispenser                               |
+----------+---------+-----------------------------------------+
8 rows in set (0.15 sec)

I don't think I see anything fishy here.

Jun 15 2018, 5:35 AM · Quarry
zhuyifei1999 added a comment to T197258: Ask python scripts to use custom user agents.
20240 14.29%  GET  HTTP/1.1 /query/new

This should flood the new query list. Maybe we can check the list and see if there's something unhuman there?

Jun 15 2018, 5:26 AM · Quarry
zhuyifei1999 added a comment to T197258: Ask python scripts to use custom user agents.

Mmm, is it some kind of monitoring tool ? benchmark test ? :) @zhuyifei1999

Jun 15 2018, 5:15 AM · Quarry

Jun 14 2018

zhuyifei1999 added a comment to T196396: Adoption request for "tools-info".

Shall we take a backup of the files?

Jun 14 2018, 4:25 AM · User-Ladsgroup, Toolforge-standards-committee
zhuyifei1999 added a comment to T196071: Something wrong when saving pages.

Give us just one example page to test with.

Jun 14 2018, 4:24 AM · Chinese-Sites, Wikipedia-Android-App-Backlog

Jun 13 2018

zhuyifei1999 created T197125: MediaWiki deadlock when multiple files of same SHA1 are deleted simultaneously.
Jun 13 2018, 3:16 PM · Multimedia, Commons, MediaWiki-Page-deletion, MediaWiki-File-management