/srv/irclogs.ubuntu.com/2009/10/30/#launchpad-dev.txt

mwhudsonthumper: heh00:06
thumpermwhudson: want to review it?00:07
mwhudsonthumper: yeah alright00:07
* thumper sends00:07
thumpermwhudson: sent, now just flowing through the ether00:13
mwhudsonthumper: ok00:16
* thumper heading afk for a while00:25
thumpermwhudson: hmm, my bzr send caused an oops :(00:28
thumperI'll look at that later00:28
thumpermwhudson: did a manual propose00:28
mwhudsonok00:29
mwhudsonthumper: i'm going to get this script running with spm and then break for lunch though00:30
spmmwhudson: it may take a while; that's a huge patch for my itsy network connection.00:30
mwhudsonspm: 75k?00:31
spmmwhudson: your irony detector is broken. ;-)00:32
mwhudsoni see :)00:32
mwhudsonit needs lunch too, it seems00:32
spmthat'd do it.00:32
wgrantUhoh.01:40
wgrantSome bits of LP use string sorting on version numbers.01:40
wgrant(DistributionSourcePackageView.active_series is the most obvious so far)01:40
mwhudsoni guess we've got one more release before that bites us on the arse?01:58
wgrantmwhudson: No. Lucid exists now.02:25
wgranteg. see https://edge.launchpad.net/ubuntu/+source/dpkg02:25
wgrantJust display glitches, fortunately.02:26
wgrantBut still had me confused that Lucid wasn't yet initialised.02:26
mwhudsonwgrant: oh yeah02:28
* Ursinha looks at spm03:11
spmUrsinha: yo!03:11
Ursinha:)03:11
Ursinhaspm, hey :) are you busy now?03:12
Ursinhaterribly-dying busy?03:12
spmmind you - that's an impressive 15000km stare you have :-D03:12
Ursinhahahaha03:12
spmUrsinha: nothing that can't be put aside; what's up?03:12
Ursinhaspm, it's a simple question, that maybe has a simple answer :)03:12
Ursinhaspm, I see emails of a garbo-hourly script failing03:13
Ursinhado you know why is it happening?03:13
spmhahahahaa oh the irony.03:13
Ursinhawhy? :)03:13
spmI was just chasing that and emailed stub about 15 mins ago :-)03:13
Ursinhaoh, hehe03:13
spmafaict, it is working; but isn't logging to scriptacivity.03:13
Ursinhahmmm, I see03:13
spmthere's an error in the log file; that may be glitching the "success"; but locks are opened and removed; so it looks good.03:14
spmcheckwatches was hung - if that's the next question? :-)03:14
wgrantOf course. It's checkwatches. It hasn't worked for ages.03:15
thumperspm: how's our script going?03:38
spmthumper: branch-distro ? you've not read mwh's email?03:39
mwhudsonthumper: it's not :(03:39
thumperah03:39
thumperbum03:39
mwhudsonyes03:41
thumpermwhudson: so... my review?04:05
mwhudsonthumper: sorry forgot, am on it now04:05
mwhudsonor would be if launchpad was behaving04:05
thumpermwhudson: so... my oops with send oopsed due to a branch lock04:06
mwhudsonthumper: bzr lock or database lock?04:07
mwhudson"!" either way mind04:07
thumperbzr lock04:07
thumpermwhudson: the scanner acquires a branch lock04:07
thumperso...04:07
mwhudsonno it doesn't04:07
* thumper thinks04:07
thumperah04:07
mwhudsonor at least, it's only a read lock04:07
thumperI'm pretty sure it does04:07
mwhudsonit access the branch over read only http04:07
* thumper looks04:07
mwhudsonif it can obtain an exclusive lock over that transport something very strange is going on! :)04:08
thumperyep, lock-read04:08
thumperso...04:08
thumperhow does that work then?04:08
mwhudsona read lock just means that the bzr client assumes the branch won't change under it04:09
mwhudsonit caches revnos & probably some other things04:09
thumperso...04:10
mwhudsonthumper: i would guess the lock was from the puller04:10
thumperhmm...04:10
thumperpossibly04:10
thumperI guess there isn't much else that tries to lock it04:11
lifelessmwhudson: no, it doesn't assume it won't change04:12
lifelessmwhudson: it presents a stable view of the data to the holder of the read lock04:12
mwhudsoner i guess that's more accurate yes04:13
lifelesse.g. successive calls to last_revision() are the same within a read lock04:13
lifelessold formats did mutually exclude writers04:13
lifelesswhen we used os locks for reads of branch/repository04:13
* thumper goes to purchase many pizzas to feed a gaggle of girls04:14
mwhudsonthumper: i'll have your branch reviewed when you get back i hope04:14
* thumper is back04:44
mwhudsonthumper: ok i was wrong then04:47
thumpermwhudson: :)04:47
thumperI did look though04:47
mwhudsonthumper: the only concern i have really is what it will look like if the attachment isn't actually a diff04:47
thumpermwhudson: the diff formatter looks at the first character04:48
thumperto decide how to colour it04:48
mwhudsonthumper: oh ok04:48
thumperbut yes04:48
thumperI did consider possibly doing text/plain different04:48
mwhudsonthumper: what would happen with say image/jpeg?04:49
mwhudsondo they get filtered somewhere else?04:49
thumperbut decided against it04:49
thumperthe diff formatter is pretty dumb04:49
thumpermost likely you'll get line numbers and everything plain04:52
thumperfor things that aren't actually diffs04:52
thumpermwhudson: yes, not shown05:03
mwhudsonthumper: cool05:03
thumpermwhudson: that is a different bug05:03
mwhudson:)05:03
thumperor feature05:03
mwhudsonnot displaying random binaries as text is definitely a feature05:03
thumpermwhudson: there is a filter on text/plain, text/x-diff, text/x-patch05:10
mwhudsoncool05:10
* mwhudson EOWs05:10
thumpermwhudson: have a good weekend05:11
mwhudsonthumper: you too!05:11
=== Ursinha is now known as Ursinha-afk
jtvstub: I think I've got my memory hog.  Essentially the same as in phase 2 of the algorithm.  Generalizing the same solution to re-apply it.  Care to review it in a few?05:32
=== lifeless_ is now known as lifeless
=== mzz_ is now known as mzz
jtvstub: got my branch ready... would you be willing to (1) do a test run and (2) review it?06:26
jtvstub: you already know a lot of what goes on in there, so you're probably the best reviewer at this point.06:26
stubk06:36
stubjtv: k06:36
stubjtv: What was the branch again?06:37
stubhttp://bazaar.launchpad.net/~jtv/launchpad/scale-message-sharing-migration/06:37
stubjtv: I'll need to know the last unreviewed revision too06:38
=== jelmer is now known as Guest85358
jtvhi henninge07:11
jtvstub: I must be off... any news?07:11
=== Guest85358 is now known as jelmer
=== jelmer is now known as Guest78392
=== Guest78392 is now known as jelmer
henningeHi jtv, I somehow missed your hailing ...07:50
jtvhenninge: never mind, I'm not here07:58
henningejtv: oh right, that's why I didn't notice you, then ... ;)07:59
jtvhenninge: no, no word07:59
henningejtv: I'll be relocating now08:02
adeuringgood morning08:27
mrevellMorning!09:34
henningeHello!09:49
henningeDoes anybody have an idea what this might be about? http://paste.ubuntu.com/304910/09:49
noodles775henninge: usually it means that you're not currently logged in?09:50
henningenoodles775: oh, that is true (that I am not logged in)09:50
noodles775great.09:50
henningenoodles775: I am doing this in a pagetest09:50
noodles775henninge: yep, so pop a login('foo.bar@canonical.com') before it (or with relevant user).09:51
stubhenninge: Some code expects you to be logged in, such as something trying to security wrap an object.09:51
jmlgood morning09:54
henningenoodles775, stub: Thank you, that was it. I needed to logout, too, so that the rest of the test can run as before.09:54
noodles775np.09:54
=== jtv is now known as jtv-afk
maxbIs there a standard procedure for updating the version number of Launchpad in the Launchpad sourcecode documented anywhere?11:59
salgadomaxb, I don't think so.  do you just want to know how to do it or are you planning to create such doc if one doesn't exist?12:01
maxbA bit of both. Mainly I think it sucks that some places still say 2.2.312:01
salgadoreally?  where does it say that?12:02
salgadoall places which mention the release should be using modules/canonical.launchpad.versioninfo/release12:03
maxbsalgado: setup.py12:04
salgadoand that call I pasted above would read the version number from /version.txt12:04
salgadomaxb, would it be possible to change canonical/launchpad/versioninfo.py to read the version number from setup.py?  that way we'd have that info in only one place12:12
* wgrant wouldn't mind another set of eyes on bug #54730.12:12
mupBug #54730: launchpad buildd abort does not work as expected <Launchpad Auto Build System:Triaged> <https://launchpad.net/bugs/54730>12:12
wgrantAlthough I guess there are few left who know lp-buildd :(12:13
maxbsalgado: How about doing this in setup.py instead: ?12:16
maxbimport imp12:16
maxbversioninfo_module = imp.load_source('setup_py_versioninfo',12:16
maxb        'lib/canonical/launchpad/versioninfo.py')12:16
maxb__version__ = versioninfo_module.release12:16
salgadothat adds one more level of indirection12:19
salgadothe actual version would go version.txt -> versioninfo -> setup.py12:19
salgadoif we move the version to setup.py, it'd go setup.py -> versioninfo.py12:19
maxbThe problem with putting it in setup.py is that you need to be able to load it without executing any of the setuptools gumph12:20
maxbI guess we could move almost all of the current setup.py inside an if __name__ == '__main__'12:21
salgadoyeah, that'd work12:22
wgrantHow do you get at setup.py from versioninfo.py?12:24
maxbSame way you get at bzr-version-info.py ?12:25
wgrantAh. I see.12:26
maxbThough maybe rather than moving all of setup.py into an if-block, it would be neater to have setup.py and c.l.versioninfo both get the version from a oneliner lp_version_info.py ?12:27
=== mrevell is now known as mrevell-lunch
=== mrevell-lunch is now known as mrevell
henningeUrsinha: what are you trying to achieve?14:14
Ursinhahenninge, good!14:14
Ursinhahenninge, I'm trying to add a Last Edited column to the +translations pages, like this one: https://translations.launchpad.dev/alsa-utils/trunk/+translations14:15
henningeoops, no dev running here atm14:16
henningeUrsinha: I think you are on the wrong track14:16
Ursinhaso I've added it to the template, and am trying to use the fmt:datetime do display the date the same way it's displayed in this one: https://translations.edge.launchpad.net/ubuntu/karmic/+lang/pt_BR/+index14:16
henningeUrsinha: you are trying to format a datetime object14:16
Ursinhahenninge, hmm14:16
Ursinhago ahead14:16
henningewait14:16
Ursinhasure :)14:17
henningeso, what goes behind the colon (:) is not what you are trying to format, but *how*14:18
henningelet me look up what it's called again14:18
Ursinhahenninge, I know that14:18
Ursinha:)14:18
Ursinhahenninge, the point is what do I have to do for it to use the fmt:datetime14:19
UrsinhaI couldn't find out what the other page does that I'm not doing14:19
UrsinhaI'm getting a traversal error14:19
henningeUrsinha: sorry, I just saw that there is actually a formatter called datetime, didn't know that14:19
Ursinha:)14:19
henningeUrsinha: show me the code14:20
henninge;)14:20
Ursinhahenninge, sorry, sometimes I assume that you guys are translations code gods and know everything about it14:20
Ursinhahenninge, let me try something else here, a moment, please :)14:20
henningeI have actually found out how to use a formatter from python and found that pretty cool14:20
henninge;-)14:20
Ursinhahenninge, mind to explain? :)14:21
henningeI am just saying that I am exploring these things myself in varying depths14:21
Ursinhahenninge, oh, I see :)14:24
Ursinhahenninge, I think I found out the problem14:26
UrsinhaI have to have a Datetime object for it to let me use the formatter14:26
UrsinhaI may be wrong, but so far is my best guess14:27
henningeUrsinha: I am pretty sure you need a Datetime object!14:27
henninge;-)14:27
henningeUrsinha: what were you trying to use the formatter on?14:27
Ursinhahenninge, in what I thought that was a Datetime object, but realize it's not :)14:28
henningeah14:28
UrsinharealizeD14:28
henningeUrsinha: that's excusable ;-)14:28
Ursinhahenninge, hehe :)14:28
henningesinzui: ping14:28
sinzuihi henninge14:29
henningehi sinzui14:29
henningesinzui: I am trying to triage bug 46289114:29
mupBug #462891: TraversalError on +export <oops> <Launchpad Translations:New> <https://launchpad.net/bugs/462891>14:29
henningesinzui: the oops happens when trying to access user/preferredemail/email14:29
sinzuiit is not visible14:30
sinzuithe app genuinely does not have permission to see it14:30
henningesinzui: does that happen when the user hides his/her email address?14:30
henningesinzui: although I tried that and it did not reproduce14:31
sinzuihenninge: Yes. In many mail/login usage, we use something link removeSecurityProxy(user.preferredemail).email14:32
sinzuihenninge: in this tales example. we simply do not have permission to show it. we should not14:32
henningesinzui: ok14:33
henningesinzui: is there an easy way to check in tales if we have that permission of not?14:33
sinzui|nothing helps14:33
sinzuiit swallows exceptions14:34
henningesinzui: good idea, thanks14:34
sinzuihenninge: in tales you might also do14:37
sinzui          <tal:visible-email14:37
sinzui            condition="context/owner/preferredemail/required:launchpad.View">14:37
sinzui            (<span tal:replace="context/owner/preferredemail/email" />)14:37
sinzui          </tal:visible-email>14:37
henningesinzui: cool, thanks14:37
Ursinhahenninge, so, I think I'm missing something14:43
Ursinhait seems the thing I'm returning is a datetime object14:43
* Ursinha just thought about make harness14:43
Ursinhaanyway, it seems the object is correct14:43
Ursinhabut I may be missing defining the property somewhere14:43
Ursinhahenninge, are you dying busy? :)14:45
henningeUrsinha: sorry. Still trying to triage (reproduce) that traversal error14:46
henningeUrsinha: define which property?14:47
Ursinhathe lastChangedDate that I want to add in that page14:47
henningeUrsinha: can you push the branch and let me have a look at it?14:48
Ursinhahenninge, sure, but it's a mess, just a warning :)14:48
* henninge is used to messes14:49
BjornT_mars, gary_poster: can any of you take a look at https://code.edge.launchpad.net/~bjornt/lazr-js/download-cache/+merge/14220? it's a quick fix, so that people won't have to know how to set up a download-cache14:52
gary_posterBjornT_: on call, will check back14:53
marsBjornT_, on a call for a bit14:53
mars:)14:53
henningeUrsinha: I cannot set the bug 462891 to triaged or set its importance. I have insufficient permissions for that.14:54
mupBug #462891: TraversalError on +export <oops> <Launchpad Translations:New> <https://launchpad.net/bugs/462891>14:54
henningeUrsinha: ???14:55
Ursinhahenninge, how come?14:55
henningedunno14:55
henningeThe following errors were encountered:14:55
henninge    * Only Bug Supervisors may change status to Triaged.14:55
Ursinhahenninge, try again14:55
sinzuihenninge: are you logged in14:55
Ursinhaeh eh14:55
henningesinzui: oh, I was fooled14:55
henningeUrsinha: ^14:56
Ursinhathere should be something showing you're not logged in14:56
Ursinhalike a different color14:56
Ursinhadon't know14:56
Ursinhahenninge, was that the problem?14:56
henningeI logged myself out in another tab14:56
henningebut the bug page still looked like I was logged in ...14:56
Ursinhahenninge, oops :)14:57
Ursinhahenninge, happens to me sometimes, and my brain always fail to realize that could be this simple before panicking14:58
Ursinhahenninge, btw, thanks for triaging that bug14:58
henningeUrsinha: np14:58
henningeUrsinha: btw, where those the only two occurances of that particular OOPS? I have not been able to reproduce the bug and it would be interesting to know how often it occurs.15:03
henninges/where/were/15:03
Ursinhahenninge, we had about 40 a day since I've reported the bug15:03
henningeoh!15:03
Ursinhahenninge, see here: https://devpad.canonical.com/~lpqateam/oops-summaries/lpnet-2009-10-29.html#exceptions15:05
Ursinhafor example15:05
=== salgado is now known as salgado-lunch
henningeUrsinha: oops.py should display the *account* name (which is unique), not the display name, which may appear gazillion times15:15
henningeUrsinha: who maintains oops.py?15:15
Ursinhahenninge, matsubara-afk does15:16
henningeUrsinha: is there a branch somewhere?15:16
Ursinhahenninge, yes, a moment, please15:16
marsbeuno, on a merge proposal, why is there a [Review] link and a [Claim Review] button?15:30
henningeUrsinha: did you ever push that branch of yours?15:30
Ursinhahenninge, pushing, pushing15:30
Ursinha:)15:30
beunomars, I wish I had a nice answer to that15:30
Ursinhadanilos is alive, I'll rip him them :P15:30
Ursinhathanks henninge :)15:31
henningeUrsinha: oh, that would be nice. I have guests tonight and wanted to cut it short. Is that ok with you?15:32
Ursinhahenninge, if it's fine with danilos than it's fine by me15:33
Ursinha:)15:33
henningeUrsinha: Oh, I thought you were already talking to him15:34
daniloshenninge, she was, I'll be happy to take on bug 462891 (we should always show that address, so removeSecurityProxy should do)15:34
mupBug #462891: TraversalError on +export <oops> <Launchpad Translations:Triaged> <https://launchpad.net/bugs/462891>15:34
daniloshenninge, however, I am worried that this might happen when there's no preferred email as well15:35
henningedanilos: I was not even trying to fix it, just to reproduce it15:35
daniloshenninge, as you can see, we are trying to traverse into None.email, so that's probably why it happens15:36
henningedanilos, Ursinha: actually, I thought we were still talking about Ursinha's fmt:datetime problem ...15:37
daniloshenninge, heh, I am not sure about what we are talking about now :)15:38
Ursinhadanilos, I was asking henninge's help because I thought you weren't there, but about the bug I'm fixing, not the bug henninge is15:49
Ursinha:)15:49
henningeI am a bug?15:49
daniloshenninge, no, you just look like one15:50
rockstarabentley, hi15:54
abentleyrockstar: Hi.15:54
rockstarabentley, so, I'm trying to compare to jobs, using your implementation of __eq__ and it's complaining that context is a ForbiddenAttribute - is that by design?15:55
abentleyrockstar: No.15:56
rockstarabentley, so it's okay that I add it to the interface to be accessible?15:56
abentleyrockstar: Doesn't forbidden mean it's not even on the underlying model object?15:57
rockstarabentley, I don't think so.15:57
abentleyrockstar: I thought it was unauthorized if you don't have permission, forbidden if it doesn't exist.15:58
* rockstar checks15:58
rockstarabentley, no, if if rSP an object, context is there.  In fact, the context should always be there in this case, since the context is the BranchJob15:59
danilossinzui, salgado-lunch, hey, just to confirm one thing: we can have logged in users into Launchpad with no preferred email set or no? (re bug 462891)16:00
mupBug #462891: TraversalError on +export <oops> <Launchpad Translations:Triaged> <https://launchpad.net/bugs/462891>16:00
abentleyWhat is rSP?16:00
danilosabentley, removeSecurityProxy?16:00
sinzuidanilos: I do not think that is possible.16:00
abentleyOkay, so expose it on the API.16:00
sinzuidanilos: I spoke to henninge about that16:01
rockstarabentley, great, thanks.16:01
sinzuidanilos: User can set the email address to be hidden and we honour it16:01
danilossinzui, I know you did, but the thing is that we try to show email only to users themselves, and we should have privileges to do it16:01
danilossinzui, this page is rendered when user is requesting a download, and we display email address so they know where they'll get an email when the export is ready for download16:02
sinzuidanilos: have you tried the proven tales fraement to access a hidden email address16:02
danilossinzui, however, the traversal error tries to get email property on None, meaning that preferredemail is None, and not inaccessible16:02
sinzuidanilos: hmm16:03
danilossinzui, at least that's how I read it, maybe I need to look into preferredemail implementation16:03
sinzuidanilos: I still state that the login server should never let a user login without a preferred email address. I do not think anyone can login without creating a profile, and that step ensures a preferred email address.16:03
sinzuidanilos: do we know the user?16:04
danilossinzui, we've had a few bugs with person/account split; this is happening with more than one user, and we haven't seen this ever before16:04
sinzuiI see the user just came from login16:06
sinzuiI cannot believe we let that launchpad id exist16:06
danilossinzui, yeah, that was exactly my opinion when I saw the exclamation mark in the user ID, but that might be part of the displayname16:08
sinzuidanilos: i think we need to query the person table of staging to see if this a real user. I hope that id is person, not account16:09
sinzuidanilos: He has an email address https://edge.launchpad.net/~iqt16:12
danilossinzui, yeah, so I guess you were right about preferred email being returned as None when it's hidden (though, shouldn't it be hidden from us as well?)16:13
sinzuidanilos: You are special. You are a registry admin16:14
sinzuidanilos: That means your related software report is 100% crack16:15
danilossinzui, however, I see no person for this account16:15
danilossinzui, heh, right :)16:15
sinzuidanilos: This page does not who accounts. only person16:15
danilossinzui, I am looking at staging DB16:15
sinzuidanilos: there is only one page that can show an account and only a LOSA can see it16:16
sinzuidanilos: the account was created on the 27. maybe staging is old16:16
danilossinzui, staging DB seems outdated though16:16
danilossinzui, yep16:16
=== salgado-lunch is now known as salgado
danilossinzui, just fyi, looking at the code, preferredemail has no restrictions by whether an address is hidden or not; and, all of these seem to have just logged in before that, and the account was created just a few minutes ago; I am guessing that launchpad_auth_master has some data that launchpad_main_master still doesn't16:30
henningedanilos, Ursinha: Enjoy the weekend, I am off now!16:35
=== deryck is now known as deryck[lunch]
sinzuidanilos: thank makes sense. We had a number is similar oopses a few months ago where there as a 20 minute lag16:35
Ursinhabye henninge :) you too16:35
henningedanilos: you'd better get all well!16:35
daniloshenninge, cheers16:37
sinzuiChex: ping17:02
Chexsinzui: hello there17:03
=== beuno is now known as beuno-lunch
sinzuiChex: I want to test the product-release-finder on staging, but it just occurred to me that I do not know if the fix was pushed there this week17:04
Chexsinzui: ok, was this a cowboy fix, or a revno release17:05
Chex?17:05
* sinzui loks for revno17:05
sinzuino it did not arrive17:07
sinzuiChex: do you know what is blocking staging from a code update?17:08
BjornT_danilos: still there?17:08
BjornT_danilos: those windmill errors are strange, i don't know what are causing them. you can merge lp:~bjornt/launchpad/bug-430702 to work around them17:11
Chexsinzui: I am not sure, let me check17:12
danilosBjornT_, ok, thanks17:14
danilosBjornT_, also, thanks for looking into this, very much appreciated17:15
rockstarabentley, what would it take to teach the scanner about bzr pipelines and the next and prev pipes?17:31
rockstarabentley, (in the context of setting pre-req branches)17:31
abentleyrockstar: A database patch.17:31
abentleyrockstar: Why do you ask?17:32
sinzuiChex: I think I am confused by the version of code on staging. I verified that other expected features were on staging, so...can you run cronscripts/product-release-finder.py on staging and paste/send the output?17:33
Chexsinzui: jinx. I just finally verified that staging should be up-to-date within the past 24 hours or less17:34
Chexsinzui: sure17:34
sinzuifab17:34
rockstarabentley, just curious, really.  I figure if we're bringing back prereq branches, it'd be really cool to teach the scanner about pipes soon after.17:36
abentleyrockstar: My plan is to teach pipelines about prereq branches first.17:36
rockstarabentley, I aliased push to sync-pipeline for this very purpose a few weeks ago.17:37
=== deryck[lunch] is now known as deryck
rockstarabentley, wait, that confuses me.  Pipelines knows which branch came before.17:37
abentleyRight, but right now, they can't propose a branch for merging.17:37
rockstarabentley, ah, okay.  Yeah, we've talked about that.17:38
jmlleonardr, is the patch you just posted something of a pre-cursor to a trusted gtk workflow?17:38
abentleySo first pipelines is getting launchpad support.  Launchpad might get pipelines support later.17:38
leonardrjml: yes, i spent this week landing the branch i mentioned to you a while ago17:39
jmlleonardr, cool.17:39
leonardri am supposed to talk to rickspencer3 about porting his gtk workflow to this engine but i can't find him. maybe he took the day off now that karmic is released17:39
rockstarabentley, okay.  I've wanted to do something to the codehosting part of code, and mwhudson fixed the bug I was thinking I'd do, so I thought maybe I'd teach the scanner about pipelines.17:39
rockstarabentley, just a thought in passing more than anything though.17:39
jmlleonardr, he's travelling back home17:41
leonardrah17:41
leonardri guess i'll talk to him on monday then17:41
abentleyrockstar: Well, the hardest part is getting a database patch through review.  After that, we can implement direct support for next_branch and prev_branch, or we can add the pipelines plugin to the codebase.17:41
jmlleonardr, trusted client for gtk would be very exciting.17:41
=== leonardr is now known as leonardr-afk
Chexsinzui: ok, the script stopped output about 15 mins ago, should I kill it?17:48
sinzuiknow. I think this can take some time since I expect it to be finding a lot of new downloads17:48
sinzuis/know/no/17:49
sinzuiChex: is it stuck on a specific url?17:49
Chexsinzui: yes : 2009-10-30 17:39:03 INFO    Walking http://ftp.drupal.org17:51
Chex2009-10-30 17:39:03 INFO    Listing /files/projects/17:51
sinzuithat is big17:52
sinzuiChex: Let this run. if this has not moved on in 30 minutes, I think we should kill it and restart17:53
=== beuno-lunch is now known as beuno
intellectronicahave a lovely weekend and a great week four, everyone. see you in texas18:02
Chexsinzui: oki doki.. still sitting there as of now.18:04
sinzui:/18:04
mrevellNight all. have great weekends!18:07
danilossalgado, hi, do you know how closely are launchpad_auth_master and launchpad_main_master synced? are they the same DB or not?18:16
salgadodanilos, don't know18:17
danilossalgado, but just to confirm, user/preferredemail should always be not None when accessed from code, right?18:17
salgadoif you mean LaunchBag.user, then yes18:18
flacosteman, this django test runner sucks18:54
=== leonardr-afk is now known as leonardr
flacostegary_poster, barry: oopstools is testing a script using sys.executable19:14
flacostei'm buildoutifying the package, so that doesn't work19:14
flacostewhat is the best thing to do here19:14
flacostetest through bin/the_buildoutified_script19:14
flacosteor through bin/py19:15
flacosteand what is the best way to get the path to bin/... from the test?19:15
barryflacoste: bin/py bin/the_script probably.  iirc, we do something similar for mailman.  to get to bin i think we os.path.dirname from canonical.__file__19:16
gary_posterflacoste: I prefer bin/the_buildoutified_script in general.  relying on bin/py is a bit of a hack in my mind, TBH.  It was convenient for us, but from scratch, it it is easy enough, I'd do the script.19:16
flacostegary_poster: i agree and that's what i started aiming for19:16
flacostenow, what is the best way to get the path to bin?19:17
flacosteshould I assume tests are run from the buildout top-level directory19:17
flacoste?19:17
barrygary_poster: did we use bin/py somescript because we would have had to hack mailman?19:17
flacosteor should I use ../../../ from my test directory using the dirname(__file__) trick?19:17
barrywe really should have a utility that gives us the root of our tree, from which we can easily calculate bin or whatever19:18
gary_posterflacoste: If you are working with something that has access to buildout variables, then you can use things like ${buildout:bin-directory} (IIRC; I would look for variables on buildout PyPI page)19:18
flacostegary_poster: that's just a regular doctest, so I don't think that's the case19:18
flacosteunless we put those into a module19:19
gary_posterflacoste: the z3c.recipe.filetemplate will let you do that.  Alternately, if you are doing a script, you can have code inserted (see how we do it in launchpad's buildout.cfg)19:19
flacostethis is a django app19:19
flacosteso it needs a settings file19:19
flacostewhich can contain a couple of global stuff19:20
flacostei think i'm going to generate that file using z3c.recipe.filetemplate19:20
gary_posteryou could generate that, sure.  I was talking about this: http://pypi.python.org/pypi/zc.recipe.egg#specifying-initialialization-code-and-arguments19:20
flacosteand put a couple of well-known directory there19:20
gary_posterthat would work too, yeah19:20
flacostewell, not really19:20
flacostebecause what i want is to find the bin path from the script19:20
flacosteerr, the test19:20
gary_posterwell, you could stuff info in someplace, like environ.19:21
flacosteah, you mean in the test wrapper for example19:21
flacostebut that one is generated through djangorecipe19:21
flacosteand it's a crappy test runner wrapper anyway19:21
gary_poster:-) ok19:22
gary_posterbarry: "did we use bin/py somescript because we would have had to hack mailman?" yes, and because there was already precedent19:22
barrygary_poster: cool19:23
flacosteman, djangorecipe, what a "!&/)!*"19:24
flacosteit doesn't put Django into the eggs19:24
flacosteand it doesn't install django as an egg, but into build/parts19:24
flacostewhich means that scripts generated don't have it in their path19:25
flacostepff19:25
flacosteextra_path to the rescue...19:25
flacostegary_poster: any idea why extra-paths isn't adding stuff to the generated script?19:34
flacostegary_poster: i think i know why19:34
gary_posterflacoste: no.  It should.  (though, btw, on a a probably unreleated topic, I suggest that you do one of these three: (1) use a clean Python, (2) use a virtualenv clean Python (--no-site-packages), or (3) somehow use my zc.buildout and zc.recipe.egg and z3c.recipe.filetemplate internal releases.19:36
gary_poster)19:36
flacostegary_poster: it was a confusion on my part19:37
flacostegary_poster: i had commented out the scripts stanza from the buildout parts19:37
flacostegary_poster: but the script was still generated through the interpreter section19:37
gary_posteroic19:37
flacostegary_poster: which didn't have the extra-paths config19:37
gary_posteryou can combine the two fwiw19:37
flacosteit's weird though that the interpreter section generates script19:37
flacosteyeah19:37
flacosteexactly19:37
flacosteyeah! all tests are now passing!19:41
gary_posterawesome :-)19:41
barrysinzui: ping19:57
sinzui hi barry20:06
barrysinzui: hi.  open up lib/canonical/launchpad/icing/style-3.0.css and search for registered20:07
sinzuiouch20:08
barry:)20:08
sinzuiso we still have a problem in that italics is wrong20:09
barrysinzui: maybe it should have been "registering"?20:09
sinzuioh, I see, it is correct when in an li20:09
sinzuiso the portlet is not putting the person's join time in an li20:09
barrysinzui: maybe.  but if you look at https://launchpad.dev/firefox you'll see that the registration date is class="registering"20:10
barryshould would be nice if we had some more comments in our css :/20:11
sinzuiWe certainly do no want to float the secondary information to the link20:11
sinzuino, it would be nice if we took the time to rename our classes when we broaden their use20:11
sinzuicomments are needed when you write too many specific rules20:11
barrywell, perhaps, but the color and font-size seem more in line with registered20:11
sinzuiI want the text to look like other portlets. We have a markup/style problem because when that is next to other portlets it is clearly wrong. There is nothing special about it20:12
barrythe problem is that you really have no idea what ".registered" is used for, so you can't safely change it, so that leads to more fragmentation as you add more classes20:13
sinzuibarry: look at https://edge.launchpad.net/launchpad-registry20:13
sinzuiThe grey normal text is what the user expects to see, he does not care how we do it. So when I saw italics, I knew something was wrong, my guess was certainly wrong about the cause20:14
sinzuibarry: can you spot the defect in this page by BTW?20:14
barrysinzui: so, i agree that the italics is wrong, but /we/ definitely care how we fix it.  not much to say at the end of the cycle, but style-3.0.css is going to end up a mess this way20:15
sinzuiWe can start cleaning it up by removing the old stylesheet rules20:16
barryi don't understand why we have .registered and li . registered20:16
sinzuione is italics and the other is not. The italics rule is from the contracted design. kiko later wanted italics removed, this one was not20:17
sinzui.registering first used under the object's title. The design changed a lot in the 3.0 milestone.20:18
barrysinzui: so, why wasn't font-style: italic; removed from .registered?20:18
kikoITALICS!!!20:18
sinzuibarry: dude get a grip. do I have to make you read the 3.0, and the post cleanup list?20:19
sinzuibarry: I'll be happy if you can triple your landings each month, but I do not want to break anyones spirt20:19
barrysinzui: i am chilled out!  i'm trying to make sense of stuff in our tree that makes no sense20:20
sinzuibarry: label it tech-debt so that it makes the list of things we schedule work on.20:20
sinzuiexcept that we are not really scheduling tech-debt20:21
=== salgado is now known as salgado-afk
barrysinzui: but we /are/ cleaning up ui, right?20:21
sinzuiyes, after oops20:21
sinzuibarry: our team closed about 20 ui issues this release, but we are a smaller team now, we still own 1/3 of all templates, and we are still expected to own blueprint and answers templates. The latter two completely missed their milestones20:23
barrysinzui: cool.  this is definitely ui uncleanliness, but we need to avoid chaos too, or it's hopeless ;)20:23
sinzuibarry: We will never look as good as the other teams given that we cannot put enough people onto the issues20:23
flacostegary_poster: is there a list of buildout variables?20:40
gary_posterflacoste: yes, in docs plus there is a command to see the defaults.  Looking...20:43
flacostegary_poster: i don't find it from the pypi page20:43
gary_posterflacoste: not sure what you are looking for, but bin/buildout annotate will list default values20:45
flacosteok, thanks20:45
gary_posterflacoste: also, http://pypi.python.org/pypi/zc.buildout#predefined-buildout-options20:45
Chexsinzui: just a update, your script is still running, and creating output now20:48
sinzuiChex: fab. I fixed a loop issue that prevented the script for download all the tarballs. I have a list of things I can check tonight if the script does not complete soon20:49
Chexsinzui: ok, sounds good, just because us losas will be rolling up the sidewalk soon, wanted to see if you needed us to check status20:50
wgrantHow do week 4 landings work? I'll probably be wanting to land some new Soyuz enum values to make something easier to CP during 3.1.12 if Debian forces us to.21:25
lifelessget RC approval21:27
lifelessAIUI21:27
wgrantsinzui: Can bug #464014 no make 3.1.10?21:48
mupBug #464014: DistributionSourcePackageView.active_series sorts versions as strings <Launchpad Registry:Triaged by edwin-grubbs> <https://launchpad.net/bugs/464014>21:48
wgrantsinzui: It is going to become a problem very soon, and seems like an easy fix.21:49
sinzuiwgrant: no, we are lock down in a few minutes, the EC2 run time is 4 hours so once we crossed the threshold I push all the bugs back21:49
sinzuiwgrant: I am working in DSP's now and I feel the pain21:50
sinzuiMaybe I can convince someone that this is an RC able issue21:50
sinzuiwgrant: we will work have a branch ready next week, but I do not want to promise that it will be released21:51
wgrantsinzui: cjwatson filed a dupe overnight.21:51
wgrantThanks.21:51
sinzuiwgrant: I think the fix is to use sorted_dotted_numbers21:51
sinzuiI assumed that was what we used to show the DSP21:52
wgrantsinzui: Isn't the DS version a debversion?21:52
sinzuieither will do. We have be using the other because it handles cases of letters21:53
sinzuinot that LTS will ever appear in a version21:53
* wgrant checks how Distribution:+index does it.21:53
wgrant        return sorted(ret, key=lambda a: Version(a.version), reverse=True)21:54
sinzuiDoom to fail21:54
wgrantWhy?21:54
sinzuiDoomed to fail21:54
sinzuiversion is not a number21:55
wgrantHow does that matter?21:56
wgrantdebversion uses Debian ordering rules, which care about a lot more than just numbers.21:56
sinzuisort is follows string rules, so 10 and 1 are much different21:56
sinzuiright, and debversion has a lot a tested/proven behaviour21:57
wgrantWhy would sort be using string rules on a Version object with a __cmp__?21:57
sinzuiThe release/version is in point of fact a debversion, though the DB thinks it is something more loosely defined21:58
sinzuiVersion is not an object21:59
wgrantIt is.21:59
wgrantlp.archivepublisher.debversion.Version21:59
sinzuiI am mistaken then. In know the DB does not know that.22:00
wgrantRight. The DB just enforces sane_version, which is something different. I wonder if the interface enforces debversion.22:00
sinzuiThe IField does22:01
wgrantGreat.22:01
wgrantDoes Registry have sufficient engineering time this cycle to make that trivial change with a test?22:01
sinzuiI think so22:02
Ursinhaahem.23:36
UrsinhaI hate writing tests.23:36

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