/srv/irclogs.ubuntu.com/2012/03/02/#launchpad-dev.txt

wallyworldsinzui: you available to answer a question?01:10
* wallyworld goes to have lunch with bigjools02:25
* StevenK stabs mail handling03:21
wgrantStevenK: Oh?03:28
StevenKTwo reasons. 1. Why does LP insist on sending me 5 mails about an MP that I just created and approved, and 2. I can't find what sends mail when a bug you created is marked as a dupe03:30
wgrantStevenK: See BugDuplicateChange in bugchange.py03:31
StevenKOh fuck me, it's an *adapter*03:32
StevenKI've been looking in model code03:32
StevenKRight, this code is utterly disgusting.03:34
lifelessStevenK: 'notification service'03:35
StevenKlifeless: This is the same argument about bug changes. You don't get mailed about changes *you yourself* performed03:36
lifelessStevenK: actually you do03:36
wgrantUnless you are crazy and ask for them to not be sent.03:36
lifelessStevenK: unless you have a) a new account or b) have turned the option off03:36
StevenKPerhaps we want to drop the number from this notification.03:37
wgrantIt's difficult.03:38
StevenK"** This bug has been marked a duplicate of private bug %d"03:38
lifelessStevenK: the bug number they cannot see ?03:38
wgrantBecause the notifications are global.03:38
wgrantFor branch links it was solved by not notifying about private linkages.03:38
wgrantBut that can't be done hter.e03:38
lifelessStevenK: so basically, a) apport is broken, and b) until its fixed we're committed to supporting something insane.03:38
lifelessStevenK: there is an agreed upon fix for apport that pitti will, sometime, get to.03:38
wgrantThat's what I said on the call this morning :)03:38
wgrantAnda  few months ago]03:38
lifelessStevenK: I think tackling this before that fix is just churn, and hard. But we could do the fix ourselves, its retracer side not on-cd-side03:39
StevenKI'd like to fix this "properly" and not give people links in mail that they can't actually follow.03:39
wgrantImpossible.03:41
wgrantWithout rewriting the bug notification system.03:41
StevenKwgrant: Then why didn't you say so on the call this morning? :-)03:42
wgrantHuh?03:42
wgrantI said to kick apport.03:42
wgrantMaybe you discussed this during my fglrx crashes.03:42
wgrantI never heard discussion about changing notifications.03:43
StevenKPossibly03:44
StevenKI said that I'd like to do that on the call and Curtis said it sounded great to him.03:44
StevenKBut that may have been the cold and flu meds talking. :-)03:45
* StevenK ponders calling this new service 'audit system service' ... changing that into an acroymn as an exercise for the reader03:55
timrcsinzui, Can I be allowed here? https://launchpad.net/launchpad/+sharing :) pleease04:01
StevenKNo, you can't be.04:02
StevenKNot yet.04:02
StevenKlifeless: O hai. Any thoughts on a witty name for this audit service? :-)04:03
wgrantStevenK: Any progress on the AP garbo job tests?04:04
StevenKwgrant: I'd like some help. You mentioned yesterday it might be transaction boundaries04:04
wgrantBreak into it after garbo runs with pdb and see what's in the DB.04:05
StevenKI've done printf debugging pulling things from the store04:06
lifelessStevenK: http://pypi.python.org/pypi/auditor04:08
StevenKNot found04:09
StevenK:-P04:09
wgrantWe do like stomping on the global namespace, don't we.04:09
StevenKHaha04:09
StevenKWell, like lifeless said, we would like others to use it04:09
wgrantSure, but we're not the One True Auditor.04:10
StevenKmy-first-auditor04:10
StevenKlp-audit-service?04:12
wgrantIt's not LP04:12
StevenKI don't want to proclaim canonical- either04:13
lifelessauditord04:13
lifelessauditd04:13
lifelessalso unused there04:13
wgrantFirst fix Python namespacing, then call it lazr.auditd04:13
lifelessthere is an auditd in ubuntu04:13
lifelesswgrant: deprecated04:13
wgrantlifeless: Only because Python namespacing is the most awful thing in the world.04:14
StevenKAnd it doesn't touch zope04:14
lifelesswgrant: it is, and also it is awful04:14
lifelessmcollective-plugins-centralrpclog might be interesting to look at04:14
wgrantIt's the most awful thing in the world, and it's also awful?04:14
lifelessyes04:14
wgrantGood good04:15
lifelessexcatly04:15
lifelessyou could call it scientologyd04:15
StevenKRight. Flights to Christchurch booked.04:15
StevenKNow lifeless will pay.04:15
lifelesswhen do you want the spare bed put up ?04:16
StevenKPlan is to kick you in the face for that last comment and then fly home. :-P04:17
lifelesswell, it audits04:17
lifelessseriously, auditord IMNSHO is fine04:17
StevenKYou said auditor first04:17
lifelessI did04:17
lifelessthats fine too04:17
lifelessbut the namespace thing is true04:18
lifelessso auditord for the server, probably auditor-client for the client if you decide it needs one04:18
lifeless(I don't think it does)04:18
StevenKI was going to write a module under lp.services that translates a given object into a string represantation of its EID, but I don't think it needs a client, given we can just scream HTTP at it04:19
lifelessyup yup04:19
mwhudson<wgrant> lifeless: Only because Python namespacing is the most awful thing in the world.04:24
mwhudsonwgrant: have you written anything in common lisp?04:24
lifelessmwhudson: nothing common about it04:24
StevenKPerl namespacing is pretty good04:25
wgrantPython namespacing is fine, but packaging of it is a nightmare.04:25
mwhudsonah yes, no arguments there04:33
StevenKTo be fair, it also omits one of SystemD's greatest strengths: Roman numeral-compliant project naming. System D is obviously way better than System V.04:45
StevenK-- Steve Langasek04:45
* StevenK cackles04:45
wgrantStevenK: Distro quotes section of LWN?04:52
StevenKYup04:52
StevenKwgrant: http://pastebin.ubuntu.com/864582/04:55
wgrantStevenK: Diff?04:58
StevenKwgrant: http://pastebin.ubuntu.com/864586/04:58
StevenKwgrant: Confused yet?05:09
* wgrant tries.05:10
StevenKwgrant: I can push a branch if you wish05:11
wgrantStevenK: Sorry, actally looking now.05:22
wgrantLet's see.05:22
StevenKHah05:24
StevenKwgrant: Did you get distracted again?05:39
wgrantThe tests take about 10 years to run, so yeah.05:44
wgrantEasy to get distracted05:44
StevenKHaha05:44
nigelbHeh05:56
=== almaisan-away is now known as al-maisan
wgrantStevenK: http://pastebin.ubuntu.com/864662/06:28
StevenKwgrant: It's just the where clause?06:32
StevenKHm, it's a different query entirely06:33
wgrantStevenK: And I used itertools.product instead of the nested list comprehension.06:37
wgrantI'm not quite sure why the old one wasn't working, and the debug cycle is too slow, so I just rewrote it from scratch instead.06:38
StevenKHmm, now I get SilentLaunchpadScriptFailure instead06:42
StevenKI HATE debugging garbo failures06:42
wgrantStevenK: make schema to check the security is right?06:47
mabachuwshimi, thanks for reviewing the workitems-widget branch! I'll switch so we have whiteboard first and then the work items text area. and I'll have a go at adding a edit mode message to the whiteboard06:56
huwshimimabac: OK great!06:56
mabachuwshimi, do you (or anyone else :) have an example of something similar in lp? that is a message that looks or behaves like what you're after?06:59
mabacrats06:59
StevenKwgrant: Interdiff between yours and mine: http://pastebin.ubuntu.com/864684/07:13
StevenKwgrant: But DistributionAddition gives SilentLaunchpadScriptFailure :-(07:13
=== wallyworld changed the topic of #launchpad-dev to: https://dev.launchpad.net/ | On call reviewer: - | Firefighting: - | Critical bugtasks: 4*10
=== al-maisan is now known as almaisan-away
adeuringgood morning08:56
mabacI'm trying to find a way to show a message on blueprints when the whiteboard is being edited. I think I'm on to something using tal:condition in specification-index.pt. Does anyone know how I can detect the state of a TextAreaWidget?09:00
mabacIf there's a standard way to do something like this, I'd be happy to learn about that instead. :)09:03
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== stub1 is now known as stub
czajkowskisalgado: ping10:59
salgadohi czajkowski10:59
czajkowskisalgado: ready for G+11:00
salgadoczajkowski, yep, will be there in a sec. do you have a URL for the hangout?11:00
czajkowskisalgado: setting up now11:01
mabacsalgado, quick question for you. :) how would you go about displaying a message when the whiteboard is being edited? it's for alerting the user to not put work items in it.11:02
mabacsalgado, I've run into a dead end with tal conditionals in the template.11:03
salgadomabac, maybe that text widget thing has a way to specify some help text to be shown below it?11:10
czajkowskisalgado: nice to meet you11:10
salgadoczajkowski, nice to meet you too, and thanks for the help! :)11:10
czajkowskinp11:10
czajkowskionce mrevell has the post done I';ll post it to the loco contacts list, add it to my blog so it ends up on the loco radar and then onto jono11:11
rick_h_morning11:11
mabacsalgado, didn't find anything like that. so I'm going for something simple and dynamic. I got a pointer to the js from danilos so I'll try that11:13
czajkowskirick_h_: g'day11:15
danilosmabac, btw, if the JS widget is capable of supporting something, do not hesitate to expose it in the lazrjs.py TextAreaEditorWidget either :)11:16
mabacdanilos, ok let's see what I can find :)11:17
salgadomabac, ok, good look with that; notice that after you change anything in a .js file you'll need to run 'make jsbuild' to see them on the browser11:28
mabacsalgado, ok thanks. I would have missed that11:29
salgadothat's about everything I know about javascript in LP:  cover your eyes, make changes, run 'make jsbuild' and hope it will work11:29
rick_h_:) that'll be easier soon11:30
mabac:)11:31
rick_h_I've been hacking on tools for that, but a bit complicated to setup atm11:32
mabacsalgado, I did this but hiding it when the whiteboard is not being edited got tricky: http://dl.dropbox.com/u/400334/whiteboardnotice.png11:37
salgadomabac, yeah, we'd need to have hooks with the widget to do that, I think.  I'm checking the docs of YUI's widget class to see if there's anything there that could be useful11:44
rick_h_what widget salgado ?11:48
salgadorick_h_, the base for InlineEdit: http://yuilibrary.com/yui/docs/widget/11:49
rick_h_ok, so widgets have a ton of events to watch for11:49
rick_h_looking you *might* be able to watch for the visibleChange attribute?11:51
rick_h_you're looking to fire something when you click edit right?11:51
mabacrick_h_, yup that'd be good enough11:52
rick_h_mabac: I'm just not 100% sure that the visible is following the editor part of the widget or not11:53
mrevellsalgado, Is launchpad.dev the only place I can play with the work items box?11:53
rick_h_mrevell: yea, it's through testing/pqm, but don't think it's on qastaging yet11:55
rick_h_so salgado tests passed and such this morning it looks like11:55
mrevellcheers11:55
salgadomrevell, rick_h_, yes, only launchpad.dev for now.  mabac is trying to add a warning to let people know they should not enter work items on the whiteboard12:05
=== danilo_ is now known as danilos
mrevellsalgado, Is it not behind a feature flag?12:05
salgadomrevell, nope. do you think it's worth doing that?12:06
mrevellsalgado, If it's going to end up on production before it's ready for use, then yes.12:07
rick_h_mrevell: sorry, that's my confusion12:08
rick_h_I landed a different branch for salgado yesterday12:08
rick_h_the work items is still in reivew/changes12:08
mrevellSorry, I'm confused. So what's landing now?12:09
salgadomrevell, it will not land before it's ready12:12
salgadomrevell, the new UI is still under review12:13
mrevellGret :)12:13
StevenKCan someone who isn't me log into carob and look at the pqm logs to see what the heck the buildbot-poller is doing?12:13
mrevellOr rather, great12:13
=== almaisan-away is now known as al-maisan
rick_h_StevenK: where do I look to see "what the heck the buildbot-poller is doing?12:16
StevenKrick_h_: /srv/pqm-logs or some such, there's a log for it12:16
StevenKYou may need to sync logs12:16
rick_h_StevenK: how often does it poll?12:18
rick_h_StevenK: https://pastebin.canonical.com/61452/ is last bit from the buildbot log12:19
StevenKI was trying to *not* think about how crap buildbot and its poller is at 2320 on a Friday night. :-(12:20
StevenKrick_h_: Sync pqm logs12:21
rick_h_sorry, someone an expert on buildbot? /me's never used it before until LP so don't know what I'm looking for12:21
StevenKrick_h_: buildbot and buildbot-poller are distinct systems.12:21
StevenKAnd buildbot-poller was written by us.12:21
=== matsubara-afk is now known as matsubara
rick_h_so am I looking to sync the buildbot system or a different one?12:22
rick_h_StevenK: and am I supposed to be looking at something other than /srv/lp-pqm-logs/pqm_logs/buildout.log then for the poller logs?12:23
StevenKrick_h_: That log you pasted is the right one.12:24
rick_h_ok, requested buildbot sync, not seeing anything new yet12:24
StevenKIt will use 'write' to tell you when the sync is completed12:24
StevenKIE, you'll notice.12:24
rick_h_ah ok12:24
salgadoStevenK, does this have anything to do with the fact that devel has not been merged into stable yet?12:29
StevenKThat's one of things the poller does, yes.12:30
rick_h_StevenK: so sync completed, nothing new in the log12:37
salgadoStevenK, hmm, my changes were actually committed to ~launchpad-pqm/launchpad/stable before they were blessed by buildbot, it seems.  I see them committed ~8h ago12:37
StevenKNo, that's because it merged your revision12:37
salgadooh, that's because we pull?12:37
StevenKI'm not sure what the poller does, but it's magical.12:37
salgadoheh, ok12:37
StevenKIt sends a message to PQM, and it does it.12:38
salgadowhat's the difference between staging and qastaging?12:39
StevenKstaging runs off db-stable, and qastaging runs off stable12:40
StevenKTypical staging is used to test DB changes nowdays12:40
StevenKsalgado: production-{devel,stable} from your time are long dead, we deploy to production from stable12:40
rick_h_Something seems to have kicked, qa bot updated tag/status for my change now12:41
rick_h_but log still seems same12:41
StevenKrick_h_: Can you kick that manager of yours to do his two items of QA?12:41
rick_h_StevenK: will do12:42
salgadoStevenK, right, makes sense :)12:42
=== danhg_ is now known as danhg
deryckadeuring, abentley, rick_h_ -- hey. firing up hangout.14:35
adeuringok14:35
abentleyderyck: I don't see you.14:39
deryckabentley, hey, are you trying?  https://plus.google.com/hangouts/extras/talk.google.com/orange-standup14:39
czajkowskisinzui: have you been spring cleaning the licience reviews?14:44
sinzuiI review the all other/* licenses every Friday. I close projects, give canonical project licenses, send out license renewals14:47
czajkowskisinzui: ah ok, as I was waiting on one to change its status and wondered where it had gotten to .14:48
sinzuiToday I gave out a license and mark a project approved since it changed their license to gpg affero14:48
sinzuioops14:48
sinzuisorry14:48
czajkowskinods that was the one I was wondering about14:48
czajkowskias you had a note on the whiteboard14:48
sinzuiThat note was from 2009 I think14:49
sinzuiczajkowski, You reported a bug about the batching for all /projects...14:49
czajkowskisinzui: aye as it came via a RT and it does seem rather strange we'd display a negative figure tbh.14:49
sinzui...only the pathological user with a historical interest will ever use it...14:50
czajkowskiok14:50
sinzuieg me because I read the license info of 5,000 projects when we decided all projects had to have a license14:50
czajkowskiheh ok14:51
abentleyadeuring: chat?15:16
adeuringabentley: sure. mumble?15:24
abentleyadeuring: sure.15:24
adeuringabentley: still there?15:31
mabacrick_h_, salgado I changed the workitems-widget branch a little so it displays a message when editing the whiteboard. I suspect it might be considered somewhat hackish so if you guys would like to have another look, it'd be great. :) https://code.launchpad.net/~linaro-infrastructure/launchpad/workitems-widget/+merge/9479015:33
=== al-maisan is now known as almaisan-away
salgadomabac, on a call now, will check in a minute15:36
mabacsalgado, thanks. going afk now. might be able to check in again later. maybe ping huw if he comes online to have a look too?15:37
rick_h_mabac: peeking15:37
mabacrick_h_, thanks. if it's to hideous, comment on the mp and I'll deal with it as soon as I can.15:38
sinzuiamI online?15:41
rick_h_yes15:42
sinzuithanks15:42
nigelbsinzui: No :D15:44
abentleyadeuring: Internet is back.  Shall we try again?15:46
adeuringabentley: sure15:46
sinzuinigelb, :)15:50
nigelb:D15:51
=== matsubara is now known as matsubara-lunch
mabacrick_h_, salgado just wanted to check back in. is there a verdict? :)16:17
rick_h_mabac: not a huge fan of the hook at the moment. I'm going to propose an alternative. I need to get a checkout and play with it a little bit.16:18
jelmerabentley: btw, nice to see ec2 moved16:18
jelmerI was wondering if we should put lp-dev-utils in the launchpad PPA16:18
salgadomabac, I'll defer to rick_h_ on this one as I know close to nothing about YUI and LP's widgets16:19
rick_h_mabac: personally the editor needs to provide an event you can just listen for. It seems it doesn't right now, so I want to add it16:19
mabacrick_h_, thanks, that'd be great. any help is very welcome on this.16:19
rick_h_mabac: thanks for your patience16:20
mabacsalgado, it's obvious from my patch that I have no clue. :)16:20
mabacrick_h_, no problem. I spent too much time to get that hack working so I'm happy you want to assist me. I'll pop out for the weekend then.16:21
abentleyjelmer: I guess that gives it a better install story, but I think there's a bunch of packaging needed.16:21
salgadomrevell, you didn't forget that text for the help popup, did you? ;)16:44
mrevellI did not salgado :)16:44
salgadomrevell, if we could get it by Monday it'd be great; no need to hurry too much16:44
mrevellI started later on it that I'd have liked but it's under way.16:44
mrevellNo prob16:44
salgadomrevell, great, thanks!16:45
salgadohmm. I've got a job on the garbo hourly script and it doesn't seem to be running enough iterations of it for the whole work to be done17:13
salgadomy job runs for only a couple minutes17:13
salgadois there a limit on the time or number of iterations that I'm not seeing?17:14
salgadolifeless, around?17:18
salgadoanybody up for a quick review? https://code.launchpad.net/~salgado/launchpad/workitem-migration-allow-inactive-milestones/+merge/9562417:32
=== matsubara-lunch is now known as matsubara
sinzuisalgado, what happens the work items when I make their active milestone deactivated (untargetable)17:56
salgadosinzui, there should be no milestones to which a WI cannot be targeted17:57
salgadothat's what I'm changing, so that they can be targeted to inactive milestones17:58
=== deryck is now known as deryck[lunch]
* sinzui looks again17:58
sinzuiah17:58
salgadosinzui, the UI/DB allows that (I confirmed a few minutes ago); it's just the migrator script that was broken17:58
sinzuiRight. Lp UI often does not permit it, but the API will let you do it17:59
sinzuisalgado, r=me18:00
salgadosinzui, also, I'm thinking of moving the migrator script from garbo-hourly to garbo-frequent as it takes a couple minutes on the first 2 or 3 runs and then will run much faster than that.  does that sound ok to you?18:00
sinzuiyes18:01
salgadosinzui, do you mind if I sneak that change in this same branch?18:01
sinzuino18:01
salgadosinzui, great, if you could have another look there  ;)18:02
salgadocome on, LP, update my diff18:03
sinzuistill looks okay18:04
sinzuiI'll just add a comment to the review18:04
salgadosinzui, great! can you land it for me as well?18:05
sinzuiyes18:05
salgadosinzui, superb, thanks a bunch!18:05
=== salgado is now known as salgado-lunch
rick_h_salgado-lunch: ping when you get back18:17
lifelesssalgado-lunch: hi18:59
=== deryck[lunch] is now known as deryck
=== salgado-lunch is now known as salgado
salgadorick_h_, hi19:22
rick_h_salgado: howdy, so I replied to mabac's MP19:22
rick_h_salgado: I just wanted ot make sure it made sense, and since it seems we're off on TZ, wasn't sure if I should ping/update you on it to help with him19:22
salgadorick_h_, I agree with you that it's probably better to do it in specification-index.pt instead of trying to generalize it at this point19:26
rick_h_salgado: ok cool. Sorry to make trouble/more work19:27
rick_h_salgado: totally not against adding a generate notification to the editor, but want ot be more thorough on it as a longer term thing19:27
salgadorick_h_, I completely understand that :)19:28
rick_h_cool, so hopefully that diff helps makes the fix simple, that's working and tested from his branch19:29
rick_h_just have to undo the other stuff19:29
salgadorick_h_, you're giving us code that's simple and documented; it's a huge help!19:31
salgadoI'm sure mabac will be thankful, and so am I :)19:31
jcsackettabentley (or anyone): you know that thing where lp-propose stops using the template from lpreview body? how does one go about fixing that? :-P19:59
abentleyjcsackett: first, run "bzr plugins -v" to ensure lpreview body is installed, and running from where you expect.20:00
jcsackettabentley: confirmed; it's installed and running from my .bazaar/plugins20:02
abentleyjcsackett: now try running lp-propose and see if the target branch matches "lp:(~launchpad-pqm/)?launchpad(/(db-)?devel)?"20:03
jcsacketttarget is lp:launchpad20:04
jcsacketthrm. that's the same branch, but not a mach for that format.20:04
jcsackettoh, wait, i may have misread that regex. i think that is a match.20:05
abentleyjcsackett: Hrm.  I think the displayed target branch is not what it checks against.20:06
jcsackettabentley: ah.20:08
abentleyjcsackett: So the submit branch's public URL should match 'bzr\+ssh://bazaar.launchpad.net/~launchpad-pqm/launchpad/(db-)?devel'20:10
jcsackettabentley: ok.20:10
jcsackettabentley: as in the setting in locations.conf?20:10
abentleyjcsackett: Yes, though bzr info will tell you what bzr thinks the setting is.20:11
jcsackettabentley: ok, the submit branch had gotten borked when i mucked with my locations the other day. stuff works now.20:14
jcsackettthanks!20:14
abentleyjcsackett: np20:14
sinzuijcsackett, r=me21:18

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