[01:41:45] Oh ****, I may have just overwritten an important directory without any easy backups available... [01:42:00] Please tell me that there are backups? :) [01:42:46] Wait, maybe not. [01:42:54] But there are backups, right? [01:47:41] Coren, ^ [01:47:51] a930913, what directory where? [01:57:46] Krenair: Erm, this was in data/project/ [02:39:55] Coren: you mentioned batching queries to minimise latency with crosswiki tools (bug #55929), but it looks like PHP explicitly prohibits batching multiple queries together (apparently to prevent statement injection). That makes batching pretty hard for tools that need to fetch a bit of data from each wiki. Did you have something else in mind? [02:41:28] speaking of which, why has the TS db been down for weeks now? [02:41:35] (besides the security issue) [02:41:36] Pathoschild: well, PHP is dumb. can you turn that off? [02:44:16] Jasper_Deng: it's not down, but there are problems with it. DaB is no longer actively maintaining the Toolserver, so it's starting to fall apart. [02:44:32] Earwig: not that I found. [02:44:47] hmm [02:46:59] multiple threads? or does PHP suck at that too? [02:47:40] I've been doing some research into that today. As far as I can tell, PHP sucks at that too (and big time). [02:48:25] PHP sucks at something? [02:48:26] stop. [02:48:27] the. [02:48:28] presses. [02:49:15] Those particular presses were stopped a long time ago. [02:58:36] Pathoschild: I mean batching the fetches, or parallelizing small queries. [02:58:57] Although, to be fair, I've not tried that with PHP. [03:04:24] Coren: PHP isn't very helpful for either of those. What languages were you thinking of? [03:05:08] Maybe I'll just port my tools to something else while I'm at it. [03:11:54] Well, my weapon of choice tends to be Perl. But I've seen good batching with the python oursql module. [03:17:38] Batching in oursql looks nice. [03:20:01] "appears to be non-functional at this time" :| [03:26:32] a930913: What does? [03:29:00] Coren: The web message on my cgi script. [03:30:17] I tried using oursql, but it seems kind of ... broken [03:30:31] I was going to file a bug, but it also looks unmaintained [03:30:44] I know lots of people use it; it was one of the first requests I got for python packages. [03:31:05] a930913: What does you error log say? That's where you'd find the more interesting information. [03:32:16] Coren: What error log? [03:32:55] a930913: That depends on a few things; are you using the new webservice scheme, and is your script in PHP? [03:33:23] cgi-bin w' python [03:34:39] Hm; you'll need to add logging to your bot itself then, or switch to the new scheme (recommended anyways) https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help/NewWeb [03:38:28] If the result of a query wasn't immediately available, fetchone() would return None. Then, if you did another query right after and called fetchone() again, it would give you the result from the first query [03:38:34] Coren: -bash: webservice: command not found ? [03:39:55] a930913: ? Where are you getting that error? /usr/local/bin/webservice is there -- did you override your path to explude /usr/local/bin (it's there by default) [03:40:23] * Coren stares at tools-login. [03:40:33] People *still* running bots on it. [03:40:38] * Coren pulls out the LART. [03:42:01] Coren: Oh, I'm on dev? [03:42:55] Oh, hah, never thought of putting it on -dev too. Hang thight. [03:43:01] tight* [03:43:56] Dw, started on login. [03:45:19] a930913: It's on -dev too now. [03:54:55] Coren: do individual tools typically have pages somewhere? wikitech? [03:55:54] jeremyb: Not systematically; I've seen many maintainers put links to some descriptive page from the tools.wmflabs.org landing page though. [03:56:20] Coren: well, anyway, tools are really cheap, right? :) [03:56:42] Yep. [03:57:29] can i get a nara tool? and add dominic to it? [03:57:38] he put in a request for tool labs access already [04:03:02] i'm wondering if we shouldn't thinking about something like lxc [04:03:28] i want to be able to do stuff like run semi-trusted with a time limit as a less privileged user [04:03:40] a la math/svg/etc. [04:03:57] (or at a different level of the stack: docker) [04:38:11] Coren: is there a better place to put that req? i looked for at least a min for where to request a tool [04:38:19] * jeremyb heads to sleep, see you later :) [04:38:31] jeremyb: You don't need to request a tool. Just create one. :-) [04:38:39] ohhhh [04:38:43] huh? :) [04:38:47] * jeremyb spins head [04:38:52] https://wikitech.wikimedia.org/w/index.php?title=Special:NovaServiceGroup&action=addservicegroup&projectname=tools [04:38:57] Coren: anyway, approve him? :) [04:39:17] I don't have my second factor token with me. Will do tomorrow. [04:39:42] aha [04:42:58] i wonder if we shouldn't have autopatrolled? i see people i know aren't crazy in recent changes [04:43:28] Coren: Yep, oursql is great at batching so far. Time to port everything to python. :) [04:43:53] what's a good way to get all subcats for a cat? can't just use sql right? [04:44:07] my quick hack was to manually expand them all in the web UI [04:44:15] and copy/munge the HTML :P [06:09:28] Coren: okay, so oursql can't actually do batching either. (You can queue multiple statements, but it executes each one in its own round trip.) [06:09:54] So at this point I think I'll just wait for the datacenters to be combined. [07:23:16] * Jasper_Deng huggles Pathoschild [10:02:59] why doesn't the exec instances have qsub and similar tools? [10:17:32] !petan-build [10:17:32] make -j `getconf _NPROCESSORS_ONLN` deb-pkg LOCALVERSION=-custom [13:30:08] mmh, how to get welcome.py on wmf labs? [16:49:25] !log grrrit-wm stopped receiving events. restarted it; didn't help. then restarted gerrit-to-redis, which seems to have fixed it. [16:49:25] grrrit-wm is not a valid project. [16:49:31] sigh. [16:49:40] !log gerrit-to-redis grrrit-wm stopped receiving events. restarted it; didn't help. then restarted gerrit-to-redis, which seems to have fixed it. [16:49:40] gerrit-to-redis is not a valid project. [16:49:49] !log tools grrrit-wm stopped receiving events. restarted it; didn't help. then restarted gerrit-to-redis, which seems to have fixed it. [16:49:52] Logged the message, Master [16:49:59] there we go. [18:49:17] Hmm, why would ./script give a different output to the web run version? [19:37:09] * a930913 pokes Coren. [21:17:06] Coren: now that the ts will be shut down do you have any updates on email-adresses reachable from the outside? [21:17:51] *addresses meh [23:47:57] is there a outgoing net bandwidth limit?