/srv/irclogs.ubuntu.com/2012/04/11/#launchpad-dev.txt

lifelesscool00:04
wgrantlifeless: I'm slightly concerned that the LOC policy is encouraging people to put massive (multi-thousand lines of diff) unrelated changes into a single branch.00:07
lifelessreviewers should still be pushing back on that00:07
wgranteg. spot the real change in http://bazaar.launchpad.net/~launchpad-pqm/launchpad/devel/revision/1507400:07
lifelessI presume you have examples?00:07
StevenKOh, bloody hell. That was my suggestion.00:08
StevenKwgrant: archive model changes, but I know the branch :-P00:09
lifelessso, this is an example of doctests sucking00:12
lifelessI would have made a new login_person that was better and left the old one for doctest specific usage, myself.00:12
lifelesslanding it separately would have been nice indeed.00:12
lifelesswgrant: such permutations during review have happened even before the LoC thing00:13
lifelesswgrant: That specific one doesn't flag the LoC policy per se, for me.00:14
wgrantPossibly not.00:14
lifelessits a related change00:15
lifelessif it was purely unrelated I would definitely feel tweaked00:16
lifelessanyone know why we special case no-bug-supervisor situations ?00:18
wgrantIn which context?00:19
wgrantBug notifications?00:19
lifelessyah00:20
cjwatsonanyone fancy a quick review of https://code.launchpad.net/~cjwatson/launchpad/remove-services-unicode-csv/+merge/101315 so I can test my landing access?  it's just removing two now-unused files00:20
wgrantlifeless: Because to do otherwise would not confuse people sufficiently.00:20
lifelessoh no whatever will we do00:20
lifelesscjwatson: don't forget to set a commit message and go via ec2 land00:20
cjwatsonOh yes, commit message.  I was going to use ec2 land, yes.00:21
cjwatsonThanks, will attempt that now00:21
wgrantrick_h: Hi, did you get a UI reviewer or Dan to look over the new email notifications?00:22
wgrantThe one you added doesn't respect our normal conventions and has incorrect capitalisation in a number of places.00:22
rick_hwgrant: yes, dan has sent me some feedback I've got to incorperate00:24
rick_hI'm working with him on it while I try to get tests passing00:24
rick_hwgrant: it's not final yet.00:24
wgrantconfused00:24
wgrantit landed overnight00:24
lifelessmaybe flagged?00:25
rick_hit shouldn't have landed, tests have been failing nad I just pushed another ec2 run during the day today00:25
rick_hI've not seen the tests run yet00:25
wgranthttp://bazaar.launchpad.net/~launchpad-pqm/launchpad/devel/revision/1507500:25
wgrant[r=gmb][bug=959482] Add event hooks to send a notification email to a user whenever significant changes to their account are taking place.00:25
lifelesshttps://bugs.launchpad.net/launchpad/+bug/85440500:30
_mup_Bug #854405: Private bug subscriptions <disclosure> <Launchpad itself:In Progress by wallyworld> < https://launchpad.net/bugs/854405 >00:30
lifelesswallyworld: ^ could you perhaps give that a more descriptive subject?00:30
wgrantrick_h: So, if it wasn't meant to land we should probably unland it.00:31
wallyworldlifeless: sure. i'm not sure why that one is not marked as released00:31
rick_hwgrant: email hung and didn't get the notice.00:31
wgrantheh00:31
rick_hwgrant: so I screwed up, should have ec2 test vs land. If youcould let me know what's wrong that would be helpful. Dan's notes so far have been more generic00:32
rick_hwgrant: so I'm not aware of what's not to standard atm.00:32
rick_hwgrant: I'm getting kicked out of the library here in a couple of min sorry. Going to be afk.00:32
lifelesswallyworld: thanks!00:34
wgrant"irc" -> "IRC", "Freenode" -> "freenode", needs general rewording to say "if you didn't make the change" rather than "if you didn't meant to make the change", URLs should be in <> or nothing at all rather than []. I'd check existing templates to see the general style.00:34
wgrantIt also seems slightly odd to not say what the new or removed email address is.00:35
wgrantAnd I'd prefer an assertion that there's only one changed field, rather than just dropping everything except the first one, given the security implications.00:35
lifelesstotally00:36
lifelessor list all the changed fields00:37
wgrantSure, but in the current implementation that's stated to be an impossible situation :)00:38
wgrantSo it just takes the first one from the list, ignoring any others that probably aren't there.00:38
* StevenK stabs layers.01:09
StevenKAwww, a Maverick EOL notice.01:09
wgrantOh, right, 10.10.1001:14
wgrantWasn't expecting it for a couple more weeks01:14
=== jtv1 is now known as jtv
cjwatsonSo how do I go about debugging things when the EC2 instance that 'ec2 land' starts up won't accept SSH connections?01:31
cjwatsonstrace shows it sitting in connect()01:32
wgrantcjwatson: It'll normally retry a couple of times. Takes a while to start01:32
cjwatsonLast time it timed out; this time it looks well on its way to timing out01:33
StevenKcjwatson: Gasp, you're going to land your own branches01:33
StevenK?01:33
cjwatsonIf EC2 will ever work for me, yes01:34
StevenKHeh01:34
StevenKCan you use ssh to connect to the instance it has started?01:34
cjwatsonNo; also hangs in connect()01:35
lifelesscheck the ingress rules01:36
lifelessec2 land may have misdetected your source ip address01:36
StevenKYeah, log into AWS and check your security groups.01:36
cjwatsonah yes, you're quite right01:38
cjwatsonbogus RFC1918 source addresses01:39
lifelessI see a patch to ec2 land coming up01:40
cjwatsonnot sure it's ec2's fault - why on earth is checkip.amazonaws.com telling me my RFC1918 address?  (how does it even know?)01:42
wgrantYou're not setting an outbound X-Forwarded-For or something like that?01:42
cjwatsonah, could be a proxy, yeah01:42
cjwatsonworks better with http_proxy unset01:43
StevenKHeh01:43
lifelessmmm haha01:44
lifelesscjwatson: I wonder if there is a bug tracker for checkip.amazonaws.com01:44
lifelessis bug 63000 still true?01:53
_mup_Bug #63000: IBugTask permissions are not in security.py and are obtuse <lp-bugs> <tech-debt> <Launchpad itself:Triaged> < https://launchpad.net/bugs/63000 >01:53
cjwatsonrunning now, phew01:53
wgrantlifeless: Yes01:53
StevenKwallyworld: I guess https://code.launchpad.net/~wallyworld/launchpad/launchpadlib-services-974139/+merge/101349 is tied to the mail you sent to -dev?01:53
StevenKcjwatson: \o/01:54
wallyworldStevenK: yes.01:54
StevenKwallyworld: Do you want to set it to WIP if you want to wait for the discussion?01:55
wallyworldright, will do01:55
* StevenK stabs buildbot. Six or seven times.02:05
wgrantStevenK: rick_h's branch conflicted with jml's.02:12
StevenKAh.02:12
StevenKHandy.02:12
lifelessdoes anyone know a reason why we have UNKNOWN *and* UNDECIDED  bug statuses?02:52
StevenKI think UNKNOWN is for imported bugs?02:54
lifelesss/status/impostance/02:54
lifelessStevenK: well, thats what we use it for02:55
lifelessStevenK: but why do we have it02:55
rick_hwgrant: sorry, like I was saying, kicked out of library post LUG meeting. Thanks for the notes. Taken down to go over in the morning.02:56
lifelesswe have a rule that says projects which use lp should always use undecided, and ones that don't should always use unknown (because their only bugs hsould be watches)02:56
rick_hlifeless: it does take from a list of fields, but the event is fired on one of them not all so it 'assumes' the first one. I'll add a check to it to make sure and fail otherwise02:56
lifelessrick_h: Wouldn't it have been easier to code the notification directly in03:04
rick_hlifeless: well, I was shown the license change notification stuff in subscribers at the start and took that path.03:07
lifelessI have two rules of thumbs03:07
lifelessif an event has only one user it doesn't need to be an event03:07
lifelessif you have to add special case code because you've lost context it probably shouldn't be an event03:07
lifelessrick_h: I can eyeball your branch if you like, rather than talking in generalities03:07
rick_hlifeless: well this does have three users, but you're right in the sense that it probably doesn't have to be an event.03:07
rick_hlifeless: definitely up for suggestions. It's my first real bit of code on teh zope side so learning more > *03:08
lifelessurl me up03:08
rick_hlifeless: but I'm finally back from LUG dinner/meeting and it's past my bed time. Can you email me notes for the morning?03:09
rick_hhttps://code.launchpad.net/~rharding/launchpad/email_notice_95948203:09
rick_hlifeless: ^^03:09
lifelessrick_h: thanks03:16
* wallyworld has an appointment, back in a bit03:16
lifelesswgrant: StevenK: is bug 250003 still relecant ?03:58
_mup_Bug #250003: package-cache should be optionally limited by distribution <lp-soyuz> <soyuz-core> <trivial> <Launchpad itself:Triaged> < https://launchpad.net/bugs/250003 >03:58
StevenKlifeless: If that populates DSPC and other madness -- it could be, yes. wgrant and I want to completly rip all that crap out and have DSP in the DB directly, but ETIME04:01
bigjoolsthere's that "should" thing in a bug again04:03
StevenKIndeed.04:03
StevenKAnd it mentions hateful things that shouldn't have existed.04:04
lifelessbigjools: yes, there it is. I hates.04:05
bigjoolsthe bug does not clearly state the problem04:05
lifelessindeed04:06
lifelessthis is not uncommon :)04:06
lifelessI'm trying to find a bug04:06
lifelessthere is a bug about showing folk that are important to a project as such04:07
lifelessin bug pages and so on04:07
lifelessthere is another bug that also says this04:07
lifelessI want to dup them04:07
lifelessI can't find the former bug ><04:07
StevenKWe have lots and lots of bugs. News at 11.04:07
lifelesswgrant: is bug 372643 fixed by your once-over ?04:12
_mup_Bug #372643: Import queue error display: IE7 makes it all one line <easy> <ie> <javascript> <lp-translations> <ui> <Launchpad itself:Triaged> < https://launchpad.net/bugs/372643 >04:12
lifelessalso bug 376186 is about the most opaque I've seen today04:12
_mup_Bug #376186: private bug implicit subscription <disclosure> <lp-bugs> <privacy> <story-better-bug-notification> <ubuntu-qa> <Apport:Won't Fix> <Launchpad itself:Triaged> < https://launchpad.net/bugs/376186 >04:12
lifeless[the subject I mean]04:12
wgrantlifeless: That one is pretty transparent.04:16
wgrantIt wants private bug implicit subscriptions04:16
wgrant(we'll be fixing it with disclosure)04:16
wgrantlifeless: 372634 needs to be checked in a more recent IE04:16
wgrantIf it works in IE8 it's fine04:17
wgrantSince IE7 has no reason to exist04:17
wgrantrick_h: Anyway, we probably need to unland the mistaken landing. Any objections?04:18
lifelesswgrant: the /subject/ isn't transparent :)04:20
wgrantI knew immediately from the summary what the problem was04:20
wgrantPrepending 'No ' would possibly have made it a bit clearer, however.04:21
lifelessI don't understand the bug, and I've read it04:28
lifelessit says04:28
lifelessnew apport bugs have u-c-u subscribed, but members of u-c-u don't get notifications.04:28
lifelessThat sounds like 'the system is working but it isn't'04:29
lifelessperhaps it means 'we have muted u-c-u via an external contact address and we want folk to have to have a different subscription to get notifications, and they want structural subscriptions to work'04:29
wgrantlifeless: u-c-u deliberately doesn't imply notifications, because that would be insane.04:30
lifelessso, bug 37618604:30
_mup_Bug #376186: structural subscriptions to private bugs don't work even when the subscriber has visibility on the bug <disclosure> <lp-bugs> <privacy> <story-better-bug-notification> <ubuntu-qa> <Apport:Won't Fix> <Launchpad itself:Triaged> < https://launchpad.net/bugs/376186 >04:30
wgrantlifeless: But people who have explicitly opted into the package's bugs (through a structural subscription) don't get notified, even if they have access04:30
lifelessthats clear.04:30
wgrantRight, but bug is that private bugs don't have implicit subscriptions.04:31
lifelessno04:31
lifelessimplicit subscriptions aren't a thing anywhere, they don't exist04:31
lifelessthe bug is that structural subscriptions aren't working with private bugs - they shouldn't grant visibilty, but they should still grant notification.04:31
lifelessthats even the symptoms described, once you know that u-c-u doesn't imply notification04:32
wgrantlifeless: Structural subscriptions are one type of implicit subscription04:33
wgrantOthers include subscriptions through duplicates, or for notification by assignment.04:33
lifelessgranted04:33
lifelessbug 37618604:33
_mup_Bug #376186: implicit (e.g.structural) subscriptions to private bugs don't work even when the subscriber has visibility on the bug <disclosure> <lp-bugs> <privacy> <story-better-bug-notification> <ubuntu-qa> <Apport:Won't Fix> <Launchpad itself:Triaged> < https://launchpad.net/bugs/376186 >04:33
lifelesswhich isn't entirely true04:34
lifelessbecause we handle assignment already I think04:34
lifelessbut I accept your precision; do you accept my critique of the prior subject?04:34
wgrantAssignment is handled by some very inconsistent and non-performant and broken special cases, yes.04:34
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
lifelesspoolie: bug 66034005:22
_mup_Bug #660340: [wishlist] Bug report message editor: want some markup to make the text bold/italic <lp-foundations> <Launchpad itself:Triaged> < https://launchpad.net/bugs/660340 >05:22
pooliehi05:22
poolieyup, that'd be arguably a dupe05:23
StevenKwgrant: Hai. https://code.launchpad.net/~stevenk/launchpad/information_type-vocab/+merge/101486 if you please?05:24
wgrantStevenK: Looking05:27
wgrantStevenK: Done05:47
StevenKwgrant: SimpleTerm doesn't seem to take a description, I went pawing through zope.schema05:49
wgrantStevenK: Perhaps description is of our own invention :(05:49
lifelesscjwatson: since you're spending some time on publishing things - https://bugs.launchpad.net/launchpad/+bug/61670406:00
_mup_Bug #616704: security unembargoes leads to security.u.c overload because primary archive does not have a copy of the debs <lp-soyuz> <Launchpad itself:Triaged> < https://launchpad.net/bugs/616704 >06:00
StevenKwgrant: MatchesStructure() is pretty awesome, first time I've used it.06:00
wgrantStevenK: That's the point :)06:00
bigjoolswe did a test helper in Maas where you can do assertAttributes(model, attr=, attr2= ...) which uses MatchesStructure06:01
wgrantlifeless: Can I nuke the 'specification' bug search order on the grounds that it's stupid and not used by the UI?06:07
wgrant(I believe it was added for a (likely false) constraint designed into dynamic bug listings, but never used)06:08
StevenKwgrant: Sort by blueprint? Oh, that sounds SO useful.06:10
StevenKs/Sort/Search/06:10
wgrantIt sorts by the alphabetically first linked blueprint name06:10
StevenKOh, I can think of ... no use case for that whatsoever. :-)06:11
wgrant(only slightly less useful than the 'tag' sort order, which sorts by alphabetically first tag)06:11
wgrantBut tag is a bit harder to remove, since it's used by the UI.06:11
StevenKwgrant: I vote killing it, since it's just sounds dumb.06:11
StevenKs/'s//06:11
StevenKwgrant: And in fact, once we drop both feature flags, the entire vocab can just die.06:12
wgrantStevenK: Ah, true06:12
* StevenK peers at Steam.06:13
StevenKNow Valve is doing Indie bundles?06:14
wgrantThey do sometimes.06:14
wgrantThere were a lot about 18 months ago06:14
lifelesswgrant: if it has no search lozenge I see no reason to keep it06:15
lifelesswgrant: (spec search order specifically)06:15
wgrantlifeless: Yeah06:16
lifelessmpt: hey06:16
wgranttag does, unfortunately :(06:16
lifelessmpt: I am convinced that bug 522741 is a dup, but I can't find the other copy06:16
_mup_Bug #522741: Highlight comments from certain people <lp-bugs> <Launchpad itself:Triaged> < https://launchpad.net/bugs/522741 >06:16
lifelesswgrant: sort by tag makes no sense to me; is it getting used ?06:17
lifelesswgrant: (e.g. what do the web logs say)06:17
wgrantlifeless: Probably only by accident06:17
wgrantBut I could check06:17
wgrantBut it has a lozenge, so it's not trivial to remove06:17
lifelessdata >> nodata06:17
lifelessright, but you can start a discussion on the list06:17
lifelesswhere you can document issues like 'can't use it to find an unknown tag, because it doesn't repeat the row per-tag, just sorts with the alpha-lowest tag'06:18
wgrantStevenK: You didn't address my concern about duplication with LP.cache.context06:39
wgrantIn other news, 450 line functions irk me06:40
=== mabac__ is now known as mabac
StevenKwgrant: Bah, sorry.07:07
StevenKwgrant: I killed it.07:11
StevenKI'm going to have fun merging devel into my UI branch, given it's 35 revisions behind.07:11
=== mabac__ is now known as mabac
mptlifeless, I don't remember that being reported before (though I did think of bug 58670 before seeing that it was already linked)07:35
_mup_Bug #58670: Highlight comments from the reporter <easy> <feature> <lp-answers> <lp-bugs> <ui> <Launchpad itself:Triaged> < https://launchpad.net/bugs/58670 >07:35
lifelessmpt: hmm, I was sure there was something, ah well. I have at least cleaned up some more dross in the tracker07:39
czajkowskialoha08:01
adeuringgood mooriig08:03
adeuring...morning08:03
lifelessI need someone to translate bug 253934 for me08:05
_mup_Bug #253934: Please bring back the source info to the bug page <feature> <lp-bugs> <Launchpad itself:Triaged> < https://launchpad.net/bugs/253934 >08:05
lifelesswhat do they mean 'source info'08:05
mptlifeless, when a bug page was viewed in the context of a source package it would contain the source package portlet. I removed it as a small step towards (hi wgrant!) making the page the same regardless of what context you were in08:06
lifelessthanks08:07
wgrantHeh08:07
wgrantI think I filed a bug in 2006 or 2007 about it being context-dependent08:08
cjwatsonlifeless: well, mostly, I second comments #1 and #208:10
cjwatsonlifeless: although it occurs to me that a launchpadlib reimplementation of our current script could do a better job of reacting to -security publications without even needing to touch the security team workflow08:10
cjwatsonmaybe08:11
cjwatsonright now it relies on the package being completely published08:11
lifelesswgrant: is zopeless buried yet ?08:13
wgrantlifeless: Apart from ZopelessLayer and its derivatives, yes.08:14
wgrantSo unless it's referring to tests, the bug is a lie.08:14
lifelessbug 78101408:14
_mup_Bug #781014: View tests should probably not use Zopeless layers <tech-debt> <Launchpad itself:Triaged> < https://launchpad.net/bugs/781014 >08:14
wgrantStill present08:14
wgrantThe main reason they shouldn't use it is the main reason it still exists08:15
wgrantLaunchpadSecurityPolicy vs PermissiveSecurityPolicy08:15
cjwatsonlifeless: anyway, doing *something* with copy-report is on my list, since it needs to be moved off cocoplum08:16
lifelesscjwatson: I'd like to think LP has all the bits needed for that bug, just a matter of using em differently08:18
cjwatsonI think that's probably true, although the changelog comparison we do in copy-report would be a bit tedious pre-publication08:19
cjwatsonbut it can reasonably wait until I reach this particular bit of the grand refactoring of all our tools08:20
cjwatson(which is, hopefully, resourced for Q, if secure boot doesn't entirely eat my life which would make me sad)08:20
cjwatsonoh, sigh, when EC2Test says you need a publicly accessible SMTP server it really means public, doesn't it08:21
wgrantcjwatson: Everyone just uses smtp.canonical.com08:22
cjwatsonyeah, changing it according to EmailSetup now08:22
lifelesswallyworld: should https://bugs.launchpad.net/launchpad/+bug/885503 be F-R?08:22
_mup_Bug #885503: Its not obvious on the UI how to choose to have all bugs reported against your project marked private by default. <bugtracker> <disclosure> <documentation> <privacy> <qa-ok> <Launchpad itself:Fix Committed by wallyworld> < https://launchpad.net/bugs/885503 >08:23
cjwatsonlifeless: linked from https://wiki.ubuntu.com/FoundationsTeam/ReplaceArchiveAdminShellAccess so I don't forget08:26
lifelesscjwatson: thanks!08:27
lifelessmpt: hah - bug 25147908:28
_mup_Bug #251479: bug pages should list the published versions <feature> <lp-bugs> <Launchpad itself:Triaged> < https://launchpad.net/bugs/251479 >08:28
mptlifeless, so if people still want that, and while we still have multi-task bug reports, the challenge then would be to work out how to present it sensibly no matter how many packages are there08:31
lifelessmpt: I've suggested in the bug to have the expander that currently shows the old style form, show details about the context.08:31
mptgood idea08:31
wgrantNo no no08:32
wgrantDon't encourage making multi-task bugs more workable08:32
wgrantIntroduce obstructions to their functionality so we can better justify their abolition :)08:32
lifelessI suspect we could close every bug with 'should' in the title with no degradation of the LP bug tracker08:41
lifelesswgrant: you might want to check bug 415223 and see if its still broken, after all the subscription rework08:46
_mup_Bug #415223: "Subscribed by Some Person" tooltip after inline subscription is wrong <lp-bugs> <story-better-bug-notification> <Launchpad itself:Triaged> < https://launchpad.net/bugs/415223 >08:46
wgrantlifeless: That work never happened :)08:46
=== almaisan-away is now known as al-maisan
nigelb/ws/ws 2008:56
lifelesswgrant: did you end up nuking lazr.restfuls representation cache ?09:08
wgrantlifeless: No, just the LP integration09:09
lifelessmore LoC just hanging around09:10
lifelessbigjools: why did you keep bug 613642 open given Ubuntu saying 'no never' ?09:16
_mup_Bug #613642: PPA pages have two different sets of instructions for adding them, rather than providing a button <doc> <lp-soyuz> <ppa> <ui> <Launchpad itself:Triaged> < https://launchpad.net/bugs/613642 >09:16
jmldo I need to take any action to deal with my buildbot rejection?09:41
nigelbjtv: Everything okay out there?09:42
jmlHmm.09:43
jmlI see no one has fixed it.09:43
jtvHi there nigelb!09:43
jmlSo I guess that means "yes".09:43
nigelbjtv: Ohai. Context of that question - earthquake!09:43
jtvjml: hi there you too.  Buildbot problems?09:43
jtvnigelb: Just heard about it.  Didn't notice it.  Mind if I go private?  Don't want to distract the channel from Jono's problem.09:43
nigelboh sure09:43
lifelessrick_h: I have added a review to https://code.launchpad.net/~rharding/launchpad/email_notice_959482/+merge/9999509:43
lifelessgmb: you may want to read my comment on it too, as you reviewed it initially ^09:44
jmljtv: yeah, a submtted branch failed. wgrant said earlier it was a conflict, but I can't tell if someone has already addressed the issue.09:44
bigjoolslifeless: I missed your ping earlier and now I switch clients, what did you want?09:46
wgrantjml: It seems that rick_h inadvertently landed a branch that was not ready09:47
wgrantjml: And, unrelatedly to that, it conflicted with your ignored = branch09:47
wgrantWell, not a bzr conflict.09:47
jmlwgrant: yeah, I understand.09:47
wgrantBut some tests that it added are broken09:47
lifelessbigjools: there is a bug 613642 , but AIUI Ubuntu have said 'we do not want just-a-button for PPAs'09:47
_mup_Bug #613642: PPA pages have two different sets of instructions for adding them, rather than providing a button <doc> <lp-soyuz> <ppa> <ui> <Launchpad itself:Triaged> < https://launchpad.net/bugs/613642 >09:47
wgrantI was hoping to talk to rick_h to get that branch reverted09:47
wgrantBut he probably went to sleep09:47
lifelessbigjools: you said in the bug you were keeping it open because it was clear, but as Ubuntu don't want it, I'm not sure why clarity is a reason to keep it open/.09:48
jmlwgrant: OK. Maybe it's a good idea to fall back to asynchronous communication?09:48
bigjoolslifeless: I'm sure I had a good reason but IBF if I can think of it now09:49
wgrantjml: I intend to talk to him when he comes online in a couple of hours.09:49
lifelessbigjools: I'll leave it for now, let your brain sleep on it09:49
bigjoolslifeless: I'd be happy to close it I think09:49
jmlwgrant: ok.09:49
lifelessbigjools: would you lke me to click the button for you ?09:49
bigjoolslifeless: done :)09:50
lifeless\o/09:51
lifelessI've been procrastinating on allhands.c.c with this09:51
jmlprocrastination, is the answer, procrastination, doing it later! dig it.09:59
nigelbQuick question - also probably stupid question - is there a way I can run LP on OS X?10:00
lifelessvirtualbox10:00
nigelbAww. ok. that's what I'll do then.10:01
lifelessin principle you can run it natively, yes10:01
wgrantIt's probably possible to run LP directly on OS X, as long as you have libapt and the like10:01
lifelessbut frankly it would basically be a nontrivial time investment for no reward10:01
wgrantBut it hasn't been done since 2005/2006.10:01
nigelblifeless: Yeah, that's what I was not sure about.10:02
nigelbThe good thing is I can let rocketfuel take over the virtualbox.10:02
nigelbSo it should be trivial at that end.10:02
lifelessI do all my dev in lxc10:03
wgrantMe too10:03
lifelesse.g. I don't even run LP on Ubuntu directly10:03
wgrantLXC probably doesn't run on OS X, though :)10:03
lifelesssome porting required10:03
nigelbwgrant: Damn. I was hoping it would work.10:03
lifelessnigelb: how much memory does your machine have?10:04
nigelblifeless: 2 GB *cough*10:05
lifelessnigelb: so, run a server install, no x or display manager10:05
wgranti386, not amd6410:05
lifelessyou'll need the X client10:05
lifelessssh into the vm to do stuff10:05
lifelessyou can use a native X server if you want to run up firefox etc within the vm10:06
nigelbI wanted to setup a headless VM10:06
nigelband then hit it from outside10:07
nigelbthat probably needs some hacking to get the domains right.10:07
lifelessits documented on the wiki10:07
nigelbI have a few LP MP/bugs that I want to close.10:07
nigelboh cool. this should be fun.10:07
lifeless(naturally enough, because thats how everyone developing with LXC gets at their dev instance)10:07
nigelbOh right.10:08
lifelessI really need a 'this will make wgrant happy' template for bugs10:08
nigelbheh10:08
wgrantlifeless: Oh?10:09
lifelessbug 97876810:09
_mup_Bug #978768: read-only mode code is now dead code <tech-debt> <Launchpad itself:Triaged> < https://launchpad.net/bugs/978768 >10:09
wgrantHah10:09
wgrantThat will make me slightly sad, actually.10:09
lifelessoh?10:09
wgrantAlthough maybe the current implementation is not worth keeping, I guess.10:09
lifelessthe current implementation is not at all what you have advocated for10:09
wgrantIndeed10:09
wgrantIt's also horribly buggy.10:10
lifelessso, we should toss it.10:10
lifeless*if* we go for a restricted, real-time, no-writes-permitted thing, it would need to be a lot leaner and more reliable to be better than FDTW10:11
wgrantYep10:11
poolielifeless, ok, markdown baby tossed10:14
lifelessits a bit sad, but perhaps someone will pick it up10:14
pooliemaybe we will finish it saturday10:15
poolieit's not that much more actual code but it takes some chasing to get it landed and qa'd10:16
poolielifeless, gc-ing it after 2 months makes sense10:19
rick_hwgrant: sorry, yes went to bed. I've got to get hte boy to day care and I can look at the rollback process.10:26
rick_hlifeless: thanks for the review. I did discuss the code LoC increase with deryck and it was thought that with some previous JS changes and hte fact that this is a hot security issue that getting out faster was better at the moment10:27
wgrantrick_h: Hm, wasn't expecting you for another 2.5 hours anyway :)10:28
rick_hwgrant: ok, well should be < 1hr. Sorry about the builtbot blockages10:28
lifelessrick_h: its the overall thing we look for, but the absence of discussion in the review is a red flag10:28
wgrantrick_h: Great.10:29
lifelessrick_h: it either means it was done out of band, which is ok, or wasn't considered, and an external party cannot tell:)10:29
rick_hlifeless: right, I should have noted the discussion in my MP, sorry about that.10:31
lifelessrick_h: nevertheless, it can be much smaller ;)10:32
=== al-maisan is now known as almaisan-away
wgrant:(11:22
wgrantSomeone just registered a few dozen distinct imports under kdemultimedia11:22
wgrantAh, only a dozen, just looked like a lot more11:24
jelmerwgrant: that would be the project neon folks11:25
wgrantSo it seems11:26
wgrantThat is even more worrying11:26
wgrantAs we're pushed for buildd time already11:26
rick_hwgrant: should this back out be sent through ec2 then? or just pqm submit?11:32
wgrantrick_h: pqm-submit11:32
rick_hwith [rollback=15075] in the commit message, is there anything else I need to make sure is in there?11:33
wgrantNope, just [r=foo][rollback=bar], where foo is usually yourself11:33
rick_hthanks11:34
czajkowskiwgrant: see over there --->11:35
rick_hwgrant: oh, need [testfix] as well?11:40
StevenKrick_h, wgrant: I was about to lp-land my vocab branch. Shall I wait until your rollback lands?11:41
wgrantrick_h: Ah, yeah, you'll need testfix since buildbot finished with the broken branch11:42
rick_his there a web ui view for pqm aside from the deployment report I can monitor for this hitting?}11:42
wgrantrick_h: pqm.launchpad.net11:42
wgrantBut it'll only be there for ~45seconds11:42
rick_hwgrant: ah ok11:43
rick_hI'll keep pushing my email. offlineimap ftw except when you want an email *NOW*11:43
rick_hbah, testfix has to be the first one, *sigh*11:50
rick_hok, rollback success from pqm11:51
* rick_h crosses fingers it works out from here11:51
StevenKrick_h: You can't really self-review, you're still being mentored. But I think we can let it slide.11:53
rick_hStevenK: thanks, if it makes you feel better jcsackett has started looking at getting me out of mentorship :)11:53
* StevenK makes a note to fix that on the call tomorrow. :-P11:53
rick_hdoh11:54
StevenKHaha11:54
nigelbit's a trap :P11:54
jmlgary_poster: let me know if https://code.launchpad.net/~jml/testtools/forward-current-tags/+merge/101538 addresses your issues with testtools tag support.12:40
gary_posterjml, cool will review thanks.  benji would also review, as he's been doing a lot of the work in the area, but he has internet connectivity issues today.12:49
gary_posterjml, that looks very good to me in terms of subunit contract and in terms of the tag context approach.  typo line 477 of diff: restorted. I don't understand meaning of Python27Contract subclass and have not explored, but it implies to me that this the contract will not be expected/maintained for 2.6.  Do I understand correctly?  If so, why would we only want this in 2.7?  testresult.real.ThreadsafeForwardingResult a13:02
gary_posterlso does not conform to subunit tag contract correctly, but we have work in that direction, as well as another test result implementation, so we can run with your branch once it is landed and hopefully use your testcases to test those test result classes13:02
jmlgary_poster: Python27Contract is the contract for stdlib unittest.TestResult in Python 2.713:04
jmlgary_poster: and likewise for 2.613:04
gary_posterjml, but I thought your MP said that tags were not in 2.7...rereading13:04
jmlgary_poster: the previous tests implied that Python 2.7 unittest.TestResult had tags()13:04
jmlgary_poster: and thus our test double object had tags()13:05
jmlgary_poster: but that was wrong, making it a bad double.13:05
jmlgary_poster: I'm also fairly sure that this branch fixes ThreadsafeForwardingResult to conform to subunit tag contract.13:06
gary_posterjml, right, ok.  So...TagsContract will be expected to be followed in both 2.6 and 2.7, right?  That's my only concern, really, despite the fact that I'm still in a bit of a fog about the intent of that subclassing (reading more code would help, I suspect(13:06
jmlgary_poster: the subclassing is sort of a kludge for not using testscenarios13:06
gary_posterThreadsafe...: really!  lemme look again13:07
gary_postersubclassing: ok13:07
jmlgary_poster: by inserting TagsContract into the tree where we did, that tests against TSFR.13:07
gary_posterjml, ok cool.  I believe ThreadsafeForwardingResult still has some issues, but perhaps they are mitigated somehow.  benji and/or I will review later.  However, _not_empty_tags is simply wrong AFAWCT (minimally should be boolean or, not boolean and, and arguably should be "bool(tags[0] - tags[1])" from some kind of purity perspective).  Similarly, _add_result_with_semaphore reverts the _global_tags at the end of the13:11
gary_posterfunction, which we believe is a typo/thinko13:11
jmlgary_poster: oh right, the forwarding might well be busted. I don't understand it, tbh.13:12
gary_posterAs I said, we've been staring at this for a while, so we'd be happy to review again once this has landed (especially if it lands soon)13:12
gary_poster(review the forwarding bits I mean)13:12
jmlgary_poster: I was sort of hoping that making TagContext would have helped me understand / get rid of it, but no, not really :\13:13
gary_posterheh13:13
jmlgary_poster: I should have been more insistent at the code review point.13:13
gary_posterjml, you can be insistent when we propose some changes to it, and that will help everything along :-)13:13
gary_posterWe'll see if we can use TagContext in there too; I suspect we can.13:14
jmlgary_poster: thanks :)13:14
gary_posterjml, any idea how soon this will land?  I'll suggest to benji that we work from your branch if it won't be within an hour or so13:15
jmlgary_poster: I'll try to get another testtools person to review13:19
gary_postercool jml, thanks13:20
jmlgary_poster: oh. oops. lifeless is the only other person with commit access.13:22
gary_poster:-)13:22
abentleyrick_h: Your r15075 broke buildbot.  You added login_person calls to doctests, but r15074 makes login_person return a value, which breaks doctests.13:24
rick_habentley: it's been rolled back this morning13:25
rick_habentley: I replied to the email, I've got work to do on it still. Should hopefully fix soon13:25
abentleyrick_h: Ah, okay.  The mail was more about buildbot failing to notify you.13:25
rick_habentley: ok, just grabbed one of the failure emails to reply to this morning.13:26
abentleyrick_h: We're talking about different mails.  I just sent a mail complaining about buildbot blaming *me* for this.13:29
deryckabentley, adeuring, rick_h -- can one of you paste me the link for the standup hangout?13:30
abentleyderyck: https://plus.google.com/hangouts/_/extras/talk.google.com/orange-standup#13:30
deryckthanks!13:30
=== almaisan-away is now known as al-maisan
abentleyhttps://dev.launchpad.net/PolicyAndProcess/MaintenanceCosts13:41
=== abentley changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: abentley | Firefighting: - | Critical bugtasks: 4*10^2
jmlflacoste: btw, it would be great if the MaintenanceCosts doc included or linked to some helpful suggestions on what to do to reduce maint costs to pay for a patch.13:50
flacostejml: you mean like a task list?13:51
jmlflacoste: yeah13:51
flacosteindeed, that's a good idea13:52
jmlflacoste: but not necessarily exhaustive13:52
flacosteright13:52
jmle.g.13:52
flacostejust a getting started13:52
jml- remove sample data13:52
jml- convert a doctest to a unittest13:52
jmlthat sort of thing13:52
flacosteah, so more "principles" based13:52
flacosterather than fix bug 1234513:53
_mup_Bug #12345: isdn does not work, fritz avm (pnp?) <isdnutils (Ubuntu):Fix Released by doko> < https://launchpad.net/bugs/12345 >13:53
flacosteor bug 12345613:53
james_wboth would be good13:53
_mup_Bug #123456: podcast crashes amarok <Amarok:Invalid> <xine-lib (Ubuntu):Fix Released> < https://launchpad.net/bugs/123456 >13:53
jmlflacoste: well, that might be nice too.13:53
jmlflacoste: basically, something to get someone started who isn't heavily involved in the code-base and feeling the costs.13:53
nigelbEr, since when did we have a reduce LoC mission?13:54
cjwatsonSince 2012-02-10.13:54
nigelbAh, that's why it felt new.13:54
nigelbI did wonder, I hadn't heard of this when I was actively writing code.13:54
cjwatsonhttps://lists.launchpad.net/launchpad-dev/msg08923.html13:54
nigelbAlso. Should learn to scroll. That info was right on the page. :|13:54
abentleyjml: We could also have a list of dead code, but that raises the question "why not just delete it now?"13:55
jmlabentley: well, why not?13:56
cjwatsonhttps://lists.launchpad.net/launchpad-dev/msg08903.html had some specific suggestions from lifeless13:56
abentleyjml: Because if we save it up, then we don't have to work so hard later to balance a LOC addition :-)13:56
cjwatsonIf people start saving things up, the policy is arguably counterproductive ...13:57
jmlright13:57
abentleycjwatson: Yes, therefore the smiley.13:57
jmlabentley: is there a way to discover dead code?13:57
nigelbHrm, I'm curious, as an external contributor, how can I help? Because most of my MPs were adding code. Not deleting them. Not sure I know enough about Lp to delete code.13:57
cjwatsonabentley: fair enough, it can be hard to tell13:58
cjwatsonjml: https://bugs.launchpad.net/launchpad/+bug/420338 ;-)13:58
_mup_Bug #420338: Tool for identifying dead code <build-infrastructure> <feature> <lp-foundations> <tech-debt> <Launchpad itself:Triaged> < https://launchpad.net/bugs/420338 >13:58
abentleyjml: Nothing foolproof, but checking the coverage of the test suite would give hints.13:58
cjwatsonnigelb: I've been doing a fair bit of deletion as an external contributor13:58
jmlnigelb: yeah, likewise. that's what started off this conversation ;)13:58
abentleyjml: In some cases, though, the test suite is the only caller.13:59
nigelbcjwatson: *cough* you know more about LP :)13:59
nigelbjml: Ah!13:59
cjwatsonnigelb: in my case it's just come down to intuition ("hmm, that looks a bit crufty") and grep to confirm13:59
jmlnigelb: the only way to learn is by randomly deleting stuff.13:59
nigelbjml:  Or turn into StevenK :D13:59
jmlcjwatson describes it better.13:59
jmlnigelb: please don't. one is enough.14:00
nigelbhaha14:00
nigelbI actually would love to see tagged bugs or something.14:00
nigelbIf there's low hanging fruits14:00
cjwatsonthere's the tech-debt tag, which has some useful ideas14:00
cjwatsonalthough with a wide range of difficulty14:00
jmloh yeah, that one.14:01
nigelbI should resucitate my ubuntu laptop to try this out.14:01
sinzuijcsackett, you make a good point about the Ubuntu bug supervisor14:04
wallyworldsinzui: hello14:05
wallyworldbug 97821214:05
_mup_Bug #978212: Sharing batch navigation shows ugly 404 error. <disclosure> <ui> <Launchpad itself:In Progress by wallyworld> < https://launchpad.net/bugs/978212 >14:05
* jml considers doing a test run with coverage.py14:05
sinzuijcsackett, The ubuntu bug supervisor is not subscribed when the private bug is created, apport is the only party that can access it. When a user changes the bug to private, the ubuntu bug supervisor is being subscribed?14:06
wallyworldsinzui: it's caused by the PillarNavigationMixin added for the sharing details page. the mixing processes traversal of xxx/+sharing/name14:07
wallyworldsinzui: but the batching js sends urls like xxx/+sharing/++model++ and the navigation mixin gets confused14:07
wallyworldsinzui: i have a fix but i'm not happy with it. i'd rather change the url for the sharing details page to xxx/+sharingdetails/name14:08
jmlsinzui: want to have a call w/ james_w & I today?14:08
sinzuiwallyworld,  I think We want to extend the @stepto. The URL looks natural...if I hack the URL I get a 40414:08
wallyworldsinzui: the url looks natural but what is sent includes the ++model++14:09
wallyworldsinzui: my lame fix which does work is https://pastebin.canonical.com/64098/14:09
sinzuiwallyworld, I think that is the correct fix...the application should not dictate the URL14:10
wallyworldsinzui: the browser location doesn't show the ++model++ even though that's what is sent via the post14:10
sinzuijml yes. I am available starting at 16:00 UTC14:11
wallyworldsinzui: so you favour retaining xxx/+sharing/name for the sharing details view url?14:11
sinzuiyes.14:11
jmlsinzui: thanks.14:12
jmlre dead code: http://pypi.python.org/pypi/vulture might be interesting.14:12
wallyworldsinzui: ok. is my first attempted fix which does work but i know is wrong in the right area at least?14:13
sinzuiwallyworld, The underlying issue is that ++model++ which is an internal mechanism was exposed in the URL is an nasty way14:13
wallyworldsinzui: that's out of my control - it's what the js batch navigation infrastructure sends through14:14
wallyworldand it was harmless until we introduced the extra traversal stuff for the details page14:14
wallyworldi think the idea is that the js batch navigation stuff is simply asking the view to init and populate the json cache14:15
wallyworldand the ++model++ namespace is used to do this14:16
wallyworldso it seems an established pattern14:16
sinzuiwallyworld, it was harmless except it was introduced in ignorance that we use @steptrough in a lot of places and we frustrate users try to make that hack work... ~team/+members and ~team/+member/sinzui is bong14:16
wallyworldsinzui: sorry, i should have typed "harmless"14:16
sinzuiwallyworld, also, try putting to batch navigators on the same page as is also done on +members and you will see it is truly fuxked14:16
wallyworldsinzui: so seems like we have a form of infrastructure friction here14:17
sinzuiyes14:17
sinzuiwallyworld, I think the real issue is that @stepthough should ignore ++ because it is a special rule14:18
wallyworldthat sounds reasonable i think, but if it ignored it i wonder if the ++model++ contract would still be met14:19
sinzuiwallyworld, consider using ++oops++ on a page with an @stepthrough...it will fail14:19
sinzuiwallyworld, so this issue is not new.14:20
jmlflacoste: thanks!14:20
wallyworldyes, it would wouldn't it14:20
wallyworldok. i'll get myself off to bed and revisit in the morning. thanks for providing the input. i didn't realise the issue was sort of known14:22
sinzuijml: I cannot meet until 16:30 UTC. I need to get my son from school14:22
jmlsinzui: no worries. can you please ping us when you're back?14:22
sinzuifab14:23
abentleyjml: Vulture looks interesting.14:31
rick_habentley: quick ? so I wanted to pull devel with my branch to keep working on it14:33
rick_habentley: except devel has a rollback that undoes my branch14:33
rick_habentley: any clue on what I *should* have done?14:34
jmlabentley: yeah. I just ran it. It generates warnings for methods that are part of an exposed API.14:34
rick_hI'm assuming there's a right order/process to keep my work while getting devel's changes so I can fix the tests/etc.14:34
abentleyrick_h: You want to merge, not pull.  Merge up to the rollback first.14:34
abentleyrick_h: Then merge the rollback, but revert all its changes.14:34
rick_habentley: ok14:35
rick_hty14:35
abentleyrick_h: So: bzr merge -r 15076; bzr commit; bzr merge -c 15077; bzr revert ".";  bzr commit;14:36
abentleyrick_h: If you've pulled devel, you can reset your branch to its old revision with "bzr pull -r 15010.1.25 --overwrite"14:45
rick_habentley: ok, thanks14:46
abentleyrick_h: np.14:47
sinzuijcsackett, I think your reply to the branch in the review hints that if we make the change I propose, Ubuntu's bug subscription behaviour will change14:54
jcsackettsinzui: yeah. the current behavior, as regards bug supervisor, wasn't changed; just cleaned up.14:54
jcsackettmind you, that doesn't mean the behavior is *right*. :-P14:54
sinzuijcsackett, Canonical noticed the change in behaviour...not ubuntu14:55
jcsackettsinzui: dig. so ... leave it? i think your right that the current behavior is actually wrong.14:56
sinzuijcsackett, I think the rules are wrong. wgrant might say the rules are right because the apport is not using the chunks of code we are changing14:57
jcsackettsinzui: well, i can sit on it till tonight, and we can talk to wgrant.14:58
sinzuijcsackett, I am going to make the review as needs information, and we can discuss this as a group14:58
jcsackettsinzui: dig.14:58
adeuringabentley: could have a look this mp: https://code.launchpad.net/~adeuring/lazr.jobrunner/slow-lane/+merge/101576 ?14:58
jcsacketti'll leave off changing it then, and not worry about landing it today.14:58
abentleyadeuring: with pleasure.14:58
jcsackettsinzui: i was thinking of tackling bug 968253 today. any landmines you can think of, or is this a pretty straight forward case of just getting the banner to display?14:59
_mup_Bug #968253: +archivesubscriptions pages do not clearly state that they contain private information <disclosure> <privacy> <Launchpad itself:Triaged> < https://launchpad.net/bugs/968253 >14:59
sinzuijcsackett, I think so. You might notice that there is a related bug. the bread crumbs are missing/wrong15:00
jcsackettsinzui: i did not notice that, but it might explain why the banner isn't showing if its supposed to.15:01
jcsackettsinzui: oh, or i can take the details closed bugs issue; did y'all come to a decision on that last night?15:02
sinzuiright, without the breadcrumb adapter, lots of things are subtly broken15:02
abentleyadeuring: Did you consider making fallbackToSlowerLane a contextManager?  Then it could re-raise the exception itself if there was no fallback available.15:03
sinzuijcsackett, that needs research. I see some closed bugs are listed...this issue might also be about the fact that duplicates are often omitted from searchTasks()15:04
jcsackettsinzui: ah, right.15:04
jcsackettsinzui: ok, i'll go after the privacy banner/breadcrumb bit first. if that's a relatively quick resolution, i'll pry into the details page issue some.15:04
sinzuiI cannot be certain at the moment but bug search is really mediocre for researching privacy issues, and team leads can not access the staging databases anymore...I have no idea which bug Lp thinks the example user has access to15:05
abentleyadeuring: 119 looks like acccidental whitespace.15:05
adeuringabentley: fixed. (the whitespace) ANd no, I did not consider to define fallback/oSLowerLane as a context manager.15:07
adeuringabentley: I think we should keep the exeption handling in one place though, in runJob()15:07
abentleyadeuring: cool.15:08
adeuringOtherwise, it will be hard to keep an overview that the job status is correctly updated15:08
abentleyadeuring: You don't actually need RunFileJobNoResult.  You can just pass ignore_result=True to apply_async.  This works for most (all?) Task properties.15:09
adeuringabentley: ah, ok, I'll try that15:09
adeuringabentley: this does not work. With this change: http://paste.ubuntu.com/924985/ , I get again errors about messages that are stuck in rabbitmq...15:15
abentleyadeuring: Wacky.  Okay, I guess leave it as is for now.15:17
adeuringyeah...15:17
abentleyadeuring: It might be helpful to distinguish between the noun and verb forms of queue by using "enqueue" for the verb.15:19
adeuringabentley: yes... where exactly?15:19
abentleyadeuring: I think 147?15:19
adeuringabentley: ok, I'll fix this15:19
adeuringabentley: ah, you mean the function name? that would requires more change in the main LP code...15:21
abentleyadeuring: Let me look at this.15:21
abentleyadeuring: My bad.15:23
abentleyadeuring: We might want to change both, but we can't change just one.15:23
adeuringabentley: right...15:24
adeuringabentley: to add fun for such a name change: "grep -Ir job.*queue lib/lp" shows this result: lib/lp/answers/notification.py:            self.job = self.enqueue()15:25
abentleyadeuring: why is runJob accepting a callback now?  It could just call reQueue, which would return False if no FALLBACK_QUEUE was configured.15:30
adeuringabentley: JobRunner does not know about the _task_, it knows only about the job. But reQueue is a task method15:33
abentleyadeuring: Makes sense.15:33
jmlam having trouble firing up an instance with ec2 demo: getting a socket timeout during the ssh connection.15:37
abentleyadeuring: r=me15:38
adeuringabentley: thanks!15:38
jmlany known gotchas there? anyone else able/unable to use 'ec2 demo'?15:40
jcsackettjml: i think wallyworld had issues doing ec2 demo as well. there was some discussion of using it (and possible bit-rot?) on the launchpad-dev list. look for wallyworld posting about mockups and best practices.15:41
jmljcsackett: thanks.15:41
jmljcsackett: nothing particularly helpful there, I'm afraid. I'll see if I can get 'ec2 test' to work15:46
jcsackettjml: sorry it wasn't useful.15:46
jmljcsackett: no worries15:46
jmljcsackett: I really appreciate getting any response at all15:46
jcsackettwell, we try to not let this channel be completely like shouting into a hole. :-)15:46
abentleyadeuring: Does this change require additional packages?15:51
adeuringabentley: in theory, no. But the tests require a package like rabbit-management or so, and this is currently not available in precise. the LP PPA needs to be updated...15:52
adeuringwell, it is avaibale, but depends on the wrong version of rabbitmq-serverm IIRC15:53
abentleyadeuring: Could you specify the exact package so I can run the tests, please?15:53
adeuringabentley: I _think_ it is rabbitmq-management15:55
adeuringbut htere are several broken rabbitmq dependencies...15:55
abentleyadeuring: Okay.15:55
abentleyadeuring: Given the circumstances, I think it makes sense to make the queue check optional.  Otherwise, I won't know if any of the TestCeleryD tests start failing.15:59
adeuringabentley: like a try/except around the checks in setUp() and tearDown()16:00
abentleyadeuring: Yes.16:00
adeuringok, I'll add that16:00
=== al-maisan is now known as almaisan-away
abentleyadeuring: thanks.16:01
jmlso I'm not going to do a coverage run, because I can't launch an ec2 instance for Launchpad.16:03
cjwatsonjml: last night lifeless and others helped me fix a problem I was having with ec2, which turned out to be that ec2 was detecting my IP address via a proxy which caused it to enable a private IP address in the instance's security policy, which didn't work so well.  'env -u http_proxy ec2' fixed it.16:12
jmlcjwatson: interesting. thanks.16:13
cjwatsonjml: you might see what checkip.amazonaws.com says16:13
gary_posterI'm stumped.  In an sh script, if dir is defined, what is ${dir##*-} ?  I can't find a value for dir that gives anything, and I have not been able to find docs on that syntax16:13
cjwatsongary_poster: strip the longest segment matching the pattern *- off the start of $dir16:14
cjwatsongary_poster: man dash, search for "##"16:14
cjwatson(or bash)16:14
gary_postercjwatson, awesome thank you much16:14
cjwatson(to be clear, that doesn't modify $dir)16:14
gary_postercjwatson, ack, thanks.16:15
=== deryck is now known as deryck[lunch]
jmlcjwatson: it's giving me 10.45.43.105, which does look internal (my shell server says I'm connecting from 91.189.88.12)16:18
jmlcjwatson: but http_proxy is unset16:19
cjwatsonthere might be a "transparent" proxy in the way I guess; anyway, that's probably the problem16:22
cjwatsonworst case hack ec2 to ignore what checkip says ...16:22
rick_hanyone else getting 503 from codehosting? https://code.launchpad.net/+loggerhead/~rharding/launchpad/email_notice_959482/diff/15040/1503516:22
jmlcjwatson: yeah, I was just giving that a try  :)16:24
jmlif it works, I'll add an command-line option to override the public IP16:25
sinzuihi jml.16:27
jmlsinzui: oh hi16:27
jmlsinzui: good timing16:27
jmlsinzui: which voice communication technology works for you?16:27
sinzuihangout and mumble16:27
jmlsinzui: let it be hangout!16:28
jcsackettsinzui: are you around? need to bounce an idea off someone.16:42
sinzuiin a meeting at the moment16:43
jcsackettsinzui: dig.16:43
=== matsubara is now known as matsubara-lunch
benjijml: a quick question: I branched from lp:~jml/testtools/forward-current-tags and added a test (http://paste.ubuntu.com/925149/) and it failed (http://paste.ubuntu.com/925150/).  Should that have suceeded, or am I missing something?17:06
jmlsinzui:         # The software center agent can view commercial archives17:07
jml        if self.obj.commercial:17:07
jml            return user.in_software_center_agent17:07
jmlViewArchive17:07
jmlbenji: looking...17:09
jmlbenji: TestThreadSafeForwardingResultContract already exists17:09
jmlbenji: and is tested with StartTestRunContract, which includes DetailsContract.17:10
jmlbenji: what's the failure?17:10
benjijml: heh, indeed it does; it's slightly different though17:10
benjihttp://paste.ubuntu.com/925150/17:10
jmlbenji: and it passes.... perhaps that's the difference? :P17:10
* jml looing17:10
jmllooking17:10
benjijml: ok, I /think/ that the failure is to be expected, test_addUnexpectedSuccess_was_successful is overridden in a subclass and apparently different things are expected in different contexts17:12
jmlbenji: ah right. yes, that's it.17:13
jmlbenji: sorry about the contract subclass thing. I think it would be clearer if we used testscenarios and each thing listed their contracts explicitly17:13
mptoy crikey, Launchpad bug comments contain <table> elements with negative margins17:15
mptWhy? Why not?17:15
jmlbenji: there's also TestThreadSafeForwardingResult, which I think deserves some tests to show that tags are forwarded correctly.17:18
benjijml: yeah, I'm thinking the same thing, I just removed a bunch of tag-forwarding code from TestThreadSafeForwardingResult (http://paste.ubuntu.com/925170/) and the tests still passed17:19
jmlbenji: right. I sort of leaved that untouched because I couldn't quite grasp the intent of what's going on in TSFR17:20
jmlbenji: I'm guessing that it's buffering up tags() calls and then playing them back on stopTest() in a way that makes them equivalent for single isolated test.17:20
benjijml: I think some of what it does is somewhere between broken and unneccesary.17:20
jmlbenji: a plausible hypothesis!17:21
benjijml: that's the spirit of how it works17:21
benjijml: ok, I'll see about adding some tests for TSFR; I need something much like it and the tests can probably work for both TSFR and my new thing17:22
jmlbenji: cool.17:22
jmlbenji: what's the thing you need?17:22
=== deryck[lunch] is now known as deryck
jmlbenji: btw, as a general thing, please flag any bugs in testtools, subunit, testrepository etc. that are getting in the way or causing friction. I'm happy to work on them, am easily distracted and won't get punished for helping colleagues during work time.17:24
benjijml: heh, ok17:24
benjijml: I just noticed that you asked about what I'm working on.  Since we're doing parallel runs, we want all the tests that were run together in a given process to have a unique tag so we can figure out which tests were run together, primarily for debugging test interactions and isolation failures17:41
jmlbenji: ah right. and presumably the tagging is easy but when you draw the streams together the tagging info gets lost/mangled?17:44
benjijml: hmm, well, I suspect you know something I don't.  Why do you presume the tagging is easy?  The easiest way I can find to do it requires tweaking ConcurrentTestSuite to insert the thing I'm making which will add a tag that identifies the worker to the stream.17:47
jmlbenji: is anything more than http://paste.ubuntu.com/925211/ necessary?17:50
benjijml: perhaps that would work; does the fact that the tag is global in process_result translate correctly when the streams are aggrigated?17:51
jmlbenji: ahh, I see, probably not. you want to be able to tag each and every test individually.17:52
benjiright17:52
jml(maybe it should, but that sounds unreasonably difficult)17:52
jmlHmm.17:53
benjiI would expect that all the global tags would be added to the aggrigates stream.17:53
jmlActually, tell a lie, such an aggregator would be easier but strictly more work than your approach17:54
jmls/easier/easy/17:54
jmlbenji: the way I'd go about this is to make a TestResult decorator that was given some tags in the constructor and then tagged every test with those tags.17:56
jmlbenji: and then tweak ConcurrentTestSuite to have a result_factory or something17:56
jmlbenji: but that's only the thing I thought of just then. ymmv.17:57
benjijml: yep, that's the apprach I'm taking (if you consider TSFR a TestResult decorator, because my thing will be structurally similar)17:57
jmlbenji: hmm.17:59
jmlbenji: I forgot that there's a thing called TestResultDecorator in subunit/test_result.py (I thought it was in testtools)18:00
jmlit *should* be in testtools, dammit.18:00
=== matsubara-lunch is now known as matsubara
jmland there it is: https://code.launchpad.net/~jml/testtools/test-result-decorator/+merge/10162118:15
jmlI think I've hit on something.18:31
jcsackettsinzui: out of meetings?18:31
sinzuijcsackett, yes sorry for not saying so last hour18:31
jcsackettsinzui: all good, gave me time to investigate some approaches. now i have an idea of what will and won't work, but i'm not sure what's best. :-P18:32
sinzuihangout?18:33
jmlbenji: I hate to be pulling you in different directions, but I've just uploaded https://code.launchpad.net/~jml/testtools/test-by-test-result/+merge/101622. If that and the two other branches were in trunk, I would try rewriting TSFR in terms for TestByTestResult, and would probably consider writing your thing in similar terms18:34
benjijml: looking18:34
jmlbenji: but I'd hate to build a thing on top of three unlanded branches -- too much WIP -- so I'm not going to attempt that until tomorrow.18:35
jmlbenji: I'm packing up now. Leaving in another 5m18:40
benjijml: I think I see how that might be used to do what I want.  I'll see which approach turns out better.18:43
jmlbenji: cool.18:43
jmlbenji: please be in touch via email if you have any questions.18:44
jmlIRC backlog kind of works but isn't so great.18:44
benjijml: will do, thanks18:44
abentleyderyck: I'm the OCR, so could you please review my branch? https://code.launchpad.net/~abentley/launchpad/celery-everywhere-3/+merge/10162618:57
deryckabentley, sure.  I'm finishing reviews today, so it may be a bit before I get to it if that's okay.18:57
abentleyderyck: no problem.18:58
rick_hlifeless: morning if you get a chance I wonder if you can peek at and possibly sign off on the updated branch from last night? https://code.launchpad.net/~rharding/launchpad/email_notice_959482/+merge/9999519:13
lifelessrick_h: did you try without events ?19:20
rick_hlifeless: no, that came up in our discussion, but I went off of the comments in the MP and went for straight code dupe reduction with the current setup.19:20
lifelessok, so its definitely a bit leaner - thanks.19:21
lifelessI'll do a spike today for a no-event version, I want to see how much better (or not) it is19:21
lifelessrick_h: e.g. lines 406 to 420 in the diff are there to deal with bad events19:23
rick_hlifeless: right, I can go that route. When it came up was when you mentioned it having '1 call place' when it had 3 so I kep the event bit to trigger.19:26
rick_hlifeless: but yea, you could probably drop those and a few lines of zcml/import with non-event method19:27
rick_hlifeless: thanks for poking at it, I'm definitely happier with things overall than I was the other day.19:27
lifelesscool. If you're not EOD and want to try a non-event version of this, great; if you are, I'll put the effort in to see what it looks like19:28
lifelesse.g. I don't want to block you, but I do want to see what it looks like before approving it :)(19:28
lifelesss/(//19:28
rick_hyea, I've got to run and get the boy from day care, but I'll be at the coffee shop hacking later tonight with friends so can chat for a little bit then if we need to19:28
lifelessrighto, experiment is on me then ;)19:29
abentleylifeless: Currently, my tests start and stop a celeryd instance for each test.  I'm thinking that I should switch to using a layer, but is that the current best practise?19:56
lifelessthe current general thing to do is to create a Fixture for the daemon20:03
lifelessand have a layer that brings that up and tears it down20:03
lifelessyou can use the per test calls in the layer to reset the state of the daemon without restarting it, if thats desirable20:04
lifelessso yes, we still use layers, but we try to have no logic in them20:04
abentleylifeless: I have a context manager.  Is is easy to create a Fixture for a context manager?20:06
lifelessyes, Fixtures are context managers20:06
abentleylifeless: But last I heard, context managers were not fixtures.20:06
lifelessright20:06
lifelessI don't think there is an adapter today20:07
lifelessyou could write one, but you might find your context manager is smaller if written as a fixture20:07
abentleylifeless: I'd be surprised if it could get any smaller.20:08
lifelesswas just a thought :)20:09
abentleylifeless: I find the contextlib.contextmanager decorator makes for very readable and succinct context managers.20:11
=== abentley changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: - | Firefighting: - | Critical bugtasks: 4*10^2
lifelessderyck:   https://dev.launchpad.net/PolicyAndProcess/MaintenanceCosts#preview updated21:36
* deryck looks21:36
derycklifeless, yeah, that's probably good enough.  I can clarify beyond that with my squad in standups.21:39
lifelessit allows self-history, squad history, whatever21:41
lifelessI thought about saying 'recent branch'21:41
lifelessbut then we're down into precise definitions21:42
lifelessI think folk will appreciate that using a 5 year old branch to offset a current LoC increase isn't really kocher21:42
deryckyeah, I think we need to just have a better sense of our squad state on this, too.  which is on me.21:44
=== salgado is now known as salgado-afk
=== matsubara is now known as matsubara-afk
pooliehi all22:42
lifelesshi22:44
nigelbmorning22:47
nigelbthis is probably my cue to figure out this sleep thing.22:47
huwshimiMorning23:05
poolieo/ huwshimi23:24
timrcPerhaps a super dumb question, but can you upload to components other than main with a ppa? I have a situation where it would be great to upload to a restricted component :)23:51
bigjoolsyou can't23:51

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!