=== BradB|London [~bradb@224-21-161-212.DSL.ONCOLT.COM] has joined #launchpad === debonzi [~debonzi@224-21-161-212.DSL.ONCOLT.COM] has joined #launchpad === mdz [~mdz@69-167-148-207.vnnyca.adelphia.net] has joined #launchpad === mdz [~mdz@69-167-148-207.vnnyca.adelphia.net] has joined #launchpad === cprov_ [~cprov@224-21-161-212.DSL.ONCOLT.COM] has joined #launchpad === lalo [~lalo@201.10.27.117] has joined #launchpad === lalo [~lalo@201.10.27.117] has left #launchpad [] === lalo [~lalo@201.10.27.117] has joined #launchpad === lalo adds more to his reputation for being weird by switching to dvorak === cprov__ [~cprov@224-21-161-212.DSL.ONCOLT.COM] has joined #launchpad === jdub [~jdub@home.waugh.id.au] has joined #launchpad [02:11] ahar [02:11] launchpad dudes [02:11] now i have the megaphone [02:11] muhahaha [02:11] https://www.warthogs.hbd.com/Launchpad/Testers [02:11] just added a page for potential launchpad testers [02:12] give it love [02:12] and stuff === jdub blows kisses === jdub [~jdub@home.waugh.id.au] has left #launchpad [] === kiko [~kiko@224-21-161-212.DSL.ONCOLT.COM] has joined #launchpad [02:23] boing [02:23] stub? === cprov_ [~cprov@224-21-161-212.DSL.ONCOLT.COM] has joined #launchpad === kiko_ [~kiko@224-21-161-212.DSL.ONCOLT.COM] has joined #launchpad === lalo [~lalo@201.10.27.117] has joined #launchpad === lalo [~lalo@201.10.27.117] has left #launchpad [] === lalo [~lalo@201.10.27.117] has joined #launchpad === lalo [~lalo@201.10.27.117] has left #launchpad [] === lalo [~lalo@201.10.27.117] has joined #launchpad === mdz [~mdz@69-167-148-207.vnnyca.adelphia.net] has joined #launchpad === lalo [~lalo@200.96.104.254] has joined #launchpad [09:56] any idea what creates a ,,star-merge directory, and whether i can safely delete it? === BradB|London [~bradb@host217-37-231-28.in-addr.btopenworld.com] has joined #launchpad === debonzi [~debonzi@host217-37-231-28.in-addr.btopenworld.com] has joined #launchpad === BradB|London is now known as BradB === cprov [~cprov@host217-37-231-28.in-addr.btopenworld.com] has joined #launchpad === kiko [~kiko@host217-37-231-28.in-addr.btopenworld.com] has joined #launchpad [10:50] hey lunchpad [10:50] stub, around? [11:01] sabdfl: AIUI, any files beginning with ,, are working files [11:01] so, if the star merge is done, then you won't need it any more [11:01] tnx === elmo_ [~james@host217-37-231-28.in-addr.btopenworld.com] has joined #launchpad [11:28] kiko: Yo [11:28] kiko: Re your indexes [11:28] and the gpg thingies [11:28] :) [11:29] those indexes are gold dude [11:29] I'm trying to work out if two of them are necessary (which I will get to when my mail folder opens...) [11:30] I spent a lot of time in explain, I am quite sure they are [11:30] these fields are not unique [11:31] so they are not indexed by default [11:31] given we join on them (for instance sourcepackage.sourcepackagename) a lot, seq scan shows its ugly head everywhere [11:31] I can paste in some killer queries if you still need convincing [11:31] The index on binarypackage (binarypackagename) should not be necessary, as the unique (binarypackagename, version) index should be used. [11:32] it isn't [11:32] The index on sourcepackageupload(sourcepackagerelease) should not be used if you are also matching on distrorelease (which you might not be) [11:32] hmmm [11:32] it was also necessary [11:32] well [11:32] here's how I proceeded [11:32] timed query, explained it [11:33] added index [11:33] timed query, explained it [11:33] repeat [11:33] Did you run a vacuume analyze, explain, create index, vacuume analyze, explain? [11:33] obviously the second query benefits from cached data [11:33] yes, but I wasn't too interested in the time, more in the explain output === stub can't spell [11:34] this set of indexes removed all the seq scans but one in both the queries that were biting us [11:34] Ok. If you did the analyze before trusting the explain output I'll add them too. [11:34] interestingly enough vaccum analyze didn't change the explain output (iirc) [11:35] It is more a paranoia check - I think a goal for postgres would be to make it totally unnecessary ;) [11:35] stub, there was something else I wanted to ask you [11:35] yeah, definitely [11:35] we used a view to make the package list render in non-geological time in the end [11:35] It might be that it is more expensive to use the combined index, and postgres decided a seq scan was more efficient. [11:36] maybe [11:36] I am not concerned with the time it takes to insert a new package [11:36] because that is not the bottleneck in that task (we need to open and process the package and that makes me sleepy) [11:36] anyway, about the view [11:36] the trick is that is allows me to "pre-query" for all the attributes on the object I wanted [11:37] I was doing a query on sourcepackage and then when displaying their names *each* package resulted in a query for the sourcepackagename.name [11:37] which means that queries scaled according to O(n) which is evil [11:37] the view allows us to prefetch all the information and just use it [11:38] what's your view on this, and how do you think we should deal with this on the sqlobject level [11:39] Hmm... sqlobject should cache the sourcepackagename instance [11:39] it does [11:39] but not the sourcepackagename's name [11:39] ah, I see what you mean [11:39] well [11:40] it *could* add fields to the join output to make sure it has all the data it might need to display all possible traverses from that object [11:40] but I think that would require hinting [11:41] By caching I mean 'assert id(SourcepackageName.get(1)) == id(SourcepackageName.get(1))' succeeds [11:42] doesn't it do that? [11:42] I thought we cached instances properly in sqlobj [11:43] the issue is pre-filling their dicts based on joins they participated in :) [11:44] So why is getting the sourcepackage's name causing extra database hits? [11:44] because sourcepackagename's instance's dict doesn't prefill [11:44] we just have its id [11:44] not the "name" attribute [11:44] does that make sense? [11:45] (sortof like a "ghosted" zodb persistent object if you are familiar with that) [11:46] so [11:46] print sourcepackagename.get(1).__dict__ just contains {"id": 2232} === kiko cries [11:49] gina needs dbschema [11:49] oic what you are getting at now :-) [11:50] I personally would rather destroy the sourcepackagename table and move the field back into sourcepackage [11:51] It doesn't gain us anything, and just makes queries hairier. [11:51] (ditto binarypackagename) [11:51] that will get you in trouble with sabdfl [11:52] stub: normalisation tradeoff? may be worth it [11:53] There isn't really a normalisation tradeoff - there is only one column of data in the sourcepackagename table so you don't gain anything. [11:54] well [11:54] it avoids duplicating the string in sourcepackage/binarypackage [11:54] update sourcepackagename set name='newname' where name='oldname' vs. update sourcepackage set name='newname' where name='oldname'. [11:54] that's about it though. [11:54] It is a bigger waste of space to maintain the extra table, so that is a furfy. [11:55] thank god someone knows what a furfy is [11:55] I just don't think I can spell it :-) [11:55] (or is that right?) [11:56] I had never even heard the word but I assume I know what it is [11:56] anyway, if this bothers us enough I'll ask you to kill it [11:56] however, it doesn't invalidate the sql view discussion because hah [11:57] there are other tables we want to get data from :-/ [11:57] just let me know how many views, the queries and how often they need to be updated (I suspect they need to be 'live' and maintained with triggers) [11:59] Or maybe it would be better to work out how to 'prefetch' all the data. eg. If you did SourcepackageName.select('1==1'), it might suck the entire table in. [12:02] Mmm.... sweet potatoe and tofu daal with couscous.... [12:07] I think prefetch could be done easily by providing an extraFields argument to query() but you didn't hear that from me :) [12:07] the views are just regular create view views -- they are fast enough as it is. [12:07] the only reason we're using them is to make sqlobject back [12:07] ok. sounds like a plan. [12:08] sqlobject happy, sorry. [12:08] I wonder if you can flag a SQLObject subclass as 'readonly'... Hmmm... [12:09] I guess it is called 'documentation' [12:11] sabdfl: Can I revert sourcepackagename and binarypackagename? Can I do it now or wait until after the migration work? [12:16] kiko: I'll want to give the views a prefix so people don't confuse them with tables. Lowercase 'v'? 'SoyuzView'? 'SView' ? [12:23] stub: wait until after the migration [12:24] I'd rather we suffixed them just with View -- I don't think they are application-specific [12:27] 'morning [12:28] The work on re-arranging the source code will be starting very soon. [12:31] Who has outstanding merges? [12:31] Looks like a merge from stub is being processed atm. [12:32] oooh. I don't merge my stuff into rf ever since I crashed it a few days ago. === lalo goes submit a merge [12:32] lalo: I sent an email to the list yesterday [12:32] lalo: I was very clear that all merges must be submitted by 0900 UTC [12:32] SteveA: I read it [12:33] and... [12:33] well [12:33] tell me why seven people here should be delayed by however long it takes your merge to go through [12:33] sitting around doing nothing productive? [12:34] if you need to begin, go on - I'll sort out my conflicts later [12:34] ok. don't merge. we'll start as soon as the pqm queue is empty [12:34] lalo: that's not good teamwork === kiko tap taps for pqm [12:36] when I said I was going to submit, I didn't consider that it is already more than 9UTC; and I would have realized that and given up submitting, if you didn't warn me [12:37] apt-get install grandfatherclock [12:37] so, sorry for thinking out loud :-P I'm still waking up [12:39] (as a matter of policy I never commit anything *or* submit merges till I'm sure I'm safely awake) === lalo goes read mail === carlos [~carlos@69.Red-80-33-181.pooles.rima-tde.net] has joined #launchpad [12:41] 'morning carlos [12:42] morning [12:42] New bug 2068 for Launchpad/Launchpad: Wishlist: view PQM's pending queue [12:42] https://bugzilla.warthogs.hbd.com/bugzilla/show_bug.cgi?id=2068 [01:02] "dilys" ?? [01:04] that's daf's bugzilla-watching bot [01:04] oh [01:05] I thought it was his new nick ;) [01:08] daf: ping [01:09] SteveA: pong [01:16] SteveA: could we work with rocketfuel or should we wait for the changes you are doing ? === kiko [~kiko@host217-37-231-28.in-addr.btopenworld.com] has joined #launchpad [01:18] hey daf dude [01:18] can you roll the database on at rosetta.wh? [01:19] "roll"? :) [01:19] well every second page generates a programming error traceback [01:19] so that's bad publicity for soyuz [01:19] you want me to reset it? [01:20] you're missing the "name" changes [01:20] https://rosetta.warthogs.hbd.com/++skin++Debug/soyuz/distros/ubuntu [01:20] fmi check the uri above [01:20] done [01:21] invalid gateway? [01:21] or bad gateway? [01:21] interesting [01:21] didn't run [01:22] daf, kick that lunchpad man [01:22] IOError: [Errno 2] No such file or directory: '/home/daf/launchpad-devel/launchpad/lib/canonical/doap/sql.zcml' [01:23] spiv: was that you? :) [01:24] it was sabdfl [01:24] so we need to wait now === kiko grumbles [01:25] sabdfl: you broke Launchpad [01:25] sabdfl: naughty! [01:25] daf, maybe just touch the file or somthing? [01:25] I'll try it [01:26] nope, doesn't work === kiko cries crocodile tears [01:28] ah, got it running [01:28] ah dude you are da man [01:28] let me run my crapola tester again [01:30] "crapola tester"? [01:30] is this the wget -r testing thing? [01:30] a traceback checker through wget [01:31] yes [01:31] groovy [01:31] you make me decide it's going to be called crapola [01:31] that explains the request rate [01:31] it's as slow as molasses right now though [01:31] I'll put it on chinstrap or something [01:32] kiko: when you're done, you need to write an input thingy for dilys to show results :) [01:32] wow that would rock [01:32] yeah [01:32] i'll email dilys and you parse the output? [01:32] exactly [01:33] wow [01:33] yeah [01:33] well, you email me and procmail catches it and feeds it to dilys [01:33] "page foo just busted, latest checkin was by stub the nasty penguin " [01:33] daf: how has sabdfl broken launchpad? [01:34] SteveA: by adding an include in ZCML for a file which doesn't exist [01:34] SteveA: AFAICT [01:34] ok, that will be fixed soon [01:34] daf: did all the rosetta test failures get fixed? [01:34] we talked about this a week or so ago [01:35] daf: you should hook it to pqm [01:35] I'm thinking lunchpad [01:35] we will be making all launchpad checkins run all tests [01:35] the unittest are working [01:36] all unit tests are passing? [01:36] we have a functional test failing (hope will be fixed today) [01:36] daf: what'd i do? === ..[topic/#launchpad:SteveA] : Source code re-arrangement in progress. No merges into rocketfuel until further notice! [01:37] sabdfl: the missed file [01:37] daf, sorry, it exists in my tree, forgot to add it [01:37] don't worry about it, it will be fixed when we merge stuff soon [01:37] sabdfl: no worries [01:37] shit [01:37] It was passing yesterday [01:37] 5 errors today? [01:37] sabdfl: by the way, I think "tla tree-lint" would have complained about the file if you didn't add it [01:38] carlos: have you modified your database? [01:38] carlos: they're affected by that [01:38] we need an "I want to commit" script [01:38] it should run tree-lint [01:38] and run tests [01:38] yes, it would... does it also give a useful exit code? [01:38] daf: the unittest should not depend on that, right? [01:38] the unit test should not depend on any zcml [01:38] sabdfl: I think the --strict option gives you that === carlos should leave to have lunch so will be back in time for the daily meeting [01:39] later [01:40] do we need to have the broken symlinks in lib/? [01:40] daf: yes [01:41] or, you can install the extra software [01:41] so that the symlinks will not be broken [01:41] why aren't the symlinks created when the extra software is installed? [01:41] if you remove these symlinks then lifeless will complain at you [01:41] and then add them back [01:41] please ask lifeless about them :-) [01:41] will do :) [01:42] having tree-lint perpetually complaining is like having tests that perpetually fail [01:42] people get used to it and don't fix it [01:44] daf: I'm kinda busy, but please file a bug for this! [01:45] good idea [01:53] daf: We've got some problems coming from the rosetta tests. I ran 81 launchpad tests, 5 failures, 8 errors. These seem to be mostly shallow, e.g. test_TranslatePOemplate_mungeMessageID has a few "NameError: name 't' is not defined" which appears to be because of the t = TranslatePOTemplate(context, request) assignment failing. [01:54] BradB: interesting [01:55] It's possible that it's only on my machine. It's possible that it's a Real Problem though. [01:55] I'll try and duplicate it [01:55] ok, thanks [01:55] how are you running the tests? [01:57] lalo: wow, canonical.rosetta.ftests.test_poexport.POExportTestCase is really intense [01:58] lalo: it's been running at ~90% CPU for a minute or two [01:58] daf: import is worse :-P [01:58] !! [01:59] these ftests suck [01:59] can they be improved? [01:59] BradB: it's a real problem [02:00] it's the kind of thing that is a nightmare to test automatically [02:00] daf: python test.py -u [02:00] I've been beating them in a branch, but nothing concrete came out of it yet [02:01] BradB: works for me [02:01] lalo: is it the size of the test data? [02:01] there's always some greater priority coming up [02:01] daf: not here [02:01] daf: Maybe you have something carlos and I don't. === carlos recreating the db [02:02] BradB: or you have something I don't :) [02:03] daf: I don't have any change that is not already in rocketfuel [02:03] no, it's probably, to begin with, that it's still on autocommit [02:03] autocommit? [02:03] oh, right [02:03] is that easy to fix? [02:03] no :-) [02:04] same problem after the db refresh [02:04] carlos: which test is failing for you? [02:04] Failure in example: t._mungeMessageID(u'foo\nbar', [] ) [02:04] but the *proper* fix is already in my work list [02:04] FAIL: test_TranslatePOemplate_mungeMessageID [02:05] hmm, I think it should be TranslatePOTemplate... [02:05] not POemplate [02:05] :-P [02:05] carlos: dude, that's a unit test -- it doesn't touch the DB at all :) [02:05] daf: I know, I told you that already :-P [02:05] no, Rocketfuel is not missing any changes from me [02:05] daf: btw, the functional test fails also with the bug I told you yesterday that has msgid_plural == msgid [02:06] carlos: hmmm [02:08] carlos: what happens if you run "tla missing -s daf@canonical.com--2004/launchpad--devel--0" in your tree? [02:09] none missing [02:09] sigh [02:10] I'm executing make fullcheck inside rosetta directory [02:10] I think my patch 451 changed the tests [02:10] sorry, rocketfuel@canonical.com/launchpad--devel--0--patch-451 [02:11] I changed the tests somedays ago [02:11] for the line wrap fix [02:12] but that's unrelated to this bug, or are you talking about other change? [02:12] another change [02:12] when I added the c-format hilighting [02:12] I added a new test and changed some existing ones [02:13] carlos@frodo ~/Work/launchpad $ tla missing -s rocketfuel@canonical.com/launchpad--devel--0 [02:13] gpg: Good signature from "Patch Queue Manager (Canonical.com arch-pqm) " [02:13] gpg: Good signature from "Patch Queue Manager (Canonical.com arch-pqm) " [02:13] patch-422 [02:13] get bug browsing by source package under way [02:13] patch-462 [02:13] Stub files for canonical.launchpad [02:13] is that normal? [02:14] carlos: so I changed then in patch-451 and you changed them in patch-453 [02:14] I don't have patch-453, so perhaps that broke them [02:15] I'll star-merge and try again [02:15] should I get the patch-422 by hand? === carlos is confused [02:15] ask an arch person [02:15] lifeless? [02:17] carlos: it's 22:15 in Sydney [02:17] [lifeless] idle 00:00:02, signon: Tue Sep 28 02:05:33 [02:17] I suppose he's online :-P [02:18] carlos: no, but I haven't time to look at it right now. just ignore it [02:18] ok [02:19] okay, the tests fail now [02:19] daf: so it's a problem with my patch? [02:19] I think so [02:20] I changed only the line wrap :-? [02:20] lalo: could you look at it? [02:20] please [02:20] no [02:20] it was the statistics that broke it [02:20] the changes to browser.py [02:20] daf: ok, you are talking about the unittest [02:21] yes [02:21] that makes sense, I forgot to upgrade the tests for the browser.py [02:21] what about the functional test? [02:21] daf: I will fix it now [02:21] that should not have been affected [02:21] carlos: I'm already fixing it :) [02:21] ok [02:21] thanks [02:22] btw, I will look at it to know how works those tests [02:22] sure [02:22] the problem is this: [02:22] since the unit tests can't depend on the database, they use dummy objects [02:22] DummyPOFile doesn't have the statistics attributes, so the browser.py code that tries to access them fails [02:23] oh, you are using stub like objects [02:23] ok, I get the idea [02:25] --- orig/lib/canonical/rosetta/tests/test_browser.py [02:25] +++ mod/lib/canonical/rosetta/tests/test_browser.py [02:25] @@ -56,6 +56,12 @@ [02:25] class DummyPOFile: [02:25] pluralForms = 4 [02:25] [02:25] + def __init__(self, template): [02:25] + self.poTemplate = template [02:25] + [02:25] + def translatedCount(self): [02:25] + return 3 [02:25] + [02:25] [02:25] class DummyMessageID: [02:25] msgid = "foo" [02:25] @@ -83,7 +89,7 @@ [02:25] self.language_code = language_code [02:25] [02:25] if language_code in ('ja', 'es'): [02:25] - return DummyPOFile() [02:25] + return DummyPOFile(self) [02:25] else: [02:25] raise KeyError [02:25] ^^^ the fix [02:26] by the way, the unit tests should test the statistics code [02:26] daf: Now that you talk about the statistics, we should talk about the policy we will follow to get/update that information... [02:26] well [02:27] if we update the statistics [02:27] 1) when we import [02:27] 2) when we get new translations through the web [02:27] then they should always be up to date [02:27] agreed? [02:27] yes [02:27] lalo is working on (1) [02:27] but, when will be updated "through the web"? [02:27] with every commit? [02:28] yes [02:28] sorry, submit [02:28] yes [02:28] but 2 is only +1/-1, right? [02:28] lalo: not really [02:28] you can update more than one string [02:28] door [02:28] I think our limit is 5 now [02:29] it doesn't involve actually calling pofile.updateStatistics()? [02:30] because that method is awfully slow, and I don't think that is fixable [02:31] lalo: we could get the value and increment or decrement it as needed [02:31] but we could get some race conditions [02:31] ugh [02:32] we could forget that for now [02:32] :-) [02:32] so don't worry [02:35] lalo, daf: could you confirm me that the functional tests fails for you? [02:36] I do [02:36] ok [02:37] thanks [02:46] can we avoid race conditions by having atomic database queries? [02:46] okay, my unit test merge has gone in [02:47] BradB: a star-merge should fix it [02:49] daf: what does the channel title say? [02:50] daf: and what do you mean "atomic database queries?" we're using transactions. [02:50] SteveA: sorry [02:51] SteveA: does changing lib/canonical/rosetta/tests/test_browser.py affect the rearranging? [02:51] just don't touch it in RF until further notice [02:51] SteveA: I'm thinking of ways of accessing the database that avoid race conditions [02:52] what race conditions [02:52] daf: the problem is not the access to one field [02:52] daf: is that you could increment the count from the web interface [02:52] daf: please express what you are saying in terms of multiple transactions [02:53] and at the same time import a new .po file so the cache is out of sync [02:54] I was just thinking of concurrent accesses through the web [02:54] daf: that's easy to fix [02:54] with a "select for update" or things like that [02:55] daf: each is in a separate transaction [02:55] you block the field, you can read it and write into it later and will be blocked for other transactions [02:55] daf: this is fundamental to web applications [02:55] daf: do not try to "fix" this, unless you can explain to me clearly what the problem is [02:56] I won't try to fix it unless I'm sure there's a problem [02:56] and I'm not sure at the moment [02:56] I thinking of a situation like this: [02:57] A: x = (SELECT foo FROM bar WHERE baz); [02:57] B: y = (SELECT foo FROM bar WHERE baz); [02:57] A: UPDATE foo SET bar=(x + i) WHERE baz; [02:57] B: UPDATE foo SET bar=(y + j) WHERE baz; [02:58] to this point, I believed the plan was to update the stats from cron or something like that [02:58] lalo: I'd like to avoid out-of-date stats if possible [02:58] I mean - on import AND from cron [02:58] I suspect that caching the statistics may have been a premature optimisation [02:58] daf: UPDATE foo SET bar =(bar +i) WHERE baz; should work [02:59] carlos: I think that would avoid the proble, [02:59] problem [02:59] http://www.postgresql.org/docs/7.4/static/dml-update.html [03:00] lalo: yes, but from the interface, is interesting to know the real statistics when you are translationg [03:00] /s/translationg/translating/ [03:00] not only "interesting", but useful [03:01] if the statistics say that there are 5 untranslated messages when there are actually 0, you're going to wonder where they are [03:01] yeah [03:02] maybe we should either uncache the stats, or cache them more? [03:02] more? [03:03] option 1. leave everything as is [03:03] 2. uncache [03:03] daf: http://www.postgresql.org/docs/7.4/static/transaction-iso.html [03:03] we should use the cache [03:03] lalo: by 2, you mean always calculate [03:03] lalo: right? [03:03] that way any query to see status will be fast [03:03] yes [03:04] carlos: but we don't know how fast it is not to use the cache [03:04] carlos: premature optimisation [03:04] and we try to update it always that it could change (an import or translation update from rosetta) [03:04] carlos: (the root of all evil) [03:04] 3. add a "state" enum field to POMessageSet [03:05] daf: well, I can tell you that it will not scale, as lalo says, the current rutine to update the cached values takes some time [03:05] 4. add that field *and* remove *count from POFile [03:05] carlos: have we tried optimising it? [03:05] and that should be executed every time we get a request... [03:05] lalo: how would this new field work? [03:05] daf: carlos: premature optimisation carlos: (the root of all evil) [03:05] :-P === carlos hides [03:06] carlos: if it's fast enough, it doesn't matter if it gets executed each time [03:06] (missing, current, updated, in_rosetta, obsolete) [03:06] since we already have the cache, let's just try keeping it up to date as much as we can [03:07] daf: sure, but it will be executed with every page request, I don't think it will scale... [03:07] so currentCount = select count(*) from pomessageset where state = current; [03:07] lalo: I don't see the "state" enum field, I mean I don't understand it :-) [03:08] lalo: ah, so the point of this new field is to speed up the statistic calculations? [03:08] yes [03:08] well, I suppose it could be useful in other ways too [03:08] what I meant by "cache more" :-) === kiko [~kiko@host217-37-231-28.in-addr.btopenworld.com] has joined #launchpad [03:09] hhmm, well, I think we have something like that already [03:09] if iscomplete == TRUE [03:09] do we? [03:09] it's translated [03:09] hey guys [03:10] carlos: that's orthogonal [03:10] so if iscomplete == TRUE && primemsgid = pot.primemsgid && pot.sequence > 0 [03:10] it's the same [03:10] po.iscomplete == TRUE && po.primemsgid = pot.primemsgid && pot.sequence > 0 [03:11] kiko: hey === daf goes to make food [03:25] hey big c [03:34] Bug 2066 resolved: Error if I add a language that has a label from sampledata to my languages [03:34] https://bugzilla.warthogs.hbd.com/bugzilla/show_bug.cgi?id=2066 === lifeless_ [~robertc@dsl-66.7.240.220.rns01-kent-syd.dsl.comindico.com.au] has joined #launchpad === lifeless_ is now known as lifeless [04:23] lifeless, we're blowing up the repo :) === ..[topic/#launchpad:SteveA] : Source code re-arrangement pretty much done. [04:30] the major changes are now in rocketfuel [04:30] please merge from RF, and start fixing up things you find are broken in the apps that you're responsible for. [04:30] it is likely that the zcml files will be pointing to the wrong places for the SQL object classes [04:31] All templates are now in lib/canonical/launchpad/templates [04:31] All interfaces that we own are now in lib/canonical/launchpad/interfaces.py [04:31] All SQL classes are now in lib/canonical/launchpad/database.py [04:32] (or, will be once various other merges go through) [04:33] so is it better if we wait some minutes until pqm finish all merges? [04:33] carlos, I'd wait. it's not even running currently [04:43] daf, lalo: Are you going to fix Rosetta? === carlos is ready to do it now, if I don't see anything against it I will start in 5 minutes [04:44] I suppose :-) [04:44] lalo: well, we should do it only one time :-P [04:44] ok, do it if you wish [04:45] I'm doing sth else [04:45] ok [04:56] What's imark.py, ikiko.py, etc...? [04:58] carlos, temparary crap that is to be consolidated === carlos waits more time [04:59] :-P [05:05] daf: ping [05:06] pong [05:07] there's some sql classes in rosetta/sql.py that need moving [05:07] they need moving into lib/canonical/launchpad/database.py [05:07] can you, or one of your team, do this? (and fix up the consequences) ? [05:08] ok [05:12] is POFile one of these? [05:15] if it is, I ask to be responsible for doing this, as I can do it in the same process as merging my conflicts (which won't even be actual conflicts in this case) [05:16] just do it fast [05:18] daf: and, like, do it now? ;-) [05:18] lalo: why is it diffcult to get the functional tests running without autocommit? [05:18] daf: no relation [05:19] lalo: I know there's no relation, but I'd like to know [05:19] lalo: will you take repsonsibility for moving stuff out of rosetta/sql.py? [05:20] SteveA: what's a vocabulary? [05:20] no idea eiter [05:21] daf: there is no relation between ftests being hard and transactions; I never said there is [05:21] daf: stub is using them to make widgets for malone [05:22] there is, however, relation between ftests being SLOW and transactions [05:22] a vocabulary is an interface to a queriable list of things [05:22] lalo: ok, I got the impression that it would be difficult earlier [05:23] lalo: if it's easy to make the functional tests use transactions, can you do it? [05:23] SteveA: ok [05:23] it is difficult too, for completely unrelated reasons :-) [05:24] yes, that's what I'm doing [05:24] oh, it *is* difficult [05:24] making ftests - and everything zopeless at once - use transactions [05:25] that's what I was asking :) [05:25] why is it difficult? [05:25] but now I'll interrupt that to integrate stuff [05:26] aha, I understand your question now :-) we had a precedence mismatch [05:27] lalo, dude, land these changes :) [05:28] I had understood "daf: lalo: why is it diffcult to (get the functional tests running) without autocommit?" and you meant "daf: lalo: why is it diffcult to get the functional tests (running without autocommit)?" [05:28] kiko: merging in [05:29] thanx [05:30] daf: it's not, per se. But we agreed in the list that, rather than doing that, I'd make zopeless itself use transactions. [05:31] which is what I'm working on. [05:34] ok, and that's difficult? [05:35] in a 1..10 scale, 4 or 5 [05:36] ok [05:36] that's fine [05:41] SteveA: should I stick them into database.py for great justice, or use a temp drosetta (or dlalo) module like you guys did? [05:41] daf: I have the import script running with curl, thanks for the idea, works perfectly [05:42] carlos: nice [05:42] there is the problem of integrating RosettaProduct with the canonical [:-)] Product class [05:43] yes [05:43] dont worry stuff it into ilalo or whatever [05:43] should I touch "your" code and do that? [05:43] and we'll sort it out (steveA says at least ;) [05:43] nah, keep rosettaproduct around but in ifoo.py [05:43] and we'll have to fix up the dupes after that [05:44] ok [05:44] looks like I'll be offline for a while -- does anyone need something from me urgently before that happens? [05:45] and rename it to Product so that it conflicts, or leave it RosettaProduct so that it's easy to find? [05:46] leave it for now, I think [05:46] daf: nothing from Spain :-P [05:46] carlos: ok [05:46] lalo, leave it [05:46] London? Brazil? [05:46] brazil wants a pillow [05:47] daf: I'm fine :-) [05:48] daf: how long for? [05:49] SteveA: no more than an hour or two, I think [05:50] ok, see you later [06:03] SteveA: I assume helper classes like RosettaLanguages are going along [06:05] lalo: only SQLBase-inheriting stuff for now, I think [06:05] lalo, and hold off from mergeing anything else until this mess is sorted out [06:07] hmm. where do I leave RosettaLanguages etc then? [06:08] what sort of class is it? [06:08] set-of-all-foo [06:09] an utility to fetch Foo's [06:09] it will probably go as well, but it can be later [06:09] I'm going to suggest we have multiple database modules at least [06:12] well, it'd be easier if it went all at once :-/ [06:12] otherwise some integration work gets done twice [06:13] have you actually seen how hard the tree has been whacked? [06:16] yes :-) [06:17] precisely, I'd rather only have to recover from sth like that once ;-) [06:23] moving a couple of classes later shouldn't be hard, in comparison [06:25] what did other subprojects do with similar classes? I notice most sql.py's are gone [06:28] hmm [06:29] I can't test my changes, because yours don't actually import [06:32] I think RosettaLanguages should go in database.py [06:32] thanks [06:35] do you want me to commit the important part (actually moving the classes) so that you guys can resume work, while I chase the orphan dependencies? [06:35] that part is done, I can commit right now [06:37] lalo: don't check in now [06:37] update from rf and see what mark has moved [06:37] ok === justdave [~dave@24.247.63.44.gha.mi.chartermi.net] has joined #launchpad [06:45] -dmwaters_(dmwaters@dmwaters-gentoo.staff.freenode)- {global notice} Hi all! You guys can blame this netsplit on me.:) I restarted the firewall on that server, and didn't realize it wasn't running to start with, so it dropped all active connections.... sorry about that.... Thank you for your patience, and thank you for using freenode! [06:48] I'm up to date now [07:03] now the *real* trouble begins [07:04] kiko: I have already troubles with the local changes I did this morning... [07:04] so, I'm not scared :-P [07:04] well [07:10] SteveA: what about stuff that are not classes, like our pet ugly hack personFromPrincipal? === lalo ready to commit [07:13] how is that a hack? [07:13] ;-) [07:13] that should live in lp for now [07:13] it is an application component [07:13] or, an application function [07:14] or adapter [07:14] or whatever [07:14] well, I'll leave it with the rest of the stuff then [07:15] you can sort out a "helpers.py" module later if you wish :-) === lalo merges AGAIN before submitting his stuff === npmccallum [~npmccallu@69-162-252-7.ironoh.adelphia.net] has joined #launchpad [07:35] New bug 2069 for Launchpad/Launchpad: lib/canonical/database/configure.zcml should go to hell [07:35] https://bugzilla.warthogs.hbd.com/bugzilla/show_bug.cgi?id=2069 [07:37] lalo: Um, you didn't update launchpad.database.__init__ to import dlalo ;) [07:38] oops. I lost that when I used "undo" before updating from RF [07:39] I restored only dlalo from the undo :-) [07:40] New bug 2070 for Launchpad/Soyuz: Update the Wiki Documentation [07:40] https://bugzilla.warthogs.hbd.com/bugzilla/show_bug.cgi?id=2070 [07:41] I'll take a few hours break, then when you guys are done beating this stuff till it imports, I'll beat Rosetta till it runs again -- ok? [07:42] ("runs" defined as "accessible from the web, tests pass, scripts run") === justdave [~dave@24.247.63.44.gha.mi.chartermi.net] has left #launchpad ["Poof"] [07:43] I believe daf and carlos will soon be past their working hours anyway === justdave [~dave@24.247.63.44.gha.mi.chartermi.net] has joined #launchpad [07:44] lalo: but I will be online if you need anything from me [07:44] thx [07:44] I have still about two hours of work [07:45] well [07:46] if you want to merge from RF and start fixing orphan imports and references, have fun :-) [07:47] but did they finished all changes? === carlos has some conflicts waiting for the end of the merge to be able to fix it [07:47] Working on a unrelated part, a script that does not needs anything from launchpad [07:51] fix the mess or leave it for me, either way it's fine with me. Now I'm leaving, bbl. [07:54] lalo: later [08:03] New bug 2073 for Launchpad/Soyuz: James Troup(elmo) as Soyuz Tester/Guide [08:03] https://bugzilla.warthogs.hbd.com/bugzilla/show_bug.cgi?id=2073 [08:08] New bug 2074 for Launchpad/Soyuz: Create the Postgresql Views for Soyuz App [08:08] https://bugzilla.warthogs.hbd.com/bugzilla/show_bug.cgi?id=2074 [08:11] dilys: sorry, why are you in CC by default ? [08:12] cprov: he wants to have full control [08:12] cprov: he's THE big brother!! [08:13] carlos: aha [08:14] dilys: anyway, sorry for the spams :) [08:18] cprov: no problem [08:19] carlos: it's "she", not "he" :) [08:20] daf: dilys is a girl name? [08:20] dilys: sorry :-P [08:20] carlos: yep [08:20] daf: man, that sounds like she's your girlfriend :-P [08:21] carlos: are you jealous? [08:21] kiko, cprov, SteveA: Are the rocketfuel changes over? [08:21] daf: not really :-P === carlos is really loves python, with a 90 lines script I'm downloading and uncompressing all sources that are using cdbs, and I'm sure there should be a way to reduce the line numbers [08:24] carlos: not yet ... [08:24] well, please, forget the "is" in "carlos is really" [08:24] cprov: ok [08:39] carlos, no, the world is falling on my head [08:40] kiko: go go go === lalo lends kiko a helmet [08:57] now it's raining scissors === justdave [~dave@24.247.63.44.gha.mi.chartermi.net] has joined #launchpad === stub [~stub@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad === stub [~stub@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad === lal1 [~lalo@200-102-074-223.paemt7014.dsl.brasiltelecom.net.br] has joined #launchpad === lal1 [~lalo@200-102-074-223.paemt7014.dsl.brasiltelecom.net.br] has left #launchpad [] [11:31] !lilo:*! Hi all. Please welcome sysfault's #philosophy channel....if you are interested in such things, please stop by and look in!