/srv/irclogs.ubuntu.com/2010/02/01/#launchpad-dev.txt

* mwhudson lunches00:42
mwhudson(not that there's anyone here to care)00:42
* ajmitch cares00:44
ajmitchmostly because I have my lunch here with me :)00:44
lifelessthumper: ping03:13
lifelessthumper: re bug https://bugs.edge.launchpad.net/launchpad-code/+bug/411357 - is there an API's equivalent to +activereviews. e.g. see https://code.edge.launchpad.net/~ubuntu-main-sponsors/+activereviews which has useful content03:13
MTecknologywow - you guys have a lot of builder machines04:49
lifelesssome of the time05:09
beunogooood morning07:15
al-maisanGood morning beuno :)07:22
wgrantIf only Launchpad had some easy way to turn a branch into a source package -- these release instructions would be so much easier.07:23
al-maisanwgrant: ha ha :)07:23
noodles775hi wgrant - on that note, if you have time, please go through https://dev.launchpad.net/BuildBranchToArchiveUI and see if you've any thoughts or ideas or corrections etc. I'm planning to send out a RFC/Input sometime in the next few days.07:36
noodles775Especially the "Questions still requiring thought" section :)07:36
wgrantnoodles775: I think there'll need to be a new (set of?) tables for scheduled builds.07:37
wgrantSince I might want to build this recipe whenever the tip changes.07:37
wgrantSomebody else might want to build only releases of this same recipe.07:37
wgrantSo storing it on the SPRecipe probably won't work well.07:38
noodles775yeah, I don't think the current schema even supports daily builds properly (see the third question still requiring thought).07:38
noodles775So your suggestion would be a good general solution.07:39
wgrantnoodles775: Regarding the first and second points, the changelog in the packaging branch is irrelevant. bzr-builder concocts a new changelog entry with the information given to it by the master. That data is stored in the SPRB when it is created.07:42
wgrant(you must currently specify it when the build is requested)07:42
noodles775hrm07:43
noodles775<jml> noodles775, in case you missed it on #bzr, bzr-builder gets it from the changelog.07:43
* wgrant checks the code.07:45
wgrantWe definitely pass the suite all the way through.07:45
noodles775OK, that would make things easier - so the user specifies it, we set it on the build and it's passed through to bzr-builder? I'll have to digg a bit deeper.07:45
noodles775Great. Thanks.07:46
wgrantThe package name too.07:46
noodles775But that's the question there, where do *we* specify the package name? A branch (or packaging branch) doesn't necessarily link to a source package name?07:47
wgrantA packaging branch does.07:48
noodles775But it really should be linked somehow to the packaging branch (as it is for actual distro...) oh?07:48
wgrantnoodles775: SPRecipe already has distroseries and sourcepackagename columns.07:50
noodles775wgrant: yeah, I know, the question was more, "when do we fill them in, and where does the info come from?"07:51
wgrantnoodles775: One probably creates a recipe at a URL like /ubuntu/lucid/+source/dpkg/+new-recipe07:51
noodles775Yeah, that's fine for a distroseries source package... but what about for my personal branch foo with my personal packaging branch bar, that I want to build into my ppa?07:52
wgrantThat's where package branches fall down.07:52
noodles775(or maybe I'm trying to generalise it too far?)07:52
noodles775Oh, ok.07:52
wgrantThat is a general hole in Launchpad's model.07:53
noodles775Yeah, hence the question there. I think we need to resolve it, as we need to be able to build general branches.07:53
wgrantThe current solution is to have unofficial branches under the Ubuntu namespace.07:54
wgrantThat probably makes a bit of sense.07:54
wgrantAnd since recipes are namespaced by owner, there's little-to-no problem keeping them all under Ubuntu.07:54
wgrantIt's reasonably correct -- they are branches of the Ubuntu package.07:55
wgrant(the bigger problem is that Ubuntu branches are branches of Debian branches, which are branches of the upstream project. Yet all these branches are kept in independent spaces. But that's not terribly important here)07:56
noodles775OK, so that would mean that when I select my packaging branch, it is automatically implying the distroseries.07:56
wgrantWell, a packaging branch needn't really be distroseries-specific.07:56
noodles775s/packaging branch/recipe07:56
wgrantAlthough they must for now live in one.07:56
wgrantYes.07:57
wgrantA recipe has a distroseries.07:57
wgrant(this is too complicated and messy and aaarrggh)07:57
noodles775But here's the problem - when I am *creating* the recipe to build a branch...07:57
noodles775+107:57
wgrantYou always create a recipe from a view or method on a SourcePackage.07:58
noodles775Yes, that may be necessary then - I was hoping the process of recipe creation could be done while requesting the build (ie. in a single step) as outlined in the ui mockups.07:59
wgrantHmmmm, true. That is unfortunate.07:59
* wgrant looks at the mockups.07:59
wgrantWe can probably infer the SPN from project<->package links. But I cannot see a sane way around asking for the distroseries.08:07
wgrantThat's probably something that you *always* want to ask for anyway.08:08
* wgrant grabs Balsamiq.08:09
noodles775Thanks!08:10
wgrantHrm hrm hrm.08:23
noodles775yarp.08:25
wgrantI guess that in a lot of cases the recipes will be identical between multiple series.08:25
noodles775Huh? Won't they require different packaging branches? (if the packaging branches are distroseries specificy)08:26
noodles775(ie. different merge directives)08:26
wgrantIf they are, yes.08:26
wgrantIt seems really awkward to ask for a distroseries which is probably redundant with information on the package branch, but I cannot think of a way around it.08:35
noodles775Yeah, and what if the information conflicts?08:35
noodles775Could we require something like the ISeriesSourcePackageBranch to be defined for personal branches also?08:37
wgrantI don't think that makes sense.08:38
wgrantThe case here is that I want to build this non-distroseries-specific project branch. I might not even own that branch. It shouldn't need any magic on that branch.08:39
wgrantWe shouldn't complain if the series conflict. If it works, it will work. If it doesn't, it will fail to build.08:40
wgrantRestrictions like that are more likely to be inconvenient than anything else, I think.08:40
noodles775Yep, it'd just be strange to say "you said this was for karmic but then your source package branch was for lucid".08:40
noodles775OK, true.08:40
wgrantI might be doing that because I'm (quite feasibly) reusing the hardy packaging branch all the way up to lucid.08:41
wgrantI do that.08:41
noodles775In which case it shouldn't fail, but give priority to the recipe distroseries right?08:42
wgrantI don't think we should look into the recipe data at all.08:43
wgrantSo yes, the one the user specifies explicitly wins.08:43
wgrantBecause we might have multiple package branches, or none.08:43
mwhudson<wgrant> (this is too complicated and messy and aaarrggh)09:01
mwhudsonthat seems to describe the problem domain well enough09:01
mwhudsonbigjools, noodles775: good morning09:01
noodles775Hi mwhudson09:01
wgrantEvening mwhudson, morning bigjools.09:02
bigjoolshello09:02
bigjoolsnot here for long, in a meeting09:03
wgrantWindows Me!09:03
noodles775lol09:03
mrevellMorning09:04
* wgrant mourns the 12 i386 builders that have vanished in the last few hours.09:36
al-maisanwgrant: what do you mean? How did they vanish?09:39
wgrantal-maisan: There were 19 earlier. There are 7 now. I presume Enablement stole them back for a while.09:39
wgrant(fortunately the queue isn't too huge yet)09:39
al-maisanah, I see.09:39
=== henninge changed the topic of #launchpad-dev to: Launchpad Development Channel | Week 0 of 10.02 | PQM is open | gary_poster is release manager | https://dev.launchpad.net/ | Get the code: https://dev.launchpad.net/Getting | On-call review in irc://irc.freenode.net/#launchpad-reviews | Use http://paste.ubuntu.com/ for pastes | Channel logs: http:/
asabilHi all09:54
adiroibanjtv, henninge Hi, I'm looking at bug 512307, and rather than filter „merged” contributors in the view, would not it be recommended to filter them in the „source” POFile.contributors ? In doing so, in the view we would just display them.09:56
adiroibanare there any place in LP where we would like to manage translations of merged accounts ?09:57
jtvadiroiban: did my reply just now get through?  having trouble with irc spam protection I guess09:59
adiroibanjtv: nope09:59
jtvah.  First of all, I said hi.  :)10:00
jtvSecond: it does sound sensible to me to do this further down, like you suggest.10:00
jtvIn fact, I'm not sure mere filtering is quite right; why not display the target account instead?10:01
adiroibanjtv: because there is a list of top 20 contributors10:01
adiroibanand displaing the target will create duplicate entries10:01
adiroibanI will filter in the view then10:02
jtvYes of course you need to filter _as well_, but _mere_ filtering has the weird effect of leaving out contributors.10:04
adiroibanI was thinking that merging two accounts will also transfer all the contribution to the new one10:05
jtvThat's exactly what I mean.10:05
asabilDid anyone think about using bzr-externals with the launchpad code ?10:08
asabilfor managing the download-cache and sourcecode ?10:12
wgrantnoodles775/al-maisan: Can you guys see germanium's publisher logs?10:20
noodles775I just tried to check, but can't ssh in at the moment, can you al-maisan ?10:20
al-maisanwgrant: I am not sure, let me see whether they are replicated on devpad10:20
al-maisannoodles775: cannot ssh into devpad either10:21
wgrantThe source and binary files in question are on disk, the binaries are listed in Packages, but the sources are not in Sources, and the source publishing statuses haven't been set.10:21
wgrantOne special thing of note: the Lucid source is 3.0 (quilt), and shares its orig.tar.gz with the 1.0 sources from earlier series, that also remain unpublished.10:22
al-maisanwgrant: hmm .. maybe the publisher died before finishing its run properly10:22
wgrantal-maisan: But that would mean it would just try again on its next round.10:27
wgrantAnd there should have been quite a few since.10:27
al-maisanwgrant: good point. I am trying to get access to the logs and see what can be gleaned from these.10:28
wgrantal-maisan: Thanks.10:28
al-maisanwgrant: it appears the files to be published already existed on disk but the check sums did not match (see, lib/lp/archivepublisher/diskpool.py|188|)10:41
wgrantal-maisan: Argh. I checked that the sizes were all OK, but didn't bother with the checksums.10:42
wgrantal-maisan: It's the orig.tar.gz, isn't it?10:43
wgrantHow was that copy not rejected, I wonde.r..10:43
* al-maisan looks at the log again10:44
wgrantYeah, that copy should have been rejected.10:45
al-maisanthe copy logic probably does not look at the check sums10:46
wgrantI thought it did.10:46
* wgrant looks.10:46
wgrantWell, it appears not to.10:48
wgrantI'd always assumed it did :/10:48
al-maisanwgrant: would you like to file the bug .. or should I?10:49
* wgrant will.10:49
al-maisanwgrant: thank you10:50
wgrantBug #38704910:53
al-maisanoh wow! There was a bug already?10:55
wgrantNow, how to fix the PPA... deleting the two old publications should resolve the situation once processdeathrow runs. But that seems evil.10:55
wgrantYes, there was.10:56
wgrantNo bot?10:56
al-maisannope10:56
al-maisan"Copy backend does not detect file conflicts", https://bugs.edge.launchpad.net/soyuz/+bug/38704910:56
al-maisanwgrant: thanks for digging that bug out!10:58
wgrantal-maisan: Thanks for fighting devpad for me.10:59
al-maisanwell, for us :)10:59
henningeDoes anybody know where I should find the "ec2-register" command?11:36
henningeIs that one of our tools or something from Amazon?11:37
wgranthenninge: It's part of the 'ec2-api-tools' package.11:38
henningewgrant: cheers!11:39
adiroibanany idea how to get around the ForbiddenAttribute: ('__len__', <storm.sqlobject.SQLObjectResultSet error. Here is my code: http://paste.ubuntu.com/366780/11:49
wgrantadiroiban: You should use .count() instead.11:50
wgrantOh, you're not calling it explicitly. I seeeee.11:51
adiroibanI guess I have to convert it to a "plain" array ?11:52
salgadoadiroiban, you have to generate a list out of self.context.translators before you can reverse() it11:52
adiroibansalgado: ok. thanks!11:52
salgadoadiroiban, but that might not be a good idea if context.translators can return an arbitrary number of items -- it might cause timeouts11:53
adiroibanthen just use for statement11:54
adiroibaniterating using the index ?11:55
salgadoadiroiban, no, in that case it's best to create a new method on the content class which returns the items in the order you want.  or extend the existing one to let you specify the sort order11:59
adiroibanwell, the current one is a property12:00
salgadoit can be turned into a method easily12:00
adiroibanthanks. I will try this way12:03
asabilDid anyone think about using bzr-externals with the launchpad code ?12:30
adiroibansalgado: any hints regarding turning a property into a method ? The property is also used as a schame.Field12:33
salgadoadiroiban, I'm not following you12:34
adiroibanyou said that is easy to turn a property into a method, but I don't know what is the easy way12:35
salgadoadiroiban, you just need to remove the decorator (@property), add the extra arguments you want and update callsites12:37
adiroibanthanks! and how I change the interface, as the property is defined in the interface using Field(required=true)12:38
=== mrevell is now known as mrevell-lunch
=== bac changed the topic of #launchpad-dev to: Launchpad Development Channel | Week 0 of 10.02 | PQM is open | gary_poster is release manager | https://dev.launchpad.net/ | Get the code: https://dev.launchpad.net/Getting | On-call review in irc://irc.freenode.net/#launchpad-reviews | Use http://paste.ubuntu.com/ for pastes | Channel logs: http://irclogs.ubuntu.com/
noodles775Hi james_w13:31
noodles775In your email about the 'trigger' for the buildfrombranch work, were you talking about this branch, or something else:13:32
noodles775https://code.edge.launchpad.net/~abentley/launchpad/build-recipe13:32
noodles775(it's approved but not landed - so I wasn't sure if you and abentley had found more work required there).13:32
thekornhi, who is the best person to guide my through the process of fixing bug 282178 ?13:49
=== mrevell-lunch is now known as mrevell
thekornhmm, no bot, https://bugs.edge.launchpad.net/malone/+bug/28217813:49
thekornintellectronica, ^^ you maybe, since you put some hints in the title13:51
=== salgado is now known as salgado-lunch
EdwinGrubbsmars: ping15:31
marshi EdwinGrubbs, want to have that pre-implementation call?15:31
=== matsubara is now known as matsubara-lunch
EdwinGrubbsmars: yes15:32
EdwinGrubbsmars: skype?15:32
marsEdwinGrubbs, yes, just a minute15:32
bacintellectronica: and here?15:48
intellectronica1 2 3 test15:48
bacintellectronica: but i guess we have the larger problem with unregistered users.15:49
intellectronicayeah :-/15:49
rockstarMorning15:50
intellectronicamorning, rockstar15:50
rockstarbac, we shouldn't need voice, just be identified by Freenode.15:50
bacrockstar: i have no idea what i'm doing.  just discovered that worked to get intellectronica back15:51
intellectronicai was muted, i guess i'm not registered15:51
bacintellectronica: i think all unidentified users are muted15:51
intellectronicabut we do want unregsitered users to be able to talk in these channels15:51
rockstarintellectronica, I think the answer is yes, until we have a problem with it.15:52
rockstarbac, try /mode -q $~a15:53
rockstarThen take away intellectronica's voice.15:53
intellectronicarockstar: plotting against me again? o_O15:53
rockstarintellectronica, now talk!15:54
intellectronica1 2 3 test15:54
rockstar:)15:54
intellectronicacool, that worked! :)15:54
rockstarbac, I think we may need to do that in all our channels.15:54
bacrockstar: just did #launchpad15:54
bacrockstar: there seems to be another problem with #launchpad-reviews as it is unregistered15:55
bacrockstar: i cannot become an op in there15:55
rockstarbac, cool.  It doesn't look like you have op in launchpad-meeting either.15:55
bacrockstar: didn't try15:55
=== salgado-lunch is now known as salgado
asabilare there any plans to make/help making lp easy to deploy on private servers ?16:14
maxbCanonical seems to be rather staunchly against that16:15
asabilmaxb, I am aware of that fact, but are there any people interested in making it happen ?16:16
maxbI'd love it to happen, but I don't really have any time to lend to such an effort for the forseeable future.16:17
asabilmaxb, if you can provide directions, I can work on it16:18
james_wnoodles775_: no, the trigger was the next task we took on, hoping to provide an API call to trigger a recipe build16:20
noodles775_ok, thanks james_w16:20
=== matsubara-lunch is now known as matsubara
bacabentley: do you know about https://launchpad.net/people ?16:32
bacabentley: i point it out based on your CHR handover email16:32
abentleybac, no, I didn't.16:33
abentleybac, where should I have looked for it?16:33
bacabentley: it appears a link to that page got dropped from the front page when we went to UI3.016:34
abentleyI'm glad it's just a navigation issue, not a missing feature.16:34
kfogelbeuno: is http://paste.ubuntu.com/366934/ the right way to incorporate your suggestions to add an "order by: " label (along with getting rid of the word "by" in the selection items)?16:35
kfogelallenap: (see my above question to beuno; you might know the answer, as this is an easy one)16:36
allenapkfogel: I don't know that one, sorry :-/16:37
kfogelallenap: np16:37
beunokfogel, looks like it, yes16:41
kfogelbeuno: thanks16:41
=== jamalta is now known as jamalta-afk
=== joey is now known as Guest68133
=== Guest68133 is now known as Rinchen
=== jamalta-afk is now known as jamalta
kfogelintellectronica: in your comments on https://code.edge.launchpad.net/~kfogel/launchpad/506018-patch-report/+merge/18181, I didn't quite understand one of them:16:46
kfogel"Why do you need to read from the request directly? If there's a zope form16:46
kfogelcovering this, you can get the value from self.request.form. If there isn't a16:46
kfogelform then maybe we should consider having one, since it gives us validation16:46
kfogel"for free" (here it seems there's no validation at all).16:46
kfogel"16:46
kfogelintellectronica: not quite sure what you meant by "a zope form covering this".16:46
intellectronicawhat i meant is that you are reading parameters from the reply, but usually we use zope's form machinery, which renders the form using the definition of an interface, renders the form, validates the input (reloading the page with an error message) and finally collects the correct values in self.request.form16:48
intellectronicaif you're not going to use this because it's overkill, then i guess at least you need to make sure it's safe16:48
* kfogel reads carefully16:49
kfogelintellectronica: I'm not sure how to judge whether it's overkill or not.  This is just the "orderby" dropdown selector on the patches view list.  What's a good example of how to use Zope's form-processing machinery to do this instead?16:51
intellectronicakfogel: hmmmm ... maybe it's overkill given the time available. ideally this should be a zope form backed by an enum with all the options16:52
kfogelintellectronica: I grok what you're saying about validation.  Is the idea that, if we don't use Zope's way of doing this, then I will have to violate DRY because I'll have to repeat the valid values in the code, in order to validate them?16:52
intellectronicaso i'd say for now let's just make sure the input is safe and valid, and file a bug (and an XXX?) for the rest of the work16:53
kfogelintellectronica: I don't mind leaving an XXX, given the time constraints.16:53
kfogelintellectronica: I'll show you a diff hunk in a moment, just to make sure I'm on the right track.16:53
intellectronicacool16:53
bacabentley: https://bugs.edge.launchpad.net/launchpad-registry/+bug/50463316:54
mupBug #504633: add a link to /people page from / page <Launchpad Registry:Triaged> <https://launchpad.net/bugs/504633>16:54
abentleybac, thx.16:54
intellectronicakfogel: and exactly about how using an enum and a form for both the ui and validation will save us from repeating ourselves16:54
kfogelintellectronica: http://paste.ubuntu.com/366945/  (you'll see some other stuff in there, also due to your review, but the top of the hunk is what matters right now)16:57
kfogelintellectronica: I'll put the XXX in there too, of course16:58
intellectronicakfogel: cool16:58
kfogelintellectronica: is there a special tag or summary marker we use for XXX bugs, btw?17:00
intellectronicakfogel: tech-debt?17:00
intellectronicamaybe i'm inventing it, don't know17:00
kfogelintellectronica: I'll check, thx.17:01
kfogelintellectronica: https://bugs.edge.launchpad.net/malone/+bug/51558417:09
mupBug #515584: BugsPatchesView:batchedPatchTasks() should use a Zope form, instead of validating form values manually <Launchpad Bugs:Confirmed for kfogel> <https://launchpad.net/bugs/515584>17:09
intellectronicacool17:09
didrockshey17:25
didrocksI try to create a serie with Launchpadlib (not a milestone, nor a release, but a serie), but I can't find if the function is exposed. Any idea?17:26
maxbThere doesn't appear to be a relevant method on project at edge/+apidoc, so I would say no17:30
didrocksmaxb: ok, thanks, maybe I should ping jml on that, I don't want to do screenscraping for Quickly :)17:33
kfogelintellectronica: any hints for example code on how to get the bug icons to color along with importance?  (right now, the bug images stay grey, which is wrong of course)17:44
kfogelintellectronica: I'm starting at lib/lp/bugs/templates/buglisting-default.pt, but the code to do it apparently isn't in there.17:44
kfogeladeuring: I'm going to ping Jorge soon and give him an update.  How's the patch-age sorting progress?17:47
intellectronicakfogel: iirc you need to set their css class using something that contains the importance value. don't remember exactly, but will try to find an example now17:47
adeuringkfogel: slowly :( I'm still fighting with Storm...17:47
=== jtv is now known as jtv-eat
kfogeladeuring: ugh, sorry.17:48
kfogelintellectronica: I'll keep looking too.  thanks17:48
intellectronicahmmm, maybe not17:49
intellectronicakfogel: are you using bugtask/image:icon to render them?17:49
kfogelintellectronica: let me see17:50
kfogel             <td style="padding-right: 1em;"17:50
kfogel                 tal:content="patch_task/importance/title"17:50
kfogel                 tal:attributes="class string:importance${patch_task/importance/name}"></td>17:50
kfogelintellectronica: ^^17:50
intellectronicathis should give the colourful behaviour without anything additional in the template17:50
kfogelintellectronica: lib/lp/bugs/templates/bugtarget-patches.pt is where this is17:50
intellectronicakfogel: but that's the importance, which is textual, not the icon17:51
kfogelintellectronica: right now, patch_task/importance/title is giving the icon too, AFAICT17:51
kfogelOH17:51
kfogelintellectronica: no, it's this:17:51
kfogel<a tal:replace="structure patch_task/bug/fmt:link" />17:51
intellectronicaand that includes both the icon and the bug #?17:52
kfogelintellectronica: yup.  it includes icon, followed by fully linked text like this:17:52
kfogelBug #24: Bug I: six attachments (three patches, three non-patches).17:52
intellectronicahmmmm ....17:52
mupBug #24: uploading language po file causes extra lines to be appended <Launchpad Translations:Fix Released by carlos> <https://launchpad.net/bugs/24>17:52
kfogelintellectronica: (all of that text is a link to the bug)17:52
intellectronicathe problem, of course, is that bugs don't have importance, it's bug tasks that do17:52
kfogelintellectronica: right :-)17:52
kfogelintellectronica: but I think we list by task too17:53
kfogelintellectronica: so it's okay17:53
kfogelintellectronica: let me make a listing that has the same patch listed multiple times with different task importances, one sec17:53
intellectronicawhat happens if you remove the /bug/ and try fmt:link on the task directly? does it do anything sensible?17:54
kfogelintellectronica: okay, got it (with my sampledata, it's https://bugs.launchpad.dev/ubuntu/hoary/+patches)17:54
kfogellet's see...17:54
kfogelintellectronica: hunh.  it still works, but the bug icons are all the same color17:54
kfogelintellectronica: AH17:55
kfogelintellectronica: no, it works.  It just happens that the tasks for ubuntu/hoary were "confirmed" and "undecided" or something,17:55
kfogelso they showed up the same color.17:55
intellectronicayay17:55
kfogelconfirmed and new, actually17:55
kfogeloky17:55
kfogelwow17:55
kfogelintellectronica: that was the fastest fix ever.  thank you17:55
kfogelintellectronica: progress, just fyi: all of beuno's suggestions are now incorporated, and about half of yours so far.  I'm pushing branch up as I go.17:58
intellectronicaawesome17:58
intellectronicakfogel: i'll have to leave shortly, but will be back in ~2-3h for more17:59
kfogelintellectronica: great.  (Do you always work that late?)17:59
intellectronicano, but there's still so much to do and i did waste some of the morning and i do have to run out for an appointment, so i don't mind sitting for another hour or two when i'm back18:01
kfogelintellectronica: gotcha18:05
mrevellnytol18:14
=== EdwinGrubbs is now known as Edwin-lunch
kfogelintellectronica: ayt?19:07
kfogeladeuring: in intellectronica's comment here, http://paste.ubuntu.com/367021/, where do you think a good place to put the new helper function would be?  I'm thinking maybe in lib/lp/testing/factory.py somewhere, but not sure.19:08
=== jtv-eat is now known as jtv
jtvhenninge: heyyy, did I see pottery landing there?19:20
henningejtv: yes, you did!19:21
jtv\o/ !19:21
henninge:-D19:21
henningejtv: I got it figured out with mwhudson this morning19:21
jtvthat's great19:21
henningejtv: and I created a wiki page about it ...19:21
kfogelallenap: how's progress on person/team for patches view?19:22
henningejtv: https://dev.launchpad.net/EC2Test/Image19:22
jtvhenninge: even better... thanks for that!19:22
mwhudsongood morning by the way19:23
kfogelmwhudson: good morning.  Kind of early for you, no?19:23
henningemwhudson: Hi, thanks for the help!19:23
mwhudsonkfogel: 08:23? not really19:23
mwhudsonhenninge: your wiki page misses a step, understandably enough, as i don't think i told you about it :-)19:24
mwhudsonah, no19:25
henningemwhudson: oh, what is it?19:25
mwhudsonhenninge: i thought it skipping making the image public19:25
henningemarking the image as public?19:25
henninge;-)19:25
mwhudsonhenninge: i think i'll edit the page to include the command to do that19:25
henningemwhudson: please do, I did it through the AWS dashboard.19:26
mwhudsonhenninge: done19:26
henningecool19:26
mwhudsonhenninge: something i've gradually learnt is that the command line tools are actually more convenient than any of the other tools for some things :-)19:26
adeuringkfogel: that helper could go somewhere "close" to the test factory, i think. i.e. lib/lp/testing./factory.py19:27
adeuringI mean, it could go into that file19:28
kfogeladeuring: cool.  I'll have another question in a moment; chatting with jcastro right now about his timing.19:29
=== Edwin-lunch is now known as EdwinGrubbs
=== matsubara is now known as matsubara-afk
mwhudsonhm20:12
mwhudsoni wonder where my headset is20:12
=== salgado is now known as salgado-afk
kfogelbarry: got a sec to help me figure out why my attempt to use Python's glorious 'with' statement isn't working?20:24
thumperhi mwhudson20:25
mwhudsonthumper: hello20:26
kfogelAnyone here successfully used Python's 'with' statement in story tests?20:26
kfogelhttp://paste.ubuntu.com/367057/20:26
kfogeladeuring: ^^20:27
mwhudsonhm, doctests vc future20:27
adeuringkfogel: mwhudson mihgt be right... sorry for my obviously nonsensical suggestion...20:28
kfogelmwhudson: "doctests vc future" ?20:29
adeuringkfogel: also, we haven't yet heard about jtv's reason not to like !iwth" in conjunction with transactions.20:29
kfogelis that "vs" ?20:29
jtv"!iwth"?20:29
kfogeladeuring: hmmmm.  Okay, given this, I'm going to fall back (for now) on just making it a normal meta-factory method, with a user parametere.20:29
kfogeljtv: Python 'with' statement :-)20:29
jtvah :)20:30
mwhudsonkfogel: yeah, was meant to be vs20:30
kfogelmwhudson: oic20:30
adeuringjtv: as kfogel said. Barry suggested in the reviewer meeting that we should start to use "with"20:30
adeuringbut he said also that you have some objections20:30
jtvI think I've already seen it used.20:30
kfogelmwhudson: Oh well.  Once again, I give up something I used to get 15 years ago in Lisp, so that I can write code in the modern age.  *cough*  *cough*  :-)20:31
mwhudsonkfogel: you could just not use doctests <wink>20:31
jtvkfogel: My objections against "with" are more from a language design standpoint and database frontend design standpoint; I think it'd be nice to have it apart from some insane over-engineering that luckily is optional.20:31
kfogelmwhudson: I have a choice? :-)20:32
jtvkfogel: Although IMHO it also fails to solve the main thing it's almost useful for.20:32
jtvkfogel: so I'm not objecting to its use per se; but sadly it ends up being a very thin layer of syntactic sugar for "try: ... finally:"20:33
allenapkfogel: I've been spending some time looking at lp:~thekorn/launchpad/make_iperson_ihasbugs, which intellectronica said was related. It is, but not strongly (I think), so one won't hold up the other. I also discovered what the problem was in thekorn's branch.20:33
kfogelallenap: excellent (for thekorn, anyway :-) )20:34
allenapthekorn: If you're around, the problem is that the Person model class does not fulfil IHasBugs. However, IHasBugs is an ugly interface which needs some refactoring. This, I think, will fix IPerson.searchTasks() for the API without too much pain.20:36
thekornallenap, I think one problem was that IPersonPublic should not inherit from IHasBugs but IBugTarget20:36
noodles775_hi mwhudson, have you got time for a brief call when you're finished your standup?20:37
thekornallenap, btw, thanks for looking at this branch20:37
mwhudsonnoodles775_: yes, and it's just finished20:37
thekornallenap, give me one second, let me push what I have changed over the last couple of hours20:38
allenapthekorn: Well, the relationship is not really right. People can't have bugs targeted to them. But, if we move searchTasks() into a separate interface, say IBugTaskSearchable (argh, but I can't think of anything better right now), then IPersonPublic can inherit from that.20:38
allenapthekorn: And so can IHasBugs.20:38
thekornok, so IBugTarget means: "there can be bug targetted to this object"20:41
thekornthis logic is new to me, but makes perfect sense20:41
allenapthekorn: Yes, that's the idea I think.20:45
thumperabentley: I've noticed some diffs having a link saying there are conflicts, but there are no conflict markers in the diff shown20:45
allenapthekorn: But then IBugTarget should be that.20:45
thumperrockstar: what's the status of the scanner cherry pick?20:45
abentleythumper, I believe it's all diffs.20:45
thumperabentley: is it None vs '' ?20:46
rockstarthumper, failed tests on Friday.20:46
allenapthekorn: Actually, you know, I'm probably wrong :)20:46
abentleythumper, I think so.20:46
rockstarthumper, back in ec2 now.20:46
thekornallenap, but there is a good chance you know better than me ;)20:46
thekornwill change it back to IHasBugs, for now20:46
intellectronicakfogel: back20:52
kfogelintellectronica: hey there.  Everything is proceeding okay on my end; no questions yet, though there may be later.  You're here for how long, you think?20:53
intellectronicakfogel: 2h20:54
kfogelintellectronica: just fyi, I tried to use the new Python 'with' when rewriting that meta-factory in the story tests, but no dice.  I didn't spend too much time on it (see backscroll), before falling back to a traditional function.20:54
kfogelintellectronica: *nod*  unfortunately some of that time I'm on a phone call, but I'll try to dig up any questions early, before you're gone.20:55
intellectronicayeah, we can revisit that later. i never implemented a with thingster, so i don't know what's involved20:55
kfogelI'll be working on this late tonight, but that doesn't help you EU peeps :-).20:55
kfogelintellectronica: for now, I changed the name from 'make_thing()' to 'do_as_user()' (and that's pushed up now).  I want to move it into lib/lp/testing/factory.py and make it a helper method in class LaunchpadObjectFactory, named doAsUser().  Does that seem reasonable?20:56
intellectronicakfogel: yeah, that sounds like a good plan20:57
kfogel*nod*20:57
kfogelokay, thanks20:57
allenapAhem, where has testtools gone?21:02
thekornallenap, intellectronica, what I have is working now. next step is to do the right thing on the web api side: my idea right now is: someperson.searchTasks() should be equal to bugs.lp.net/~someperson21:06
thekornand I would also like to add some alias like method like searchCommentedTasks21:06
thekornalthough I don't like the mixture of tasks and bugs here21:07
thekorn(tasks cannot have comments), but this is a more general problem ;)21:07
allenapthekorn: Get searchTasks() working first, and landed :)21:08
thekornokidoki21:08
henningeHi, does anybody know if "combine-css" is broken in any way? It fails like this (make build) http://paste.ubuntu.com/367080/21:09
kfogelintellectronica: okay, inside that class I've defined doAsUser(self, ...) now.  But the code for do_as_user() in patches-view.txt invoked login() and transaction.commit() and logout().  Where was it getting those functions from?  In the factory.py context, they're not defined, i.e.:21:10
kfogel    NameError: global name 'login' is not defined21:10
thekornallenap, another question: I started working on this some time ago, should I merge recent changes to the main launchpad branch into it, or should I just ignore them (for now)21:10
allenapthekorn: Ah, that's why I'm missing stuff. Yes, definitely merge devel every so often.21:11
thekornok21:11
intellectronicakfogel: you can grep for where they're imported from. i don't remember off the top of my head, and they're imported magically into doctests, so i'll try to search for them in python files21:12
kfogelintellectronica: yeah, I figured it must be magic somewhere :-)21:13
intellectronicakfogel: from canonical.launchpad.ftests import login, logout21:13
kfogelintellectronica: what file ar eyou in?  ( I was starting with bin/test)21:14
mwhudsoni think you can import them from lp.testing as well21:14
allenapthekorn: I just pulled your branch again and you'd added official_bug_tags to Person, the same as I had :) I think official_bug_tags needs to move to another interface. It makes no sense at all for people and teams (at the moment anyway).21:14
kfogelmwhudson: you were right21:15
thekornallenap, so, now I'm confused, official_bug_tags is already in its own interface IOfficialBugTagTargetPublic, but I don't get how this is injected into IHasBugs21:22
allenapthekorn: It's defined in IHasBugs.21:23
thekornoh right21:23
allenapthekorn: It should be removed from IHasBugs. It was probably an oversight that didn't break anything.21:23
allenapthekorn: Of course, something will probably rely on it :) Test suite to the rescue!21:24
thekornallenap, how do I find relevant tests to such changes?21:24
allenapthekorn: That's hard. You could just run every test with "bug" in the name for a fair guess. If you have a powerful machine it'll probably take less than an hour.21:25
thekornuhh, so no test driven development for me ;)21:26
allenapkfogel: I /think/ you committed the test data changes to lp:~kfogel/launchpad/506018-patch-report.21:33
kfogelallenap: aaaaaaaaack.21:35
kfogelI did.21:36
kfogelallenap: thank you.  I can easily revert that.21:36
kfogelallenap: will do after phone call21:36
allenapkfogel: Cool, it's not bothering me, so no urgency.21:36
thekornwhat is the correct way to merge recent changes from the ../devel branch?21:38
thekornjust bzr merge, or is there some helper script which does the right thing?21:39
thekorn(updating dependencies etc)21:39
maxbI don't think there's any "right thing" that needs doing on top of "bzr merge"21:39
maxbIn some circumstances you might need to run update-sourcecode21:39
maxbBut update-sourcecode takes long enough that I wouldn't want to run it after every merge just in case21:40
allenapthekorn: It's worth having a local copy of devel (I keep a local copy of devel, db-devel, stable and db-stable).21:41
allenapthekorn: rocketfuel-get will maintain devel for you.21:42
allenapthekorn: pulling all source deps, etc.21:42
thekornright, that's what I have too21:44
allenapthekorn: Then I just merge from the local copy of devel. Your branch is old, so it's probably worth doing a make clean && make.21:45
thekornok, trying ...21:45
mwhudsonground control looks pretty nifty21:55
intellectronicayeah? does it call major tom?22:06
allenapkfogel: I have a branch that registers the BugPatchesView for people and teams: lp:~allenap/launchpad/patch-report-for-people-and-teams-bug-506018. Now I'm off, so cheerio until tomorrow.22:09
james_wcould someone from the bugs team help me work out why we can't edit bugs through the API anymore?22:11
james_wthe new bug heat stuff doesn't edit every bug every few seconds or anything does it?22:12
james_wit is blocking us doing syncs without a lot of pain22:18
wgrantabentley: What happened to landing that slave branch?22:25
abentleywgrant, the test suite is a much bigger pain to run than it was before windmill became mandatory.22:26
abentleywgrant, my latest attempt has failed with "address in use".22:26
wgrantabentley: Oooh yes.22:26
wgrantI gave up on running the whole thing locally, since I couldn't get Windmill to run properly.22:27
intellectronicawgrant: really? when did you last try? it used to be a nightmare but it works pretty smoothly for me now22:32
wgrantI haven't tried since around the sprint¸ IIRC.22:34
abentleyintellectronica, so far, running under xvfb has led to lots of spurious errors.  I'm now running under screen, with a vnc session as my DISPLAY.22:34
intellectronicai never tried running under xvfb locally, i just let it fire up firefox22:35
bigjoolsthere was a bug in xvfb that was fixed22:35
intellectronicakfogel: say, in your doctest, why do you use user_browser? shouldn't you be able to view this page as an anonymous user?22:37
intellectronicasorry for not spotting this earlier, b.t.w22:37
james_wgrr, task_age22:37
james_wwhat's that for?22:37
intellectronicajames_w: ask bdmurray - he uses it for something, not sure what22:38
intellectronicajames_w: and why grrr? is it creating any problems for you?22:38
wgrant        return self.age.seconds22:38
wgrantYes, that's going to break everything.22:39
kfogelintellectronica: very good question.  Not sure; may have just been a cut-and-pasto on our part.  I'll try with anon.22:39
intellectronicakfogel: cool22:39
intellectronicawgrant: please elaborate22:39
james_wintellectronica: you can't edit bugs over the API, as that's changing every second22:39
kfogelallenap: yay!  Thank you.  I'll check out your branch.22:39
wgrantintellectronica: That value will change every second, as james_w says.22:39
wgrantWhich is going to mean that holding a bug across a second boundary then saving it will fail with a 412.22:39
james_wtask has date_created, can't task_age just be calculated from that?22:40
james_wI'm pulling devel to have a look at the code myself22:40
intellectronicajames_w, wgrant: wow, haven't thought about that. can you please file a bug?22:40
james_wintellectronica: sure, but I think we will want a CP for this22:40
intellectronicai think it's worth getting rid of that. it's easy to calculate age locally22:40
intellectronicajames_w: maybe. it's easy to use the api from edge. in fact i assume most people do22:41
intellectronicai'll happily review a branch that kills BugTask.age :)22:41
mwhudsonrockstar: hi22:42
rockstarmwhudson, hey there.22:43
rockstarmwhudson, I assume you have some reviews you need from me.22:43
mwhudsonrockstar: actually no22:43
mwhudsonrockstar: i was wondering what the status of your scanner fixes is22:43
mwhudsonrockstar: because i want to land a bzr upgrade, but that will probably conflict with them22:44
james_wbug 51574722:44
mupBug #515747: Exporting task_age breaks editing over the API unless you PATCH within a second of GET <Launchpad Bugs:New> <https://launchpad.net/bugs/515747>22:44
intellectronicajames_w: thanks22:45
rockstarmwhudson, I got disconnected, so I didn't see what you needed.22:46
mwhudson<mwhudson> rockstar: actually no22:46
mwhudson<mwhudson> rockstar: i was wondering what the status of your scanner fixes is22:46
mwhudson<mwhudson> rockstar: because i want to land a bzr upgrade, but that will probably conflict with them22:46
rockstarmwhudson, it's in ec2 running against devel right now.22:47
rockstarmwhudson, it should land in the next few hours.22:47
mwhudsonok22:47
rockstarmwhudson, I'll ping you when it lands.22:47
mwhudsonrockstar: what's the url?22:47
rockstarmwhudson, for what?22:47
mwhudsonrockstar: your branch22:47
rockstarmwhudson, one sec.22:47
rockstarmwhudson, bzr lp-open22:48
rockstarEr...22:48
rockstarmwhudson, https://code.edge.launchpad.net/~rockstar/launchpad/scanner-events22:48
mwhudsonrockstar: :-D22:48
rockstarmwhudson, the Ctrl-C and middle click has different behavior in different apps.  :)22:49
mwhudsonyar22:49
mwhudsonrockstar: thanks22:49
james_whttps://code.edge.launchpad.net/~james-w/launchpad/kill-task_age/+merge/1841822:50
intellectronicajames_w: out of curiosity, when first running into this problem, were you using edge or production?22:50
james_wis that the right target to get it on edge ASAP?22:50
james_wintellectronica: edge22:50
james_wit happens on both22:50
intellectronicajames_w: you rock. waiting for the diff22:50
james_wI'm guessing this change landed in the last week22:50
mwhudsonjames_w: yes, that's the right target22:51
intellectronicajames_w: yes, i know it happens on both, i'm just trying to evaluate whether it's worth a CP22:51
james_wwell, edge for a start please so that we can process syncs without a lot of manual work22:51
james_wthen see if anyone complains :-)22:51
james_walso note that if heat is exposed on IBug it will cause some people headaches if you are using jobs to calculate it22:52
james_wthat's not really fixable, so you should document the way to handle it22:53
intellectronicajames_w: r=me. can you land or would you like me to land this on your behalf?22:54
james_wplease do22:56
james_wI have no powers :-(22:56
intellectronicajames_w: sure thing22:57
thekornwhat is a CP ?22:57
intellectronicathekorn: Cherry Pick22:58
mwhudsonrockstar: yes, my branch conflicts with yours22:58
intellectronicapatching the production servers between releases22:58
mwhudsonrockstar: a ping when it's landed would be nice22:58
thekornah ok22:58
mwhudsonor i can just subscribe to the branch i guess22:58
rockstarmwhudson, sowwy  :(  I'll ping you when it's there.22:58
mwhudsonrockstar: blame bzr!22:58
rockstarmwhudson, :)22:58
intellectronicajames_w: it's on EC2. with enough luck it'll make it in before the nightly rollout22:59
james_wthanks intellectronica22:59
intellectronicajames_w: thanks a lot for uncovering and fixing this. sorry for the inconvenience22:59
intellectronicakfogel: are you aware of your tests not completing successfully?23:02
kfogelintellectronica: ??23:02
kfogelintellectronica: no, they succeeded for me.  what are you seeing?23:02
kfogelintellectronica: you mean patches-view.txt, right?23:03
intellectronicaoh, maybe i'm talking nonsense and it's my fault. let me go through them more thoroughly  before i waste your time23:03
intellectronicayes, patches-view.txt23:03
kfogelintellectronica: let me know if there's an issue, I'll be here23:04
kfogelintellectronica: just ran them again -- success23:04
intellectronicakfogel: false alarm. stupid me. i've changed the behaviour when there are no patches and added a test, and forgot to amend a few of the existing ones.23:04
kfogelintellectronica: ah, np23:05
=== jamalta is now known as jamalta-afk
didrocksintellectronica: btw, I tried to checkout launchpad and I have an error when running "make schema"23:09
kfogelintellectronica: what's the "proper23:09
kfogel" way to revert a change to a file in bzr?23:09
kfogelintellectronica: I could just diff -rNEW..OLD it and commit the change, and it would work.  But is there a best practice here?23:09
kfogeldidrocks: what's your error?  (can you paste at paste.ubuntu.com?)23:10
intellectronicakfogel: bzr revert -r revno [file_path]23:10
didrockskfogel: http://paste.ubuntu.com/367149/23:10
kfogelintellectronica: that doesn't do anything ugly to mergeinfo in our branches?  We're okay with it?23:10
kfogelintellectronica: (some recent burns on the emacs devel list have made me very cautious)23:10
intellectronicakfogel: i'm not sure what exactly you're asking, but i don't think it does anything bad. it forgets all the revisions you rolled back23:11
kfogeldidrocks: you've followed every step at https://dev.launchpad.net/Getting to get to the 'make schema' point?23:11
kfogelintellectronica: sounds good.  (well, other things changed in that rev, and I'm not reverting them, so I don't want it to forget about the entire rev...)23:11
didrockskfogel: right, I've checked twice :)23:12
intellectronicakfogel: right. i'm not sure how it works if you only revert a single file23:12
intellectronicai doubt that it will forget the entire revision, but it's worth checking23:12
kfogelintellectronica: ok, thanks.  I'll read the help and make sure.  I can alwys uncommit if it's bogus.23:13
didrocks(I didn't notice any error, but let me check back for the last part of the script which should have done lp-branches/devel/utilities/link-external-sourcecode call)23:13
kfogeldidrocks: and you got no errors when you ran rocketfuel-setup?23:13
didrockskfogel: oh bad, didn't notice that error first: http://paste.ubuntu.com/367157/23:14
didrocksI'm on lucid23:14
kfogeldidrocks: ah.  Well, if bzr hiccups, things are probably not going to work :-).  I'm embarrassed to say I'm not on Lucid yet myself.23:16
kfogeldidrocks: is bzr working for you otherwise?23:17
didrockskfogel: right, I'm using it more than heavily :)23:17
didrocks(packaging and Quickly)23:17
wgrantLP needs a couple of tweaks to work on Lucid, but that isn't one of them.23:17
kfogeldidrocks: I would say google for some unique part of "bzr: ERROR: bzrlib.errors.ErrorFromSmartServer: Error received from smart server: ('error', "'Inter1and2Helper' object has no attribute 'source_repo'")23:19
kfogel"23:19
didrockskfogel: right, found https://bugs.edge.launchpad.net/bzr/+bug/51532523:19
mupBug #515325: 'Inter1and2Helper' object has no attribute 'source_repo' <Bazaar:Confirmed> <https://launchpad.net/bugs/515325>23:20
didrocksquite fresh bug :)23:20
kfogeland see if this is solveable.  If you can get Bazaar behaving okay, at least you could then make it to the roadblocks wgrant is thinking of!23:20
kfogeldidrocks: hmmm.  yeah, that's fresh.  I'm not sure what to suggest, except maybe downgrading bzr?23:24
kfogelfor now23:24
didrockskfogel: do you think I just can run again just make install?23:26
didrocksas it seemed to have crashed in that part23:26
didrockskfogel: this version of bzr has almost one month. I don't think I can afford to downgrade it23:29
* mwhudson lunches23:37
kfogeldidrocks: well, I would expect it to just crash again, but couldn't hurt to try...23:39
lifelessthumper: https://bugs.edge.launchpad.net/launchpad-code/+bug/51343223:57
mupBug #513432: AttributeError: 'Inter1and2Helper' object has no attribute 'source_repo' <fetch> <Bazaar:Fix Released by mbp> <Bazaar 2.0:Invalid> <Bazaar 2.1:Fix Released by mbp> <Launchpad Bazaar Integration:New> <https://launchpad.net/bugs/513432>23:57
lifelessthumper: this is affecting folk23:57
lifelessthumper: fixed in bzr, but you need to roll out newer bzr to fix it on lp23:58

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