=== bradb adds a distro sp bug listing and filebug page, gets ready to review the URL changes (and a million other fixes) diff [12:07] good work bradb [12:07] sabdfl: revisions 2121/2373 1:09:24 [12:08] hiatus while I went to the xtc meeting [12:08] will let it run overnight, but I have high hopes [12:08] lifeless: no ways, still 1:09? [12:08] there's some improvements i'd like to jump in on right after this branch lands, like adding a sane distro sp details portlet (the DR SP doesn't feel right for a DSP, to me) [12:08] sabdfl: yeah, it was suspended :) [12:08] bradb: i will do fresh content objects for D+SPN, DR+SPN, etc soon [12:09] noted [12:09] lifeless: if it crashes, can you resume it gracefully? [12:09] sabdfl: no, though you can run it in segments and resume frm those [12:23] kiko: wasn't I supposed to get a langpack export a few "tomorrows" ago? === mpool [n=mbp@cor5-ppp1627.for.dsl.connect.net.au] has joined #launchpad [12:29] #malone [12:30] hi, BjornT or bradb? [12:30] mpool: hi [12:32] hi bradb [12:32] so we'd like to start tracking bzr bugs on malone [12:33] as you (probably) know, we have two codebases in one product, with one of them probably fading away [12:33] how should we set this up in malone [12:33] the main requirement is that users or developers interested in the bzr python codebase should never see baz bugs [12:33] and vice versa [12:33] it would be confusing and annoying if they get mixed in together [12:33] should we just create two products, or is there some way to keep them separate within one product? [12:34] oh, maybe we should have two products inside one project? [12:34] There's already a bazaar product in Malone [12:34] yes i know [12:34] but there doesn't seem to be any way to segregate bugs within it? [12:34] Merge to rocketfuel@canonical.com/launchpad--devel--0: [r=SteveA] clean up spec tracker pages (patch-2403: mpt@canonical.com) [12:35] mpool: Nope. Can you just create another product specific to bzr? [12:35] sure [12:35] just wanted to check if i was missing something [12:35] thanks! [12:35] no prob [12:35] btw, what do you expect the weather will be like at UBZ? [12:35] mpool: slightly BZ probably :) [12:36] but not -10 yet? [12:36] possibly, but i wouldn't expect that to be the average at that time of year [12:37] thanks [12:56] "124 files changed, 2033 insertions(+), 1107 deletions(-)" -- in BjornT's queue now === Alinux [n=Ubuntu@p54A382F4.dip0.t-ipconnect.de] has joined #launchpad [12:59] night all [12:59] sabdfl: looking good : revisions 2307/2373 0:18:08 [01:07] Merge to rocketfuel@canonical.com/launchpad--devel--0: [r=SteveA] clean up spec tracker pages (patch-2404) === bradb & # out === robitaille [n=robitail@p235-083.public.uvic.ca] has joined #launchpad [01:38] Merge to rocketfuel@canonical.com/launchpad--devel--0: [r=SteveA] clean up spec tracker pages (patch-2405) === Lovechild [n=dnielsen@love-sources/Lovechild] has joined #launchpad === stub [n=stub@203.214.4.72] has joined #launchpad === camilotelles [n=Camilo@20132139198.user.veloxzone.com.br] has joined #launchpad === depoll is now known as dePOLL [03:47] Merge to rocketfuel@canonical.com/dists--devel--0: [trivial] Next production config (patch-112: stuart.bishop@canonical.com) === mpool [n=mbp@cor5-ppp1627.for.dsl.connect.net.au] has left #launchpad [] === dePOLL is now known as depoll [04:52] Merge to rocketfuel@canonical.com/dists--devel--0: [trivial] Fix production version number in config (patch-113: stuart.bishop@canonical.com) === bradb [n=bradb@modemcable033.209-70-69.mc.videotron.ca] has left #launchpad [] === BjornT_ [i=10183@82-135-221-189.ip.takas.lt] has joined #launchpad === Virtuall is now known as Virtuall[BZA] [05:45] Merge to rocketfuel@canonical.com/launchpad--production--1.32: Cherry pick patch-2399 into production (patch-1: guilherme.salgado@canonical.com, rocketfuel@canonical.com) === robitaille [n=robitail@d154-5-117-228.bchsia.telus.net] has joined #launchpad [06:13] Merge to rocketfuel@canonical.com/launchpad--production--1.32: Cherry pick patch-2400 into production (patch-2: mpt@canonical.com, rocketfuel@canonical.com) [06:49] Merge to rocketfuel@canonical.com/launchpad--devel--0: [trivial] Switch on db_statement_timeout in production Launchpad instances (patch-2406: stuart.bishop@canonical.com) === _Rappy_ [n=hunt-pre@dsl-253-122.monet.no] has joined #launchpad [08:28] Anyone going to bitch loudly if I take Launchpad down now for upgrades? Might be two hours or so this time. [08:29] stub: Database too? [08:29] Yup [08:29] Hmm, the authserver might be an issue for some people :/ [08:29] Need to do a full dump/restore I've been putting off for a while [08:29] think of the children [08:30] I should implement AuthServerCaching, I guess ; [08:30] ;) [08:30] spiv: I think that is pretty much in my court for 'setup a read only replica' === spiv quickly re-reads the spec === spiv smiles at Moin: "/!\The authentication database is temporarily unavailable. Anonymous access only." [08:32] stub: Hmm, there's a small amount of authserver code required too :) [08:32] But I think I've worked out how to do that with a minimum of hassle, but need to clear out a few other tasks first. Will give steve his readonly db too. [08:33] spiv: Yer, but that will only take you a few minutes ;) [08:33] Heh. [08:33] morning people [08:36] hail [08:38] And SteveA can see the launchpad down for maintenance page right now if he likes [08:39] Pitty Pound roots it by sticking its own headers at the top [08:41] ewww [08:41] does it *have* to? [08:42] it is probably a simple matter of code to fix it [08:42] Looks like it. We could hack Pound (and then we would need to repackage it for installation), or just do it in Apache. === dand [n=dand@gw.datagroup.ro] has joined #launchpad [09:36] Eek, gotta go... === spiv -> yoga === Keybuk [n=scott@217.205.109.249] has joined #launchpad [09:58] Merge to rocketfuel@canonical.com/launchpad--devel--0: [trivial] Tweak Gina warning levels (patch-2407: stuart.bishop@canonical.com) === sabdf1 [n=mark@217.205.109.249] has joined #launchpad === sabdf1 [n=mark@217.205.109.249] has left #launchpad [] === mdke [n=matt@unaffiliated/mdke] has joined #launchpad [10:27] hi all [10:27] what is the ETA for lp being back? [10:27] 20 mins [10:27] thanks === niemeyer [n=niemeyer@217.205.109.249] has joined #launchpad === jinty [n=jinty@205.134.224.215] has joined #launchpad [10:49] Morning all! [11:04] stub: did you mean to merge the fix-whitespace stuff in -2407? [11:05] That's fine. PQM just ate my previous [trivial] on that branch. [11:07] righ [11:07] +t [11:07] just thought I'd point it out in case it wasn't meant to have happened [11:07] Kinnison: are you coming up tonight ? [11:08] lifeless: No, tomorrow morning === Kinnison is literally just doing the day [11:08] Kinnison: K === Kinnison expects to hit the office ca. 9.30 to 9.45 [11:08] any earlier and I'd have to leave tonight practically [11:09] and I have a date with a steel rule and a circular saw tonight [11:09] gotta prepare the kitchen for having the floor put in [11:15] Kinnison: into home improvements eh? :) === BjornT_ [i=10183@82-135-221-189.ip.takas.lt] has joined #launchpad [11:15] Kinnison: howdy [11:15] jordi, around? [11:15] sivang: aye === sabdfl [n=mark@217.205.109.249] has joined #launchpad [11:21] SteveA, how about now? [11:21] stub: ping [11:21] sabdfl: Pong [11:21] stub: can i privmsg you a db patch? [11:22] mdke: for a few mins [11:22] jordi, we have a huge problem with the faqguide.pot :/ [11:22] paste is better -- https://chinstrap.ubuntu.com/~dsilvers/paste/ [11:22] mdke: really? what is it? [11:23] jordi, launchpad is down so I can't show you it in rosetta, but if you go to sg you a db patch? [11:23] argh [11:23] start again [11:23] yeah, I can't parse that at all :D [11:23] if you go to https://docteam.ubuntu.com/repos/branches/breezy/generic/faqguide/C/faqguide.pot [11:24] ok [11:24] jordi, then search for installing-applications.xml:10(para) [11:24] done [11:24] that line is totally ridiculously long and includes a number of paragraphs in the actual text [11:25] wow [11:25] there's "See . " stuff in there. === jinty [n=jinty@205.134.224.215] has joined #launchpad [11:25] Have you contacted shaunm about it? [11:25] I suspect somethign in your xml is not so good. [11:25] wher'es the xml? [11:25] jordi, i pinged him now [11:26] I see it [11:26] https://docteam.ubuntu.com/repos/branches/breezy/generic/faqguide/C/installing-applications.xml [11:27] jordi, moving channel [11:28] #docs? === mdz [n=mdz@ca-studio-bsr1o-251.vnnyca.adelphia.net] has joined #launchpad [11:33] jordi, what really worries me is that if we use a different utility to create a better pot file, then upload it, a lot of translation will be lost :/ === Seveas [n=seveas@seveas.demon.nl] has joined #launchpad [11:43] SteveA: ping === WaterSevenUb [n=WaterSev@azevedo.astro.up.pt] has joined #launchpad [11:46] stub: mailed [11:46] mdke, jordi: PO is really not ideal for documents [11:46] but i can't think of a better plan right no9w [11:47] :( === camilotelles [n=Camilo@20132139198.user.veloxzone.com.br] has joined #launchpad [11:55] stub: s/person/owner/g [11:56] lifeless: If there are no dependancies of cscsv on launchpad, why do we need to run cscvs tests when we commit launchpad changes? It would be impossible for a launchpad commit to stop cscsv tests passing. [11:57] sabdfl, jordi, i don't know whether I should send an email to warn translators to stop translating the guide until the issue with the pot is resolved, what do you think? [11:57] stub: eh? cscvs uses lp interfaces [11:57] It does? Ahh bugger [11:58] are you referring to the race condition with nc ? [11:58] sabdfl: Argh.... a diff. Now I need to strip all the '+' signs :-( [12:01] stub: if you are happy with the comments i can send you the patch directly [12:01] sorry, the .sql file [12:01] sabdfl: Nah - got it. === stub is a master of vim [12:02] sabdfl: Looks fine. patch-25-26-0.sql. [12:03] stub: super, thanks [12:03] sabdfl: (pending the person->owner change of course) [12:04] stub: done [12:05] mdke: maybe it's wise. Let's see if you get something from the mailing list. [12:05] Hopefully you will === Kinnison workraves :-( [12:15] anyone want to review a quick publisher change? [12:15] It's a touch large to [trivial] but it needs to get in fairly soon [12:16] https://chinstrap.ubuntu.com/~dsilvers/paste/fileiJyx2B.html [12:16] It's d-i support for the C.A.P. [12:17] pep8ness [12:17] self._has_di, not _hasdi [12:17] dituples->di_tuples [12:18] also tup and tuples are really hirrble variable names [12:18] what is a didr ? [12:19] whats a comp ? [12:19] a didr is a debian_installer_distrorelease [12:19] if you have to explain it, the variable name is probably wrong [12:19] the variable's existence is there purely because otherwise the line is too long [12:20] I wanted to do self._has_di.setdefault(dr, Set()).add(comp) [12:20] but that wraps [12:20] and I think it's less ugly to use a temp var than to split it on the comma [12:20] its also pretty darn opaque [12:20] I'd docstring self._has_di if you could do that sort of thing [12:20] I didn't critque the temp vars existnece, I critiqued its name [12:21] you'll have less problems with line wrapping if you write smaller functions too [12:22] Hmm [12:22] Okay, I'll tidy up the pep8ness and try and make the stuff more understandable [12:22] so rather than a detailed review, I suggest you read it out loud to a teddy bear. [12:23] and anytime its face gets blank, make the code more clear === Kinnison points out that he pair-programmed this with freddybear anyway === Kinnison waves freddy at lifeless [12:24] freddybear obviously knows too much about buildds [12:24] He helped me write the publisher :-) [12:25] jordi, mailed [12:25] mdke: the list? [12:25] oh, the translators. [12:25] let's hope we can resolve this ASAP [12:25] everything :D [12:26] jordi, i'm going to try the kde util and see if the pot file is any better [12:26] mdke: xml2po was missing info, or was it just doing huge para's? [12:26] mdke: nod [12:26] jordi, both I think [12:26] let's see what you find out [12:26] maybe confuses it. [12:26] What's the dict iterator which gives you key,value tuples? [12:26] is it .items() [12:26] ? [12:27] ddping [12:27] jordi, yes, it may not support qanda set [12:29] jordi, can you push my mail through to rosetta-users, it needs to be moderated [12:29] in a min [12:30] thanks [12:30] it hasn't got through to any list :/ [12:31] i'll cancel and try again [12:32] yours is accepted [12:32] thanks [12:35] mdke, thx [12:56] stub: pong [12:56] SteveA: We are still getting lockups. Looks like long running or blocked queries. [12:57] SteveA: Possibly update-stats.py is the culprit [12:57] interesting. why would that lock up the webapp? because the postgres backend is so busy? [12:57] or are some tables locked? [12:58] SteveA: If a process has updated rows, but not committed, anything selecting on that table will block [12:59] does update-stats.py do that? as in, not commit for a while after updating stuff? [01:00] if you selectively kill off cron jobs, does the webapp return? [01:00] SteveA: Yes. But I'm not 100% sure yet. [01:01] SteveA: It might also be these rosetta queries too just taking too long [01:10] well, i can't access launchpad.net now [01:10] can you kill all cron scripts ? [01:11] would the DB need bouncing too? [01:12] lifeless: is https://chinstrap.ubuntu.com/~dsilvers/paste/file9TWzrW.html better? [01:12] has_di ? [01:12] what's a "di" >? [01:13] comment or better variable name please [01:13] ahahaha [01:14] Kinnison: see! === ddaa [n=ddaa@ordo.xlii.org] has joined #launchpad [01:15] Kinnison: still very opaque. steve's commend is right on [01:15] s/mend/ment === ddaa [n=ddaa@ordo.xlii.org] has joined #launchpad [01:15] Kinnison: i.e. whats a di_tuple ? really, what does it _mean_ not what typ eit is. [01:17] okies === Kinnison tries not to assume that anyone playing in the publisher will understand what di is === Kinnison goes through to add comments [01:18] better names >> comments [01:18] so _has_debian_installer_inside_components_for_distrorelease ? [01:18] I'm all for good variable names for simple things :-) [01:19] I don't get whaat has debian installer inside components for distrorelease means [01:19] tell me about this, here, in englihsh [01:19] I'll try and translate to english. [01:19] Okay [01:19] so each distrorelease has a bunch of components in it [01:20] some of those components will contain binaries which are for debian-installer rather than the distrorelease itself [01:20] we have to note down which components of which distroreleases have debian-installer bits in them so that we can construct the correct configuration for apt-ftparchive later [01:20] in _has_di I store (keyed by distrorelease name) a Set of the component names which contain debian-installer binaries [01:21] so that is the 'debian installer components for distrorelease' ? [01:21] More 'components for debian-installer by distrorelease' [01:22] ok. [01:22] thats understandable. [01:22] But that's 'what' rather than 'why' [01:22] now, you have a dictionary of distroreleases with the components for d-i in that release [01:23] what about _di_release_components ? with a comment that this is the components for d-i in each distro release [01:23] or release_di_components [01:24] may well still need a comment, but at least is a vaguely informative variable name [01:24] is PQM jammed? [01:24] I've put a comment in anyway, detailing what it stores, where it is generated and where it is consumed [01:24] because I think that'll be useful [01:25] so it's just chosing a name [01:25] sabdfl: was === WaterSevenUb [n=WaterSev@azevedo.astro.up.pt] has joined #launchpad [01:26] pqm didn't allow my merge, with ERROR: testAnwersOnce (CVS.tests.test_CVS.PServerHelperTest) [01:26] SteveA: thats the CVS race condition [01:26] lifeless: can we disable these CVS tests for a while, until they are reliable again? [01:28] SteveA: up to you, do you trust us not to break launchpad via cscvs, or vice verca [01:28] s/launchpad/importd [01:28] Kinnison: moving right aling [01:28] i don't care about breaking the specific code that the tests that have a race condition test [01:28] because the tests are faulty [01:29] uhm, they aren't testing a race condition, there is a race condition in th etests that is causing the problem [01:29] that's what i meant. my english was ambiguous. [01:30] jamesh: ping [01:31] SteveA: pong [01:32] hi. stub says that the code that is supposed to make long-running queries time-out doesn't seem to be working. [01:32] lifeless: okay, added explanatory comment in __init__ and renamed _has_di to _di_release_components [01:32] i'm looking at canonical/database/adapter.py now [01:33] Kinnison: rediff, lets have a look [01:33] running now === Kinnison hasn't had a chance to flcow his desktop yet [01:33] jamesh: can you take a fresh look at it, just to see if anything obvious looks wrong [01:34] SteveA: what value do you have db_statement_timeout set to in the launchpad.conf? [01:36] 60 [01:36] we should have at least a manually runnable functional test for that [01:36] (Originally 4000, but I knocked it down a bit in case it was seconds instead of ms) [01:36] like, a deliberately slow query on a page on the debug skin [01:37] Doesn't need to be a page test. Can fake a slow query easily enough using a Python server side procedure. [01:37] it seems to work here === stub continues to wait until his branches commit so he can test [01:38] jamesh: how did you test it? [01:38] SteveA: set it to a low value, and then ran some other job to burn CPU time [01:38] ddaa: ping [01:38] also, the "print" should be a log surely [01:38] lifeless: pong [01:39] ddaa: how did pythons cvs import go ? [01:39] ddaa: and how is the svn fi for samba looking ? [01:39] I got a "ProgrammingError: ERROR: canceling query due to user request" exception [01:40] python has failed twice since the sprint for various connection problems, right now it's at changeset 10043 [01:40] SteveA: unfortunately, it is a statement timeout rather than a transaction timeout [01:40] ddaa: out of ? [01:40] so it is possible for a query to do a lot of work and still not hit the timeout [01:40] out of 32425 [01:41] ddaa: thanks. [01:41] jamesh: okay. so, we should also have an overall request processing timeout. [01:41] stub and i discussed this before. [01:41] one way to do it is to have the database adapter check some value before each query [01:42] yesterday, had a short day to sort some appartment related issues, and spent it all on replying spiv's review for the nested log parsing (python fix) patch for cscvs [01:42] and have that value change when the request has gone on too long [01:42] jamesh: Can you issue a few more requests and see if it still happens (ie. that the setting isn't reset next time that handler thread handles a query) [01:42] so, nothing new for samba, but it's the next thing to do === stub is still waiting for his commit to commit [01:42] lifeless: https://chinstrap.ubuntu.com/~dsilvers/paste/fileXl82lz.html [01:42] either the value can be the latest time some query can start to be executed [01:42] or the value can be a boolean that is set by an event [01:42] ddaa: ok. please keep me posted, Its very urgent [01:43] I suppose we could do that by recording when the transaction started, and rollback/fail any future statements past the timeout [01:43] setting to a max value is probably the simplest, although it does mean regular calls to time.time() i guess [01:43] i don't know how expensive time.time() is [01:43] not for a transaction -- for the whole web request. [01:43] so, the web publisher would set the value upon receiving the request for processing [01:44] and unset the value at the end of that request's processing [01:44] the value would be thread.local [01:44] or, set on the connection used for that thread, if there is definiely one connection per request. [01:45] a thread.local seems less tightly coupled to connection policies though [01:45] and, i want to decouple these things for supporting read-only connections for GETs [01:45] so at what points do we check the timeout? [01:45] You could perform the check in the database adapter - that seems a common point to do the check and raise an exception if the request has taken too long [01:45] okay [01:45] stub: yes, i think that's what i meant to say above [01:47] both these things together, that is, max request time and max single query time, should make the webapp more available in general. [01:47] Read only connections are just a case issuing 'set transaction read only' it turns out btw. [01:47] oh [01:47] so, no need for an extra user [01:47] that's cool [01:47] i can do that today ;-) [01:47] so, that can be added to the launchpad database adapter too [01:47] i mean, a method to say "set transaction read only" [01:48] Just make sure it gets set back again too ;) [01:48] hmm... [01:48] but there can be many transactions in a single request [01:48] i want all transactions for that request to be read only [01:49] eh? There is only one transaction per request. You are thinking connections. [01:50] there can be more than one transaction per request [01:50] for example, when someone commits [01:50] Nobody should be committing in the webapp [01:51] And Zopeless doesn't use the DA anyway [01:51] according to my grep, only script code is committing [01:51] so, that's good [01:52] i'd still rather do it right, if it isn't so hard to do [01:53] mdke: oh dear. [01:53] I suspected xml2po didn't like something in the doc. === spiv [n=andrew@adsl-66-203.swiftdsl.com.au] has joined #launchpad [01:54] We should make the publisher raise a 503 or something if there are more than X requests in the queue waiting to be handled [01:54] erm... the http service I mean, not the publisher [01:55] Kinnison: your comment talks about _has_di! [01:55] lifeless: arse, well spotted [01:56] still go tthis 'di_tuples' thing [01:56] tell me about di_tuples [01:56] it is a list of the tuples we save to output to the di overrides instead of the normal overrides [01:56] thats in these tuples ? [01:57] s/that/what/ [01:57] assuming you mean "what's in these tuples?" the answer is "a set of columns to be output tab-separated to the override files" [01:57] specifically package name, priority and section [01:57] so it would be reasonable to call them 'di_overrides' ? [01:57] aye, I guess that'd be sane === Kinnison makes that change [01:58] would it be clearer :) === Kinnison gets workraved, keep on complaining here :-) [01:59] calling something that is a list of type-X's thing-'Xs' or 'X'-things is usually very unclear === mpt [n=mpt@200-171-140-32.dsl.telesp.net.br] has joined #launchpad [01:59] its like [01:59] ints = [1,2,3,5,7,11,13 ..] [02:00] when what you use it for is 'for prime in ..' [02:00] so, rule of thumb I'd like you to imprint on your brain: when you see a type name in a variable name, THINK HARD. [02:01] for name in names -> what are they names of? package_names ? file_names ? === Kinnison nods. I'll do my best to remember that [02:02] file_names [02:02] drfullname <- pep8ify please [02:02] stub: surely apache / pound can do the "too many requests" error, and not even pass it on to zope === Kinnison yeuchs [02:03] I do so hate under_scored_variable_names [02:03] they're uggerlee :-) [02:03] https://launchpad.net/ gave me a 502 proxy error, with a nasty error page. [02:03] SteveA: Pound can't. No idea about Apache. === Kinnison must print out the parts of PEP8 which he keeps forgetting and stick them to his wall [02:04] i'm getting launchpad pages again. hurrah [02:04] Yay specs page not found [02:04] Merge to rocketfuel@canonical.com/launchpad--production--1.32: Cherry pick patch-2406 into production (patch-3: stuart.bishop@canonical.com, rocketfuel@canonical.com) [02:04] stub: one line fix [02:05] stub: the link in the menu is to /+specs, but the page is (and should be) just /specs [02:05] it is correct in staging [02:05] want me to find you the line that needs to change? [02:06] Kinnison: + cnf.write(s % { [02:06] + "LISTPATH": self._config.overrideroot, [02:06] I'm working on lockups atm ;) [02:06] that stuff, could benefit by being put in a smaller more readable funtion === SteveA finds the line for stub [02:06] Kinnison: i.e. 'self.write_component' === Kinnison fails to see how that'll actually improve matters [02:07] given that it's a long argument list, so it'd be best served with named arguments [02:07] the calling code will be a shorter semantic statement [02:07] and thus won't be any timpler [02:07] the dirty stuff will be out of the way [02:08] you mean hide the d-i changes behind some "isDebianInstaller=True" argument or something? [02:08] def write_di_component (self, dr, pocketsuffix[pocket] , component, arches) [02:08] dor instance. [02:08] bah, for. [02:08] it'd have to cope with the non-di situation too [02:09] def write_component(...) [02:09] let me put it another way. you ahve a _long_ function that you are making longer. === Kinnison shrugs [02:10] it doesn't feel right/useful to me to split it out, but I'll do so if you think it's important [02:11] can you paste the entire file up? I'd like to see it in context [02:11] jordi, yeah. well at least hopefully we can figure out how to fix it [02:11] jordi, this danilo guy sounds helpful :D [02:11] https://chinstrap.ubuntu.com/~dsilvers/publishing.py [02:12] mdke: danilo is the man [02:12] Internal Server Error [02:12] jordi, cool [02:12] lifeless: wowyay [02:12] https://chinstrap.ubuntu.com/~dsilvers/publishing.py.txt ? [02:12] mdke: plus, lives in a decent timezone :) [02:12] Internal Server Error [02:12] try publishing.txt [02:13] pub.txt [02:14] ok. [02:14] this makes some stuff clearer [02:14] 's' is a template for the apt output yes ? [02:14] yeah [02:14] It's a poor name [02:14] I've already changed it to "stanza" [02:14] why is it in the for pocked in loop ? [02:14] but I didn't upload that [02:14] thats ok, I'm not blaming you :) [02:15] because it's dumb === Kinnison moves it out [02:15] updated pub.txt [02:16] ok, I suggest this, before # replace those tokens === salgado [n=salgado@200-171-140-32.dsl.telesp.net.br] has joined #launchpad [02:16] stub, jamesh: what's the best way to store a date, rather than a datetime? [02:16] depends what you want to do with it [02:17] for example, the string YYYY-MM-DD is good for some things [02:17] a date is good [02:17] for example, the date a sprint starts, and the date it ends [02:17] if it is a date you want [02:17] a datetime.date object then [02:17] also, the date a person arrives at a sprint, and the date they depart [02:17] in SQL? [02:17] this is why i dislike our use of datecreated etc. in the database [02:17] because these are datetimes created [02:17] def write_pocket(components, sections, extensions, cache_prefix): [02:17] a better name would be "whencreated" [02:17] sabdfl: postgres has a date type. I haven't tried it with DateTimeCol or UtcDateTimeCol though [02:17] so as not to confuse things with pure dates [02:18] def getPendingTasksEstimate(): [02:18] """Returns an estimate of the number of tasks waiting to be serviced. [02:18] This method may be useful for monitoring purposes. If the [02:18] number of pending tasks is continually climbing, your server [02:18] is becoming overloaded and the operator should be notified. [02:18] """ [02:18] cnf.write(stance ...) [02:18] stub: see above [02:18] jamesh: There's a DateCol in SQLObject. [02:18] jamesh: Which expects a column of type DATE in postgres. [02:18] stub: we can hook something in that uses that on accepting new connections [02:18] jamesh: is it smart about things like start and end dates? the tricky questions are, like, if your "departure date is 11/09/01, are you still around on that date?" [02:18] lifeless: as a nested function? [02:18] that will nicely factor this out, without a stupidly long parameter list [02:18] Kinnison: yes [02:19] Okay, I'll try [02:19] one sec [02:19] it also makes the stanza template local. [02:19] sabdfl: it simply stores yyyy-mm-dd. You can do arithmetic at the granularity of days [02:19] Y'know, I'm still unconvinced [02:20] consider how different the input is for the d-i stanzas [02:20] it'll be an ugly param list there anyway [02:20] jamesh: i think it might be easiest just to use datetimes, and use 8am for arrival, and 5pm for departure [02:20] jamesh: this is in support of your schedul-o-matic, anyhow ;-) [02:21] actually, thats a question. why do you write one di component at a time, when you write all of them above ? [02:21] thats probably the root of my confusion [02:21] because they're different tree {} stanzas in apt-ftparchive's config [02:22] check out /tmp/fileklVXM9 on mawson if you want to see an example [02:22] as elmo said, d-i is a "fucking bodge" [02:22] sabdfl: Hmm, wouldn't an second column, datekind, that is an enum of ARRIVAL_DATE or DEPARTURE_DATE be better than magic time components? [02:22] sabdfl: that might be easiest. If you just store dates, you'd need to assign some time of day to them before being able to tell if someone is available at a given time [02:22] Kinnison: I belive you. ok, lets move on === Kinnison nods [02:23] minor factor out: [02:23] def safe_makedirs(path): [02:23] spiv: accurate times allow us to say "John is here till 1pm on Friday" [02:24] if not os.path.exists(path): [02:24] os.makedirs(path) [02:24] sabdfl: that happens a lot with special guests [02:24] will simpify the end [02:24] lifeless: *nod* I like that === Kinnison does so === cprov [n=cprov@200-171-140-32.dsl.telesp.net.br] has joined #launchpad [02:25] SteveA: yup [02:25] the di makdirs should be outside the arch list anyway [02:25] as they dont use the arch variable [02:25] yep [02:25] that was an oopsie in indentation [02:26] sabdfl: ah, I thought you were proposing using something different (using 5pm to mean "the date component of this timestamp is a departure date"), rather than actually using the time. That makes sense, then. [02:26] this may be clearer: [02:26] + if drfullname in self._di_release_components: [02:26] + if comp in self._di_release_components[drfullname] : [02:26] -> [02:26] lifeless: I've updated pub.txt [02:26] if dr_fullname, componens in self._di_release_components.items(): [02:26] if comp in components [02:27] lifeless: ergh [02:27] that would confuse the hell out of me [02:27] jordi, it might be a good idea to get yourself added as moderator for ubuntu-translators@lists too, for when carlos isn't here [02:27] magically instantiating the "components" bit in the if statement [02:27] (I assume) [02:27] Kinnison: its a standard use of tuple expansion. what is confusin about ? [02:28] lifeless: if it's standard for python programmers, and stevea says it's not confusing, I'll use it [02:28] it looks confusing to me [02:28] because I'd be looking above to see where 'components' came from and thusly what was I looking for in the dict [02:28] Kinnison: hmm, I misread that, I was thinking for, not if [02:28] oh thank christ [02:28] i'd put that one in explicit () [02:28] I thought I'd got another reason to dislike python [02:28] if (drfullname, comp) in self._di_release_components.items(): [02:29] that is the correct usage [02:29] eh?! [02:29] and that'll automatically do the "if comp in self._di_release_components[drfullname] " ? [02:29] lifeless: hmm, except it's O(n) not O(1). [02:29] spiv: erk. [02:29] .me twiddles fingers [02:30] the code looks unneecessarily complex there [02:30] "if self._di_release_components.get(drfullname, None) == comp"? [02:30] Assuming comp cannot be None. [02:30] FFS, self._di_release_components[drfullname] will be a *Set* [02:30] (or None) [02:30] yes yes [02:30] not a component name [02:30] You're all confusing me a hell of a lot here [02:30] Kinnison: Er, right. === mpt waves the magic chicken over production [02:30] lets move on [02:31] "if comp in self._di_release_components.get(drfullname, set())" [02:31] Kinnison: blame lifeless ;) [02:31] Kinnison: But I think two lines is still clear enough. [02:31] [ os.path.join( [02:31] self._config.distsroot, [02:31] dr+pocketsuffix[pocket] , [02:31] - comp) [02:31] that is used a couple of times too, factoring it would make it cleaner, and shut me up about the two if lines [02:32] okay === spiv tries to avoid suggestions that only marginally improve readability when reviewing, although it's hard to fight the temptation to nitpick. [02:32] updated pub.txt [02:32] def component_path(*args): return os.pth.join ... [02:33] spiv: generally I do to, its just this thing is seriously opaque already, dont want it to get worse. [02:34] lifeless: Fair enough. I didn't mean that to be comment on your reviewing; I don't have the context to do that :) [02:34] stub: have you seen the process-mail.py failure? [02:34] Kinnison: I'm happy enough now. There are still occasional foobar not foo_bar names [02:34] Kinnison: if you audit your diff for those, I'm happy. [02:34] BjornT: no [02:34] I was more meaning that I was tempted to go off and fiddle more with that expression, which would silly of me :) [02:34] lifeless: okay, I'll try and get as many of them as I can stomach === Kinnison really_hates under_scored_names [02:35] stub: if fails with: ZConfig.ConfigurationSyntaxError: no values for 'buildd_download_url'; 1 required [02:35] (line 164 in file:///srv/launchpad.net/production/launchpad/configs/production/launchpad.conf) [02:35] ok [02:35] whoo === mpt sees the Launchpad offline page for the first time [02:35] yea === asmodai was just updating some info and got the lovely 503 ;) [02:36] lifeless: are you going to disable those particular CVS tests that are causing problems? [02:36] SteveA: I don't known which specific ones are causing problems. [02:37] SteveA: I'd rather just up the delay before the thing tries to connect TBH [02:37] ok [02:38] ERROR: testAnwersOnce (CVS.tests.test_CVS.PServerHelperTest) [02:38] that's one of them [02:38] i can't find my reply from pqm with the full list of errors [02:38] maybe i deleted it in disgust ;-0 [02:38] ;-) [02:39] SteveA: so thats in the pserver tests, wthere are also virtual server usage in the main tests, its going to be ~= disableing most tests [02:40] or upping the timeout on most tests [02:41] right. upping the timeout is my preferred course of action [02:41] ddaa: is there code to deal with '<<< no such revision >>>' in pybaz already ? [02:42] ddaa: and how much breakage does archivelocations patch cause ? [02:42] nah [02:42] ddaa: lastly, is the archivelocations patch in pubic pybaz yet ? [02:42] I do not understand your second question. [02:42] lifeless: okay, so please up the timeout in those tests [02:43] ddaa: what incompatabilities does the archivelocation pybaz patch inttroduce ? === lifeless delegates [02:43] ddaa: can you please double the timeout used for the local-pserver startup? [02:44] lifeless: [incompatibilities] not much that I recall. The biggest issue was deprecation of all registered-name related things, that SteveA made me remove from the rocketfuel branch. [02:44] mh... [02:44] in the light of the new baz roadmap, I guess there's little point in having those deprecations in the public branch either [02:46] [public] yes it's there [02:47] s/biggest issue that I recall/only issue that I recall/ [02:47] lifeless: I'll try to do the cscvs fixing once I managed to merge my nested-log patch. Which was rejected because of that exact problem. [02:48] ddaa: please just do it today, its 10 minutes max. [02:49] I thought that's what I said... [02:49] :q [02:49] no, you said you'l do it after some other thing, which is AIUI after the samba fix in your pipeline [02:50] the some other thing is actually merging the python fix [02:50] ddaa: it may have been clear to you but it wants to me. [02:51] ddaa: I asked for 'do X', and got 'sure, after Y' where 'Y' had no eta. [02:51] okay, I guess I'm expecting you to carry too much state [02:51] ddaa: I have no issue if you do it as after Y, but I want to keep steve et al happy, so I'm asking for anm ETA of X for today, irrespctive of the ta for Y [02:51] s/ ta/ eta/ [02:52] So, short answer, yes. [02:52] thanks [02:53] I've just put a * [02:53] robert.collins@canonical.com/pybaz--devel--0--patch-9 [02:53] o [02:53] support for <<< no such revision >>> and !!!!nothing should depend on this. [02:53] needs-review [@DATE@] [02:53] review request up for pybaz code. [02:54] Ack. How urgent is that? Today? Once I'm bored with the samba fix? Once I'm done with it? [02:55] wjust letting you know, it will pass normal review process and then I'll land it, but I'll want it i nthe public branch too [02:55] I thought you requested a review. [02:57] Merge to rocketfuel@canonical.com/launchpad--devel--0: r=spiv new tests for some menu system functionality. reorganisation of browser publication code. (patch-2408: steve.alexander@canonical.com) [02:58] ddaa: yes, from the review team. [02:58] ddaa: very happy for you to review it too. [02:59] Oh, right. You are not requesting a review but you'd be happy for me to do one "If I have the time"... I'll try to. === ddaa realises he is being vaguely rude [03:01] kiko-zzz: dude? [03:02] BjornT, lifeless, salgado, jamesh, spiv [03:02] reviewers team meeting on #canonical-meeting [03:03] stub: you're invited too, as dba fascist === mpt [n=mpt@200-171-140-32.dsl.telesp.net.br] has joined #launchpad === bradb [n=bradb@modemcable033.209-70-69.mc.videotron.ca] has joined #launchpad [03:16] is there any problem with LP? [03:17] I'm getting 502 proxy error. [03:17] Merge to rocketfuel@canonical.com/cscvs--devel--1.0: [r=spiv] nested log parsing, cleanups (patch-108: david.allouche@canonical.com) === Kinnison lunches [03:19] ciao dudes [03:21] jordi, i have created a new pot from danilo's instructions, already it has twice the entries than the original one... [03:22] jordi, we're going to have to angry translators I think [03:22] yay! [03:26] lifeless: Given that cprov has fixed all the stuff you pointed out in your review, can he now merge with r=lifeless? (You seem to have missed saying that bit) [03:27] kiko-zzz: said I was happy once pep8ificastion was audited by you [03:27] kiko-zzz: oh, you mean his doc branch ? I'lll check the current diff [03:29] hey ho [03:29] bzr branch of rocketfuel is now being uploaded to chinstrap:/home/warthogs/archives/rocketfuel-bzr-demo [03:29] sorry guys, had a lame morning [03:29] you will need the symlink baz2bzr branch of bzr to pull this, its at people.ubuntu.com/~robertc/baz2.0/bzr-baz2bzr [03:30] ITS NOT FINAL. warning warning warning alert alert alert danger will robinson [03:30] lifeless: I'm very confused. What is the status of the review of cprov's buildui branch? [03:31] Kinnison: I sent a review to him and the list, then steve and I talked about one aspect of that reviw, and I have not heard from cprov since [03:31] cprov: status? [03:31] lifeless: will check [03:32] https://chinstrap.ubuntu.com/~jamesh/pending-reviews/ - its in needs-reply [03:32] kiko: the distro boys are baying to LangPacks, what's the latest status? [03:33] it currently has conflicts with rf [03:34] lifeless: Sep 12 8:08PM at LP-reviews lists, the reply is there [03:34] sabdfl, stuart did an overnight (for me) whitespace fix run, I need to generate a new pack to see [03:34] sabdfl, we can talk about this at the reviewer's meeting, but the whole lag is very frustrating -- I feel like I have my hands tied [03:34] s/reviewers/mgmt [03:35] stub, rock on -- has the script finished running? [03:37] lifeless: permission denied. [03:38] lifeless: moved the bits in the wiki page, but I don't believe you haven't seen the email ... anyway, it was my fault. [03:39] the ssssssh.py in Launchpad seems to be taking my stderr away and not giving it back [03:43] Keybuk: aye, it does that unless you exit non-zero [03:44] no, it exited non-zero and still hid stderr [03:44] :'( [03:44] oh :-( [03:44] sux [03:44] the "ZOPE CAN'T WRITE CONFORMANT C" error got hidden [03:44] yeah there is that [03:44] is this a launchpad-on-breezy issue? [03:45] yes [03:45] can we "fix" it by saying CC=gcc-3.4 [03:45] cprov: I hadn't, it was waay down my inbox in a thread [03:45] or are you on a mission to make it gcc4 compliant? [03:45] Kinnison: you can fix it by editing the C file and fixing the one bug [03:45] cprov: I've replied - short answer, lastBuilds can too move. [03:45] niemeyer found it [03:46] a variable is declared both static and extern [03:46] wooyay [03:46] lifeless: again, sorry, it was really my fault ... thank you [03:47] np [03:49] kiko: Yes, the script is finished (which is why the email said 'run' instead if 'is running') [03:50] Merge to rocketfuel@canonical.com/launchpad--devel--0: [trivial] add table and classes for development manifests (patch-2409: mark.shuttleworth@canonical.com) === terrex [n=terrex@84-122-83-29.onocable.ono.com] has joined #launchpad [03:51] stub, yeah, I assumed so, just wanted to double-check because language can be oh so subtle [03:52] You accusing me of being subtle? [03:52] stub, language is subtle. you're just australian [03:53] lifeless: 100ms pserver spawn delay in cscvs on course [03:53] ddaa, aha [03:54] kiko: just a band-aid, I think the proper fix would involve special casing so "connection refused" would cause "fast" retries only on tests... [03:54] Not trivial by any mean. [03:54] ddaa: thanks [03:55] Crododile Dundee is my bible about .au subtlety :P [03:56] stub: another little landing on the way, sent mail, will you have a chance to look at it this evening? straightforward, i think [03:57] I'll have a look [04:02] sabdfl: Will you be converting walltimes for scheduling into utctimes for storage? [04:02] stub: faahrk [04:02] faahaaark [04:02] so yes, i guess so. jamesh, you prefer to store everything in UTC, right? [04:03] i mean, the db does anyway [04:03] If we assume sprints are physical, and not virtual, there is a use case for storing them in localtime [04:03] Are we going to have attendees via IRC? ;) [04:04] always store in UTC and translate for timezones (IMO) [04:05] Merge to rocketfuel@canonical.com/zope--test--3.0: Fix apidoc interface/class browser and GCC 4.0 fix (patch-19: stuart.bishop@canonical.com) [04:05] only sane way [04:05] oh, hello dilys, you're back [04:06] sabdfl: Why are "Edit Ticket", "Edit Priority and Assignee", and "Administer" separate pages? They partly intersect with each other, so I guess they're meant to be used by different people, but they all show up in the portlet for everyone [04:06] stub: mailed you a test webserver that cancels connections when there's more than 3 pending [04:06] lifeless: I can provide counter arguments, but in general I agree ;) [04:07] mpt: just trying a slight variation in style [04:07] SteveA: I'll look at that tomorrow [04:08] some folks will get irritated at having to visit three pages if they want to change everything [04:08] SteveA: I've sorted the current production issue anyway. [04:08] stub: just stick the file in launchpad/lib/ and run it, then go to localhost:8080 and hit reload lots [04:08] but i'm guessing people will generally be touching one, or the other page [04:08] and then they will prefer tighter, more focused pages [04:09] stub: can you check it works for you now? should only take a moment. [04:09] SteveA: Table statistics for some of the bigger tables had gotten out of date, so some of the scary queries where choosing really stoopid plans and running in glacial time. [04:09] sabdfl: There's only six fields in total involved here, so I doubt tightness is an issue really [04:10] stub: does staging use teh same query plans as production? [04:10] SteveA: It does when the table statistics are similar on both, which guided me to the real issue. [04:13] https://chinstrap.ubuntu.com/~dsilvers/paste/fileYoiFDV.html [04:13] stub, lifeless: this is what happens when you make a request that my zope.server additions will reject [04:14] i could conceivably make it reject the connection earlier [04:14] but it would be more work === stub is just building a local Pound to test [04:14] the current experiment is simple to make work with launchpad as it is now [04:14] lifeless: i'm interested in getting your opinion on this [04:15] if you want pound etc to think the host is down, it should not call accept() [04:15] stub, I have a question about the 503 page if I may [04:15] (the host should not) [04:15] sabdfl: In case you are bored, this is the log of queries executed to render a single one of the translation pages. There are rather a lot of queries... https://chinstrap.ubuntu.com/~dsilvers/paste/fileM78Eyf.html [04:15] stub, when the server is down, I've never seen this "launchpad is down page" [04:16] kiko: I have :) [04:16] kiko: i saw it today [04:16] it has to be a 503 [04:16] not a 504 [04:16] kiko: That is because you havn't seen the server down in the last week, which is about how long it has been installed [04:16] SteveA, spiv: why don't we see it when the server crashes? [04:16] beacuse that is often a 504 [04:16] Depends on how it's down. [04:16] stub, no, we saw it down yesterday [04:16] it was a 504 yesterday [04:16] ah. [04:16] Launchpad wasn't down, it was happily accepting connections... [04:16] lifeless: so, i have to stop the connection at a lower level? [04:16] and there's no such thing as a 504 page, I imagine? [04:17] i'm sure there is [04:17] we'd just have to make one, and ask elmo to install it [04:17] or ask him to use the same one... although "down for maintenance" would be untrue in that case [04:17] SteveA: yah. IIRC we can leave the socket bound, and not call accept(), and then the proxy will see tcp fail and know to fail over [04:18] so your accept loop needs a flag, if(!busy): faccept === spiv knows how to do achieve that with Twisted [04:19] s/do// [04:19] from label: come [do something here.] [04:19] lifeless: :) [04:19] 5 points if you spot the language that was in [04:20] Pound doesn't do 504 [04:20] But Apache probably does. [04:20] pqm going down [04:20] magic wand time [04:20] spiv: would be easy if zope3 used twisted already. sadly, doesn't [04:21] Yeah. (Not that it's clearly documented how to do this with Twisted... just that I happen to know the trick) [04:22] the issue is, once yyou call accept() the 3-way handshake has been shook [04:22] i think i see where i need to do this [04:22] and your load balancer now has to deetect application level errors, not tcp errors. [04:22] IIRC squid does app level errors :) [04:23] stub: i'll send you a new version in a few minutes [04:30] SteveA: With that version I'm getting a 500 error [04:30] is that good? [04:31] lifeless: what is the trick to make "cscvs log" work with svn checkouts? [04:31] i can easily make it explicitly give a particular error [04:31] ddaa: erm, cscvs -d :pserver:ficticious@home log [04:32] bwahaha [04:32] SteveA: It means the load balancer thinks it is still up and running [04:32] SteveA: as I sexpected [04:32] SteveA: Which isn't good, if only one of the backends is screwed [04:32] ok === spiv hopes that was a typo [04:33] Ahem [04:34] lifeless: SCM.NotAWorkingTree: Path is not a CVS working directory [04:34] I mean, I know it's not a CVS working tree, it's a SVN one... [04:34] okay, I guess the answer is "you don't" [04:35] ddaa: hmm, it *should* be able to work, but anway, I use svn log as it good enough [04:35] Merge to rocketfuel@canonical.com/launchpad--devel--0: Make publisher aware of d-i. Fix up some non-PEP8ish code along the way. Make sure overrides are pocket aware. r=lifeless (patch-2410: daniel.silverstone@canonical.com) [04:36] jordi, around? [04:36] stub: there's an argument to socket.listen() which is the "backlog" [04:37] that is the max number of queued connections [04:37] maybe reducing that would work [04:37] SteveA: what is your bavcklog set to ? [04:37] 1024 [04:37] jesus [04:37] lifeless: I you recall what it is that needs to be fixed for samba, I'd appreciate some refreshing. I sort of remember I must do something just like DeletedAdapter but the other way around, maybe for nested adds whatever that means, but I'm a bit at a loss. [04:37] we have two things: one is the backlog. the other is the number of queued tasks. these are of course related [04:37] how many threads to we have? 4 ? [04:38] maybe just reducing the backlog will be enough. [04:38] 4 by default, and I think an upper limit of 7 still [04:38] if we have 4 threads, I would suggset a backlog of 40 [04:38] # Stop accepting new connections if too many are already active. [04:38] connection_limit = maxsockets.max_select_sockets() - 3 # Safe [04:38] aha [04:38] so, there is a connection_limit too [04:38] don't know if it is used or not, though [04:39] yep, it ought to be [04:40] so, we can probably do it by changing backlog and connection_limit [04:43] connection_limit is 97 on my machine [04:44] 97 is _way_ to high for something that does synchronous service on 4 requests at once [04:45] theres incredibly little point in having more than 8 connections if you do 4 things ar once. [04:46] ddaa: adds of a dir that have a copyfrom_revision set need to to a recursive copy [04:46] i.e the inverse of deleted adapter [04:47] mhr, right what I recall [04:47] thx [04:48] SteveA: if connection limit works, could be worth defaulting it to 4*threads upstream (assuming there isn't already a config item to set it...) [04:48] i'm going to add some config items for these [04:48] (or 10* as per robs suggestion) [04:49] but, i'm still trying to get them to show the desired behaviour [04:49] Bed! === ddaa [n=ddaa@marvin.xlii.org] has joined #launchpad [05:12] mdke: yeah [05:12] mdke: I'm following this discussion.. [05:12] hm [05:14] mpt: http://69.70.209.33:8086/products/ubuntu/+bug/1 [05:14] mpt: spot the demystification in under 5 seconds. [05:14] jordi, i wanted your opinion on the question of how many translations will get lost, and how many might be kept [05:15] mdke: did many translate the huge line? [05:15] jordi, if the msgid string is exactly the same, but with a different comment, will the existing translation be kept, or lost? [05:15] or lines? [05:15] kept [05:15] ok then we should be good to go [05:15] comments are not taken into account when merging. [05:16] great [05:16] so, I think that we can consider uploading the new pot [05:17] jordi, the only question is whether to merge the original into one file first, or to do it later [05:17] SteveA: fyi, I added a couple of problems (that might be the same problem) to LaunchpadMenusInProgress [05:18] okay, cool [05:18] mdke: if xml2po will handle a well formed file with xincludes, I would do different xml files, for manageability [05:18] mdke: but would of course generate just one pot file. [05:18] mdke: the GNOME docs are like this and they work ok. [05:18] mdke: if you want help with setting up makefiles, we can have a look too. [05:18] bradb: whoa [05:18] jordi, yeah, it's just a question of whether we can get different xml files back from the translations [05:19] bradb: Tony Robbins would love that page, it has a Massive Actions portlet :-) [05:19] there's not much point having different xml files for the original and single ones for the translations [05:20] mpt: massive? heh, it's a mini portlet compared to, say, the person page. [05:20] true, but more of them here are multiple lines [05:21] maybe that's just my minimum font size talking [05:21] but it's big. it's also got useful links, and it's been observed then when users want to do something, they quickly adapt to always looking in that space to find the golden path [05:22] mdke: gnome release notes have 10 xml files, the process generates 1 though. [05:22] maybe, but adaptable != pleasant [05:22] It may still be useful to have your sources in multiple, but distribute the final, single doc. [05:22] It's still daft that subscribing is on the opposite side of the page from the list of subscribers [05:22] bradb: What's that "Subscribe someone else" for? [05:23] mpt: Indeed it is. Maybe at some point we'll be able to sell the idea of putting links in logical, easy to trip over (in a good way) places. [05:23] mdke: scratch that for a minute [05:23] mpt: To Cc someone else on the bug report. I believe sabdfl was the one that tweaked those bits. [05:23] totally wrong [05:25] mdke: 10 source xml files, 10 output xml files for each language. [05:25] I believe this last tweak will significantly reduce the repeated (and well-merited, I might add) whining about not being able to figure out how to assign a bug. [05:25] mdke: so way to go [05:26] hmm [05:26] jordi, just a question of whether we can do that too [05:27] salgado, kiko: the "preserve edit message" landing, does that use the general mechanism we described in Brazil? [05:27] yeah? [05:27] sabdfl, "preserve edit message"? [05:28] yes [05:28] Fix the person-edit view to preserve the message displayed by the edit view when we redirect to their new canonical_url (as a consequence of a name change). r=kiko' [05:28] mpt: There are various ways we can pull stuff out of the actions portlet though. e.g. [Edit] link beside the description (afterall, you decide to edit a description when you're looking at the description, more-than-likely); same principle with "secrecy", subscriptions (which is a portlet that should always be present, I think), we can drop adding web links, etc. [05:28] is that done without a tacky ?message=Your%20Edit%20Message url? [05:28] sabdfl, ah, no. AFAICT that mechanism is not yet implemented [05:29] bradb, mpt: the main way to pull stuff out of the actions portlet is to get the menu system implemented. please stuff everything in the actions portlet until menu systems are done [05:29] so, yes, it does use a special GET parameter, but the message is not in the GET itself [05:29] don't spend any effort trying to optimise the actions portlet, which is obsoleted by the menu system [05:29] sabdfl: yep, i'm stuffing everything in there: http://69.70.209.33:8086/products/ubuntu/+bug/1 [05:30] we wanted menu systems in before UDU, I will BREAK BALLS IN MONTREAL if it's not done by the time our session starts there [05:30] bradb: good man [05:30] errr [05:30] special get parameter? [05:31] just an ?updated=date [05:35] sabdfl: stu is working on the messages stuff [05:36] salgado: that's rather minor bling, and we have a general mechanism on the way, so let's not do that anywhere else? [05:37] sabdfl, you mean, simply redirect without any message until we have the mechanism implemented? === bradb takes a look at what stub's form error message infrastructure can do to help de-robotize Malone error messages [05:41] salgado: yes please [05:41] bradb: you'll like the new FormView [05:42] it's under review, will hopefully land tomorrow [05:42] pending my hearing back from jamesh ;-) [05:42] sabdfl: It's got some support for notices? === jinty [n=jinty@205.134.224.215] has joined #launchpad [05:43] bradb: yes [05:43] more importantly, its a simpler and more flexible thing than addform [05:44] and with some tweaks it could improve editform too (just need to figure out how to pre-set the fields) [05:45] sabdfl: I think setUpWidgets knows how to init edit fields. [05:46] Unless you were referring to something else. [05:51] sabdfl: do you know by chance what needs to be done with those "dont-use" or "breezy-review" pots in rosetta? [05:51] ie, what do I need to do exactly to "fix" them? I don't want to fuckup. [05:51] bradb: the problem is that an editform assumes that you are editing the context [05:52] i want to be a bit more relaxed than that [05:52] editforms, so far, are ok, so i'm leaving it as it is for the moment [05:52] jordi: i don't know. i think there is a "hide" checkbox somewhere. BUT, the real solution is not to import them in the first place [05:53] i'll want carlos to address that first thing when he's back [05:53] because those damn things are building up [05:53] sabdfl: right. i look forward to being liberated from browser:addform, at least. :) [05:53] bradb: the new form is a good replacement for addform, yes [05:54] sabdfl: yeah :( [05:54] sabdfl: so should I hold this until next week? [05:54] jordi: yes [05:54] it would be possible to put "DO NOT USE THIS" on the description of each of them, but i don't think it's worth doing that [05:55] ok. I'll do some email processing and FAQ work [05:56] I think mdke has the faqguide problem under control now. That was worrying for a moment, but it boiled down to a not so well formed xml [05:56] gool [05:56] Merge to rocketfuel@canonical.com/cscvs--devel--1.0: [trivial] wait for local psever to spawn for 100ms (patch-109: david.allouche@canonical.com) [06:15] woohoo, stub's form error message thing seems pretty straightforward === bradb & # will write more useful error messages after lunch [06:19] bradb: it's implemented already? [06:19] i didn't see it land [06:21] me neither [06:22] mpt: ping [06:23] elmo: ping? [06:27] Merge to rocketfuel@canonical.com/launchpad--devel--0: Fix the person-edit view to preserve the message displayed by the edit view when we redirect to their new canonical_url (as a consequence of a name change). r=kiko (patch-2411) [06:28] SteveA: what's the best way to get "now" formatted as a string in UTC in python? [06:28] SteveA: this is independant of the database [06:28] now is what? [06:28] a time [06:28] a datetime? [06:29] import datetime ; datetime.datetime.utcnow().strftime('....') [06:29] >>> datetime.datetime.utcnow().isoformat() [06:29] '2005-09-14T16:29:16.310295' [06:29] elmo, around? [06:29] >>> datetime.datetime.utcnow().ctime() [06:29] 'Wed Sep 14 16:29:33 2005' [06:29] """Date: Fri, 13 May 2005 12:42:31 UTC""" [06:29] I want that format [06:30] I can obviously shove the 'Date: ' on the front myself [06:30] http://docs.python.org/lib/module-time.html [06:31] >>> datetime.datetime.utcnow().strftime('Date: %a, %d %b') [06:31] there's the first part [06:31] ta [06:33] Now all I need is to work out how to do a buggerload of md5sums and sha1sums and how to format things like I would in perl using a format string === Kinnison ponders === Seveas [n=seveas@seveas.demon.nl] has joined #launchpad === cprov [n=cprov@200-171-140-32.dsl.telesp.net.br] has joined #launchpad [06:55] bradb: ping [06:56] BjornT: ping [06:56] Merge to rocketfuel@canonical.com/launchpad--devel--0: [trivial] Use a different
for adding a new email address in a person's email address page. Fix https://launchpad.ubuntu.com/malone/bugs/1348. (patch-2412) [06:57] brad filed this bug: https://launchpad.net/malone/bugs/1515 i want to know if it is still an issue, as written, or if it needs updating [06:58] alright, who is sending empty merges into pqm? [06:58] and why haven't we modified check_merge to spot these and error out? === SnakeBite [n=SnakeBit@84.242.143.64] has joined #launchpad [07:00] maybe someone isn't mirroring, and is using tree-version rather than tree-id in their submit script [07:00] Kinnison: it's probably related to a non mirrored change .. [07:00] ;) [07:01] indeed, but even so, surely it's easy to spot? [07:01] in what script? === camilotelles [n=Camilo@200.128.80.250] has joined #launchpad [07:02] how about in the check_merge target of the top level makefile [07:03] isn't it too late by then? [07:03] i mean, the merge has already taken place [07:03] SteveA: pong [07:03] hi [07:04] mpt: let me know when you have 10 min for help me with some facets issues in builddUI === camilotelles_ [n=Camilo@200.128.80.250] has joined #launchpad [07:29] SteveA: pong. yes, it's landed (i saw it land, i also tried it out before going for lunch). as for 1515, I don't know whether or not it's still an issue, because I haven't looked at Malone menu code since before brazil. === gneuman [n=guest@200-171-140-32.dsl.telesp.net.br] has joined #launchpad === SteveA notes that the network connection from async has gone down [07:48] ciao, dinner time [07:48] Kinnison: see you [07:48] jordi, got the new pot ready. shall I upload it straight away or do you want to have a quick look? === dand [n=dand@83.103.205.67] has joined #launchpad === mp1 [n=mpt@200-171-140-32.dsl.telesp.net.br] has joined #launchpad [07:53] mp1: network back? [07:54] SteveA: it is ... [07:54] SteveA: yup [08:25] jordi, uploading, fingers crossed === cprov -> out, back in 1 hour [08:26] mpt: i'm off home shortly. can you mail me details of the branch, or patch or whatever for those person menus we discussed? [08:26] BjornT: Do you think you'll have a chance to review the URL change patch tomorrow? [08:26] i'll continue work on that tomorrow morning. [08:27] SteveA: ok [08:27] jordi, eureka [08:31] bradb: don't know. i'll definitely dedicate some time tomorrow for reviewing it, but i'm not sure that i will be able to review all of it. [08:31] BjornT: ok, thanks [08:31] I'm working on a branch that's branch off of it atm, to improve our failure modes in forms and such. [08:31] s/branch off/branched off/ [08:32] mdke: that's great [08:32] cool [08:33] jordi, looks like the translations have not been lost [08:33] jordi, thanks very much indeed for your help [08:35] mdke: no worries! [08:35] mdke: used -e? [08:36] yes [08:36] mdke, https://launchpad.net/distros/ubuntu/breezy/+sources/ubuntu-docs/+pots/faqguide/pt/+translate?offset=210 === Burgundavia [n=corey@S0106000000cc07fc.gv.shawcable.net] has joined #launchpad [08:37] mdke, excellent... these big lines though :) [08:37] mdke, great job! ;) [08:37] big lines? [08:38] mdke, a little detail... they don't fit in the screen ... something completely different.. nevermind :) [08:38] gah, that can't be my fault [08:38] blame jordi [08:38] mdke, eheh [08:48] SteveA, as for your question, salgado has tested the email locally but not in production or staging [08:48] staging doesn't send email [08:48] production... [08:48] there are tests for it in the code though [08:49] we can test it in production now [08:50] ah, /shipit [08:50] kiko, shhhhhh [08:55] :) === camilotelles_ is now known as camilotelles_sfk === camilotelles_sfk is now known as camilotelles_afk [09:20] jordi? [09:22] kiko: pong [09:23] sabdfl, did you ever give elmo his gift? :) [09:23] later all [09:23] laters lifeless === camilotelles_afk is now known as camilotelles [09:39] sabdfl, should we have a separate ShippingAddress table (as stub suggested) or should we put the addresses in the ShippingRequest table? === cprov [n=cprov@200-171-140-32.dsl.telesp.net.br] has joined #launchpad [09:49] PQM seems to be stalled, processing my job for 1,5 hours [09:50] it's doing stuff [09:50] pqm 10134 40.8 1.8 112584 68780 ? R 20:41 3:25 \_ /usr/bin/python2.4 test.py -vv --dir hct --dir sourcerer === mdke [n=matt@unaffiliated/mdke] has left #launchpad [] [09:52] elmo: ok, thank you for looking, let's wait [10:07] salgado: it's fine where it is for the moment [10:07] kiko: doh [10:07] now i need to find them [10:11] sabdfl, we need to allow Marilize to place new orders for people which she doesn't have an email address, and thus we can't create a person for these requests. Jane said this is a real use case and we need to implement it soon [10:12] salgado: we do not require an email address for a user in LP [10:12] sabdfl, stub has reservations to adding dummy users to launchpad [10:13] kiko: they would be real users with real names, would they not? [10:13] there is also the issue of supporting users that want to request to multiple addresses [10:13] sabdfl, I don't think so -- think S-n-A. [10:13] do you really have names for all the recipients? [10:13] mm... The Manager, Foo Bar Internet Cafe [10:13] and by name I mean "George T. Washington" not "New Delhi Computer Outlet" [10:13] i guess not... [10:14] so who logs in to request another order? [10:14] It appears to me that it's a lot cleaner to decouple addresses from people [10:14] shipit admins can generate requests as well [10:14] the data model would allow for the shipment to indicate a recipient name [10:15] and thus not using the name of the person who created it. [10:15] otoh we could also just piggyback request and add address information there [10:15] there is little difference between the two models [10:16] yes there is [10:16] (if using a separate shippingaddress table, users' edits to it will be used in non-exported shipments, otherwise, it's fire-n-forget) [10:16] followon requests should be tied to the same address [10:16] there is difference [10:16] oh [10:16] sorry [10:16] I was incomplete [10:17] person would have address information -- and we'd copy that into a shippingrequest when placed. [10:17] that's the other alternative [10:19] the disadvantage is that it duplicates information [10:19] preferences, sabdfl? [10:20] if we leave address in person, and copy over, how does that decouple requests from people? [10:20] do we just allow the person to be NULL? [10:20] and have a mechanism to create the person if they come back with their token? [10:20] right [10:20] that's precisely what stuart suggested, too [10:21] he reckons few people are actually going to validate their tokens, which means that most users will just be used as a hanger for address information. [10:21] I can't say I disagree [10:22] I mean, salgado and I don't /want/ to change the data model, but acknowledge it's the right thing to do [10:23] ok [10:23] then put the address in the shippingrequest [10:24] leave address details in the person record [10:24] we can copy it there for defaults if the person has filled it in, and comes back [10:24] other way around [10:24] we can copy from person to shipping request if they come back to make a new shipping request [10:24] amazon allows you to add addresses [10:24] and then select one for each order [10:24] but we don't want to get that fancy [10:25] okay [10:25] good call, stub [10:25] I think you're right -- it's the simpler solution. [10:26] and it's easy to refactor that later [10:26] well, it involves some cut-n-pastage of data [10:27] they are two different bits of data [10:27] one is "my current address" [10:27] the other is "the address of this shipping request" [10:27] it's not a badness to have it in both places, in this case [10:27] yes [10:27] agreed, entirely [10:28] I was just saying that if you want to move to having multiple addresses per person, it involves moving the address out of person. but anyway.. [10:28] well, not even [10:28] maybe [10:28] cross that bridge when we get to it [10:28] right [10:31] we would need to have a displayname together with the address (in the shippingrequest table), so Marilize can place orders for other people (not S-n-A). otherwise all requests would be sent with Marilize's name. either we do that or we'll be creating person objects for this people? === mpt leaves baz to its ponderosity, and heads homeward [10:34] salgado, the former -- a displayname with the address [10:34] it appears to be the best way to handle this [10:34] that's what I think too [10:34] you might get smart and make the code pull owner.displayname when displayname is NULL, but.. [10:43] jamesh: ping === bradb finishes humanizing the error messages on pages linked off the bug page; entering bad data has never felt so good. [10:55] salgado: make the shipping address have a .addressee attribute, which looks at a local field, or person.browsername [11:00] sabdfl, yeah, that will make life easier for client code === bradb & # later