=== stub [~zen@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad === stub [~zen@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad === stu1 [~stub@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad === kiko [~kiko@200-206-134-238.async.com.br] has joined #launchpad === stu1 is now known as stub === SteveA [~steve@adsl-213-190-44-43.takas.lt] has joined #launchpad === lulu [~lu@host217-37-231-28.in-addr.btopenworld.com] has joined #launchpad === sabdfl [~mark@host217-37-231-28.in-addr.btopenworld.com] has joined #launchpad [10:46] stub: around [10:46] ? [10:55] morning everyone [10:55] time for a little launchpad love [10:55] lifeless: pong [11:02] daf, rosetta.warthogs.hbd.com seems borked in malone, db errors everywhere [11:04] sabdfl: interesting [11:04] daf: can you see the cause? [11:05] looks like it might be related to some work spiv was doing yesterday [11:05] ProgrammingError: ERROR: current transaction is aborted, commands ignored until end of transaction block [11:05] also, earlier on it was asking me for a username and password, which should i use on that server? [11:05] your username is your email address, assuming there is one for you in the sample data [11:06] the password is also set in the sample data [11:06] let me check... [11:07] looks like you have an email address, but no password [11:07] daf: I've seen that error before - if you get a database exception (such as you violated a key), the connection gets in a weird state and the server needs to be restarted. [11:07] you can use test@canonical.com, password "test" [11:08] daf: thanks [11:10] daf: I don't know if it sqlos, SQLObject or Zope3 yet - I'll be chasing it soon unless someone beats me to it. [11:10] stub: ok, I don't think spiv's up yet, so i'ts probably up for grabs :) [11:11] stub: do you know about the changes spiv made? [11:11] He patched the publish routine didn't he? I don't know the reason he needed to [11:12] I don't think it is related to the ProgrammingError exception though - that is an older bug. [11:12] right, the problem we were seeing was that Zope was seeing stale DB data [11:13] so spiv added an explicit transaction abort [11:13] which apparently fixed the problem [11:13] Was this stale data being retrieved from sqlobject/sqlos? [11:14] not sure [11:14] well, I assume it was [11:14] since I'm pretty sure it wasn't being retrieved from anywhere else [11:15] https://bugzilla.warthogs.hbd.com/bugzilla/show_bug.cgi?id=2005 is related, but I don't think it's the change in question [11:15] I thought I'd fixed something similar with sqlos (by destroying the connection pool in the publish method, which sounds a similar fix to what spiv needed to do. Maybe my patch has been lost?) [11:15] it's possible [11:15] (that the patch was lost) [11:15] can you check? [11:17] Its still there at the top of beforeTraversal in publication.py [11:19] I'll suck down spiv's changes as soon as I have my new arch archive online to see what he needed to add. [11:19] (I think this was discussed on the launchpad@ list while I was 'away' [11:20] well, the change I'm thinking of was something spiv did yesterday [11:21] actually, forget that [11:21] the change I'm thinking of *was* the patch at #2005 [11:21] and it hasn't been merged to rocketfuel [11:21] Hmm... actually... the ProgrammingError should be impossible if my fix is being invoked, as the connection object should not be reused in different requests. I suspect my fix is not being called :-( [11:21] it's only been applied to the alpha server as a workaround [11:22] I can test that [11:23] where's the fix, exactly? [11:28] (I can't find a method called "publish") [11:29] Just above spiv's patch - lib/canonical/publication.py in beforeTraverse [11:32] hmm, now that I've restarted the server the problem doesn't seem to occur [11:34] ok, now I'm seeing "AttributeError: 'NoneType' object has no attribute 'id' [11:34] " === carlos [~carlos@67.Red-81-32-123.pooles.rima-tde.net] has joined #launchpad [11:40] hrm, things are being weird [11:40] hi carlos [11:40] morning [11:44] daf: so we launch today Rosetta? [11:45] that's the plan [11:46] daf: are you removing things like: [11:46] Join translation team, Start transaltion effort in https://rosetta.ubuntulinux.org/rosetta/search [11:46] gives an error [11:47] to reproduce: I searched for firefox [11:47] lulu: oops [11:47] I'd forgotten about the "advanced" search page [11:47] in advanced search, search results we ahve some dummy data still [11:47] ok - could you sort that before go live? [11:47] yep -- best thing is to disable it for now [11:48] I'll file a bug about implementing it [11:48] daf: perhaps do a check of all pages of functionality you are launching to double check they are all working. [11:50] lulu: right [11:50] lulu: thanks for finding that [11:51] daf: no problem. The about page needs some info - I'm finding some for you... [11:51] daf: have you written the announcement yet? [11:53] daf: we also need rosetta@ubuntulinux.org mailing list set up [11:56] lulu: Will we create accounts into rosetta to anyone that ask for it? [11:56] I'm talking about the alpha [11:56] daf: oh - I see you have rosetta-testers for now - that should do the trick and shows it's still an Alpha. [11:59] daf: Yes - the problem appears after you have violated a database constraint somehow, and stays around until you restart (as restarting the server resets all the database connections). === carlos goes to have breakfast [12:00] carlos: why? do you want to restrict it only to those who are on your testing list? [12:08] spiv: did I mention to you how I hate twisted? === lalo [~lalo@200.102.200.234] has joined #launchpad [12:20] spiv: I need your help for a quick crash course to twisted-proof subprocess handling. [12:21] ddaa: Ok... what do you need to know? [12:21] Or what problem are you having? [12:22] Something totally weird like being unable to fdopen a fd we just created with pipe. [12:22] We decided to use the twisted process handling when the environment has been twistedized. [12:23] So as to avoid all the grief. Twisted assumes that everything going on is using it's process and thread stuff, so we'd rather make it happy3 [12:23] ddaa: Are you passing the right mode to fdopen? [12:24] carlos: Rosetta Alpha - people won't be able to create their own accounts. They will on the Beta when everything is integrated. [12:24] Yes I'm passing the right mode. The problematic code is _working_ it only breaks on production in a twisted env... [12:24] (i.e. os.fdopen(os.pipe()[1] ) will fail, but os.fdopen(os.pipe()[1] , 'w') will work) [12:24] Ok, that's weird. :) [12:24] Where's the code? [12:25] We had too much of that insanity. [12:25] (I've never heard of something like this before) [12:25] It's just a bad idea to do things non-twistedly when twisted has pissed all over the place. [12:26] Well, it's happening with some pretty ugly stuff... ya know the thread-that-reads-on-a-bloking-pipe [12:26] But it would be simply least risky to just do things the twisted way. [12:27] So [12:27] 1. I would like to know what it is in twisted that do plenty of things with signal handlers, thread processing whatever which might cause grief. [12:27] 2. [12:28] Twisted doesn't nothing that should affect threads. [12:28] 2. How can I detect that the environment has been twistized? So I could use twisted process handling in that case, and only in that case. [12:29] (There are some things in Twisted and libraries for Twisted that spawn threads, and manage their own thread pools etc, but that's the extent of it) [12:29] Okay. I take your word for it. [12:30] Apparently, twisted _do_ things to the environment which cause my ugly subprocess handling to die in horrible ways. [12:30] Signal handling happens at reactor.run() time. [12:30] (unless you pass installSignalHandlers=0 to it) [12:30] It installs handlers for: [12:31] our problem occurs within [12:31] twisted/internet/threads.py:37:_putResultInDeferred === npmccallum [~npmccallu@69-162-252-7.ironoh.adelphia.net] has joined #launchpad [12:31] SIGINT (unless there's one already), SIGTERM (always), SIGBREAK (if it exists), and SIGCHLD (ditto) [12:31] is that within reactor.run()? [12:32] Yes, that won't happen until the reactor has already started. [12:32] Oh, actually... [12:32] You could call that at any time. What's the error you get at that line. [12:32] ? [12:32] Nothing at that line [12:33] The error happens much lower in the stack in pyarch process handling code. [12:33] Hmmm.. [12:33] So, if that's the first call to that, that may cause a call to reactor._initThreadPool()... [12:33] When I do things with the evil-blocking-pipe [12:34] What's the last line of the traceback, and the error? [12:34] The pb is that this was the highest visible line in the backtrace lifeless gave me. [12:35] Ok, but what's the lowest? :) [12:35] exceptions.OSError, [Errno 9] Bad file descriptor [12:35] self.readfile = os.fdopen(read_end, 'r', 0) [12:35] The line just before that is: [12:35] read_end, self.write_end = os.pipe() [12:36] Dude, I create a pipe, fdopen it and it barfs! [12:36] I got another backtrace when closing self.readfile [12:37] What's the value of read_end? Perhaps you've run out of fds in that process? [12:37] The reactor does the exact same thing internally for it's "waker". [12:38] do not have the value of read_end... [12:38] (See _UnixWaker in twisted/internet/default.py if you're curious) [12:38] not going there unarmed... [12:39] The problem here _might_ be a fd leak. [12:39] Hmm, although that should raise an OSError at the os.pipe call. [12:39] (I just tested) [12:39] But then it would not explain the error on close. [12:40] So, at this point, I just want to avoid doing things twisted is apparently not prepared for. [12:40] lulu: yes, that's why I was asking because I thought that, Alpha -> only accounts we created, Beta -> everyone [12:40] We already had quite a lot of grief previously (remember at Oxford?) [12:41] And know it breaking prod. [12:41] Well, I honestly don't know of anything in Twisted that interferes with this stuff. [12:41] In fact, Twisted internally relies on doing the exact same thing. [12:41] So, please, just help me to figure out when the environment has been touched by twisted. [12:42] So that the code would use twisted when run in a twisted program, and would use something else in other cases. [12:42] So unless there's some sort of bizarre race in your threads where another thread somehow can be closing the wrong fd, which seems unlikely, I don't know what's causing that problem (I don't know how to reproduce that behaviour even if I'm trying to...) [12:42] Oh, is this code running with my evil hack from Oxford? [12:43] No. Your evil hack was only something for the test suite, and it did not work anyway. [12:43] Ok :) [12:43] i separated the test suite in a twisted part and a pyarch part. [12:44] I do not want to know what's the cause of the problem. [12:44] I just want to use twisted when twisted is being used already. [12:44] See what I mean? [12:44] Yes, I'm just looking that up [12:45] The .running attribute of the reactor can tell you if the reactor is running. [12:45] Once I have that bit, i can dig up the "how to spawn coprocesses" part myself. [12:45] How can I find the reactor? [12:45] from twisted.internet import reactor [12:46] It's a module-global object? [12:46] Yes. [12:46] Thx [12:46] A known design flaw, but convenient. [12:46] Good for my purposes. [12:47] I'll try reproduce the pb and do the twisted things, then. Thanks. [12:48] You're welcome. [12:48] I'd love to know what the problem is, it's very odd :) === lalo [~lalo@200-102-070-253.paemt7003.dsl.brasiltelecom.net.br] has joined #launchpad [01:06] lalo: hey! [01:06] :-( === lalo replaced the motherboard and stuff remains borked [01:08] that leaves two possibilities; either it's my cpu (that would suck, as it's not in warranty), or the hardware is now fine but the libc is borked due to having been compiled on faulty ram [01:09] meanwhile, gossip and lostirc to the rescue [01:12] hi lalo [01:12] good to have you on IRC again [01:13] hello === cprov [~cprov@200.158.100.251] has joined #launchpad [01:22] sqlos questions... [01:22] how do I say 'NOW()' to sqlos [01:22] and how do I say '1 day' to an interval field. [01:22] lifeless: 'NOW' for 'NOW()' [01:22] this is in an assigmnet: [01:22] self._sync.processingapproved=NOW [01:22] ? [01:23] use the string 'NOW' [01:23] oh, the string. === SteveA goes to get lunch === mdz [~mdz@69-167-148-207.vnnyca.adelphia.net] has joined #launchpad [01:27] stub: do you think we should add indexes also for foreign key or with inner joins is enough? (talking about improving the speed) [01:30] lifeless: A quick google suggests 'import sqlobject.sqlbuilder; sqlobject.sqlbuilder.SQLConstant("INTERVAL 1 DAY")' === lalo [~lalo@200-102-070-253.paemt7003.dsl.brasiltelecom.net.br] has joined #launchpad [01:31] spiv , oh ewww. so much for domain & data separation [01:32] There might be a nicer way using mxDateTime's DateTimeDelta or something like that. [01:33] Or even datetime.timedelta(1) [01:34] spiv, stub: hi guys ! [01:34] I seem to remember me and Daf wasting a good half hour in Oxford trying to find what kind of datetime objects sqlo uses [01:34] I think it was mx [01:34] lalo: It has "converters", so in theory it can support multiple kinds. [01:35] Glancing at the source though, it doesn't have any sane support for intervals, though, just absolute dates :/ [01:35] in theory :-) I don't know whether these converters are recent enough to know about the datetime module [01:35] anyway, the reason we were looking was because we wanted to know what objects it would *return* [01:36] lalo: They are. [01:36] But not smart enough to know about datetime.timedetla. [01:36] datetime.timedelta, rather. [01:38] daf: fix, part 1 of 3, done; if we're importing a pofile we already know about (in the db), and the db row has pluralform info, we use that [01:39] part 2 (being done now) is, if we don't have that, try the languages table; part 3 is scream bloody murder if we don't have either [01:41] spiv: so how do I protect a form so only I can set a specific field [01:41] lalo: you need to take care of a fourth case, if the default plural form is not correct for that .po file [01:42] carlos: what kind of care? [01:42] lalo: the error should say that error is that the plural forms used on that file are not the same that the header info [01:42] or the table info so we can fix it easily [01:42] spiv: that interval 1 day thing isn't working [01:43] where table == Language table [01:43] lifeless: Try SQLConstant("INTERVAL '1 DAY'") [01:44] carlos: ouch. That would be... rather involved :-P [01:44] lifeless: I'm currently working on making SQLObject support timedelta, it doesn't seem too hard... [01:44] still not setting it [01:44] Try just the literal string? :/ [01:45] nope [01:46] lifeless: You mean protect a field in a form in zope? I'm not sure, SteveA would know though... [01:47] oooh, found a bug [01:47] well, not web form, the business logic level. Sync.enable() can only be called by me [01:50] oooh, found *another* bug [01:52] lifeless: andrew.bennetts@canonical.com/sqlobject--interval-support--0 should allow you to use datetime.timedelta(1) [01:52] lifeless: Only very lightly tested so far, though. [01:53] and 1 is one second or 1 day ? [01:53] 1 day. [01:53] args for timedelta are days, seconds, microseconds. [01:53] ok, cool [01:53] lalo: I have a couple more interesting errors that happened overnight [01:54] daf: I'm testing the indexs part, I think with 3 indexs will be enough for the import [01:55] carlos: yeah? [01:55] carlos: what are they? [01:55] CREATE INDEX pomsgidsighting_index_inlastrevision ON POMsgIDSighting (pomsgset, pomsgid, inlastrevision); [01:55] CREATE INDEX pomsgidsighting_index_pluralform ON POMsgIDSighting (pomsgset, pluralform); [01:55] CREATE INDEX pomsgset_index_primemsgid ON POMsgSet (potemplate, pofile, primemsgid); [01:55] that's based on postgresql logs [01:55] cool [01:55] do you have any information on how they affect performance? [01:56] daf: I'm doing some tests now [01:56] my first test yesterday save me one minute importing the .pot file [01:56] you gave me a link to some Postgres doc -- can you paste that again? [01:56] daf: good thing all pofiles we have are imported, because the header we're storing in newPOFile was absolutely BS and it would have breaken the exporter [01:57] lifeless: Ooops, give me 2 minutes before testing that :) [01:57] spiv: ah ha [01:57] I'll get a drink then shall I [01:57] lalo: don't we have a but open on that? [01:57] lalo: s/but/bug/ === daf awaits the inevitable Beavis and Butt-head joke [01:57] daf: do we? [01:58] lifeless: Ok, working version mirroring now :) [01:58] I thought we ded [01:58] er, did [01:58] dude, get some caffeine :-P [01:59] http://www.postgresql.org/docs/7.4/static/tutorial-join.html [01:59] lalo: just made some Earl Grey :) [01:59] http://www.postgresql.org/docs/7.4/static/indexes.html [01:59] carlos: a [01:59] grrr [02:00] carlos: thanks [02:00] daf: :-P [02:01] lifeless: My branch lets you set values, but don't expect to get sane values back from reading that field yet :/ [02:01] spiv: aren't you the SQLObject maintainer already? [02:02] ugh. I need to recreate the database each time I want to test this, because zopeless doesn't abort :-/ [02:03] daf: Hah. [02:03] spiv: its still coming across as null. [02:03] omg. [02:03] IntCol('frequency', dbName='syncinterval', default=None), [02:03] # WARNING: syncinterval column type is "interval", not "integer" [02:03] # WARNING: make sure the data is what buildbot expects [02:03] I blame you. [02:03] cool, there is no case 2. The database will always have info (from an old version or from languages table) due to newPOFile() [02:04] lifeless: Oh, d'oh. [02:04] lifeless: Change that to DateTimeCol. [02:04] so either case 1 (the database knows the info) or 3 (it doesn't, scream loud) [02:05] Incidentally, there's been a new upstream release of SQLObject, finally. [02:08] oh, 0.6? [02:08] is that good? :-) [02:08] daf: yeah. [02:08] Although we're basically running it anyway... we're using a recent SVN snapshot. [02:09] But it's a sign that maybe upstream will get around to doing something about my bug reports one day ;) [02:09] since we're basically including the source code in RF, I don't see any pressing need for me to update my packages, then [02:10] spiv: thank thee. [02:12] thou art welcome ;) === carlos goes to have a shower === debonzi [~debonzi@200.158.100.251] has joined #launchpad === stub [~stub@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad [02:26] stub: I haven't seen any cache deletions happening yet [02:26] but "yet" is about 3 requests [02:26] debonzi, cprov: good work on making the soyuz tables visible [02:26] for malone testing, we need some more sample data of packages, do you guys have any scripts that can populate the test db with a bunch of source packages and versions? [02:29] daf: You lost me. You mean you stuck a debug message in the beforeTraverse and that fix is not being called? [02:29] stub: exactly [02:29] SteveA: ping [02:29] stub: well, it gets the key, but they key is not in the cache [02:30] stub: SteveA said he was having lunch [02:31] daf: Hmm... maybe I'm just using the wrong key then? Can you dump repr(the_connection_cache_mapping) to see what is in it, and more importantly, what the keys are? [02:31] It was working when I nuked the entire dictionary, but that isn't thread safe. [02:31] each request seems to have a different key [02:31] (16386, u'launchpad') [02:32] (32771, u'launchpad') [02:32] etc. [02:32] sabdfl: tks, we still working to have better results til sprint . [02:33] stub: oh, ok, I'm seeing a deletion now [02:33] stub: the error seems to occur when the cache deletions do [02:33] stub: emphasis on "seems" [02:34] I'll try dumping the entire cache mapping [02:34] daf: You will only see a deletion the second time that thread handles a request. I think there are 4 threads by default, so you might not see one until you have loaded 4 or 5 pages. [02:35] cprov: what's the best way for us to get package data in for a couple of thousand packages? [02:35] stub: right, that explains what I've been seeing === stub wonders if z3 can be run in single thread mode like z2's '-t' command line argument === stub reboots again [02:37] wurg [02:37] I think I've got this wireless nutted so it will come up on a reboot :) [02:37] sabdfl: I hope spiv is working on a DEB importer or something related [02:38] sabdfl: a extra component to get information of deb packages and insert automagicly(?) on DB === stub [~stub@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad [02:40] :) [02:41] stub: so can you approve some of those projectproduct things? [02:41] ok, the cache deletions seem to be working after all [02:42] spiv: spiv is doubting that deleting the adapter is rolling back the transaction [02:42] gaar [02:42] stub: that was supposed to be directed at you === daf is having a bad finger day [02:44] daf: We can explicitly abort the connection at that point if we want (before we nuke it from the cache? spiv's fix might be running to late?) [02:44] lifeless: I can't spell, and I get to approve them?? [02:45] stub: yes. the only thing *I* care about is the project & product name so I can enter them into launchpad. [02:46] that will probably make mark unhappy though, as his beloved shortdesc & description (whats with that?!??) will still need to be fleshed out. [02:46] In the name of the senate and people of rome... *thwack* [02:48] stub: well.. I just /need/ to be able to put them into the system such that I can associate Sync's to products, and then run the syncs., [02:48] Ssh... I'm reading the wiki page... [02:50] stub: ok, sshing. I've emailed mark asking to be able to ignore the desc & shortdesc, but haven't heard back. [02:51] lifeless: So this is where we have to get the project -> product mapping right. I'd assumed bison was part of the GNU project, but you think it is part of its own. Isn't this getting very political? [02:51] stub: I was worried about this happening :( [02:52] stub: not my problem. [02:52] my problem is getting cvs converted to arch. [02:53] Does it really matter if the mapping isn't quite right? We can update them later, surely? [02:53] Not meaning to be a 'boundary drawing arsehole' .. just already about 20 imports behind. [02:53] spiv: given the choice, I'd 100% ignore the projects and products until someone has time to add them and reattach the syncs. [03:01] I'm not sure I can do that. I don't understand what it means when a package has a package or product of "". I also don't know what half of the packages are, and those I do recognize I'm not sure what the project should be :-( [03:03] Does the project name get encoded anywhere permanent in arch (such as the repository name) that we can't fix without rebuilding? [03:07] stub: package comes from the debian package name [03:08] project "" means 'same name as the package' [03:08] product "" means 'same name as the package' [03:08] the project name is used as the arch archive name (project@arch.ubuntu.com) except when I decide otherwise. [03:08] and you cannot fix that: these are one-shot. [03:09] except when there is a very very very good reason, and /no one/ accessing it. [03:09] (accessing it - ever) [03:09] stub: if you can't do it, then I need Mark to be told that: he was trying to delegate it out of being his problem... [03:10] Can a product move between projects, ever? [03:11] I don't know: there are no use cases for these object. [03:11] daf may know as rosetta directly exposes these all the time. [03:12] it is not immutable [03:12] AIUI every aspect of launchpad depended on these objects. [03:12] An example would be mod_python, which after being developed for a few years became an Apache project. [03:12] Where nothing changed except their web server and their logos [03:12] stub: again though: this isn't terribly relevant: we want to know what they should be to perform the imports /today/. [03:12] if someone changes location in the arch world, they just tag across. [03:13] that will be fine:: once we get arch available to the project. [03:13] Cool. So the project looks quite changable - we just need to implement that if it becomes a problem. [03:13] thus my "ignore them all and just do the imports' wish.. [03:14] stub: "ever", sure === lalo cries === stub had also assumed that product names would be changable too [03:15] done recompiling the libc, and stuff remain broken :-( [03:15] ouch [03:15] that leaves the CPU, then? [03:16] stub: I presume its all mutable. this is just hte initialdata load. [03:16] Right. So what is all the fuss about then? [03:16] I'll try downgrading it === stub ducks [03:16] (the libc, not the cpu :-P) [03:18] lifeless: I'll go through and approve the ones I recognize, and reply-all to your email saying if they need approval we really should get a package maintainer or someone with the right knowledge to become involved. [03:19] ah well, firefox 1.0pre runs [03:20] YAY, gaim runs too! :-D my system is fixed === lalo [~lalo@200-102-070-253.paemt7003.dsl.brasiltelecom.net.br] has joined #launchpad [03:21] so it was a software problem all along? [03:22] no - a combo :-) [03:22] the libc was broken because it had been compiled on faulty ram [03:22] I've seen that before [03:22] and you wonder why we say that Gentoo is crack :) [03:23] what if a debian maintainer gets faulty ram? :-) [03:24] at least I got bummered due to my own mistake, not someone else's [03:24] only teasing :) [03:25] ooh, firefox1 knows about gnome and gconf [03:25] it just told me "it's not set as my default browser" :-P I never thought I'd see this message outside windows [03:42] stub: ProgrammingError: ERROR: column sourcepackage.name does not exist [03:42] Yer - I know that one. [03:43] stub: I'd be interested in your thoughts on my latest patches for #2005. [03:43] daf: If you want to test Malone, click on the products link on the front page and use that (or the bug list). Sourcepackage browsing is buggered atm. [03:43] they seem to be working fine [03:44] (the patches) [03:47] spiv: What is the thread issue being discussed in the comments of the SQLObject patch (seems to be about returning a list rather than an iterator from the database) [03:48] I'm not sure, exactly :) [03:48] I think the concern is that SQLObject can have multiple active cursors for a connection alive under some circumstances. [03:49] So if we have lazy iterator in one thread, and another releases the connection, then the lazy iterator will break. [03:49] Hence the listification. [03:49] Perhaps a safer change to SQLObject would've been to wrap the result in iter(...), rather than strip the list(...). [03:49] spiv: So IZopeSQLConnection(newconn()).transaction() registeres the connection with the transaction system, starting the database transaction at the same time? [03:50] I think so :) [03:51] spiv: The connections shouldn't be shared between threads. It might be that the cursor is being reused? [03:51] My basic thinking was that if we use the Transaction object that SQLObject can give us, that's a better fit for the model Zope expects. [03:51] (i.e. a web request gets its own transaction) === lulu [~lu@host217-37-231-28.in-addr.btopenworld.com] has joined #launchpad [03:52] So the sqlos lazy updating stuff is now useless? [03:52] (as in unnecessary) === ddaa [~david@nemesis.xlii.org] has joined #launchpad [03:53] I suppose so, except as an optimisation maybe. [03:53] (to avoid unnecessary round trips to the DB) [03:53] stub, spiv - enterprise patterns applies here :) [03:53] APE probably has it already too... [03:54] I don't know too much about the SQLObject level stuff, and haven't dealt with that layer. [03:58] stub: Well, you haven't pointed out any reason why it's obviously stupid, which was my main concern ;) [03:59] I'd be interested to hear what Steve thinks [04:03] spiv: Seems fine actually [04:10] hi stub [04:11] Morning [04:15] is there still a problem with transactions etc? [04:18] Yes - to do with database connection ending up in a 'you are not in a transaction so I'm going to just raise exceptions' state, which shouldn't be happening since we are supposed to be creating a new database connection every transaction (the last time we fixed sqlobject/sqlos). [04:18] Sounds like spiv fixed it though - I havn't tested myself yet. [04:19] Ooh... just got an announcement that SQLObject 0.6 has been released [04:20] from whats new: "n 0.5.3: some small bug fixes, and an important fix when iterating over selects in threaded environments" <-- spiv [04:39] stub: Hmm! [04:49] can we have a launchpad meeting tomorrow? [04:50] SteveA: I don't see why not [04:50] stub: Hmm, that change is the one my patch backed out [04:51] SteveA: it's ok for me [04:51] stub: But current 0.6 SVN has an iter(...) around that value. [04:51] stub: So we probably should update our SVN snapshot to the 0.6 release. [04:51] daf: with the indexes I get sometimes 11 minutes, other times 5 minutes... :-? [04:51] Just gimme the time [04:51] carlos: running VACUUM ANALYZE might affect it [04:52] carlos: it might be worth trying EXPLAIN also [04:52] spiv: Yes. I've lost track if we have local changes to ours though :-( [04:52] carlos: I've been profiling the importer, and I should have some data soon [04:52] EXPLAIN with what? [04:53] stub: what's the earliest time after 1200UTC that works for you? [04:54] daf: I mean, I'm not quering anything, is the script [04:55] stub: We do :( [04:55] As early as possible - 1200UTC is 10PM here. [04:55] carlos: sure, but VACUUM ANALYZE will update the indexes [04:55] daf: I know [04:56] now my system is too stable. I should install gnome 2.8. }:-) [04:57] daf: BTW seems like now it's more stable, a reimport takes always 5 minutes [04:57] and before the index it took about 10 minutes [04:57] I will do a last test before send the request to merge those database changes [04:57] to be sure we are improving anything [04:58] lalo: apt-get install warty :-P [05:00] lalo: can you make any earlier than 1200 UTC? [05:00] SteveA: sure [05:00] carlos: nice! === kiko [~kiko@200-206-134-238.async.com.br] has joined #launchpad [05:00] carlos: reimporting was getting progressively slower on the server [05:01] lalo: suggest a time? [05:01] I've been 9-to-5 London time, except yesterday that I had to go out, and I intend to continue with this time schedule till the end of the month [05:01] morning guys [05:01] it's just less trouble to me [05:01] hello kiko [05:01] kiko, cprov, debonzi: how much earlier than 1200 UTC is good for you for a launchpad meeting? [05:02] SteveA, 11UTC is the bare minimum [05:02] SteveA, what day? [05:02] kiko: tomorrow [05:02] carlos: have you looked at http://www.postgresql.org/docs/7.4/static/performance-tips.html? [05:03] kiko: is 11.30 UTC okay? [05:03] yes, definitely. [05:03] ok. I'll mail that out [05:03] lalo: cool [05:04] daf: same here, but I think the VACUUM command should improve it [05:04] daf: no, I will look at it now [05:19] carlos: can you verify that my latest merge closed #1979? [05:20] not urgent by any means [05:20] lalo: ok, added to the queue of tasks in my mind [05:20] as soon as I finish with the speed tests I will look at it [05:20] great, thanks [05:21] if I'm not around when you do, pls mark the bug "verified" [05:21] sure [05:22] SteveA: could you take a look at #1907 and #1908? [05:22] SteveA: they shouldn't take long [05:22] daf: what about zopeless... will we leave it be or what? [05:23] lalo: what do you mean? [05:23] zopeless seems to be unsuitable for anything but unit tests (and even for that it would be nice if it aborted the transaction) [05:23] why is it unsuitable? [05:24] 1: no lazyUpdate, therefore slower; 2: no transaction hooks, so it's impossible to abort (as I told you a few days ago) [05:24] (2) means if you get an exception in the middle of import, you're left with bogus data in your db [05:26] the solution to both is one and the same - do proper transaction hooking. The question is whether someone has time to do it; if they don't, either it's up to us, or we find a way for the script to run that doesn't involve zopeless [05:26] (zopeless-less? :-P) [05:27] lalo: I'll take a look at that right now. [05:27] spiv: thanks [05:28] I thought there was some transactions going on somewhere even if we were running Zopeless [05:28] I don't know how well you know zope's transaction machinery; if you get lost, feel free to bug me, I'm reasonably intimate with it [05:29] daf: the zope transaction machinery is suitably poked, and I *think* sqlobject starts a database transaction too; but the two things don't talk to each other [05:29] it would be nice to have a "zopeless" that isn't zopeless -- that uses a subset of zcml files, but does set up the whole environment [05:29] daf: the initZopeless doesn't do anything to set up transactions, and doesn't currently expose any way to get at them. [05:30] spiv: ok [05:30] So, as lalo points out, you can't say "abort this transaction" in the Zopeless environ atm. [05:30] spiv: we are using transaction.get_transaction -- is that a no-op? [05:30] SteveA: yeah. everything but zodb and publisher. [05:30] Yeah, that's Zope's transaction stuff. [05:30] daf: yes [05:30] lalo: excluding browser too [05:30] lovely [05:31] Well, actually, it's sort-of exposed. [05:31] wouldn't it be enough to expose some of the SQLObject transactionality stuff? [05:31] or does the Zope stuff give us something extra? [05:31] daf: That's what I'm looking at :) [05:31] daf: it's easy to hook stuff to the zope transaction machinery [05:31] (it'd be nice, but harder, to use the zope transaction machinery...) [05:31] it doesn't give you a lot of extra, just a nicer API :-) [05:32] well, nice APIs are... nice [05:32] :) [05:32] We haven't even got that right when running Zope yet ;) [05:32] :D [05:32] true [05:32] spiv: are you going to improve zopeless? [05:32] well, whatever works. :-) [05:32] SteveA: By the bare minimum necessary to support aborting the current transaction. [05:33] (unless it looks like a ridiculous amount of work) [05:33] I'd prefer to improve it enough to allow lazyUpdate to work [05:33] I suggest you set up the minimal utilities and adapters necessary to make it use plug into the zope transaction machinery [05:33] which would probably involve hook to zope's transaction [05:33] and then add a sys.exit() hook that aborts any outstanding transaction [05:34] lalo: What's not working about that? Just that it never finishes? [05:34] (and so never commits the lazy updates?) [05:34] carlos: ok, I have some data on which sql.py calls are taking the most time [05:35] spiv: it is not working, as a whole :-) it was so broken that we disabled it completely [05:35] daf: could you add them to the bug report? [05:35] hmm [05:35] there is a bug with the detailed info, I can look it up to you [05:35] lalo: Yes please :) [05:35] daf: yes, attach it to bugzilla and I will try to improve them [05:36] carlos: sure [05:36] https://bugzilla.warthogs.hbd.com/bugzilla/show_bug.cgi?id=1935 [05:37] daf: thanks [05:37] lots of zen from Steve; and me, playing the role of Bill Gates, saying that "we probably won't need it anyway" :-P [05:38] but, well, premature optimization yadda yadda. [05:39] carlos: at a glance, RosettaPOMessageSet.getMessageIDSighting, RosettaPOFile.__getitem__, RosettaPOMessageSet.pluralForms, RosettaPOMessageSet.templateMessageSet are by far the most expensive [05:39] daf: do you mean that they are the most expensive run once, or most expensive cumulatively ? [05:39] so the columns used in those queries are prime targets for optimisation [05:39] SteveA: cumulativelyt [05:39] which ones are called most often? [05:40] SteveA: number of calls * time per call [05:40] daf: the indexes I'm adding will improve some of them [05:40] carlos: right [05:40] SteveA: glancing over daf's shoulder, they're being called thousands of times, and taking 0.5 or even 1.0 second per call (cumulatively). [05:41] SteveA: I don't have that data to hand; the hotshot stats printer is *very* slow [05:41] SteveA: I could generate it, though [05:41] SteveA: of the sql.py calls, it seems that getMessageIDSighting is called the most [05:42] this is the point at which we may want to introduce a specific method or two [05:42] SteveA: on the order of 3000 times in an import, compared to about 2000 for the other worst offenders [05:42] that does a bunch of work quickly at the SQL level, [05:42] trading the clarity and flexibility of objects with "one specific call" [05:42] no, that's wrong [05:43] getMessageIDSighting is getting called almost exactly twice as much as the others [05:43] also, if we have a method that returns an essentially immutable object, we may choose to cache that [05:46] why are we using a "1" for plural_form ? [05:46] what is the meaning of the "1" ? [05:46] or the "0" [05:46] where? [05:46] 0 is invalid [05:47] lalo: invalid where? [05:47] 1 means there is only one form [05:47] I just grepped to see where getMessageIDSighting is used [05:47] daf: POFile.pluralForms [05:48] 1 is for, eg, Japanese, Turkish, Korean [05:48] is 1 a number in this case? [05:48] lalo: no, I think Steve is talking about MessageIDSighting.plural_form [05:48] yes [05:48] or is it symbolic? [05:48] msgset.getMessageIDSighting(0, allowOld=True).dateLastSeen = "NOW" [05:48] old_plural = self._msgset.getMessageIDSighting(1) [05:48] ah, ok [05:48] I find the 1 and 0 in there opaque [05:48] 0 and 1 are numbers in this case; indexes [05:49] ok [05:49] then that's fine [05:49] but, I'm a little confused as to why I see only 1 and 0 [05:49] as messageIDs are supposed to be English, then 0 is the singular and 1 is the plural [05:49] that makes them seem rather symbolic [05:49] then why don't we say SINGULAR and PLURAL ? [05:50] SteveA: this stems from the design of the database [05:50] we could [05:50] but ENGLISH_SINGULAR and ENGLISH_PLURAL rather [05:50] or something like that [05:50] SteveA: Mark wanted us to cope with the theoretical possibility of the plural form of a message ID sighting being > 1 [05:50] daf: ok, the indexes improve the import in my machine, about 1 minute less [05:50] I will send now the database inclusion [05:50] daf: How does that conflict with using symbolic constants in the code? [05:50] spiv: it doesn't [05:51] daf: the app's code attaches meaning to 1 and 0 [05:51] Ok :) [05:51] spiv: that only explains why you only see 0 and 1 [05:51] 1 and 0 are hard-coded [05:51] you ppl want me to make the change? [05:51] the app is hard-coded for english message ids [05:51] Right. Just making sure I understand :) [05:51] so, I think the app's understanding on 0 and 1 should be hard-coded too [05:51] SteveA: well, not strictly English [05:52] "Germanic" would be a closer approximation [05:52] work out a good, simple, name for the 0 and 1, and let's use that name [05:52] or, those names, rather [05:52] daf: "normal" or "standard" :P [05:52] SINGULAR and PLURAL would be reasonable names [05:52] and perhaps these should be in a dbschema [05:52] perhaps [05:52] the app is hard-coded for english message ids as a phase 1 decision; since gettext assumes msgids have only two forms (actually gettext assumes the msgids are English), and phase 1 is gettext only, therefore the app is hardcoded for English [05:53] right [05:53] that's fine. but let's not be half-hearted with the hard-coding [05:53] because that's just confusing [05:53] ok [05:53] but if we're targeting a system other than gettext, the number of plural forms is going to be the least of our worries [05:54] daf: are you sure you're comfortable with SINGULAR and PLURAL? I'll add these [05:54] lalo: I'm sure [05:54] why is the allowOld argument not in the interface? [05:54] actually, I'm looking at old code, so I should update before asking further [05:54] ok [05:54] SteveA: perhaps the interface is wrong [05:55] perhaps. perhaps allowOld is used only as a private API. but that would be rather odd. [05:55] it's not private [05:57] Don't do this: [05:57] raise UnknownUserError, \ [05:57] "Tried to create objects but have no Person to associate it with" [05:57] Instantiate the error, instead [05:57] raise UnknownUserError("Tried to create objects but have no Person to associate it with") [05:57] then, you don't need to use a \ [05:57] lalo: I just realised that I don't need to make any changes to SQLBase to support transactions. [05:58] lalo: The trick is to not throw away the connection you pass to initZopeless. [05:58] daf: I'm looking at pofile_adapters.py [05:58] try: [05:58] return self._msgset.getTranslationSighting(index, allowOld=True).poTranslation.translation [05:58] except KeyError: [05:58] spiv: hmm? [05:58] it would be better to have the try:except: around exactly the thing that can raise a KeyError [05:58] there is too much between the try:except [05:59] _marker = [] [05:59] better to use _marker = object() [05:59] SteveA: lalo owns this code [05:59] you also own the code [05:59] lalo: You could even do "conn = connectionForURI(...); trans = conn.transaction(); SQLBase.initZopeless(trans); .... ; trans.rollback()" [05:59] SteveA: yes, transitively [05:59] SteveA: lalo is the direct owner [05:59] spiv: ok [06:00] I'll try that [06:00] SteveA: I completely agree with what you're saying [06:01] great [06:02] lalo, daf: why is there a bare except in pofile_adapters.TemplateImporter.__call__ ? [06:02] there *must* be specific exceptions that you expect [06:03] no [06:03] same for POFileImporter [06:03] I don't want to see MemoryError caught [06:03] Or KeyboardInterrupt, or ConflictError... [06:04] the only time when you don't know the specific exceptions that you expect is when you're interacting with a badly designed API [06:04] so, code that interacts with the db api has this problem [06:04] but, this shows flaws in the db api and how it exposes exceptions [06:05] I don't feel like arguing - I have decided a few hours ago that this exception masking thing is wrong, so instead of fixing it I'll remove it. Later. [06:05] this isn't an "argument". I'm suprised at some of the code I'm coming across, and I want to find out why it is the way it is, and how it can be improved. [06:06] I know [06:06] it would be an argument, if I tried to defend the reasons why I used a bare except :-) [06:06] but before I even do, I concede, it's wrong. [06:07] is it something that can be fixed in the pofile_adapters module, or does it need to be fixed in the code that that module is using? [06:07] the idea was that when you raise a POInvalidInputError you get the line number in the PO file where the exception was raised; so this would supposedly make it easier for us to debug stuff. But it's too open-ended, and it has caused as much troubled as it solved, so it's scheduled to die. [06:07] is there a bugzilla bug for it? [06:08] which it? removing the exception masking? no, it was just something in my head I wanted to discuss it with the team first. [06:09] ok. [06:09] exception conversion is fine, and good, by the way [06:09] it is natural to convert a KeyError into a ParseError for example [06:12] yes, been there... but in this case it has caused problems [06:13] do you think it should stay? if it stays, then I should make a list of all exceptions that could possibly be raised and catch only those [06:13] another approach is that taken by page templates, using a __traceback_info__ variable [06:13] that can contain extra information about where the error occured, in this case in the page template [06:13] I agree that is should catch specific exceptions if it stays [06:13] yup, but that's not python standard, it's a zope extension and therefore won't be there if zopeless [06:14] this is an adapter, and in rosetta [06:14] yes, and it runs zopeless a lot of the time :-) [06:15] it's the backbone of the importer script [06:15] lalo: I'm looking at your patch now [06:15] yes, that doesn't stop importing the code that knows how to get the traceback info [06:16] hmm. could be done. [06:17] I could look into that - in zope2 it's not something you can simply import, it's a tangle of publisher exception handling hooking. If the zope3 equivalent is importable, I may use it. [06:17] Well, it's "just" a simple matter of grovelling through the locals of the frames that you find the traceback... ;) [06:19] Whats wrong with DB-API exceptions? [06:19] look in zope/exceptions/exceptionformatter.py [06:19] that has classes which format exceptions, using __traceback_supplement__ as needed [06:20] ok [06:21] SteveA: perhaps we should do a systematic code review? [06:21] daf: we need a "login" link [06:21] carlos: we have one on the front apge [06:21] daf: oohh, I didn't know it O:-) [06:22] daf: that would be a good thing [06:22] daf: but we should remove it if we are already logged in :-P [06:23] the whole exception handling department of pofile and pofile_adapters is quite klunky :-/ are you two ok if I take a few hours to refactor it as much as necessary? [06:23] stub: iirc, there was a need for bare excepts because it was not clear exactly what errors the DBAPI could produce, and which of these were legitimate "database problem" errors [06:23] daf: is that a good use of lalo's time right now, given the other tasks to do in rosetta? [06:24] right now I don't even give a reliable line number... the correct message would be "syntax error somewhere around line 520 or somesuch" [06:26] All legitimate database errors should be subclasses of thedbmodule.DatabaseError or theconnectionobject.DatabaseError. Anything else is a bug or something that shouldn't be caught. [06:27] I'm still trying to track down who was complaining to me about this [06:28] then again, perhaps I misremember [06:28] or it was a different API, not the DB API [06:28] lalo: ok, the export works, but with bugs [06:28] lalo: carlos@frodo ~ $ msgfmt --statistics -o /dev/null es.po [06:28] es.po:281:10: parse error [06:28] es.po:287:10: parse error [06:28] es.po:293:10: parse error [06:28] es.po:299:10: parse error [06:28] es.po:311:10: parse error [06:28] es.po:316:10: parse error [06:28] es.po:4437:10: parse error [06:28] es.po:4443:10: parse error [06:28] es.po:6151:10: parse error [06:28] interesting [06:28] msgfmt: found 9 fatal errors [06:29] lalo: I will attach the es.po to the bugreport [06:29] ok [06:29] I translated only one string [06:29] and nothing more === SteveA pings daf [06:30] SteveA: sorry, I was workraving [06:30] I wonder if a method on a po message set that returns all sightings would help, or one that loads all sightings at once, in a single select [06:31] that's a thought [06:31] daf: no problem, just wanted you to have a checkpoint in the chatlog. I'd like you to make a decision about whether lalo should work on cleaning up the import code's use of exceptins, or whether other tasks have a greater need right now [06:35] SteveA: lalo has one bug assigned to him (#1944) [06:35] SteveA: there are a number of unassigned open bugs [06:39] so, let's file a bug for "clean up exception handling in po parsing / import", come up with a tangible deliverable for it [06:39] and then you and lalo decide which tasks should be next in his queue [06:40] well, let's make a clear statement of what's problematic with the current exception handling [06:41] 1. it doesn't provide reliable, useful line numbers in all cases [06:41] 2. it masks some stuff it shouldn't mask, which sometimes makes it harder to debug rosetta code [06:44] okay, can we put those two points in a bug report? [06:44] sure [06:44] thanks [06:54] thanks lalo, that's a very clear summary [06:54] thanks [07:03] carlos: [07:03] lalo: [07:03] would now be a good time to have a team meeting for you? [07:03] daf: sure [07:04] I'd prefer tomorrow morning [07:04] my brain is already starting to shut down [07:04] perhaps a very quick one now, and a more comprehensive one tomorrow morning? [07:04] ok [07:04] ok [07:05] ok, let's set a time limit of 10 mintues [07:05] so, we'll aim to finish by 17:15 UTC [07:06] what have we been working on today? [07:06] carlos: would you like to start? [07:07] daf: I was working on the indexes [07:07] doing some benchmarks [07:07] ok, and you produced some proposed changes to the database as the result of that, right? [07:07] and trying different options [07:07] until I sent a proposal [07:07] yes [07:07] I'm working now [07:07] on a more evalorated report [07:07] as you and Steve asked [07:08] great! [07:08] also I tested a patch from lalo [07:08] for a bug? [07:08] and sent the impressions about it [07:08] daf: yes === stub [~stub@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad [07:08] #1979 [07:08] ok, good [07:09] I've also been working on performance issues === stub [~stub@dsl-246.248.240.220.dsl.comindico.com.au] has left #launchpad [] [07:09] I did some profiling of the import code and posted the results to Bugzilla === stub [~stub@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad [07:09] I've also been making final preparations for the Rosetta Alpha launch === stub [~stub@dsl-246.248.240.220.dsl.comindico.com.au] has left #launchpad [] [07:09] doing the mailing list subscriptions [07:09] writing the announcement email [07:10] also, debugging problems with transactions === stub [~stub@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad [07:10] trying different patches on the development server [07:10] lalo: how about you? [07:11] (4 minutes left) [07:11] :-P [07:11] I was working on the plural form bug, what was its number again [07:11] 2017 [07:12] the fix for it "accidentally" fixed 1979 too [07:12] nice :) [07:12] this is good news, because it means we can export PO files from Rosetta [07:12] when will rosetta alpha announcements be going out? [07:12] not really :-) carlos found another error [07:13] SteveA: I've started writing the announcement [07:13] but the fix is simple [07:13] yes, but... ? [07:13] (that was for daf) [07:13] lalo: and that error is in Bugzilla? [07:13] daf: yes [07:13] I'm filing it now [07:13] SteveA: should it be reviewed before it's sent? [07:13] as an anex to the 1979 one [07:13] then looking at where Steve wanted those constants, and looking a bit at the exception handling [07:13] daf: I didn't ask whether the announcements were being written [07:13] I'm pretty sure I did two other things today :-/ let me check my logs [07:14] ok, before we finish, let's think of things we need to discuss tomorrow [07:14] SteveA: the announcement can go out as soon as the announcement text has been finished [07:14] ah, okay! [07:15] daf: 2022. Please decide if it blocks 1915, or 1965, or neither [07:15] ok, time's up [07:15] when is tomorrow's meeting? I want to put it in my diary [07:16] how about half an hour before the Launchpad one? [07:16] lalo: will do [07:16] lalo: I suppose we could move it to the beta [07:17] daf: hmm, perhaps it's better an hour before [07:17] it's a rather simple fix [07:17] that way we could handle any delay [07:17] about 15min work [07:17] let's have a half-hour meeting before the Launchpad one [07:18] if there's anything we need to discuss for longer, we can schedule another meeting later in the day [07:18] let's allow a break between the meetings [07:18] SteveA: good idea [07:18] lalo: we launch the alpha today or tomorrow, if you fixed it before the alpha release, great, if not, it makes no sense to block 1915 :-) [07:19] let's say 45 minutes before the Launchpad one [07:19] daf: ok [07:19] and allow a 15 minute break between meetings [07:19] so: 11:15 UTC? [07:19] no, the Launchpad meeting is at 11:30, right? [07:20] yes, 10:45 UTC [07:20] great [07:22] lalo: what's the estimated fix time for #2022? [07:23] daf: as I said, about 15m work [07:23] but I don't trust doing it now - I'm too tired, I'd probably introduce another bug ;-) [07:24] let's pin it on #1915 since the timescale for fixing it is short [07:25] i.e. tomorrow morning === lulu [~lu@host217-37-231-28.in-addr.btopenworld.com] has left #launchpad [] [07:26] So if all things goes well, tomorrow will be the "big" day :-) [07:30] carlos: what's the url to export a po? [07:31] lalo: it depends on the module [07:31] why the heck am I asking? :-P [07:31] http://localhost:8085/rosetta/gnome/gnome-applets/main-2.8/es/po [07:31] for example [07:57] ok, I seem to have fixed it [07:57] I'll go to bed, and when I wake up, I'll test the fix more thoroughly and merge it [07:58] good night all [07:58] carlos: I shouldn't even have asked - I was under the crackful assumption that the po export wasn't yet linked from the UI. It is not only linked, but rather easy to find. [07:59] lalo: :-) [07:59] lalo: night [07:59] for the record, I exported a po file, and passed it trough msgfmt successfully [08:02] lalo: I will review it later [08:02] hmm [08:02] prefs still seems to be kind of broken [08:08] I can remove languages, but not add [08:10] lalo: ? [08:10] lalo: ok, please don't add languages with countries (like pt_BR) [08:10] It's a know bug [08:10] ah [08:10] I need to fix the database info [08:11] or think about a way to improve that so it's automatically fixed with every exception raised. [08:11] interesting [08:20] hmm. I don't remember the sql syntax for update :-P [08:22] \h update in psql [08:22] oooh. thanks [08:23] daf: update language set pluralforms = 1, pluralexpression = '0' where englishname='Lojban'; [08:26] lalo: that language does not have plural forms? [08:26] no [08:26] ok [08:26] I will add it to our list [08:26] thanks :-D [08:26] np [08:27] I'm making a lojban translation of gnome-terminal as a futile exercise to get myself acquainted with the rosetta UI [08:45] carlos: where are you adding new plural form data? [08:45] daf: to the file that feeds our script and also to the languages.sql file [08:46] scripts/plural-form-data [08:46] great! === lalo goes to bed [08:49] lalo: night night :) [08:50] nite [08:50] lalo: well spotted on #2023 [08:52] lalo: night [08:57] daf: any easy way to create a launchpad_test2 database with the current setup? [09:10] make -C /home/daf/launchpad-test/database/schema DBNAME=launchpad_test2 [09:10] daf: I was playing with DBNAME=launchpad_test make [09:10] but it did not work [09:10] daf: thanks [09:11] yeah [09:11] you have to use -e to Make if you want environement variables to be applied [09:11] but it's better to specify them on the command line [09:12] ok === cprov [~cprov@200.158.100.251] has joined #launchpad === lalo [~lalo@200-102-070-253.paemt7003.dsl.brasiltelecom.net.br] has joined #launchpad === carlos [~carlos@67.Red-81-32-123.pooles.rima-tde.net] has joined #launchpad === SteveA [~steve@adsl-213-190-44-43.takas.lt] has joined #launchpad === elmo [~james@83.216.141.215] has joined #launchpad === carlos [~carlos@67.Red-81-32-123.pooles.rima-tde.net] has joined #launchpad === SteveA [~steve@adsl-213-190-44-43.takas.lt] has joined #launchpad === carlos [~carlos@67.Red-81-32-123.pooles.rima-tde.net] has joined #launchpad === lalo [~lalo@200-102-070-253.paemt7003.dsl.brasiltelecom.net.br] has joined #launchpad === elmo [~james@83.216.141.215] has joined #launchpad === lal1 [~lalo@200-102-070-253.paemt7003.dsl.brasiltelecom.net.br] has joined #launchpad [09:52] !dmwaters:*! Hi all, we are having problems with one of our main rotation servers. I'm going to rehub it and see if we can fix it a bit === carlos [~carlos@67.Red-81-32-123.pooles.rima-tde.net] has joined #launchpad === lalo [~lalo@200-102-070-253.paemt7003.dsl.brasiltelecom.net.br] has joined #launchpad === elmo [~james@83.216.141.215] has joined #launchpad [09:55] !alindeman:*! Hi all .. we're having a bit of trouble with one of our main rotation servers. We've pulled it from rotation and rehubbed a bit. We'll continue to monitor the situation. Sorry for any inconvenience and thanks for using freenode === carlos goes to have dinner === sabdfl [~mark@host217-37-231-28.in-addr.btopenworld.com] has left #launchpad [] === sabdfl [~mark@host217-37-231-28.in-addr.btopenworld.com] has joined #launchpad