[01:04] does launchpad show ppa usage/download statistics anywhere? [01:08] actually, may be better to ask: is there a reason this would time-out? https://api.launchpad.net/1.0/~nginx/+archive/ubuntu/stable/+binarypub/40721078?ws.op=getDailyDownloadTotals&start_date=2013-10-23 (Error ID OOPS-debf0694dfb4065abd2d84ccc9668f58) [01:08] https://oops.canonical.com/?oopsid=OOPS-debf0694dfb4065abd2d84ccc9668f58 [01:08] (generated by a ppastats tool) [01:09] teward: That's a very long period. You'll get better results if you don't ask for almost two years of data at a time. [01:10] wgrant: FYI: I didn't generate the link? [01:10] nor do I have the capability to customize [01:10] teward: You'll want to tweak the code that you're using. [01:10] Why not? [01:10] http://wpitchoune.net/blog/ppastats/ [01:10] ^ that tool [01:10] Why can't you customise it? [01:11] I could customize it, but i'm not sure whether the release team *wants* that amount of data or not [01:11] only reason i'm using it is because the release team asked for ppa stats [01:11] not sure if giving them a smaller dataset would be frowned on by them [01:11] You can give them the entire dataset. [01:11] (see https://lists.ubuntu.com/archives/ubuntu-release/2015-July/003310.html) [01:11] You just can't request absolutely everything in one hit. [01:11] wgrant: then what do you suggest I do to the program and API reqs? [01:11] because I haven't dissected the tool's code [01:12] dear lord [01:12] it is an LP API client written in C [01:13] * teward yawns [01:13] wgrant: i'm tired, cut me some slack? [01:13] blame the holidays >.> [01:13] Oh, I'm just looking at the code, expecting it to be a 50-line Python script. [01:13] heheh [01:13] Instead it's thousands of lines of C... [01:14] wgrant: i think what the release team wants is nice graphics [01:14] this thing produces graphs apparently [01:19] teward: Anyway, as a general rule, if requesting two years of data times out, request less data at once. [01:19] wgrant: and without C coding knowledge (I have limited) I can't customize the tool. [01:19] That's not something I can help with. [01:19] indeed. [01:20] If it were Python, the code would be perhaps one-twentieth the size, and would be easy to adjust. [01:20] mhm [01:20] Python++ [01:20] C -- [01:21] Retrying it several times may work, but it may not. [01:21] it's tried 35 times so far *shrugs* [01:46] wait what [01:46] someone wrote non-kernel code to talk to an API in C?! [01:47] Yes, I thought I was drearming. [01:47] That 4000 LOC could probably be less than 200 lines of Python. [01:50] well, there's something charmingly perverse about that I guess. [01:50] no [01:50] there really isn't [01:50] No. [01:50] Nothing charming at all. [01:50] Perverse, sure :) [01:51] come on, it's a little amusing. [01:51] True. [01:51] if you find more buffer overflows in the world amusing === Nigel_ is now known as G === psivaa is now known as psivaa-afk [15:34] wgrant: lifeless: I guess you folks haven't heard of https://github.com/okws/okws :P [17:00] hey, any launchpadlib hackers around? [17:01] https://bugs.launchpad.net/launchpadlib/+bug/1471894 [17:01] Launchpad bug 1471894 in launchpadlib "_bad_oauth_token crashes on python3 (str vs bytes)" [Undecided,New] [17:13] zyga: doesn't crash here [17:13] python3-launchpadlib 1.10.3-1 [17:14] Ah, but I probably don't have an expired token [17:14] Yeah, should be trivial to fix, bonus points if your patch comes with a test [17:15] cjwatson: I have the code patched, patching existing tests not to crash with the patch in place [17:24] cjwatson: my current approach is to use b'...' constants instead of plain strings there [17:25] cjwatson: do you think that's the right way to do it? [17:25] Yes [17:25] cjwatson: (and patching tests to actually test with b'...' strings [17:25] That sounds fine [17:25] cjwatson: which is ok for python2 (no op) and gives us nice bytes in python3 [17:25] cjwatson: nice, thanks [17:25] Just check that if you temporarily shelve the code patch, the tests start failing in python3 [17:26] i.e. that the test changes constitute an effective test for this bug [17:28] cjwatson: sure [17:39] cjwatson: offtopic, I sent out a hello-world patch for tarmac but I didn't get any replies for it [17:40] cjwatson: I'm pretty booked lately but I will return to tarmac/git later this week [17:40] cjwatson: it would be good to have a person that can commit and can have a conversation with me [17:41] OK, I understand that, but it's not something I'm in a position to do much about [17:41] dobey: ^- can you help zyga? [17:41] cjwatson: sure, just something that flew past my mind while talking to you :) [17:41] cjwatson: iff there's nobody interested I could just be added to developer group [17:41] zyga: are you blocked on anything in LP for tarmac at the moment? (I know there are one or two things that are suboptimal) [17:42] cjwatson: no [17:42] cjwatson: I think it's okay now [17:42] https://bugs.launchpad.net/launchpad/+bug/1462449 is quite complicated, surprisingly [17:42] Launchpad bug 1462449 in Launchpad itself "branch_merge_proposal.reviewed_revid is '