[Wikitech-l] Testing recitation-bot

2017-03-19 Thread Anthony Di Franco
Hi all,
 I'd like to plead for advice on testing Recitation-bot to demonstrate we
have resolved a bug that resulted in a ban for splitting image pages into
two separate incomplete pages last month.
 The log of attempts to test the fix is in this bug
.
 Here are the key points / open questions:

   - Each wiki I have successfully tried to test on, including the
   production wikis, test.wikipedia.org, and testwiki.wiki, seems to
   redirect the bot to a page with information about permissions / blocks,
   something I had never seen prior to the block.
   - What is the appropriate place to test? Seems to be www.thetestwiki.org
   - Could we appeal the block on the strength of the apparent correctness
   of the edit to fix the bug, at least temporarily so as to be able to
   demonstrate the fix on a wiki we were running successfully on in the recent
   past? Who would be best to approach with such a request?

Thanks any and all for any advice you can offer.
Anthony
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] pywikibot troubleshooting in recitation-bot

2017-01-05 Thread Anthony Di Franco
Actually I've made a bit of progress diagnosing this. It has nothing to do
with the login or looping in my code but may have to do with the
composition of my use of multiprocessing and pywikibot's use of
multithreading and may have to do with this bug:
https://phabricator.wikimedia.org/T135986
Any advice on managing this?

On Sat, Dec 24, 2016 at 1:36 PM Legoktm <legoktm.wikipe...@gmail.com> wrote:

Hi,

+cc pywiki...@lists.wikimedia.org

On 12/22/2016 03:55 PM, Anthony Di Franco wrote:
> Hi all,
>  I'm doing some renovations on recitation-bot and running into trouble
when
> the time comes for pywikibot to upload article data to wikisource and
> commons. The thread doing so hangs without any sort of informative error.
I
> made sure that the unix user under which the web service that is using
> pywikibot is running is logged into each wiki per Max's advice but I still
> have the problem. I'm going to try to get more information about what's
> going on but would also appreciate pointers about what might be going
> wrong. Particularly, the web service is now running under Kubernetes
rather
> than sun grid engine, so I suspect that the login state might not be
making
> it into the container - can anyone advise on where the login state is
> maintained and whether this will be transferred into the kubernetes
> container?

Pywikibot stores all of its state in the same directory that your
user-config.py file is in.

In my experience python hanging is typically an accidental infinite
loop. Adding debug logging can help pinpoint where it starts hanging and
narrow down the problematic code.

-- Legoktm

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] pywikibot troubleshooting in recitation-bot

2016-12-22 Thread Anthony Di Franco
Hi all,
 I'm doing some renovations on recitation-bot and running into trouble when
the time comes for pywikibot to upload article data to wikisource and
commons. The thread doing so hangs without any sort of informative error. I
made sure that the unix user under which the web service that is using
pywikibot is running is logged into each wiki per Max's advice but I still
have the problem. I'm going to try to get more information about what's
going on but would also appreciate pointers about what might be going
wrong. Particularly, the web service is now running under Kubernetes rather
than sun grid engine, so I suspect that the login state might not be making
it into the container - can anyone advise on where the login state is
maintained and whether this will be transferred into the kubernetes
container?
Thanks,
Anthony
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l