[13:33:19] wiki-ai/revscoring#652 (master - 9e7144c : Amir Sarabadani): The build was broken. https://travis-ci.org/wiki-ai/revscoring/builds/122048208 [14:18:48] o/ [14:18:52] Reviewing wikilabels stuff now. [14:19:02] I don't have long to work, but I want to unblock amir1 [14:19:12] awesome [14:19:27] halfak: I actually wrote somewhere why I did that [14:19:32] but I can't find it [14:19:49] how are you by the way? [14:20:10] Good! Glad to see the Hindi stuff merged. That was really difficult. [14:20:24] I wish I had sumit's comment before I dug into signing character ranges. [14:20:43] OK. I can't find it [14:21:23] my reasons is that we can use it as a an attribute in the db object later (and in other scripts, as you can see) [14:21:55] the difference is we know this logger is for DB and not for something else (assuming we have other loggers too) [14:22:07] Yeah... I like this, but I think that we should abstract more aggressively to give us flexibility later. [14:22:11] One sec. [14:22:12] it's a common practice in mediawiki [14:22:23] but I wasn't sure it would be good here [14:22:26] See https://github.com/wiki-ai/ores/tree/master/ores/metrics_collectors [14:22:50] I think this pattern will work well for us. [14:23:09] e.g. datasources_extracted(self, context, model, version, rev_id_count, duration) [14:23:22] Could fire a log event or could send structured data to statsd [14:24:39] hmm [14:25:42] I think I need to read these code in more depth and implement them in wikilabels later [14:26:09] I need to wrap my head around it [14:26:31] Either way, I think this is good to merge. [14:34:13] Amir1, I'm confused by https://github.com/wiki-ai/wikilabels/pull/104 [14:35:02] halfak: thanks for asking [14:35:14] XHR.status is something like this: 200 [14:35:16] or 404 [14:35:18] 403 [14:35:45] but status is a string like "error" [14:35:51] Oh! Gotcha. [14:38:35] \o/ [14:38:40] thanks halfak [14:40:53] Amir1, have any thoughts about this? https://github.com/wiki-ai/wikilabels/pull/103/files#r59134682 [14:42:00] I'm okay with changing it [14:42:08] let me do that real quick [14:42:37] kk [15:08:00] halfak: ^ [15:10:20] \o/ [15:11:27] :D [15:12:44] I'm making a card about structured logging [15:13:15] Awesome :) [15:33:05] halfak: https://phabricator.wikimedia.org/T132295 [15:33:11] for when you're back [16:36:39] halfak: oh, btw, I made the Japanese too but the best thing turned out to be Logistic regression which we don't have scorer (or we have and I didn't find it) [16:36:47] so I made it with gradent boost [17:58:20] Amir1, that's very unusual. I suspect that something went wrong. [17:58:45] Thanks for filing that task. :) [17:59:15] I thought I was going to be able to come back and work for a bit, but it turns out that I need to do some yard work. I'll be on telegram and not too far from my computer if you need something.