text
stringlengths
15
499
[03:22] <jml> why would it be different?
[03:22] <cprov> jml: in a way we would port nascentupload to use this new thing too
[03:22] <jml> cprov, right.
[03:23] <jml> cprov, it would be making verify_acl call a function that embodies all the logic of 'can this person upload to this pocket of this package in this archive'
[03:23] <cprov> jml: right
[03:23] <jml> I'm kind of surprised you don't have a function like this already, tbh.
[03:24] <jml> cprov, anyway, if you think that's a good idea, I'll make it happen.
[03:24] <cprov> it's definitely a good idea and you can count on our help.
[03:24] <jml> cool.
[03:24] <jml> I'm going to move to a power point. back in 10
[03:27] <wgrant> It would be useful to have on the dev wiki a list of who is in which team, and in which timezone they reside.
[03:30] <mwhudson> cprov: soyuz, sleep is for the weak standard time
[03:32] <cprov> mwhudson: I confess sleeping is more tempting at home, but not that much ;)
[03:33] <jml> back.
[03:36] <jml> let's try that again.
[03:37] <jml> cprov, are there any tests for verify_acl?
[03:38] <cprov> jml: yes, blackbox-style, though
[03:39] <cprov> jml: lib/lp/archiveuploader/tests/test_uploadprocessor.py
[03:39] <jml> thanks.
[03:40] <cprov> jml: one of the advantages of extracting and encapsulating that code would be allowing us to have quick and beauty unittests
[03:40] <jml> yes, I was just thinking thta.
[03:40] <jml> this is big enough for another branch, I think.
[03:42] * cprov nods
[03:55] <mwhudson> jml: can i get you to review a branch?
[03:55] <mwhudson> i'm not quite sure if i've got enough tests, but i guess you can tell me that when you review it :)
[03:56] <jml> mwhudson, sure thing.
[04:00] <mwhudson> jml: https://code.launchpad.net/~mwhudson/launchpad/puller-job-scheduling/+merge/9174, you should have mail
[04:02] * wgrant has today developed a particularly strong dislike for tests that rely on dict ordering.
[04:03] <thumper> OMG!
[04:04] <thumper> we're getting a sysadmin guy in Wellington
[04:04] <thumper> spm: You'll have someone to hit up locally now :)
[04:04] <ajmitch> oh fun, more kiwis
[04:05] <jml> wgrant, you haven't found them in Launchpad, I hope.
[04:05] <lifeless> \o/
[04:05] <lifeless> thumper: who is it/
[04:06] <thumper> lifeless: Paul Collins, starting 10 Aug
[04:06] <lifeless> excellent name :)
[04:06] <mwhudson> thumper: heh, you take longer to get through your email than me
[04:06] <wgrant> jml: I have. It's not directly printing a dict, but rather generating a list of bug notification emails based on dict order.
[04:06] <jml> :(
[04:06] <spm> thumper: aye
[04:06] <thumper> mwhudson: :)
[04:07] <jml> wgrant, I'll gladly review a patch to fix that.
[04:07] <spiv> wgrant: any chance of a patch to fix it? :)
[04:07] <wgrant> I attempted to change the dict keys (previously strings) to Storm objects, and they hash differently each time...
[04:07] * wgrant will attempt to fix this.
[04:07] <lifeless> wgrant: compare two dicts
[04:07] <wgrant> But it's a very very long doctest.
[04:07] <lifeless> wgrant: or use sorted() on both sides
[04:07] <wgrant> lifeless: Right, I plan to use sorted.
[04:08] <wgrant> Then I have to reorder a thousand lines of doctest.
[04:08] <lifeless> welcome to doctest
[04:08] <lifeless> have I told you what I think of them?
[04:08] <mwhudson> wgrant: you are aware of the "shame" motivation for not open sourcing, i presume? :)
[04:08] <wgrant> I think I saw you complaining about them in here recently.
[04:08] <wgrant> mwhudson: Heh.
[04:09] <lifeless> wgrant: oh, I don't complain, unless I'm forced to touch em.
[04:09] <wgrant> Some of the Soyuz doctests were good explanations.
[04:09] <spiv> Heh.
[04:09] <wgrant> But bugnotification-sending.txt is ... not.
[04:13] <jml> we do have a helper for testing dicts in doctests
[04:13] <jml> I think
[04:13] <jml> I've forgotten what it's called.
[04:14] <ajmitch> it's not that helpful then?
[04:14] <wgrant> It's not a dict when the doctest gets hold of it.
[04:14] <wgrant> That would be too easy.
[04:14] <wgrant> It's a list of strings which happens to have been created by iterating through a dict.
[04:14] <mwhudson> wgrant: lib/lp/code/doc/branch.txt is particularly terrible
[04:15] <ajmitch> wgrant: this is the part about email_notifications in there?
[04:16] <wgrant> ajmitch: There's a lot more than one of those, but yes.
[04:17] <jml> ajmitch, I don't write many doctests.
[04:19] <thumper> mwhudson: are you suggesting wgrant cleans up our crappy tests?
[04:20] <mwhudson> not really
[04:21] * jml back to package-permission-love
[04:22] <jml> cprov, any thoughts on which module this code should live in?
[04:22] <ajmitch> it's interesting that https://code.edge.launchpad.net/~launchpad-pqm/launchpad/devel disappears from the default view as it's set as merged now
[04:23] <jml> ajmitch, oh, that's easy enough to fix
[04:23] * jml fixes
[04:23] <thumper> grr
[04:23] <ajmitch> which sort of makes sense, but I was briefly wondering why it disappeared :)
[04:23] <thumper> jml: can you create a devel series for launchpad?
[04:23] <jml> thumper, I think so.
[04:23] <thumper> jml: I looked but couldn't figure out how
[04:24] <thumper> that way lp:launchpad/devel will work
[04:24] <thumper> ajmitch: it is the branch scanner being clever :)
[04:24] <thumper> ajmitch: it doesn't update series branches
[04:25] <cprov> jml: I guess archiveuploader is the right place.
[04:25] <jml> cprov, thanks.
[04:25] <jml> thumper, https://edge.launchpad.net/launchpad/devel
[04:26] <thumper> jml: just out of interest, where is the link to create a new series?
[04:26] <jml> thumper, https://edge.launchpad.net/launchpad "Register a series"
[04:27] <thumper> also I noticed that konqueror formats code review comments like FF3.5, with a non-wrapping proportional font
[04:31] <jml> which python has class decorators?
[04:31] <wgrant> 2.6?
[04:31] * jml tests
[04:31] <mwhudson> spm: a question
[04:32] <spm> mwhudson: an answer
[04:32] <jml> yeah 2.6
[04:32] <mwhudson> spm: i'd like to produce some data inside the internal xmlrpc server that i'd like to end up on a graph
[04:32] <spm> mwhudson: 42