/srv/irclogs.ubuntu.com/2011/10/28/#launchpad-dev.txt

wgrantpoolie: Indeed.00:02
wgrantLooks fixed.00:02
=== wallyworld_ changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: wallyworld | Critical bugtasks: 266
pooliei'm going to update the bug then00:21
wgrantpoolie: Thanks.00:27
pooliethank you very much00:30
wgrantHuh.00:36
wgrantWe are now in the longest downward Critical bug trend since May.00:37
pooliestop the line00:40
pooliei am curious how many i have personally fixed, caused, and filed00:40
poolienot quite enough to search right now though00:41
huwshimiwgrant: wow, is our bug submission form broken or something?00:46
StevenKEither that, or lifeless has stopped esclating for some reason.00:46
huwshimiStevenK: Quick, someone land a branch with the critical status removed00:48
=== lifeless_ is now known as lifeless
lifelesswow02:22
lifeless53 cleanups in an LP test case.02:22
lifelessanyone spot something a little wonky there?02:22
wgrantWhere?02:22
lifelessself.case._cleanups02:23
lifelessmy call to sync barfed02:23
lifelessI'm investigating why02:23
lifelessthere are 53 cleanups registered, but only 14 unique functions amongst them02:23
wgrant"only"02:23
lifeless14 is a reasonable number02:23
lifeless53 less so02:24
lifelessahha02:25
lifelesssetUp is being called twice.02:25
lifeless https://bugs.launchpad.net/testtools/+bug/882884 about the lack of alerting02:28
_mup_Bug #882884: setUp being called twice is not an error <testtools:Triaged> < https://launchpad.net/bugs/882884 >02:28
lifelesstest run time was 1912->2326 or 4h10, so the sync() isn't a perf issue02:29
wgrantGreat.02:30
lifelessthe reason I noticed this setUp twice thing was the sync() failing due to queue not existing02:30
lifelesswhich should make you scratch your head :)02:31
StevenKwgrant: So all I did was add 'with person_logged_in(team.teamowner):' before create_initialized_view(), and it blows up :-(02:33
lifelessaieee02:33
lifelesscheck out PullerBranchTestCase.setUp()02:33
lifelessthis is what super() is for02:34
wgranthttps://lp-oops.canonical.com/oops.py/?oopsid=OOPS-2126BZR11316102:36
wgrantMost useful OOPS ever :)02:36
wgrantlifeless: Hah02:36
lifelessthat oops isn't rendering for me02:47
wgrantIt takes about 15 minutes.02:49
lifelesswow02:49
wgrantIt's also empty.02:49
lifeless /o\02:49
lifelessugh, rosetta_branches_script_oopses still sees too many.02:50
lifelesswtf is going on there02:50
lifelessI think I found a wabbit bug03:10
wgrantUhoh.03:10
lifelessCaptureOops uses an autodelete exchange03:10
lifelessit uses Receiver() to suck messages out of a queue bound to that exchange, also autodelete.03:11
lifelessthe Receiver is given a brand spancing new connection03:11
lifelessunless amqplib has die die die hidden connection pooling (I'm about to check this)03:11
lifelessthen when the Receiver closses its connection, the queue and exchange should be untouched03:12
wgrantYou're relying on autodelete to take effect immediately?03:12
wgrantI'm not sure that immediate reaping is guaranteed by the spec.03:12
lifelessno03:13
lifelessI'm being fucked by it taking effect when a different connection is closed03:13
wgrantAh03:13
lifelessso connection A:03:13
lifeless declare exchange03:13
lifeless declare queue03:13
lifeless bind03:13
lifelessconnection B03:13
lifeless send03:14
lifelessconnection C03:14
lifeless send sentinel03:14
lifelessconnection D03:14
lifeless consume from queue03:14
lifelessconnection E03:14
lifeless send sentinel - 404 no such exchange03:14
lifelessconnection A is still open at this point03:14
lifelesssound like a bug to you ?03:15
wgrant"auto-delete: the queue will get deleted as soon as no more subscriptions are active on it."03:17
lifelessugh03:17
lifelessok, fail-to-understand03:17
lifelessfair enough03:17
* lifeless reworks that part, again.03:18
lifelesswgrant: that was in the amqplib docstring I guess? a quick google hadn't found that for me03:21
wgrantlifeless: Wikipedia.03:23
lifeless*blink*03:23
wgrantI know, the canonical protocol reference.03:25
wallyworld_wgrant: StevenK: buildbot weirdness. you seen that failure mode before?03:32
wgrantwallyworld_: Someone or something turned off postgres.03:33
wgrantSee #-ops03:33
wallyworld_ah ok thanks03:33
wgrantHmm.03:47
wgrantLibrarian 500s locally :(03:48
StevenKI guess create_initialized_view doesn't like with person_logged_in04:17
StevenKbzr grep doesn't support -{A,B,C} :-(04:18
StevenKAh ha, I was right.04:56
StevenKcreate_initialized_view() returns anonymous views04:56
wgrantDoesn't it take a user kwarg?04:58
StevenKcreate_initialized_view()'s docstring sucks04:59
* StevenK tries user04:59
StevenKwgrant: It does not05:00
mwhudsonthe whole area is confusing05:00
mwhudsonStevenK: you want the principal argument though05:01
StevenKBut that didn't work either05:02
lifelesswgrant: oops still hasn't rendered05:09
StevenKmwhudson: principal should be a IPerson or something else?05:10
mwhudsonStevenK: yes05:12
mwhudsonStevenK: sorry, have to run -- i think maybe IParticipation(person) works?05:12
wgrantlifeless: Heh05:12
=== _mup__ is now known as _mup_
* lifeless throws useoops at ec2 again05:25
lifelessand EOW05:25
StevenKAH05:26
mwhudsonIPrincipal, rather05:29
StevenKmwhudson: Thank you for the principal hint -- you need *both* with person_logged_in and principal specified in c_i_v()05:30
wgrantwallyworld_: Around?05:44
wallyworld_yes05:44
wgrantYou know how you added the feature-flagged pillar role private bug visibility rules?05:45
wallyworld_yes05:45
wgrantThose only apply to the task search stuff. Bug.userCanView has its separate implementation.05:45
wgrantNot behind a flag.05:45
wgrantAnd slightly different.05:45
wgrantI'm reimplementing userCanView in terms of the task search query.05:45
wallyworld_was the bug usercanview done separately05:45
wgrantWhich will drop the non-flagged owner visibility rule.05:45
wgrantYes, it was done a yearish ago.05:46
wgrantCurrently the bug pages are pretty useless, because all the tasks are invisible.05:46
wgrantSo I don't think removing this is going to be much of a loss.05:46
wgrantBut I wonder if you have any thoughts on the matter.05:46
StevenKOooh, if they're invisible, can we ignore them?05:46
wallyworld_so you are looking to remove the current bug usercanview?05:47
wallyworld_and replace with something that matches the bug task role visibility rules05:47
wallyworld_?05:47
wallyworld_it would have to be a union of those task rules?05:48
wgrantYes.05:48
wgrantHm?05:48
wallyworld_so if the user can see any task, they can see the bug05:48
wgrantI'm just using get_bug_privacy_filter.05:48
wgrantRight.05:48
wgrantThe privacy filter already just looks at Bug.05:48
wgrantbecause tasks don't have separate visibility.05:48
wgrant(ignoring the fact that we exclude tasks for inactive products normally)05:48
wallyworld_i can't recall the details of get_bug_privacy_filter - let me just check the code05:49
wgrantIt takes a user and produces a condition that restricts Bug to those visible to the user.05:49
nigelbI wish launchpad was less noisy about expiring memberships. Or I could go click "Hey, I understand. Stop warning me!"05:50
wallyworld_you going to keep the feature flag protection?05:50
wgrantwallyworld_: I'm not changing that bit of get_bug_privacy_filter. The first branch will not change it at all.05:50
wgrantIt will just reuse the task search rules for Bug.userCanView.05:50
wgrantSo yes, the flag protection will be preserved.05:50
wallyworld_it all sounds good to me. it doesn't make sense if the use can see an empty bug which is what i think you are saying happens now05:51
wallyworld_and it makes sense when you consider we are going to only single pillar private bugs05:52
wallyworld_i guess i should have done this change within the original branch05:52
wgrantWell, this should have been done years ago :)05:54
wallyworld_better late than never05:55
wgrantIndeed.05:55
wallyworld_wgrant: so when you do this, the fflag can be turned on i assume05:56
wallyworld_ah, it's on for !launchpad05:56
wgrantIt's on for ~launchpad.05:57
wgrantAnd can only be on for trusted people.05:57
wgrantwallyworld_: Several tests rely on it, unfortunately :(06:03
* wgrant hacks around.06:03
wallyworld_wgrant: ah, yes. not surprising. i had similar issues yesterday. drove me crazy06:04
wallyworld_at least there are tests :-)06:05
wgrantIndeed.06:05
wgrantMost of these tests aren't too ugly, either.06:05
wgrantJust a bit awkward in the transitional period.06:05
* wgrant stabs LaunchBag.06:08
wallyworld_StevenK: i'd prefer it if your tests iterated over the policies in OPEN/CLOSED_TEAM_POLICY and did the checks06:37
wallyworld_btw, it only ended up being a few lines to fix c i v for Person+index ?06:38
StevenKwallyworld_: So it would seem, yes. And I'll look into that.06:40
wallyworld_StevenK: thanks. you should just add a for loop to you current tests06:41
StevenK Right.06:42
wallyworld_StevenK: i think the tests should be beefed up to test that the edit link is a) there and b) has the expected url.06:49
wallyworld_this can be easily done by giving the link an id and doing a find_tag_by_id() in the test06:49
wallyworld_the same could be done for the message text. give the text node an id and check for that rather than the actual text wording06:50
wallyworld_this allows the wording to be changed and the test still passes06:50
StevenKwallyworld_: Do you want to put all of that on the MP and I'll sort it all out on Monday morning?07:14
wallyworld_StevenK: will do. have a good weekend07:14
StevenKwallyworld_: You too :-)07:14
wallyworld_i would if we had a better ajax story around partial page refreshes :-(07:15
nigelbAustralia is EOD already? *jealous*07:15
wallyworld_haha07:15
=== wallyworld_ changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: - | Critical bugtasks: 266
proyvindhello, dear launchpad developers! long time launchpad user, first time "caller" here..07:36
proyvindI'm currently wondering about plans for git support in bazaar07:36
proyvindhow are the actual plans for this, has any specific plans been made? has any work taken place? what's the state? will there be any priority given to focus on adding any of this upstream? :)07:37
proyvind(and just to be clear, yes, I am asking about support for git in place of bazaar, not support for external git branches ;)07:38
adeuringgood morning07:56
=== adeuring changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: adeuring | Critical bugtasks: 266
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== bac changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: adeuring, bac | Critical bugtasks: 266
bachi adeuring12:10
adeuringhi bac12:11
bacadeuring: i'll take wgrant's MP...confirming you aren't working it12:11
adeuringbac: no , I did not look at it12:11
bacadeuring: it is the only one outstanding.  cool.12:12
bigjoolsI just added another :)12:19
bigjoolsI am going for lunch though, so no rush, back later12:23
deryckadeuring, ping for standup13:31
danhgflacoste13:31
adeuringderyck: oops, sorry13:31
derycknp13:31
adeuringabentley: I think "this.current_batch.mustache_model.bugtasks.length + 1" in line 113 is wrong. Shouldn't that be "... -1"?14:40
adeuring(line 113 of the diff)14:40
adeuringabentley: no, that should be "+0"...14:41
abentleyadeuring: So, the +1 is trying to compensate for start being 0-indexed.14:41
adeuringabentley: right. But for 5 results and start = 0, we want to show "results 1-> 5"14:41
adeuringwhile we get "1 to 6"14:41
adeuringabentley: just click on any of the links ;)14:42
abentleyHmm, so why does it look right in use?14:42
adeuringand compare the number in "n->m of k" with the real number of results ;)14:42
abentleyadeuring: that's an estimate, though.14:42
adeuringabentley: well, k is an estimate (at least for StormRangeFactory), but we known the number of results in the batch precisely14:43
abentleyadeuring: You're right, I'll fix it.14:44
adeuringabentley: cool, thanks14:44
adeuringabentley: another quirk: For the first batch, the "first" and "previous" links are gray, but still active. "unlinking" them is something for antother branch, I assume?14:46
adeuring(same for the last batch and the last/next links)14:46
abentleyadeuring: I would prefer if the CSS was fixed so that inactive links don't show as links.14:47
adeuringabentley: right, makes sense. So, r=me, and file a bug about the links?14:48
abentleyadeuring: Thanks.  I'll file a bug.14:49
=== m4n1sh_ is now known as m4n1sh
abentleyderyck: could you please ec2land https://code.launchpad.net/~abentley/launchpad/display-cleanup/+merge/80621 ?15:05
deryckabentley, sure15:05
abentleyderyck: thanks.15:06
deryckabentley, np!15:06
flacostewhen running make (after a make clean) on latest devel, i get the following error:15:10
flacosteawk: (FILENAME=lib/lp/contrib/javascript/yui3-gallery/gallery-accordion/gallery-accordion.js FNR=2916) fatal: cannot open file `lib/lp/contrib/javascript/mustache.js' for reading (No such file or directory)15:10
flacosteah15:11
flacostenm15:11
flacosteit's a symlink15:11
flacostei need to update sourcecode...15:11
flacostethough15:11
flacostedoh15:11
=== deryck is now known as deryck[lunch]
flacosteis it just me or make run-testapp is broken?16:26
=== beuno is now known as beuno-lunch
=== deryck[lunch] is now known as deryck
=== beuno-lunch is now known as beuno
abentleyderyck: sorry I've been invisible.  I went home because my ISP wasn't reporting an outage anymore, but it turns out the outage is now my problem.18:14
deryckabentley, no worries.18:14
abentleyderyck: did you want to chat?18:14
deryckflacoste, I don't get any errors doing make run-testapp, but the test in the browser hangs for me, seeming to never connect.18:48
flacostederyck: well, that's a step beyond me :-)18:48
flacostederyck: do you remember doing anything special for the pgbouncer change?18:48
deryckflacoste, yeah. :)  I didn't do anything special at all.  Update devel.  make and then make run-testapp.18:49
flacostederyck: i mean more like a month ago when pgbouncer landed18:49
deryckI usually do a make by itself first out of habit, just to see if I hit any errors.18:49
deryckoh18:49
deryckflacoste, hmmmm, no I don't think so.  I don't recall anything special.18:50
deryckbac, hi.  I've got a pretty easy js branch if you have time to review it.18:58
bacderyck: i'd be happy to18:58
deryckbac, awsome, thanks!  https://code.launchpad.net/~deryck/launchpad/orderbybar-integration-fixes/+merge/8070418:58
bacderyck: 3600+ lines?18:59
deryckbac, hmmm, no.18:59
deryckbac, wonder what I did.  let me see.18:59
bacgood, b/c 3500 is my absolute limit on JS or soyuz branches19:00
deryckbac, hmmm, the MP is trying to merge into lp:~deryck/launchpad/devel.  I don't know what I did wrong.19:01
nigelbbac: what happens for longer? stack overflow? :)19:01
deryckI didn't even know I had my own devel. ;)19:01
deryckbac, let me try to sort out the mp.19:01
bacderyck: cool.  ping me19:01
danhgflacoste19:02
deryckbac, try this one:  https://code.launchpad.net/~deryck/launchpad/orderbybar-integration-fixes/+merge/8070519:06
bacderyck: did you run the linter?19:09
deryckbac, I thought I did.  Let me check.19:09
bacderyck: i see some things that jtv just fixed up in a huge branch.  he'd cry if you introduce more.19:09
deryckbac, yeah I see 4 or 5 CSS lint errors.  I can fix those, assuming I understand them.19:11
bacthx19:11
bacderyck: nothing uses this yet, correct?  so there is no way for me to see it working?19:12
deryckbac, no, nothing uses it.  Just the test file to run, but it moves quick, so you never really see the widget.19:12
deryckbac, ok, bzr push'ed the CSS fixes.19:13
bacderyck: looks good19:14
deryckbac, awesome, thanks!19:15
=== salgado is now known as salgado-afk
nigelbflacoste: Hey, around?20:53
nigelbflacoste: I've subscribed you and mrevell to https://blueprints.launchpad.net/ubuntu/+spec/community-p-summit.  We'd really like to have smoeone from lp in that session :)20:54
=== bac changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: | Critical bugtasks: 266
flacostenigelb: great, we should be there21:01
nigelb\o/21:03
nigelbflacoste: Thanks :)21:03
flacostetest_clashingPOFileTranslatorEntries: benji that sounds like something you touched recentely no?21:32
benjiflacoste: sounds like it, but I don't think I actually have; let me look to be sure21:33
benjiflacoste: right, I haven't been in that region of translations21:34
flacostebenji: ok, was wondering about allenap latest email21:39
allenapflacoste, benji: I'm about to disable it. Want me to hold off?21:40
flacosteallenap: not from me21:40
benjiallenap: I don't have enough context to have an informed opinion, so I don't object21:51
allenapbenji: Cool, okay. I've just disabled it, and bug 883274 exists to track it. Fingers crossed that buildbot gets through this time.21:52
_mup_Bug #883274: test_clashingPOFileTranslatorEntries failing in buildbot, okay locally <spurious-test-failure> <Launchpad itself:Triaged> < https://launchpad.net/bugs/883274 >21:52
allenapCheerio everyone, have a good weekend.21:52

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