[00:02] verterok: currently to_file expects str, if we change it with codecs.getwriter, it would now expect unicode [00:03] verterok: btw, why do you use xml-rpc in java plugin? why not talk directly with xmloputput? [00:04] RenatoSilva: I got lost :) [00:05] RenatoSilva: directly how? [00:05] verterok: currently to_file expects str, if we change it with codecs.getwriter, it would now expect unicode, and that py2 auto ascii encode/decode thing would get place, and would raise errors for non-ascii stuff... [00:05] verterok: I mean for example [00:06] verterok: you want to pull branch's log, then why not you run bzr locally and parse the XML response? why do you have to send an xml-rpc call to a local server, then get the response and parse it? [00:06] verterok: the server runs bzr locally anyway [00:06] RenatoSilva: mainly for performance reasons [00:07] RenatoSilva: the startup time in windows is terrible [00:07] verterok: you mean xml-rpc server keeps the executable in memory? [00:07] RenatoSilva: I'll take a look to the codecs.getwritter, don't have the code fresh enough in my head [00:08] RenatoSilva: right, only oone bzr process [00:08] *one [00:08] verterok: there isn't a way to do this in java? [00:08] verterok: if python does, java does it too ^^ [00:09] RenatoSilva: hmm...what? [00:09] verterok: the plugin could load bzr.exe into memory [00:09] RenatoSilva: we need to use bzrlib API [00:10] verterok: oh I see, bzr-java-lib... [00:10] RenatoSilva: I'm missing something, could you extend? :) [00:11] verterok: you mean start bzr.exe every time you need to run a command is too slow, so you put xml-rpc server in scene for keeping one executable in memory, and run the commands faster, right? [00:12] RenatoSilva: yeap, exactly [00:12] RenatoSilva: take a look to the different *Runner's in bzr-java-lib [00:13] verterok: I don't have the code right now... [00:13] RenatoSilva: the XMLRpc extends the CommandLine [00:14] verterok: my idea was, when the plugin is loaded, it loads the executable into memory.When it wants to run something, then it activates bzr-java-lib, and passes the cached executable, so that bzr-java-lib does not have to start the proccess. [00:14] verterok: both bzr-eclipse and bzr-java-lib would need changes in the code to achieve this [00:15] verterok: however I'm not sure if you can do this kind of thing in Java [00:15] RenatoSilva: how would you load the executable into memory and use it several times? [00:15] verterok: I'm guessing: if python can, then yes java can! [00:15] RenatoSilva: I think it could be possible with JNI...but you know...JNI [00:16] verterok: and how python does? [00:17] verterok: how does the xml-rpc server loads and keeps the executable in memory? [00:17] RenatoSilva: bzr-java-lib executes: bzr start-xmlrpc in a subprocess [00:17] verterok: also, maybe bazaar should have some kind of "daemon" mode [00:21] verterok: oh I see, the server is a bzr instance itself + xmlrpc plugin. When you send a command, the server is "inside bzr", so it does not need to run bzr.exe. I thought for a moment that run_bzr was running the process... [00:21] RenatoSilva: there is the bzr-serivce plugin [00:21] RenatoSilva: right [00:21] :) [00:22] verterok: nice [00:23] verterok: how does it work? you send raw arguments to a net socket? [00:23] RenatoSilva: the bzr-service plugin? or the xmlrpc service? [00:23] verterok: or do you have a formal protocol? [00:23] verterok: bzr-service [00:24] RenatoSilva: jam wrote it, I think it send the command args via the socket [00:25] verterok: hum, what do you think is simpler code, talking with xmlrpc or bzr directly? [00:25] RenatoSilva: bzr via bzrlib? [00:27] verterok: ok, but you're the bzr-java-lib developer too, right? :) [00:27] verterok: not talking about xmloutput anymore hehe [00:27] RenatoSilva: xmlrpc is more flexible in that you can talk to it from almost every language [00:27] one issue with xml though [00:27] verterok: every language? [00:27] not all bzr commit data can be put into xml now [00:28] lifeless: hi [00:28] lifeless: yeah, xml is maybe an unecessary middleware [00:28] RenatoSilva: bzrlib is only usable from python [00:28] hi poolie [00:29] what did you mean by "guess-good"? [00:29] that it had tried to help you ;) [00:29] lifeless: also, things get weird when you send xmloutput stuff through xml-rpc: xml inside xml... [00:30] and "it" is? [00:30] RenatoSilva: the current xmlrpc service is a sort of a hack :) [00:30] bzr-guess [00:30] 're bzr-guess helping you that is good to know' [00:30] verterok: sorry I read bzrlib as "bza-java-lib" [00:31] verterok: what I mean with " hum, what do you think is simpler code, talking with xmlrpc or bzr directly?" is [00:31] verterok: from java code [00:31] verterok: in bzr-java-lib [00:31] oh ok [00:33] RenatoSilva: currently there is no way to talk to bzrlib directly from Java, I'm trying to implement OSLocks in Java, in order to use Jython [00:33] verterok: maybe being able to directly send arguments to bzr, but having the process chached in memory, maybe it would be eassier to java code... [00:33] verterok: I'm talking about service plugin [00:34] RenatoSilva: xmlrpc is quite simple, you just send basic data types and receive the same (Strings, int, HashMap, Arrays) [00:35] verterok: imagine in java code something like Bazaar bzr = Bazaar.getServiceInstance(); then you bzr.run('log -r 10..12') ro so, instead of building an XML and send as xml-rpc [00:36] verterok: what would be easier, that's what I mean [00:36] s/ro/or [00:36] RenatoSilva: that's the way bzr-java-lib is sending the command :) [00:37] verterok: anyway, would the plugin work if bzr.exe is in another host and you don't have one locally? [00:37] RenatoSilva: but it's wrapped in IBazaarClient interface [00:38] jelmer: we preserve the sha1 cache between runs now [00:39] lifeless: quick call? [00:40] verterok: that's the way bzr-java-lib is sending the command ---> bzr-java-lib could implement the cached process then, using the service plugin, so that users won't need xml-rpc anymore to run bzr faster... [00:41] verterok: users could choose between xml-rpc or direct talk [00:42] poolie: sure [00:43] . [00:46] RenatoSilva: there is no cached process, it's just a python subprocess running a server [00:46] RenatoSilva: the advantage of xmlrpc is that's more standard vs a custom socket service [00:47] verterok: by cached process I just mean the service plugin [00:47] RenatoSilva: in any case, the big plan is to have a more flexible xmlrpc service, using methods instead of running bzr commands [00:48] RenatoSilva: and avoiding to send xml in xml ;) [00:48] ok :) [00:49] RenatoSilva: also I thinked a *lot* about using other protocol insted of xmlrpc, but the main issue are the dependencies [00:50] RenatoSilva: e.g: using google protocol buffers [00:50] RenatoSilva: the other option is to use bzr smart server [00:50] verterok: the protocol could be just command line arguments [00:51] verterok: Bazaar.getServiceinstance().run("--version") [00:51] RenatoSilva: yes, but we need a way to receive the information, and possibly streaming it ;) [00:51] verterok: through a socket [00:52] RenatoSilva: I mean the format of this info [00:52] verterok: you receive the response throught the socket, then you parse the xmloutput output [00:52] verterok: format = keep using xmloutput [00:53] RenatoSilva: with the current xmlrpc service in xmloutput (or with any other transport, e.g: socket) we need to send the whole info back [00:54] RenatoSilva: e.g: bzr log -v of bzr trunk is going to take a while, and it's a lot of info kept in memory (in the case of xmlrpc+xmloutput) [00:54] verterok: List logs = XMLLogParser.parse(Bazaar.getServiceInstance(BZR_PORT).run('xmllog')) [00:54] RenatoSilva: we could stream with a custom socket server [00:54] RenatoSilva: but why reinvent the wheel ;) [00:56] verterok: what are you planning to do to stream it? [00:56] RenatoSilva: also, using commands isn't such a good idea, in the case of bzr-java-lib it works, but it would be a lot better if we have custom service methods to call [00:57] verterok: ok a more computer-friendly protocol, cmd line is mostly user-friendly, I agree [00:58] RenatoSilva: I think that the first step could be to implement the method to replace the xmllog command, and customize the xmlrpc server to stream the response [00:58] verterok: doesn't bzr-service stream the response too? [01:05] verterok: I've heard it's mature...or would that be JRuby? [01:05] RenatoSilva: I'm started a little experiment, write a Java version of the OSLocks, to be used with Jython [01:06] verterok: what's OSLocks? [01:06] lifeless: do you think that ^ might work? :) [01:07] verterok: doesn't Jython gives you full access to python code from java? [01:07] verterok: what is OSLocks and why do you need it [01:07] RenatoSilva: bzr grabs a lock (read and/or write) on some files, it uses fctnl module or pywin32 to do that [01:08] RenatoSilva: as the code is C, Jython don't have access to those modules [01:08] RenatoSilva: Jython only can use pure python modules === tro|| is now known as tro [01:09] verterok: and you have something in python to access the C code, doesn't bzrlib do this for you? [01:09] verterok: shouldn't all bzr C code be wrapped to python for proper third-party access? [01:10] RenatoSilva: you can write python modules in C, but you can use those in Jython [01:10] RenatoSilva: yes, but Jython can't import the required modules [01:10] verterok: I see [01:11] verterok: then Jython is not a full python VM right? [01:11] RenatoSilva: it's [01:11] verterok: environment I mean [01:11] RenatoSilva: but it can't use C extensions [01:12] RenatoSilva: some C extension are already ported to Java [01:12] verterok: as it does not behave as a complete python vm (containing the c access module) [01:13] verterok: if python itself can use C extensions, then Jython should be able too maybe [01:13] RenatoSilva: because the "system" langauages are different, some python C extensions were ported to Java, so Jython can take advantage of it's speed [01:14] RenatoSilva: not really, there is some related work in progress in JRuby using JNA, but not in Jython...yet [01:14] verterok: ok [01:16] RenatoSilva: It's not a matter of having a "c access module". CPython extensions use the CPython C API, which a Java implementation of Python obviously doesn't have. [01:16] * verterok --> dinner, bbl [01:17] jelmer: lots of kudos to you, bzr-git imports working well now thanks to mwhudson's recent work to remember the sha1 cache [01:17] jelmer: can we do the kernel yet? [01:17] jelmer: mwhudson requested vlc which worked taking 13 or so hours, with 34k mainline revisions [01:19] wgrant: I see [01:20] * RenatoSilva --> go home [01:20] thanks everybody [01:20] thumper: Now that you've perfected bzr-git imports, can we get bzr-svn too? [01:21] verterok: sorry was on a call [01:21] verterok: whats the question in short? [01:21] wgrant: we are trying [01:21] wgrant: but it has issues with python 2.4 right now [01:21] wgrant: and our migration to python 2.5 took a hit with the developer working on it being sick for a week [01:21] thumper: Well, I see a solution to that that you need to implement in a few months... [01:21] Oh, so you're actually doing it> [01:21] wgrant: but it is very much in the "near future" [01:22] But why only 2.5? Because Hardy doesn't have 2.6? [01:22] thumper: https://code.edge.launchpad.net/~vcs-imports/wine/git-trunk still not happy :( [01:22] wgrant: because we need to migrate zope through 2.5 first [01:22] wgrant: we aren't jumping two versions at once [01:22] wgrant: because going 2.4 -> 2.5 -> 2.6 is going to be easier than 2.4 -> 2.6 [01:23] I guess so. [01:23] mwhudson: -> #launchpad [01:24] mwhudson: !assertion [01:28] lifeless: it's an opinion but a pretty firmly held one [01:29] mwhudson: yeah, I realise. [01:29] I hold the contrary position. Also fairly firmly ;) [01:31] well it's not either of us doing the work, so i guess it doesn't matter very much [01:43] thumper: were you going to or did you propose an lca miniconf? [01:50] poolie: thanks for reminding me, I'll talk to the people this afternoon [01:50] lifeless: np [01:51] jam, hello, if you're still here [01:52] lifeless: it wasn't a question actually :), I'll try to add an OSLock implementation for Jython, using java FileLock class [01:53] lifeless: is there any specific issues I should take care of? [01:53] lifeless: FileLock docs: http://java.sun.com/javase/6/docs/api/java/nio/channels/FileLock.html [01:54] verterok: not really [01:54] the main thing would be to test interactions with python bzr oslocking of the dirstate file [01:54] make sure they mutex properly [01:55] (read locks sharable, write locks exclude all readers and writers) [01:55] lifeless: ok, thanks for the tips :) [02:20] hi all, i have a repo that i made weird changes to, how can i just make one directory go back to the last comit? [02:20] bzr revert -r -2 directoryname [02:21] thanks lifeless [02:31] I found a class that tests PyQt models. I'm using it now in qbzr. [02:31] http://paste.ubuntu.com/213349/ [02:32] But it use assert(). How important is it to use TestCase.assert*()? [02:33] garyvdm: the main difference is that assert is skipped when run with python -O [02:33] so [02:33] we ban its use in the main codebase [02:33] in tests, it's ok [02:33] but not great [02:34] poolie: So do you think I should customize it? [02:34] hm [02:35] well, what are you going to do with it? [02:35] copy it into qbzr? [02:35] Yes - I have copied it into qbzr because it is not installed with pyqt === mario_ is now known as pygi [02:36] And I call it from qbzr's tests [02:37] i wouldn't stress about it [02:37] Ok [02:38] hope that helps :) [02:39] for inconclusive advice :) [02:39] lol [03:03] Hmm - I can get a new test to run. [03:04] This is qbzr/lib/tests/test_annotate.py : http://paste.ubuntu.com/213366/ [03:05] bzr selftest -s bp.qbzr.lib.tests.test_annotate = Ran 0 tests [03:06] *cant get a new test... [03:07] bzr selftest qbzr.*annotate [03:07] Ran 0 tests in 0.149s [03:07] its not being found then [03:07] hav you added the file to the qbzr test list? [03:08] Ah [03:08] No [03:08] Thank lifeless. [03:16] poolie: ping; a) hunger, b) you'll need time to get home for your call [03:16] lifeless: btw did you file a bug for the unstacking issue with inventories? [03:16] well [03:16] if you didn't it's ok, and i might just comment on 391411 [03:18] I hadn't no [03:18] I was going to, but your adding a comment would be great [03:18] I've isolated my machine turn offs [03:18] spiv, are you here? [03:18] if I hold the left side of my laptop and press firmly (key press firmness) on the top right, it turns off. [03:19] that's handy [03:19] much better than needing all that clicking through menus :) [03:20] ctrl-left click when the right edge is on my knee is enough === MTecknology is now known as \MT === \MT is now known as MT- [03:26] How hard is it to create a bzr repository? Is there any simple guide? [03:29] bzr init-repo DIRECTORY [03:29] but you may not mean what you think you mean [03:29] what do you want to achieve, in nontechnical terms [03:31] Me make pushy wordy stuff to metal box thingy and have wordy stuff in metal box thingy to get later :P [03:31] I had to have fun with that [03:31] :) [03:31] I want to create the repository on the server that was freshly installed with Ubuntu [03:33] poolie: I'm around for a bit now [03:34] jam, was just going to say hi [03:34] so "hi' [03:34] lifeless, leaving now [03:34] hi poolie [03:35] MT-: sure; but I mean - do you want to put a new project under bzr control? or package trees, or ..? [03:36] lifeless: I'll eventually want to put projects in it, I just want the repo available to do things with, fresh installation all the way to having groups of users that can edit specific branches [03:37] MT-: so, bzr doesn't really get organised that way :) [03:37] and the very question led me to suspect you were starting off oddly ;) [03:37] MT-: what VCS are you most familiar with? [03:38] lifeless: bzr, but using with launchpad [03:38] ok [03:38] so on launchpad each branch is in its own repo [03:38] I've setup svn before and had it running over http[ [03:38] oh [03:38] and bzr will create a repo automatically when you push if there isn't one [03:40] poolie: I am, yeah. [03:41] MT-: if you want http/s hosting, you can set that up now [03:41] I'd prefer only ssh [03:41] in which case you're already setup:) [03:42] not yet :P [03:42] I need to find the IP of the server so I can install bzr [03:46] MT-: oh, well thats entirely different :) [03:46] anyhow, use unix permissions to manage access [03:47] try to keep the permissions for an entire repo the same [03:47] (by which I mean *keep them the same*) [03:47] just create as many repos as you need [03:48] and for single-shot things, just use 'bzr push bzr+ssh://host/...foo' to push up a branch [03:48] Can I set where the repos get created? [03:48] when bzr automatically creates one, its inline with the branch [03:49] otherwise they are all manually created [03:54] lifeless: I just meant, can I tell bzr that whenever somebody tried to do bzr push bzr+ssh://server/blah, blah is created within /bzr [03:55] that would push to /blah [03:55] so its very easy, don't give them permission to write to / :) [03:56] what I mean is bzr+ssh://server/ == / on the filesystem (unless you've chrooted your ssh environment) [03:58] Another option is to configure a different bzr serve command line in your ~/.ssh/authorized_keys. [03:58] See e.g. contrib/bzr_ssh_path_limiter \ [03:58] spiv: bzr on the client won't run that though [03:58] spiv: isn't the result a permission error ? [03:59] lifeless: you can create a key that always runs a specified command no matter what the client asks for [03:59] I just found the IP [03:59] fooding [03:59] lifeless: (and that command can then inspect an env variable to get the command client asked for) [04:03] So what I need to do is create a bzr group, add myself to the group, then set the group to own the directory where branches can be created in [04:12] lifeless: does that sound like what you were saying? [04:17] it didn't like that [04:44] spiv, so, i'm ready when you are [05:11] poolie: ok [05:22] When I try to push, I'm getting this error - bzr: ERROR: Unsupported protocol for url "sftp://bzr@208.107.52.90/bzr/tmp": Unable to import paramiko (required for sftp support): No module named paramiko [05:22] lovely that I pasted my ip... [05:26] ok, I figured it out [05:29] YES! I pushed it - although it still needs proper permission setup [05:57] MT-: use bzr+ssh rather than sftp [05:57] MT-: its a lot faster [05:59] lifeless: I was just working off a guide online. I think I'm readdy to tackle loggerhead now but I'm not fully sure how [05:59] looks like it defaults to port 8080 [06:00] ssh seems to work exactly the same except as you said, much faster :) [06:02] I need to wait for the guy to get home and forward the port. We don't have a decent router setup yet. [06:32] ok, back into 391411 [06:47] lifeless: you still around? [06:47] by accounts [06:47] though I'm working on shrinking [06:50] lifeless: When I create a branch by pushing it, the branch is owner/group is me, so other users can't access it. How can I make it so the owner is bzr and the group is the top level directory of the files? If I just push a random branch the group is bzr for all files and if I push to a branch I set the group to devs the files group is devs. [06:50] hopefully that's easy to deal with. I'm probably thinking wrong too [06:51] if I do bzr initi-repo it's root:root, I imagine just changing that to bzr:devs would be easiest [06:52] looks like I should justuse mkdir instead of init-repo instead though, maybe [06:52] lifeless: filed bug 397286 from our call [06:52] Launchpad bug 397286 in bzr "fetch(find_ghosts=True) may not find all CHKMap pages" [High,Confirmed] https://launchpad.net/bugs/397286 [06:52] poolie: thanks [06:53] MT-: set the sticky bit [06:53] ? [06:55] MT-: unix permissions [06:56] I've never heard of that.. [06:56] hi all [06:56] hi [06:56] hey vila [06:56] actually, its not the sticky bit thats needed. [06:56] one sec [06:57] lifeless: +t ? [06:57] or apparently 1000 [07:00] lifeless: whenever you know, I'm all eyes :) [07:00] s/know/remember/ [07:04] set the group on the dir; oh, and the umask needs to be altered to preserve g+w in new subdirs [07:04] that should be all thats needed [07:04] looks like +s on the parent directory [07:05] hrm, that preserved the group [07:06] shouldn't that inheret user too? [07:07] or is that not possible? [07:14] you'd need everyone to be the same user for that to happen :P [07:15] that's ok then :P [07:18] I love how loggerhead is breaking... oh well [07:18] not important atm :P [07:19] lifeless: I'm confused though.. I add a file to the branch, push the branch, and then no files show up in it [07:20] I guess it mush just be a server thing. I pull it and it shows up. Where does bzr keep the files? [07:21] MT-: compressed in a database in .bzr/repository [07:21] oh [07:22] wow... I'm learning a LOT today [07:25] lifeless: thanks for all the help : [07:25] :)* [07:26] anytime [07:27] probably ina few minutes :P [07:34] EOD [07:34] You mean F? [07:34] oh - day [07:36] lifeless: does that mean you're gone or here for a few minutes? [07:36] night [07:57] I'm pretty sure bzr takes care of preserving the g+w if it's set on . I don't believe it tried to explicitly set the group though. [07:57] Depending on FS semantics, it'll inherit automatically all the time (BSD) or when the setgid bit is set on the dir (SysV) [07:59] I think bzr is working perfect now - but loggerhead is irritating me [08:23] vila: bzr-gtk release woo-hoo! [08:23] poolie: yeah ! First release ! :-/ [08:23] mm, why first release? [08:23] your first one? [08:23] Hopefully someone can populate the PPAs from there [08:23] poolie: yes :) [08:26] I'm trying to setup loggerhead. I have no idea what I'm doing... I installed it and I have no idea where to go from here. There doesn't seem to be any apache config created for it [08:26] MT-: Good idea ! You should file a bug asking for one [08:26] vila: idk if I screwed up or not [08:27] vila: Do you know what I'm supposed to do? [08:27] i think there's a readme file describing what to do [08:28] MT-: no, but I know that you shouldn't have such doubts as a newcomer, so filing a bug right now, before getting your hands dirty will help make future newcomers experience better :) [08:28] MT-: try pinging beuno / mwhudson as the usual suspects [08:29] vila: I already screwed with too much stuff. If I file a bug on it, It'll be on a fresh system. I did have it working for a short while before I did something stupid (following a random guide) [08:30] I'll try to flush everything about loggerhead off this sytem [08:31] vila: it's supposed to open port 8080 for it, right? [08:32] MT-: sorry, I never installed loggerhead myself so I can't really help here :-/ [08:32] oh [08:33] I kind of understood at one point that the http server was talking to the loggerhead one but even that bit may be outdated [08:34] poolie: can you save my sanity? [08:34] I fucked this up and idk how to get it back [08:35] ^ I think that sums it up. I broke it [08:35] you're not giving us much to go on there... [08:36] MT-: can you be more specific? [08:38] I tried following this guide - http://wiki.flexion.org/LoggerheadServer.html - Then tried aptitude install loggerhead over top of it. It kinda worked but it crashed some so I tried to finish the process. That wouldn't work so I went back the the loggerhead package. I realized how screwed up I made it so I tried to purge apache2 and loggerhead. I searched the system for files named loggerhead and removed them. I tried to them reinstall apache [08:39] actually, now I'm getting this error - sh: getcwd() failed: No such file or directory [08:42] Getting that error in what context? [08:42] root@carpo:/etc/apache2# /etc/init.d/loggerhead start [08:42] sh: getcwd() failed: No such file or directory [08:43] start and stop are the exact same message [08:43] have a question about API versioning [08:44] developers/api-versioning.html said: In the plugin foo exporting the API (in __init__.py): [08:44] version_info = (0, 0, 1, 'beta', 1) [08:44] api_version = (0, 0, 1) [08:44] what if my plugin don't have qpi_version declaration? [08:45] does bzr will use just version_info? [08:45] spiv: dpkg-reconfigure loggerhead and dpkg-reconfigure bzr-search show those messages too [08:45] even /etc/init.d/apache2 stop is doing it too.... [08:46] I have a knack for destroying a system I guess [08:47] MT-: if /etc/init.d/apache2 is doing that too then it sounds like you've somehow overwritten something pretty crucial in the system. Hm.. [08:47] MT-: or, [08:48] MT-: perhaps the shell you are invoking them from is running from a deleted directory? [08:48] MT-: if you do "cd /" before running those commands, does that help? [08:48] doesn't help [08:49] It's certainly a misfeature of python on debian/ubuntu that "python setup.py install" of random projects tends to clash badly with OS-installed files. [08:49] * MT- sucks at computers [08:49] bialix: I don't know, sorry :( [08:49] glyph: hey [08:49] bialix: no, [08:50] glyph: nice to see you in here :) [08:50] i think it should just assume nothing about what api you need [08:50] ie we don't know if you'll work with the current bzrlib or not [08:50] wait [08:50] it's about compatibility between plugins [08:51] e.g. bzr-explorer requires qbzr >= 0.11 [08:51] spiv can i ask you about test_unstack_fetches in branch_implementations [08:51] oh right, this is your api, not the required api [08:51] but qbzr has no api_version declaration in old versions [08:51] poolie: you can ask ;) [08:51] spiv, i think it ends up with the stacked branch being a local one [08:51] so now I'm checking qbzr version manually [08:51] even when it's an iteration that's meant to be testing remote objects [08:52] Without looking, that sort of test bug isn't unheard of... [08:53] poolie: because of the sprout('newbranch') ? [08:53] rather than sprout(self.get_url('newbranch')) ? [08:53] That looks likely to me. [08:53] spiv, yeah [08:54] also, i really want to change get_transport and get_url to something like [08:54] get_test_url [08:54] I'm pretty sure I've seen (and corrected) that exact error in other tests. [08:54] to make it more clear it's going to be parameterized depending on the test context [08:54] It's probably not hard to grep for. [08:54] Hmm, I think asking "self.get_url" where self is TestCase is pretty clearly doing that already. [08:54] spiv: can you tell me what shoudl be in /etc/apache2/envvars ? [08:55] poolie: I don't see it being any more clear, and think that sort of naming is an antismell [08:55] why? [08:55] MT-: mine has http://pastebin.com/mfdeb8df, I haven't edited it since install. [08:56] spiv: I'm in here quite a bit :) [08:56] glyph: and it's nice to see you every time :P [08:57] spiv: Well, then! You too! :) [08:57] oh, i guess an antismell would be a good thing? [08:57] spiv: what file permissions? [08:57] spiv: sadly I am not here for an awesome reason. [08:57] poolie: I mean 'foo.get_transport' is clearly parameterised already [08:57] by foo [08:57] ditto foo.get_url [08:57] spiv: nvm... [08:57] spiv: how do I get a scratch install of apache? [08:58] MT-: you might want to try apt-get --reinstall [08:58] I still use Hardy on most of my machines. But, the bzr-gtk packages are broken there. Are those packages in the PPA supported for Hardy any more, or is it just bzr itself? [08:59] spiv: didn't do it.. [09:03] lifeless: well, that's just it, i think it's not clear [09:03] the difference between self.thing and thing is not very large [09:06] poolie: I found it unclear for quite some time, but now that I've use get_transport and get_url quite a lot, I can't see how you can change them without massive disruption in the existing tests grep says 726 matches for get_transport and 475 for get_url... [09:07] There mat be places where one or the other miss a relpath parameter, but most of the time (at least in the tests *I* encounter) they seem fine [09:07] s/mat/may/ [09:08] well, i realize most of the tests mostly work [09:08] And I fixed a couple of bugs where the test were wrongly calling get_transport() instead of self.get_transport() [09:08] poolie: I think with get_transport vs. self.get_transport it can be unclear, but there's no non-test equivalent of get_url. [09:08] that's true [09:08] and that there are many calls [09:09] Or not so much unclear as easy to forget to use the self. version, and easy to miss when reading/reviewing. [09:09] OK! Apache is back running... now back to figuring out loggerhead [09:10] Actually, when I phrase it like that, that's the same sort of thing as this test bug -- it's easy to call sprout with a string that will implicitly use a local URL, rather than with a URL. [09:10] If you had to give it a URL, that test error would be much less likely. [09:11] that's what reminded me [09:11] "it's possible to use it correctly" is not very convincing [09:11] Right, too far down rusty's list. [09:12] well, if we could make get_transport() private, it makes me more happy :) [09:12] It's easier to misuse than use correctly, at least in the context of testing. [09:12] (It's convenient in ad hoc scripts though...) [09:12] vila: which get_transport? [09:12] :) [09:12] presumably you mean the factory function [09:13] poolie: yes :D [09:13] actually maybe tests for remote objects should have something to prevent them using the temporary directory unless they really want to [09:13] i bet if we did that it would find some bugs [09:15] spiv, have you thought at all about having a common base class between Repository and RemoteRepository? [09:15] some things might like to live there [09:15] A little. It would probably be nice. [09:15] like has_same_location etc [09:15] i realize it probably can't share much actual implementation [09:15] or shouldn't [09:16] It could perhaps share some stuff like write group managment. [09:17] glyph: wb [09:17] oh.... [09:17] spiv: pro tip: fscking 3 terabytes takes a while, and probably shouldn't be done mid-conversation. [09:18] glyph: I haven't looked at the state of PPA lately, but I see that bzr-gtk finally cut a release today [09:18] ooh. [09:18] spiv: well in that case I'll write a shell script to apt-get update in a tight loop :) [09:18] glyph: I think the PPA package was probably broken due to lack of a release compatible with current bzr, so with that fixed hopefully someone will update the package soon. [09:19] by the way [09:19] I have I mentioned that I love bzr? [09:19] glyph: no, do you love it ? [09:19] Because I do. I love it. I have a natural tendency to be biased towards it, of course, because all you fine folks work on it and I like you so much [09:19] but every time I have to interact with git, darcs, or even hg (and I've been trying out a lot of software recently, so I've been doing a lot of that) I find myself thinking that it would be a lot nicer if it were bzr. [09:20] spiv: ok... so loggerhead will load once. If I reload the page or click anythin the daemon dies... -_- [09:20] glyph: btw, a test conversion I did of Twisted's trunk into the 2a format is only 20M. [09:21] spiv: !!!! [09:21] oh, just trunk. [09:22] Still, I'm pretty sure that's smaller than the SVN equivalent export. [09:22] Yeah, although I don't imagine a bunch of branches is going to explode it that much, the compression is pretty sexy. [09:23] It took a minute, but 'du' reports the current repository is about half a gig. [09:23] if trunk is only 20M in 2a, I bet that it will be a looot smaller than that. [09:23] I'm sure it will be smaller than that! [09:23] I've done conversions and just as 1.14-rich-root the whole history of all repositories in the project list comes out smaller than a single export of one of the branches [09:24] ISTR the last time I did a full conversion into an earlier format it was under 80M, and 2a is typically much much better... [09:24] A working copy would be huuuuge in comparison- 1.7 GB x2 is much bigger than 700MB (the bzr repo packs) [09:24] I converted it to 2a and only got a 50MB reduction from 700MB though [09:24] It's a bit confusing because Twisted's repo has some 'branches' that aren't actually branches that confuses bzr-svn a little into making some garbage branches. [09:27] spiv: I am 90% sure that the only 'branch' like that is actually 'releases/' [09:27] spiv, lifeless, vila, how do we feel at the moment about having eq methods on things like Repository [09:27] spiv: so if you could special-case that directory via some configuration... [09:27] that check if they have the same format and location etc [09:27] i have mixed feelings [09:27] poolie: better make sure you have __ne__ methods too! and __gt__ and __lt__ and __ge__ and __le__ and ... ;-) [09:27] but if the checks are cheap and well defined it's probably food [09:28] yeah, well, at least ne [09:29] poolie: probably food indeed ;) [09:29] I'm -0 I think. [09:30] poolie: I don't have good feeling about it, there equality concept between repository is not that obvious to me, I can easily imagine people considering repositories with the same *content* to be equal [09:30] I think for something as complicated and general-purpose as a Repository "equality" has several possible meanings. [09:30] urgh, forget my typos, what spiv says ;) [09:30] Which tends to mean that blessing just one meaning with __eq__ is asking for bugs. Hence why we have has_same_location. [09:31] it would have just been nice to compare x.fallback_repositories == y.fallback_repositories [09:31] obviously you can write it out [09:31] This is ALL I can get for error logs http://bzr.pastebin.com/m6d8b2cbb [09:31] it's a bit longwinded in 2.4 [09:31] error.log is empty [09:32] IMHO (not that anyone asked me, I just happen to be paying attention) equality checks should only be on objects which are "values", i.e. are trivially possible to serialize and unserialize. Things like a "Point" with x, y numbers or "EmailAddress" with description/localpart/domain [09:32] I don't even know enough about bzr's internals to know what a "Repository" is but it sounds big and mutable and scary. [09:32] and operator overloading is evil :) [09:32] operator overloading is great! everybody should do it all the time. [09:33] loggerhead is dying after every single page load - AH! [09:33] It was evil back in the days where C++ wasn't even standardized, I think it's still evil, far too easy to abuse and leading to some of the most obscure bugs I ever seen :D [09:34] glyph: yes, a Repository is all of the above :) [09:37] spiv: Does this look decent or very wrong? http://bzr.pastebin.com/ma4b26c3 [09:37] yeah, generally i agree with glyph too [09:37] i was just tempted to sin [09:37] MT-: no idea, sorry, I haven't actually set up loggerhead myself [09:38] Can anybody tell me if this file looks right? I'm guessing it's probably why this is breaking? http://bzr.pastebin.com/ma4b26c3 [09:38] Ah, you need #confessional, not #bzr :P [09:42] this is about to make me freak out... [09:42] it should be a drop in thing... [09:44] MT-: seriously, you can't just say "it's breaking" [09:44] what's that meant to mean? [09:44] MT- read this sometime -> http://www.chiark.greenend.org.uk/~sgtatham/bugs.html [09:46] poolie: I pasted log files and explained what happens. [09:47] I run /etc/init.d/loggerhead, I load ope page, and it stops running. [09:47] no errors [09:47] one page? [09:47] hm, that's not so good [09:47] so the process exited? [09:48] odd... I just tried running it in the foreground and it keeps running fine [09:49] This keeps working perfect -> start-loggerhead -f -c /etc/loggerhead.conf [09:50] Without -f, it dies after the first page load [09:51] poolie: Does that sound odd enough?? [09:54] that's a bit strange [09:55] what is -f meant to do? [09:55] MT-: serve-branches is easier to use that start-loggerhead [09:55] (though not packaged as neatly yet) [09:55] poolie: keeps it int he foreground [09:56] mwhudson: would you please be willing to walk me through setting that up? I think my mind is gone [09:57] MT-: well, it's reasonably easy, you run ./serve-branches [09:57] it doesn't daemonize or anything though, so if you want to manage it with initscripts there will be some messing about to do [09:57] I got an error :) _ http://bzr.pastebin.com/me75ca2d [09:58] ehh [09:58] wow, it's already 0400 [09:58] MT-: do you have loggerhead installed system-wide? [09:58] MT-: and what version are you running? [09:58] (must be fairly new) [09:58] mwhudson: I did aptitude install loggerhead on 9.04 [09:59] !info loggerhead [09:59] loggerhead (source: loggerhead): Web viewer for Bazaar. In component universe, is optional. Version 1.10-1 (jaunty), package size 489 kB, installed size 3360 kB [09:59] MT-: can you run dpkg -l loggerhead? [10:00] ii loggerhead 1.10-1 Web viewer for Bazaar [10:00] try 'debsums loggerhead'? [10:00] you might need 'sudo apt-get install debsums' first [10:01] then i'm really confused, because loggerhead 1.10 doesn't have a main module [10:01] which is what the error is saying i guess, but also serve-branches from that version shouldn't be trying to import it [10:01] all OK [10:02] hang on [10:02] /usr/local/bin/serve-branches [10:02] run 'which serve-branches' ? [10:02] http://bzr.pastebin.com/m48a81032 [10:02] that's not from the package [10:03] /usr/local/bin/serve-branches [10:03] hrm... [10:03] MT-: did you or someone else run 'python setup.py install' perhaps? [10:03] 17:38 I tried following this guide - http://wiki.flexion.org/LoggerheadServer.html - [10:03] yup... [10:03] Then tried aptitude install loggerhead over top of it. It kinda worked but it [10:03] crashed some so I tried to finish the process. That wouldn't work so I went back [10:03] the the loggerhead package. I realized how screwed up I made it so I tried to [10:03] purge apache2 and loggerhead. I searched the system for files named loggerhead [10:04] and removed them. I tried to them reinstall apache [10:04] mwhudson: Does that exist in any package from the repos? [10:04] ah [10:05] root@carpo:/bzr# find / -name serve-branches [10:05] /usr/bin/serve-branches [10:05] /usr/local/bin/serve-branches [10:05] MT-: i guess you should remove the one in local/bin [10:06] :) [10:06] ok i might call it a night [10:07] spiv, i think the unstacking thing is now all working, except that I'm getting TooManyConcurrentRequests [10:07] for the first time in my experience i think this is actually because there really are too many concurrent requests :) [10:07] not that there's an earlier error and it's failing to unwind [10:08] http://bzr.pastebin.com/m6fe21766 <-- like so [10:08] mwhudson: is there any easy way to run that from a daemon? [10:08] anyhow i'll look tomorrow at how to tastefully make it create a new medium [10:08] if there's no better way [10:08] good night all [10:08] poolie: :) [10:09] MT-: nohup serve-branches ? [10:09] MT-: basically, no [10:09] MT-: we need to fix that [10:09] ok [10:09] mm [10:10] surely there's something in the normal initscripts framework to do this? [10:11] so for now it's just serve-branches /bzr & [10:11] mwhudson: is there any way to make it hide directories? [10:12] MT-: not with 1.10 [10:12] theres a lost+found showing up.. [10:12] MT-: with loggerhead trunk you can set http_serve = false in locations.conf [10:13] bzr is still a baby, isn't it? [10:13] loggerhead is, at least [10:13] err - that* [10:14] mwhudson: could you help me switch to trunk? [10:15] MT-: sure, bzr branch lp:loggerhead loggerhead-trunk [10:15] MT-: i wouldn't bother installing it system wide, just run it from the directory you branch into [10:16] ok [10:18] what does serve-branches run as? [10:18] I wanna kill that service first :P [10:19] i don't understand [10:19] I started serve-branches /bzr &, now idk how to kill it... [10:20] jml: you mentioned a fixed .gdbinit, but I forgot where it lives [10:22] poolie: g'night [10:25] THERE! [10:25] mwhudson: sorry, I had to remember how to use netstat - and the command name [10:26] MT-: surely, if you used '&' the pid has been displayed [10:26] vila: it wasn't [10:26] or is it just the job number ? [10:27] try 'fg' [10:28] heh... I shoulda thought of that too - but anyway, I found it with netstat [10:28] it was running as python [10:43] mwhudson: thanks, :D [10:43] mwhudson: one last question... Is there any easy way to make loggerhead private? [10:44] MT-: run it behind apache using proxypass (and a firewall to stop people getting to the port loggerhead is listening on) [10:44] heh... how do I run it behind apache? [10:45] i think there is actually some documentation on this in the README file [10:53] !info python-pastedeploy [10:53] python-pastedeploy (source: pastedeploy): Load, configure, and compose WSGI applications and servers. In component universe, is optional. Version 1.3.2-1 (jaunty), package size 29 kB, installed size 276 kB [11:02] mwhudson: I purged the package [11:03] oops [11:05] mwhudson: anyway... I created that in conf.d/loggerhead and it didn't work. I don't have a /branches/ so I just left that part out [11:05] replaced with /bzr/ * [11:06] right, it's only meant to be an example [11:07] the branches are located in /bzr [11:09] mwhudson: it the directoy I'm putting the proxy on the loggerhead directory or the branch directory? I assumed branches [11:10] branches === FryGuy_ is now known as FryGuy- [11:19] heh, trying to browse laconica's source is being very slow [11:19] (it's on gitorious) [11:19] makes me feel a bit better [11:20] Well, you'd expect it to be laconic, now wouldn't you :p [11:26] mwhudson: am I at lesat close here? I'm at least getting 403's now... [11:26] that does sound like it might be progress [11:27] it I go to :8080 now it still works fine but I get the hint that I just close off :8080 to the outside world [11:27] http://bzr.pastebin.com/m79213860 [11:28] or do I want that as a directory now... [11:30] I was hopeing to have this runnign before nappy time - it's 0530 already :P [11:30] I get up at 1200 at the latest [11:33] I guess it just doesn't like the documentroot [11:33] that's teh reason for the 403's [11:38] Closer! [11:38] Now I log in and get a 500 error [11:44] Ok... so when I try to login I get this error - (13)Permission denied: Could not open password file: /bazaar/lh-users [11:44] I know that file is readable... [11:45] mwhudson: you have any of those really smart ideas? [11:46] well it sounds like an apache problem i guess [11:47] it is now, I'm making progress :D [11:47] root@carpo:/var/log/apache2# ls -l /bazaar/lh-users [11:47] -rwxrwxr-- 1 www-data www-data 22 2009-07-09 05:12 /bazaar/lh-users [11:48] * MT- wants sleep and broblem solved [11:48] hi - would anybody be able to help me come up with a good repository structure for a project I'm working on..? [11:49] I have already started with a single branch and have the project on Launchpad, but now I want to have lots of different branches with different feature variations [11:51] I've read through http://doc.bazaar-vcs.org/latest/en/user-guide/index.html#advanced-shared-repository-layouts but I'm still not sure how to approach it [11:54] michaelforrest: Well, for one thing, realize you don't want to approach it as "choosing _A_ repository structure". [11:55] You want a repository structure for a given place (and time). Your repository structure in your workspace needn't (and probably doesn't or shouldn't) bear much resemblance to the structure in mine, and neither need be much related to the structure on the central server. [11:55] (of course, that holds double when the central server is LP, since you don't get to do anything with repo structure there ;) [11:55] fullermd: ok so..... [11:56] fullermd: say I want to branch locally but keep some of those branches on launchpad [11:56] Remember, repositories aren't semantic units, they're just storage spaces. Perhaps you mean more project structure than repo structure... [11:56] fullermd: argh. I like hierarchy in these things, so I'm looking at the --no-trees stuff, but I think I'll want a working tree for each branch on my local filesystem [11:57] fullermd: I want to be able to merge across branches so that .. arg. it seems complicated. [11:57] GAHH!!!! If I remove the proxy lines, it works like it should, if I leave them it, it all of a suddent can't read from the password file [11:57] fullermd: plus I'm used to git, where I'd only see one branch at a time [11:57] Well, don't mix up problems :) [11:57] fullermd: yes well - I'm trying to get it straight. hence asking for help. [11:58] First, forget about repos for the moment. You'll definitely want to make use of them, but they won't change anything about how you work, so at least for mental modelling purposes forget they exist. [11:59] (e.g., if you have two branches project/a and project/b, working with them would be _exactly_ the same if they shared a repo at project/, versus each having separate internal repos. So, what you do with repos doesn't affect how you work with stuff like it does in $OTHER_SYSTEM) [12:01] There's a large historical bias toward workflows where your branch and working tree are 'together'. You can still work with a lot of treeless branches and a single checkout you switch among them (or multiple checkouts you switch among them, for that matter). [12:01] It's just not as polished; requires a bit more manual setup. [12:01] I've had enough - g'night all [12:02] mwhudson: poolie: others: thanks for the help [12:03] michaelforrest: (does any of that help at all, or am I speaking Greek, or belaboring the painfully obvious? ;) [12:03] fullermd: if I use --no-trees will it behave the same way as git? [12:04] fullermd: I could live with that and then use export to output different versions [12:04] Not exactly. You can setup an analogous workflow, with one WT switch'd among branches. Various things won't be as polished, though. [12:04] but then I have to synchronise other aspects of the codebase at different points [12:05] Basically, the difference is that in git, the repository is the addressable unit, and branches are named within that. In bzr, the branches are themselves the addressable unit, and identified purely by their location (URL/path/etc). [12:05] ok [12:05] that is a useful distinction [12:05] Some commands (like 'switch', to change the branch your WT is on) do some internal magic so you can ACT like you're addressing sibling branches by name. But it turns it into paths underneath. [12:06] Other commands don't. 'branch', for instance, to create a new branch; I don't think it does, so to create a new branch you have to specify something like a path, not just a name. [12:06] (there are some tools like 'cbranch' in bzrtools that can help automate that too. I've never used them. Glancing at the docs, they will take a little config'ing to how your workspace is setup) [12:07] maybe I'd be able to visualise things easier if I installed some of these gui plugins [12:08] I tried to install one the other day but it didn't seem to work [12:08] I believe abentley works heavily in that fashion (one tree switch'd among branches). So he might have some better advice on setting up that workflow; he should be around in a couple hours. [12:08] is there a bzr install plugin command? [12:08] or something like that? [12:08] michaelforrest: no. I do: `cd ~/.bazaar/plugins; bzr get lp:bzr-pluginname pluginname` usually [12:09] No, nothing builtin. You can just stick plugins in ~/.bazaar/plugins/. But that doesn't necessarily help with things like plugins' dependancies, like py-gtk or py-qt or the like. [12:09] LarstiQ: that sounds easy enough [12:10] fullermd: I think the key is that I will be doing bzr merges as part of my routine build process [12:10] LarstiQ: eerk, better do: cd ~/.bazaar ; bzr branch lp:bzr-pluginname plugins/pluginname [12:11] Not sure how much structure a GUI will make visible, though. Like, things like 'branch layout' don't make the same sorta sense in bzr as they do in git. [12:11] so there will be a central branch driving global functionality forward but will occasionally be little 'leaves' with feature variations that need to stay in sync with main app head [12:12] vila: hmm, how much does that differ, and why not go `bzr branch lp:bzr-pluginname ~/.bazaar/plugins/pluginname` in one go? [12:12] even better ! [12:13] * vila searching the bug # [12:14] small step from 'bzr branch lp:bzr-pluginname ~/.bazaar/plugins/pluginname' to a bash command bzr-plugin-install pluginname ;) [12:15] well, you're not wrong here :-) While the bzr- prefix is more a social thing than a technical one, I can't think about a case where it will fail... [12:16] there are plugins on BzrPlugins not on launchpad [12:16] qbzr :p [12:16] lol, yeah, right, I just 'bzr pull -v' for qbzr for too long :) [12:16] bzrtools too... [12:17] so yeah, plugin registry and dependency information, then we're good to go [12:17] Also, a pony. [12:24] Ha ! Finally, LarstiQ, I was refering to bug #304891 [12:24] Launchpad bug 304891 in bzr "bzr doesn't work in parent directories of python packages with certain names (dup-of: 72227)" [Undecided,New] https://launchpad.net/bugs/304891 [12:24] Launchpad bug 72227 in bzr "should avoid loading modules from working directory" [High,Confirmed] https://launchpad.net/bugs/72227 [12:43] james_w: ping [12:47] hi vila [13:23] vila: why is that not fixed? [13:23] other than apathy I don't see a reason [13:23] :-/ [13:23] Who wants to lose a bug with a nice palindromic number? [13:23] lack of time ? [13:23] and that too of course :) [13:24] even if, really, a small palindrom ... [14:00] aloha [14:01] bzr dropped to the debugger in the middle of reconciliation of a v2 repo with some old branches [14:02] very frustrating, but since i now have a debugger prompt in front of me, is there anything i can do to help figure out what the problem is? [14:04] intellectronica: is it a stray "pdb" in the code [14:04] ? [14:04] or are you running under BZR_PDB? [14:05] i don't know what BZR_PDB is (an environment variable?) so i'd say the former [14:07] yeah, environment variable that causes pdb to start if there is an unhandled exception [14:07] if you "list" does it point at pdb.set_trace() [14:07] ? [14:08] yeah [14:08] http://pastebin.ubuntu.com/213609/ [14:11] ah, it's the SIGQUIT handler [14:12] did you try and kill the process? [14:12] the paste suggests you typed ^\ :-) [14:12] i didn't, and from the debug listing it looks like bzr sent it, no? [14:13] ^\** SIGQUIT received, [14:13] signal.signal sets signal handlers, not sends signals [14:14] anyway, typing "c" should make it continue [14:14] oh well. who knows, maybe i somehow accidentally typed ^\ [14:14] thanks! [14:15] np [14:15] let us know if it happens again [15:03] Hey [15:03] «bzr hooks» crashes here, http://paste.ubuntu.com/213639/plain/ [15:30] jam, you are freakin' awesome! Thanks for trying Tarmac on Windows. [15:33] rockstar: I'm working on making it *work* there [15:33] if you give me a few more minutes :) [15:35] jam, that's awesome! [15:37] rockstar: I just got to the point of it popping up a Launchpad window [15:38] asking for me to authorize access [15:38] what should I do at this point? [15:38] For now, I suppose I could set it to read-only [15:38] So, you could allow it and continue. It'll save the token it gives you. [15:38] Readonly is good enough. There's only one thing that writes now, and that's only if you have a test failure. [15:39] well, at this point... it is crashing with: [15:39] File "build\bdist.win32\egg\httplib2\__init__.py", line 972, in request [15:39] AttributeError: 'unicode' object has no attribute 'get' [15:39] However, it is getting close [15:39] And that at least looks like it is failing in launchpadlib [15:39] and not tarmac [15:46] abentley: is reconcile atomic? what's the risk if i stop in the middle? [15:46] intellectronica: There's no risk, but it won't pick up where it left off. [15:47] abentley: cool, thanks. i'm not worried about that [15:51] rockstar: I'm pushing up a patch, and submitting a merge request [15:52] rockstar: It still doesn't work, but that seems to be a launchpadlib issue [15:52] and not a tarmac one (yet) [15:52] jam, hooray! Thanks a ton! [16:25] rockstar: any idea why launchpadlib seems to be using: build\bdist.win32\egg\httplib2\__init__.py ? [16:25] is it using a custom httplib library? [16:26] rather that the one in python's stdlib? [16:26] jam, it might. I know there was a bug about it recently. [16:26] jam, it's probably a question better aimed at leonardr [16:27] sure, I just don't know any launchpadlib devs, especially ones that are awake right now [16:27] I know jml and you :) [16:27] jam, :) [16:29] argh [16:29] it seems they are doing: [16:29] cache = tempfile.mkdtemp() [16:29] atexit.register(shutil.rmtree, cache) [16:30] and then "cache" is the path to a cache directory [16:30] which is just a string [16:30] oh, I guess they try to do: [16:30] cache = MultipleRepresentationCache(cache) [16:30] I wonder if "cache" is a Unicode object on Win32 [16:31] yep [16:31] ugh [16:32] rockstar: so I got it to stop crashing with an exception [16:33] what should I expect its output to be? [16:33] ooop, new exception [16:33] it seems to assume "/tmp/bzr" is available [16:33] bad tarmac [16:33] no cookie [16:33] jam, there's a new patch for /tmp/bzr, but I haven't landed that yet. [16:34] rockstar: Shouldn't it just be part of the Config class? [16:35] jam, it's not right now. [16:35] * rockstar looks sheepishly [16:35] rockstar: .... *I'm* trying to get things to work on win32, and I'm trying to get info from you as to what I can do to make that happen [16:35] If you feel that I'm correct that "$TMP" should be in Config [16:35] I'll put it there [16:35] Ah, okay. Yea, that makes sense to be in Config. [16:41] rockstar: what do you think about making it "tempfile.mkdtemp" ? [16:41] Do you prefer not to because it would leave trash around? [16:41] (as in, you always want to leave 1 directory around, but not 10?) [16:41] jam, that's fine with me. Trash in the temp dir is pretty standard. [16:41] or do you even want to leave 1 copy [16:42] For example, Launchpadlib does "temp = tempfile.mkdtemp() [16:42] atexit.register(shutil.rmtree, temp) [16:42] jam, I think I'm already doing something similar, so that would be okay. [16:42] rockstar: it *is* likely to leave trash in temp, but downloading 100MB projects and leaving them around is a bit ugly [16:43] rockstar: you seem to do "shutil.rmtree()" if it exists when you go to create it [16:43] but not otherwise [16:43] however, I'm still wondering if this is the best solution [16:43] considering that we still need to download a lot of data to get "create_checkout" to work [16:43] not to mention, you aren't doing "light=True" [16:43] so it downloads the whole branch [16:43] fresh [16:43] every time [16:43] jam, light=True would be hard on a patch that's about to come in that needs the parent graph. [16:44] Downloading it every time is actually a feature. I want it to be fresh. [16:44] rockstar: it *doesn't* scale well to projects like MySQL where you have 600MB to download... [16:44] (or the old Launchpad which had... 1+GB) [16:45] jam, yeah, that's a good point. [16:45] Heck, bzr in 1.9 format now has >100MB [16:45] Hm, I'll file a bug on that. We're Tarmac mini sprinting tomorrow. [16:46] rockstar: ok. I'll let you think about that. I'll just try to get something working, and I'll submit it [16:46] jam, thanks! [16:47] rockstar: there seems to be "tempfile.gettempdir()" which should probably give /tmp on Linux and $TEMP on windows [16:47] so I'll go ahead and just to the simple change to that [16:48] rockstar: how do you run your test suite? [16:48] jam, yeah, I figured there'd be some weirdness in small things like that. I tried to use os.path.join where I could, but I'm not surprised that I missed some places. [16:50] your .cleanup() is a bit strange, too. Given that it ends up checking out the tree a second time [16:54] jam, really? I hadn't noticed that. [16:54] jam, Could you file a bug with the details? [16:54] * rockstar facepalms [17:04] is there any way to find out why bzr thinks this merge is a criss-cross merge? [17:04] it shouldn't be afaik [17:16] rockstar: so it seems to work, except I believe it is paramiko which is hanging indefinitely when the tarmac script exits [17:17] bzr doesn't notice because we explicitly use [17:18] os._exit() when we are done [17:18] (i think) [17:18] jam, you don't have a specific config do you? I noticed it hangs trying to comment with the test failures. [17:18] rockstar: So it works to the point of "no candidates to land" [17:18] and then that "return" triggers [17:18] and it exits the script, and just hangs [17:18] jam, ah, so it's not the issue I know about. [17:18] then again, I just removed the os._exit for bzr, and we still work just fine [17:18] so I need to probe deeper [17:19] probably an atexit() function is being naughty [17:19] jam, that's also a possibility. [17:19] I swear I've seen in with paramiko, though [17:20] because if in the interpreter I run paramiko, I'll get it to hang sometimes [17:20] hmm... lets see [17:22] rockstar: the crummy thing is that not even ^C works at that point [17:22] jam, ouch. [17:22] Why would paramiko even get imported? [17:23] rockstar: when you download the development target [17:23] see bug #397486 [17:23] Launchpad bug 397486 in tarmac "Tarmac does a fresh download of the target *before* checking if anything is ready to land" [Undecided,New] https://launchpad.net/bugs/397486 [17:24] ahh, I have a workaround [17:24] it seems that if you call "sys.exitfunc()" before you actually exit your script [17:24] things are happy [17:24] tarmac? is that an archive tool for OSX [17:24] the issue is probably that GC is happening in a weird order [17:24] dash: Think airports [17:24] it is a tool for "landing" code [17:24] (similar to PQM) [17:25] but more integrated with Launchpad [17:25] dash, Tarmac is the new hotness. [17:25] sabdfl said so. === kiko is now known as kiko-fud [17:34] rockstar: so... a few patches up for your review. And with those *and* the launchpadlib ones, I at least get "No branches for landing" [17:35] jam, we're doing the launchpadlib ones right now actually. === ddaa1 is now known as ddaa [18:47] yo! is there a way to ignore executables in my code repository other than marking them with .exe (or smth) extension? [18:50] jam: thanks for the review! how do i get authorization to submit to bzr's pqm? [19:47] Hi all [20:07] sidnei: we'll generally ask for a second review, and then the reviewer will submit it [20:08] jam: cool. i didn't know that. should it be explained in http://bazaar-vcs.org/BzrDevelopment ? [20:08] oh i guess it's in HACKING [20:12] uhm, nada. it only says 'someone with PQM access' [20:42] vila: ping [20:42] malept: pong [20:43] vila: I don't think credits.pickle is in bzr-gtk-0.96.1.tar.gz [20:43] malept: :-( === thekorn_ is now known as thekorn [20:45] malept: you think right :-( The release roadmap is *really* wrong [20:48] jelmer: I did my best from your pointer but I'm afraid you'll have to give more precise info... How come credits.pickle is in .bzrignore ? Talk about a trap... [20:49] vila: build_credits should be in MANIFEST.in? [20:49] er [20:49] credits.pickle. [20:49] two different thoughts there [20:52] http://bazaar-vcs.org/bzr-gtk/releasing says: 'Build tarball (bzr export bzr-gtk-0.XX.Y.tar.gz) ', but since credits.pickle is ignored, of course it's not exported [20:52] ah... [20:52] build_credits *did* build it [20:52] vila: perhaps you should add credits.pickle to MANIFEST.in and then use `python setup.py sdist` to create the tarball? [20:53] although I'd do a diff between the 0.96.1 tarball and the sdist tarball to see what got lost, if anything [20:54] a filelist diff* [20:54] malept: I think deleting credits.pickel from .bzrignore and redoing bzr export is less risky [20:54] vila: is that how bzr export works? [20:55] vila: doesn't credits.pickle need to be versioned, too? [20:56] malept: it exports all versioned files, I don't know the previous tarballs were done, yes of course, I need to bzr add it. [20:59] vila: ok, just checking [20:59] malept: I'm glad you did :) [21:00] malept: this release is long overdue, at least let's make it right, who knows how long it will last :-D [21:00] vila: indeed :) [21:06] malept: see my pm ? [21:07] vila: yes, sorry about that [21:15] Hi vila. Can bug you for some help with tests? [21:16] garyvdm: sure, I'm trying to release bzr-gtk *properly* so I may suffer some interruptions :) [21:17] err, I mean, let's talk about your tests, but I may be lagging a bit at some points [21:17] vila: I found a class in the PyQt source that can be used to test a custom qt model. [21:18] It attaches it's self to some signals (events), and runs a test when that signal is fired. [21:19] nice, and is there some standard way to store the test result ? [21:19] If that fails though, it stops all the tests, rather than reporting that the test failed, and continuning. [21:20] failing or erroring ? [21:20] Whats the differenc? [21:20] diference [21:21] ERROR or FAIL in selftest -v output [21:22] FAIL is when a specific asertXXX fails and throw a specific exception while ERROR is when a different exception is thrown and not caught [21:23] So a typo in test for example will error out [21:24] Neither (and it should be an error). There is an exception raised in the test that is fired from a signal. The stack of this exception is written to the console by the std python exception handler, and all other tests are not run. [21:25] hmm, strange, are there threads involved ? [21:25] can you pastebin the traceback ? [21:25] No threads - pastebin on the way. [21:27] http://paste.ubuntu.com/213912/ [21:27] vila ^^^ [21:28] you're not using --parallel ? [21:28] No [21:28] Try running only the failing test [21:28] this traceback is too short, it makes no sense [21:29] So maybe I need to overwrite sys.excepthook, capture the exception. And in the test, check if there have been any exception caught by the excepthook, and raise those. [21:31] http://paste.ubuntu.com/213917/ [21:31] vila ^^^^ running only 1 test [21:31] bbl [21:31] does Bazaar have that binary bug search functionality like git bisect? [21:31] garyvdm: no idea, but now you can set a breakpoint and do bt [21:35] vila: Thanks - I think I need to do what I suggested above. I just wanted to check that there is not a built in way to do that. [21:35] Oh, I didn't see that, [21:36] try to understand why the exception is not caught by the test framework first, there is something weird here, working around it may not be the best long term solution [21:43] vila: Exceptions that are raised by code called from a signal don't get caught by the bzr error handler. So in qbzr, we overwrite sys.excepthook to be able add information to the error report. [21:44] I think the same thing happens with gtk. [21:45] haa [21:45] no matches for grep excepthook in bzr-gtk though... [21:46] I remember that in perl-gtk there was various ways to catch the errors though (including ignoring them)... [21:48] does Bazaar have that binary bug search functionality like git bisect? [21:48] Imperion: yes, bisect plugin [21:48] Imperion: there's a bisect plugin [21:48] thanks [21:49] though likely not as polished [21:53] vila: I did a test with gtk, and it behaves the same. If I add "raise Exception("test")" to line 83 of branchview/graphcell.py, The stack of the error it written to the console hundreds of times, but it's not written by the bzr exception handler., e.g.: this is bit of that is written to the console: http://paste.ubuntu.com/213931/ [21:53] garyvdm: If everything else fails, you can still use a dedicated mainloop [21:54] yeah, I'm reading stuff on this subject to refresh my memory, [21:55] the idea is that once you called mainloop.run(), all exceptions happening inside that call are caught, displayed and ignored ;0 [21:55] And if you want to have a global handler for them, you overwrite sys.excepthook [21:56] There may be a way to do the same with qt or as I said, for tests, use a specific mainloop that will fire one event at a time, you may get your hands on the exception that way [21:56] but adding a global handler will not allow you to re-reraise [21:58] But I can get the exc_info (type, value, traceback). [21:58] and then ? call quit and re-raise but from where ? [21:59] Thats what I'm going to figure out :-) [22:02] :) === ddaa1 is now known as ddaa [23:13] moinmoin