/srv/irclogs.ubuntu.com/2011/06/09/#launchpad-yellow.txt

gary_posterbac benji danilos: call RSN13:26
gary_posterbac benji, should I bother trying to run lp2kanban?13:27
bacno13:27
danilosgary_poster, ack13:27
gary_posterok13:27
danilosgary_poster, btw, can I take gmb's slot for the call perhaps?13:36
gary_posterdanilos, of course13:36
danilosgary_poster, cool, and when is that? :)13:36
danilosin 24mins?13:36
gary_poster:-) in 54 min13:36
danilosah, ok, sounds good, thanks again13:36
gary_posternp13:37
danilosgary_poster, btw, I wonder if you remember this: how does one create a view with a logged in user (meaning self.user is set) for testing? all the stuff I tried ("with person_logged_in()", "LaunchpadTestRequest().setPrincipal()" and even "login(email)" have failed for me)13:39
bacdanilos: a combo of login() and create_initialized_view(..., principal=) should work13:42
gary_posterthat sounds good to me, danilos.13:44
danilosbac, thanks, I was hoping to use the view class instead of the view name, but I am fine with this (I don't want to reinvent create_view)13:45
* gary_poster needs to take kids to school today. will step away RSN, back about 10 or 15 min later13:50
* gary_poster had to make funny faces at baby also14:14
benjiheh14:16
danilos:)14:17
danilosstill no luck getting self.user to be set in my view :/ not sure what am I doing wrong, but I can't see what am I doing different from some other view tests :/14:18
=== Ursula is now known as Ursinha
gary_posterdanilos, can your force it somehow, by manipulating the request or the bag or something?14:27
gary_posterI know that's ugly, and it ought to work, but if you can't figure it out soon, maybe that's reaonable (or maybe doingthat would help you iunderstand what's going wrong?)14:28
gary_poster(it ought to work == what you are doing now ought to work)14:28
danilosgary_poster, I tried that as well, didn't get far, so I am probably missing something obvious14:28
gary_postergotcha14:28
gary_posterdunno :-/  I could look at it with you if you wanted, but I don't have super high confidence that I'd see something you didn't14:29
gary_posterdanilos, I'm ready when you are.  call me; no rush.14:30
danilosgary_poster, calling14:32
danilosbac, hi, I am still kind of stuck, do you think you could spare a few minutes to look and maybe figure out something obvious that I am doing wrong?14:41
bacdanilos: sure, paste it?14:41
danilosbac, https://pastebin.canonical.com/48350/14:42
danilosbac, that's a test, and when it hits view.subscriber_data_js, self.user is not defined14:42
gary_posterbenji, so you know, flacoste has given you a full 45 min for your coffeescript presentation,  No pressure. ;-)  https://wiki.canonical.com/Launchpad/Sprints/Thunderdome2011/Agenda#Call%20for%20presentations14:43
danilosbac, full branch at lp:~danilo/launchpad/bug-772754-other-subscribers-loading14:43
gary_posterI also said we might want to talk about lp2kanban14:43
benjiheh14:43
bacdanilos: did you try passing the principal to c_i_v?14:43
danilosbac, yeah, nothing changes14:43
danilosbac, well, not entirely nothing, self.request.principal is then defined, but self.user is still None14:46
bacgary_poster: how much of the thunderdome will be spent with the platform team?  will we go to their plenaries?  or will we just be in the same hotel?14:48
gary_posterbac, that's a great question.  My assumption was that we simply were sharing hotels, but that seems unlikely now that you've asked.  Care to ask flacoste and report back to us?14:49
baci would if he were around...14:50
baci will next time i see him14:50
gary_posterok14:51
danilosbac, any ideas of what else I could try?14:59
bacdanilos: i'm looking14:59
gary_posteris self.user one of those launchbag things?15:00
danilosgary_poster, I don't know, haven't really dug that much15:06
gary_posterk15:06
danilosand I just created a minimal view and test using exactly the same logic, and it has self.user set :(15:07
bacdanilos: yeah, look at test_data_person_subscription_user_excluded ... it works and is pretty darned minimal15:09
danilosbac, that's a test I am creating, but it doesn't work for me15:10
danilosbac, does it work for you?15:10
bacdanilos: sorry, paste error. i meant test_unsubscribe_link_appears_for_user15:11
bacdanilos: i think the problem is the assert is outside of the 'with person_logged_in' context15:16
bacso at that point no one is logged in.  even though the view was created with a logged in users there isn't one when you evaluate the property15:17
danilosbac, yeah, so it seems to me as well, though I am pretty sure I've tried that as well15:17
bacyour test still fails but for a different reason i think15:17
danilosbac, yeah, because I haven't implemented the action yet, thanks, that is it, with all the confusion I wasn't even sure what I tried and when15:19
bacnp15:19
danilosbac, very, very much thankful! really appreciate the time you took to look into it15:22
bacdanilos: sorry i didn't spot it right away.  those subtle things are hard15:23
danilosgary_poster, fwiw, my "full" branch is up at https://code.launchpad.net/~danilo/launchpad/bug-772754-other-subscribers-remove-cruft; still not ready15:37
danilosand I've got to run now, talk to you tomorrow all15:37
gary_posterdanilos, cool.  I'll keep on with other bugs then15:37
gary_poster:-)15:37
gary_posterbye15:37
* benji watches his laptop go down in flames as Unity segfaults.15:48
gary_poster:-/15:48
bacgary_poster: just so you'll know, i'm spending considerable time this morning trying to QA bug 78938315:52
_mup_Bug #789383: Oops calling findSimilarBugs api anonymously <api> <bugs> <oops> <qa-needstesting> <Launchpad itself:Fix Committed by bac> < https://launchpad.net/bugs/789383 >15:52
gary_posterbac, ok, thanks for heads up15:52
bacit works locally but on qastaging it looks like it is redirectly to +login and responding with 503s15:53
bacs/redirectly/redirecting15:53
gary_poster:-/15:53
gary_posterchr...16:02
benjiok, I have to reboot again16:06
* benji hopes Unity feels better now.16:07
=== Ursinha is now known as Ursinha-lunch
bacgary_poster: i'm seeing bunches of timeouts on qastaging for bug queries, e.g. https://lp-oops.canonical.com/oops.py/?oopsid=OOPS-1986QASTAGING12018:43
gary_posterbac, could it be the critical bug summary thing lifeless talked about on the list?18:44
bacgary_poster: i've just read the incident report and it is unclear18:45
gary_posterbac, bug 79480218:45
_mup_Bug #794802: many bug activities timing out due to contention on bugsummary <canonical-losa-lp> <regression> <timeout> <Launchpad itself:Triaged> < https://launchpad.net/bugs/794802 >18:45
* gary_poster looks an oops18:45
gary_posterat18:45
gary_posterbac, agreed that it is unclear, but that 9 second query in the OOPS you gave looks pretty innocuous.  contention makes a lot of sense.18:47
bacgary_poster: so what's one to do?18:47
bacgary_poster: qa-ok even though i can't prove it?  qa-bad even though i don't think it is my branch?18:48
gary_posteroh18:48
baclie and mark it qa-untestable?18:48
bacqa-punt18:48
gary_posterheh18:48
gary_posterbac, if you think it will block release of stub's fix for that bug, I say mark it qa-ok and add a comment about the status (you believe it to be fine, and are clearing it so that the critical fix can be deployed).  Alternatively in that situation, wait and ask lifeless what he wants.  If you don't think it will block, then just comment about the status and leave the qa tag as is.18:51
bacgary_poster: by definition it is going to block unless i do a rollback, no?18:51
gary_posterbac, if it is on devel then yes18:52
gary_poster(db-devel no)18:52
bacgary_poster: i will mark it qa-ok and be ready for the consequences18:52
gary_posterok18:52
bacyes, we're on devel18:52
gary_posterk18:52
* bac returns to kanban19:02
gary_posterbac, I am writing a reusable test fixture to help me temporarily replace one view with another, within the component registry.  I'm doing this so I can override a particular method on the view, in this case so that I can force an exception to be raised.  An alternative approach would have been to make a monkey patch, but I was trying not to do that.  Am I reinventing a wheel--do we have a pattern for this that you 19:06
baci've never seen such a thing19:07
bacgary_poster: sounds cool19:07
gary_posterok cool thanks19:07
bacbut you know sinzui has the encyclopedic recall of all things19:07
gary_posterbac, in five minutes OK?19:30
bacperfect19:30
* bac tea19:30
gary_postercool19:31
* gary_poster calls without warning19:35
gary_posterbac, oops?19:36
bacgary_poster: dunno, skype was reporting my network speed is poor19:37
bacit lies19:37
gary_poster:-)19:37
=== Ursinha-lunch is now known as Ursinha
benjiapparently unit any chromium don't mix; I'll be right back20:43
* benji gives up on Unity and tries to figure out how to turn it off.20:45
=== benji is now known as Guest88900
gary_poster:-/20:49
benji___aaand we're back20:49
gary_posterthis is not giving me inspiration to run and try installing Ubuntu on metal again. :-/20:49
=== benji___ is now known as benji
benjiIt's a shame too, because I kind of like Unity; I definately like the type-an-app-name launcher thing, not so much the list of icons on the right, I never use that20:51
benjiI also like the merging of the title bar and menu.20:51
gary_posteryeah, I like app-name launchers too20:51
* benji tries to remember what the heck he was doing.20:52
gary_postergetting ready for call in 8 min! :-)20:52
benjiheh20:52
* gary_poster goes for glass of water20:56
bachi benji -- very quick question of urllib2 vs httplib2 for lp2kanban20:59
baci don't see an easy way to turn on debugging for urllib2 like httplib2.debuglevel=121:00
benjibac: I /think/ there is a way, but I don't think it's documented; I wouldn't object to using httplib2 though, urllib2 is evil incarnate21:01
gary_posterheh21:01
bacbenji: ok.21:01
* benji runs to get a Dr Pepper 21:02
benjigary_poster: http://blog.ssokolow.com/archives/2011/05/07/a-python-programmers-first-impression-of-coffeescript/21:25
gary_postereldest = 24 > 21 ? "Liz" : "Ike";21:26
benjihttp://jashkenas.github.com/coffee-script/#operators21:26
benjigary_poster: zip = lottery.drawWinner?().address?.zipcode21:28
benjigary_poster: https://gist.github.com/87083821:40
gary_posterif (typeof elvis !== "undefined" && elvis !== null) {21:54
gary_poster  alert("I knew it!");21:54
gary_poster}21:54
gary_posteralert "I knew it!" if elvis?21:55
gary_posterkids =21:57
gary_poster  brother:21:57
gary_poster    name: "Max"21:57
gary_poster    age:  1121:57
gary_poster  sister:21:57
gary_poster    name: "Ida"21:57
gary_poster    age:  921:57
benjifuturists =22:00
benji  sculptor: "Umberto Boccioni"22:00
benji  painter:  "Vladimir Burliuk"22:00
benji  poet:22:00
benji    name:   "F.T. Marinetti"22:00
benji    address: [22:00
benji      "Via Roma 42R"22:00
benji      "Bellagio, Italy 22021"22:00
benji    ]22:00
gary_poster        fixture = ZopeViewReplacementFixture('+login', ILaunchpadApplication)22:07
gary_poster        class OpenIDLoginThatFailsDiscovery(fixture.original):22:07
gary_poster            def _getConsumer(self):22:07
gary_poster                return OpenIDConsumerThatFailsDiscovery()22:07
gary_poster        fixture.replacement = OpenIDLoginThatFailsDiscovery22:07
gary_poster        self.useFixture(fixture)22:07
gary_posterhttp://cappuccino.org/learn/demos/22:22
gary_posterhttp://280slides.com/Editor/22:22
gary_posterbenji, reply from leankitkanban:22:36
gary_posterWe currently do not have any throttling setup but we are developing a policy and will be implementing some safeguards against abuse of our API.  We are currently working with a customer that, most likely inadvertently, was causing us a lot of issues the past two days with a huge number of expensive API calls per second.22:36
gary_posterAs for your issue, we haven't heard about this problem from the customers that are using our API but that doesn't necessarily mean they didn't experience the problem.  If you like, you can let us know when you are testing something and we can monitor our logs to see if we see anything suspicious.22:36
gary_posterbac ^^22:36
bacbenji, gary_poster: i have converted to use httplib2 and i am not getting errors from leankit any more22:37
baci am not claiming that is causal22:37
bacbut it is good22:37
gary_posterbac, cool either way though :-)22:38
baci'm putting a little bow on it and about to push22:38
gary_posterawesome22:38
bacgary_poster: it may be overkill but was easy so i did it -- output from running the script:  https://pastebin.canonical.com/48377/22:47
bacand usage22:47
bacit shows we need to be more discriminating in the bugs we pull from LP, perhaps.22:49
=== Ursinha is now known as Ursula
gary_posterbac, heh23:09
gary_posteryeah23:09
gary_posternight23:09
bacbye23:09
=== Ursula is now known as Ursinha

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