Closed ineffyble closed 3 years ago
Hi @ineffyble. I'm sorry for the delay in responding. I ran into some trouble a few months ago running anon on the Wikimedia kubernetes infrastructure.
https://phabricator.wikimedia.org/T262734
This prompted me to start running the same configuration on my on VPS (just under a tmux session instead of Kubernetes). It seems to be running pretty well there, but I would have to do some work to make it available to you.
I'm trying again at Wikimedia to see if anything has changed recently.
Your point about the cutoff in the screenshots is well taken. You can see the same behavior in the congressedits bot running in the fediverse right? I think it may not be waiting long enough for the page to render?
The saga continues:
https://phabricator.wikimedia.org/T271082
The bot at least appears to run now, but is missing a shared library when launching the headless browser....
Hey @edsu :smile:
I see this occasionally in gccaedits too. Here's an example.
I'm still seeing it too. It's almost like it's not waiting long enough for the page to render before doing the screenshot?
I think that the problem is that the call to screenshot()
is using the dimensions of the DOM element containing the diff, but those dimensions often will exceed the height of the browser viewport (currently 768). I'm going to experiment with setting the viewport to a height that includes the full diff before the screenshot is taken.
I think this is finally fixed! e.g.
Thank you @edsu :pray:
Thank you for being patient -- it took me an absurdly long time to fix this. Blame it on the A D D.
No problem! I was going to hack on it a while back, but didn't want to mess anything up in prod since it always takes me a while to re-familiarize myself :sweat:
For a few months now, @AussieParlEdits has been tweeting screenshots where most of the image is cut off, wherever the edit is long. Example tweet is here: https://twitter.com/AussieParlEdits/status/1340830913412927489
I thought this might be solved by the change from phantom to puppeteer/chromium, but this bot is hosted on the Wikimedia instance, which I assume is running the latest version.
On a side note, I tried to take a look at the Wikimedia instance to make some ranges tweaks, but all the infra has changed since I last looked. From what I can tell, there's no running pod for
anon
ontools-dev.wmflabs.org
ortools-login.wmflabs.org
(according toanon status
). Where do I need to go to edit the used config?