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

rick_hmorning11:07
bachi rick_h11:25
baci suspect it may be very quiet here today11:25
rick_hbac: yea, probably.11:30
rick_hit was pretty darn quiet friday11:30
rick_halmost eerily so11:30
rick_hbac: are you running on precise? I'm still trying to figure out the way around my rabbitmq setup issues I replied to the -dev list about on friday11:43
nigelbMorning rick_h & bac :)11:51
bacgood evening nigelb11:51
bacrick_h: i am.  didn't see your email.  but i haven't run the test suite locally in a while11:52
rick_hbac: I'm working on getting rocketfuel setup past this point11:52
=== benji changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: benji | Firefighting: - | Critical bugtasks: 4*10^2
StevenKbac: O hai. You can remove the EC2 image with id 521.12:31
bacStevenK: okay, thanks12:31
rick_hwgrant: any word on the rabbitmq dep stuff that breaks in precise? Stupid me did a fresh install and can't get rf-setup past that13:42
wgrantrick_h: Ah, indeed, I should fix that. For now I'd just suggest manually installing the old rabbitmq-server and rabbitmq-erlang-client, which will let the other plugins install.13:43
rick_hwgrant: ok, thanks13:43
=== salgado is now known as salgado-afk
=== salgado-afk is now known as salgado
=== deryck is now known as deryck[lunch]
=== salgado is now known as salgado-lunch
=== deryck[lunch] is now known as deryck
=== salgado-lunch is now known as salgado
jcsackettsinzui, you around?18:05
=== salgado is now known as salgado-afk
lifelesssinzui: how does registry admins end up assigned? Is it person deletions ?19:24
sinzuilifeless, yes19:24
sinzuiWe I think some linaro teams got deleted19:25
* sinzui needs to see if ~registry now owns linaro projects19:26
lifelesssinzui: would it be reasonable for the delete code to unassign and unsubscribe?19:28
sinzuiyes. I already reported that bug suggesting that as the solution to the problem19:28
sinzuibug #61360319:29
_mup_Bug #613603: team merge subscribes/assigns bugs to ~registry <lp-registry> <merge-deactivate> <Launchpad itself:Triaged> < https://launchpad.net/bugs/613603 >19:29
lifelesscool cool19:30
lifelessbtw those bug numbers are -old-, way before linaro19:31
lifelesshwenablement or something19:31
sinzuiyes, but the bugs and branches I unsubscribed ~registry mentioned linaro from the maverick period19:32
lifelessinteresting19:32
lifelessshrug, no matter; I'm glad you cleaned it up19:32
lifelessthank you19:32
sinzuiI am always happy to stop email arriving to my inbox19:33
sinzuiparticularly this week. I am using my backup computer and I think some mail and calendar settings are 6 months too old19:33
timrcSpeaking of registry, I'm imbued with its magical powers,  but have yet to receive my wizard's hat19:36
sinzuitimrc, I think ~registry conveys more responsibility than power. You have some extra moderation powers to work with projects and teams, but it means you are on call to fix data that stop other users from serving themselves19:39
=== salgado-afk is now known as salgado
timrcmore responsibility than power sounds a lot like parenting... bummer :)19:53
abentleyderyck: Could you please review https://code.launchpad.net/~abentley/launchpad/celery-everywhere-2/+merge/101284 ?20:05
deryckabentley, sure20:05
lifelessabentley: I have a new job in a local branch; do I need to change anything in it to work with celery ?20:18
lifelessabentley: s/do I/is it likely that I/20:18
abentleylifeless: Yes, you need to provide a "config" member that points to the config section for that job type, so that we can determine the dbuser.20:19
abentleylifeless: does the job access branches?20:19
lifelessabentley: no20:19
lifelessabentley: its a stub implementation of the notification API, I wanted a low-key way to check that the API is completish20:20
abentleylifeless: If it's not derived from BranchJobDerived, there's extra work needed so that LP can look its class up by Job.id20:22
abentleylifeless: I'm working on supporting BranchMergeProposalJobDerived right now, actually.20:22
lifelessabentley: ok. the job I have is super simple; its just got a single job type in its table20:23
lifelessabentley: I wouldn't care if it has to be run non-celery in fact, as it should only exist long enough to validate stuff and bring up the external service.20:24
lifelessabentley: but OTOH I don't want to hold back the cleanup of dead code20:24
abentleylifeless: Okay, I wouldn't worry about it, then.20:26
lifelesscool, thanhks.20:26
kirklandis anyone around who can help me with a private/commercial launchpad project?20:30
lifelessperhaps20:31
lifeless!ask :P20:31
deryckabentley, r=me. nice work.20:33
kirklandlifeless: I have registered a new private/commercial project last week and I'm trying to get the bit flipped to make the code hosting private20:33
abentleyderyck: cool, thanks.20:33
kirklandlifeless: normally, I ask flacoste to do that, but I think he must be away on holiday or something20:33
lifelessdid you do the entitlement registration thingy?20:34
kirklandlifeless: yepper20:34
kirklandlifeless: but my trunk is publicly visible20:35
lifelessok, let me hook you up with a -ops20:35
kirklandlifeless: okey20:35
lifelesskirkland: you should be pm'd in a sec by thedac20:36
kirklandlifeless: kthx20:36
abentleyderyck: I'd like to retrieve the BranchMergeProposalJob where BranchMergeProposalJob.job = x OR the BranchJob where BranchJob.job = x.  Do you know how to do that with a single SQL statement?20:41
lifelessabentley: they are different tables?20:42
abentleylifeless: Yes.20:42
lifelessabentley: if so you need to find (BranchMergeProposalJob, BranchJob) where BranchMergeProposalJob.job = x and BranchJob.job is NULL or BranchJob.job = x and BranchMergeProposalJob.job is NULL20:43
lifeless(because its a cross join by default)20:43
lifelessabentley: and then in your code check for which object is NULL20:43
lifelessabentley: (this won't scale all that gracefully to many job types)20:44
abentleylifeless: Cool, thanks.20:44
lifelesshmm, you might be able to say BranchMergeProposalJob.job is not distinct from x OR BranchJob.job is not distinct from x20:45
abentleylifeless: but I guess I can generate it programmatically from a list of job types?20:45
lifelessyou'd want to test that20:45
lifelessabentley: possibly; I'd worry a little that it will slow down as you start getting hundreds of columns returned20:45
lifelesss/little/lot/20:45
abentleyWhy hundreds?20:46
lifelessmost sql queries bring back a few dozen columns at most20:46
lifelessbut each type in the storm query will be at least 2 columns (id, metadata), and more depending on the job's FK's.20:47
lifelessthings outside the common case are often slower, so I'd be worrying because we'd be doing something rather unusual.20:48
abentleylifeless: I doubt there are more than 10 job types.20:48
abentleylifeless: Most of our "types" are actually BranchJob + a distinguishing job_type attribute, rather than distinct tables.20:49
abentleylifeless: Or similar for merge proposal jobs, etc.20:49
lifelessyah20:49
lifelesswell, its something to note I think20:49
lifelesswe're reconstructing data other parts of the system had, with a lookup pattern its not tuned for; thats something to at minimum put on the known defects pile20:50
lifelessaddress it is obviously not urgent, nor even necessary at this stage20:51
abentleylifeless: Fair enough.  I had assumed that such a lookup pattern would not be a problem.20:52
abentleylifeless: ISTM that since Job.id is a common field in all our job types, it would be elegant to be able to look things up by Job.id.20:55
abentleylifeless: if that actually is a problem, we could use a tuple of table and id to look up Jobs.20:56
lifelessthe problem is the schema; consider bugtask, which acts as an intermediary between bug and product/productseries/distro/distroseries20:56
lifelesswe have the FK of the related object in bugtask20:56
lifelessso only ever have to do one index walk to find the other object for a given bugtask20:57
lifelessabentley: if you could do that, it would be better I think20:57
lifeless(that == tuple of table+id)20:57
abentleylifeless: We were going to go with a design inspired by your earlier suggestions, in that the job-running code was not even aware that the jobs were coming from a database.21:02
abentleylifeless: Including the table name as a parameter is going to mar that a bit, but maybe not too much.21:03
abentleylifeless: I'll chat with adeuring about how to adjust our approach.21:04
lifelessah, I see21:04
lifelessI think if the job running code gets something opaque and hands it to a factory, and gets back a job, it shouldn't expose the db'ness of of it all21:05
abentleylifeless: We've been printing the ID, and assuming it is short and integery.21:06
=== benji changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: - | Firefighting: - | Critical bugtasks: 4*10^2
=== salgado is now known as salgado-afk
lifelesspop quiz, does simple sendmail handle unicode values in headers (E.g. from, subject) appropriately ?22:43
maxbI'd be surprised if it did, it seems like it ought to be the submitting program's job to produce a valid MIME message22:53
lifelessmaxb: simple_sendmail is an internal API in the lp source tree22:54
maxbah. The _ clarifies much22:54

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