=== henninge changed the topic of #launchpad-reviews to: On call: henninge || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [09:47] henninge: Fancy an easy one to start? [09:47] https://code.edge.launchpad.net/~allenap/launchpad/remove-propertycache-adapters-bug-628762/+merge/39249 [09:47] allenap: sure! ;) [09:47] henninge: Thanks :) [09:47] allenap: He! 872 lines ... [09:47] ;-) [09:47] henninge: It's nearly 900 lines, but almost all of it is search-n-replace. [09:48] henninge: The interesting files are propertycache.py and propertycache.txt. [09:48] allenap: np, I'll be fine [09:55] allenap: You are the native speaker but is the "in" not misplaced here: [09:55] 557 +The property cache for an object can be cleared by passing in the [09:55] 558 +object to `clear_property_cache()`. [09:55] "by passing the object into ..." [09:56] ? [09:56] henninge: I think both work, but your suggestion is better. [09:56] allenap: Also, I first thought this was the same test twice. [09:57] henninge: I think I can trim it to make it look a little different. [09:57] allenap: or just make it clearer in the narrative that this is an alternative use of the same function. [09:57] henninge: Okay. [10:00] Wow, the new code looks much simpler. Good job! [10:01] henninge: Cheers :) I should have done it this way from the start. Never mind, I learnt a lot... the hard way. [10:02] allenap: that really was an easy one. Thanks! r=me [10:02] henninge: Cool, thanks [11:44] hi henninge [11:44] Hey bac! ;) [11:45] henninge: hey we're in testfix mode and i wonder if you'd sanity check this patch: http://pastebin.ubuntu.com/519603/ [11:45] normally i'd think the geo data has changed out from under us. but best i can tell it hasn't, as we're getting the GeoIP Lite data from our PPA [11:46] henninge: so, do you think the approach here of accepting both until we sort it out is sane? [11:46] * henninge looks at the failure [11:47] bac: oh yes, I think that is sane. [11:47] ok, well i'll just land it rs=bac then and not implicate you [11:48] bac: I have never worked with geopip before. [11:48] only minimal for me [11:48] but if you say "I know we may get one of these two values and we have yet to figure out why", I say your patch is a good way to get us going again. [11:49] bac: r=me in that case. [11:50] henninge: that is what i'm saying [11:50] thanks [11:55] hi jtv. [11:55] hi bac! [11:55] happy end-of-buddhist-lent day [12:09] Hi jtv! [12:10] Hi henninge. I'm not here. [14:25] henninge: https://code.edge.launchpad.net/~lifeless/launchpad/edge/+merge/39233 [14:25] * henninge looks [14:27] 186 -On launchpad.net, the version and revision numbers are presented only in an [14:27] 187 -HTML comment. [14:28] lifeless: How is that handled now? Are they always visible? [14:28] I don't mind, just curious. [14:28] they are in a <-- section [14:28] hit ctrl-U on launchpad.net [14:29] down the bottom [14:29] but also I've put the revno on prod after chatting with mpt [14:29] (by taking it outside a tal:condition) [14:31] Ok, I knew that. I just thought it had changed because the test is deleted. But now that I looked closer at it, the test is not about them being in a comment but about them *not* being displayed. [14:31] So that's ok. ;) === adeuring1 is now known as adeuring [14:35] lifeless: thanks for removing the "bleeding edge" ... ;-) [14:35] I haven't done a full test run yet, this may have some breakage, but shoud be minor [14:36] lifeless: this still mentions edge. Is that OK? [14:36] 921 - - is_edge/is_lpnet etc (thunks through to the config) [14:36] 922 + - server.is_edge/is_lpnet etc (thunks through to the config) [14:37] bah, I missed that; thanks [14:37] it should be server.lpnet [14:37] IIRC [14:38] lifeless: also, you seem to have removed all references to "staging" from the on-edge script but left edge in there. [14:39] I think that script needs a complete renaming now. [14:40] henninge: I filed a bug about it [14:40] uhm, I think you're reading the hunks wrongly [14:40] ah, cool ;) [14:40] We should, i think, delete the script entirely [14:40] possibly [14:40] why am I reading them wrongly? [14:41] or rather "how" [14:41] it still calls staging_revision = on_staging() [14:41] its just that theres no longer a use case for 'just edge' [14:41] because edge is approximately gone [14:42] + staging_revision = get_staging_revision() [14:42] yes, I saw that but the command line option for staging is still there. [14:43] - '--staging-only', action='store_true', [14:43] 1022 - help="Only show revisions not on staging. Do not consult edge.") [14:43] its gone :) [14:43] 1023 + '--edge', action='store_true', [14:43] 1024 + help="Show revisions on edge.") [14:43] thats for edge [14:43] While we still have it? [14:44] right [14:44] ah! [14:44] first we remove all the differences [14:44] then we put a redirect in place [14:44] and a that point we need qa stuff to move from edge to qastaging [14:44] so theres future tweaks to do here [14:45] So, this script was just about easily figuring out how far you revision had propgated through the various branches. [14:45] yeah [14:45] that may not be needed anymore now. [14:45] so devel -> stable -> deploy qastaging -> qa'd -> lpnet [14:45] and db-devel -> db-stable -> staging -> ??? -> monthly release [14:46] Speaking of which: I just created a draft for the 2011 release calendar (see your mail). We will still be having monthly releases, right? [14:47] yes [14:47] until we get db flexability in place [14:49] ok [14:49] lifeless: r=me [14:50] thank you [15:25] henninge: Do you fancy another easy one? [15:29] allenap: please! ;) [15:29] henninge: https://code.edge.launchpad.net/~allenap/launchpad/ditch-get-bug-notifications-recipients-bug-659085-devel/+merge/39277 [15:29] henninge: It's big... at first glance. [15:29] henninge: But it's actually almost all reviewed. Just a little diff (in the description) to review. === abentley changed the topic of #launchpad-reviews to: On call: henninge, abentley || Reviewing: -, - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [15:36] allenap: I have never seen a doc test import from a unit test. Is that a good(tm) practice? [15:38] henninge: I don't think it's a problem, but it is a bit odd. Certainly BugTaskSearchBugsElsewhereTest.__init__() smells bad. [15:40] henninge: Arguable those helper methods should have been put in a mixin or just a separate class, but as it is it's reasonably easy to figure out what's going on. I don't think there's much harm in it. [15:40] Argh! Now I get what that is doing. [15:41] allenap: Luckily it's not part of this review ... ;-) [15:41] henninge: Yes, that's what I thought :) [15:42] allenap: could you call the result "naked_bugtasks" here? [15:42] + bugtasks = [removeSecurityProxy(bugtask) for bugtask in bugtasks] [15:42] henninge: Sure. [15:43] I think there was an agreement to clearly mark naked entities as such ... [15:44] allenap: r=me for the handy diff. ;-) [15:46] henninge: Thanks :) [16:13] henninge, abentley, can I send a review to one of you? [16:14] rockstar: I am almost done. Sorry. [16:14] In fact, I am done ... ;) [16:14] henninge, it's VERY short. :) === henninge changed the topic of #launchpad-reviews to: On call: abentley || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [16:14] rockstar: sure [16:14] ;-) [16:14] short & fun - always! [16:18] abentley, pretty easy branch for your consideration: https://code.edge.launchpad.net/~leonardr/lazr.restful/fix-unicode-error/+merge/39279 [16:19] leonardr: Okay. === abentley changed the topic of #launchpad-reviews to: On call: abentley || Reviewing: leonardr || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [16:20] leonardr: you have conflicts. [16:20] abentley, can you also review my branch? [16:20] abentley, https://code.edge.launchpad.net/~rockstar/launchpad/fix-queue-permissions/+merge/39278 plz. [16:20] rockstar: Sure. I thought henninge was looking at it. [16:20] rockstar, abentley: I am! [16:21] henninge, oh! I thought you were being sarcastic. :) [16:21] rockstar: not my nature ... :) [16:22] abentley: argh, coordinating with benji === deryck_ is now known as deryck [16:24] leonardr: I am a bit confused by line 187; shouldn't that have a unicode escape, not \xc3\xa7? [16:25] rockstar: Have you started your own Canonical spin-off? A bit obvious, don't you think? [16:25] 136 -# Copyright 2009-2010 Canonical Ltd. This software is licensed under the [16:25] 137 +# Copyright 2009-2010 aanonical Ltd. This software is licensed under the [16:25] ;-) [16:25] henninge, huh. I'll fix that... [16:25] abentley: no, because the test suite (i think, benji might know better) decodes the unicode string [16:27] leonardr: Did you consider making this a unit test? [16:27] actually it's the other way around; it doesn't attempt to decode the string, so you just get the bytes [16:27] rockstar: r=me ;-) [16:27] henninge, thank you sir! [16:28] benji: so that's a platform-specific value, then? [16:29] abentley, that's a huge pain, but i'll try [16:30] benji: looks like utf-8 to me, not utf-16, which AIUI is the internal representation on Ubuntu python. [16:31] abentley: theoretically it could vary, but practically shouldn't [16:32] benji: I don't think pretty sure it's the plain bytes of the unicode string, because on Ubuntu, the internal representation is utf-16, and that's utf-8. [16:32] benji: I think it's more likely that it was encoded as utf-8. [16:33] if i'm able to make it a unit test i should also be able to control the encoding [16:33] salgado: Are you available to do UI reviews? It's not urgent. [16:33] leonardr: true, but as a unit test, you can just compare against a unicode string. [16:33] abentley: I forget the exact details, but Python doesn't use utf-8 or -16 internally, it uses 16 or 32-bits per character (depending on how it was compiled) [16:34] allenap, not really, I'm attending some UDS sessions remotely while I wait for my flight to the US [16:34] salgado: Okay, thanks anyway. Have a good trip :) [16:35] thanks. :) [16:36] benji: In this bug report, Adam Olsen asserts that it uses utf-16, not UCS2: http://bugs.python.org/issue3297 [16:37] abentley: yep I was thinking of UCS-2/UCS-4, but it does indeed use UTF-16/UTF-32 [16:41] leonardr: I'm not saying you have to use a unit test, but in Launchpad, the policy is that doctests should be testable documentation. [16:48] abentley: five-line-diff version-bump review when you have a moment: https://code.edge.launchpad.net/~gary/launchpad/storm-0.18/+merge/39286 [16:49] gary_poster: r=me [16:49] thanks abentley === benji is now known as benji-lunch [17:31] abentley: behold: http://pastebin.ubuntu.com/519760/ [17:34] leonardr: r=me. === abentley changed the topic of #launchpad-reviews to: On call: abentley || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews === Ursinha is now known as Ursinha-lunch === matsubara is now known as matsubara-lunch === salgado is now known as salgado-lunch === benji-lunch is now known as benji === matsubara-lunch is now known as matsubara === Ursinha-lunch is now known as Ursinha === matsubara is now known as matsubara-afk [20:38] benji: i named launchpadlib 1.7.0 in anticipation of your kwallet branch. you don't need to call this branch 1.8.0 [20:40] we usually do 'import cStringIO as StringIO' [20:45] leonardr: (assuming that comment was for me) ewww :) [20:46] benji: actually, we do 'from cStringIO import StringIO', if that makes you feel better [20:46] much better [20:49] benji, why do you have callback_called as a list instead of a boolean? i imagine it has something to do with the possibility that the callback might be called multiple times? [20:49] but if so, wouldn't you check the list to make sure it was only called once? [20:50] leonardr: nope, it's because I can't rebind callback_called, just mutate it [20:50] ah, ok [20:51] perhaps a note to that effect is warrented [20:51] benji: the code is weird. bool([False]) is True [20:51] i think you should check that the list is [True] [20:52] mmm, yeah that sounds like a bug [20:52] bool([]) is False, but your use of booleans _inside_ the list strongly implies that you are checking those values [20:53] you could have the callback append object() to the list, and make sure the list was nonempty [20:53] leonardr: oh, well it's not a bug per se; I'm signaling truth by there being something lin the list [20:53] yeah, I'd say appending None would be the most straight-forward [20:53] +1 === Ursinha is now known as Ursinha-afk [21:05] benji: can you run this code in bin/py on your kwallet branch and see if it works for you? i get an error but it might be a version mismatch [21:05] >>> from launchpadlib.launchpad import Launchpad [21:05] >>> f = Launchpad.login_with("bar baz", "edge") [21:05] sure [21:06] leonardr: I get this: TypeError: __init__() takes at most 5 arguments (6 given) [21:06] I'll dig into it. [21:06] ok, cool [21:10] benji, review sent. i'm very glad that you were able to fix keyring so that we could use it [21:11] leonardr: oh, I meant to mention that I was able to do away with the Qt widget bit (I still had to create a Qt "application" but that's not too bad) [21:11] benji: and that's in keyring, not in our code, right? [21:11] right [21:12] I expect Tarek to make a release of keyring this week that includes my changes. [21:12] great, where's it coming from now? [21:12] ie. if i didn't get that TypeError would i be using your code? [21:12] or what would happen? [21:18] benji -^ [21:20] leonardr: you'd be using the version before my changes (because that's what buildout gets from PyPI), which probably couldn't build the GNOME bits, and it probably couldn't build the encyption bits, so more than likely you'll just be using a file [21:22] benji: ok, sometime tomorrow i'd like to get the whole thing running with your code so i can do an end-to-end test [21:22] sounds good [21:23] abentley: have time for a review? [21:23] https://code.edge.launchpad.net/~jcsackett/launchpad/hidden-project-configuration-636000/+merge/39306 === jcsackett changed the topic of #launchpad-reviews to: On call: abentley || Reviewing: - || queue: [jcsackett] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [21:40] jcsackett: Prolly not. [21:41] abentley: fair. i wouldn't be able to get in to merge today anyway. === jcsackett changed the topic of #launchpad-reviews to: On call: abentley || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews === Ursinha-afk is now known as Ursinha === StevenK changed the topic of #launchpad-reviews to: On call: abentley || Reviewing: - || queue: [StevenK] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [22:27] abentley: ^ If you have time [22:27] StevenK: Sorry, I've EODed. === abentley changed the topic of #launchpad-reviews to: On call: abentley || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews === abentley changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [22:28] No fair dropping me from the queue === StevenK changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [StevenK] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [22:29] StevenK: It's an on-call review queue. No one has agreed to review you, so you can't be in the queue. [22:32] StevenK: paste the link [22:33] thumper: https://code.edge.launchpad.net/~stevenk/launchpad/cronscript-idsjob-testfix/+merge/39321