/srv/irclogs.ubuntu.com/2011/04/25/#bzr.txt

mgzokay, I'm seeing 101 failures.00:02
mgzwill try the _make_stream_binary fix.00:02
lifelessyes, thats about right00:04
lifelessI have00:04
lifeless9500:04
lifelessos.fdopen needs fixing too00:09
lifelessI wonder if the same thing can be tweaked00:09
lifelessmgz: pushing up my current00:09
mgzwell, fix gets me 11 errors down, and there are some more which, somehow are getting a *bool* for the stream00:09
* mgz pulls00:10
mgz    def __init__(self, stream, passthrough=None, forward=False):00:13
mgz...00:13
mgz        self._forward = forward00:13
mgz        _make_stream_binary(forward)00:13
mgzthat's just an error right?00:13
mgzin ProtocolTestCase.00:14
mgzlineReceived is currently very unhappy because it doesn't know if it's dealing with bytes or strings.00:15
lifelessalways bytes00:15
mgzyou fixed it for bytes, and now all the tests that pass string literals are making it cry.00:15
lifelessyes00:15
mgzoh, wow, redirecting stdout just did something interesting00:16
mgzhttp://paste.ubuntu.com/598473/00:17
mgzthe current set of different types of failure is reassuringly small though.00:18
lifelessiteritems -> items done and pushing00:19
lifelessI'm running the tests thusly00:20
lifeless:!PYTHONPATH=python:~/source/unittest/testtools/working python3.1 ./runtests.py 2>&1 | less00:20
mgzI did `%PY3K% -m testtools.run subunit.tests.test_suite > B:\subtests.log`00:23
mgzpossibly some weird testtools interaction, I'll use your way.00:24
mgzhm, streams certainly getting crossed somewhere if I redirect.00:27
kingoscan anyone help me? I am trying to run bzr.dev from source, but keep getting the following warnings:00:30
kingos_dirstate_helpers_pyx.so: undefined symbol: __stack_chk_guard00:30
lifelesskingos: what os ?00:31
kingoslifeless: re 500:31
lifelessre?00:32
mgzanyway, getting distracted, fix seems to work, I'll push it up for your consideration00:32
kingosredhat00:32
kingos enterprise00:32
lifelessah00:32
lifelesshmm00:32
lifelesskingos: what python version ?00:32
mgzand which source? a tarball, or a bzr checkout where you're compiling with what pyrex version?00:32
kingoslifeless: 2.400:32
kingosbzr checkout00:33
kingosno pyrex00:33
kingosdo I need to install pyrex?00:33
lifelesspossibly yeah00:33
lifelessor do a make clean00:33
lifelessand run without the C extensions00:33
kingosurgh, something is really broken. running bzr selftest still fails with hundreds of errors00:36
lifelessthe selftest looks for the C extensions00:37
lifelesscheck the names of the failures00:37
lifelessor pastebin them and I'll eyeball for you00:37
mgzlifeless: lp:~gz/subunit/py3k00:41
mgzkingos: if you're doing setup.py in a checkout, you must have pyrex or cython installed or you wouldn't get any of hte pyx files like _dirstate_helpers_pyx at all00:42
kingosmgz: ok00:44
mgzdelete the build dir, then tee the setup.py log to file and post it.00:44
kingosmgz: ok, maybe I have screwed stuff up .. Pyrex is installed under python2.4, but not python2.6, and I tried running setup.py with 2.6 after already running 2.4. Selftest is passing again now00:45
mgzyeah, that sounds possible. going again from scratch is the right option in those situations.00:46
kingosmgz: although I am still getting __stack_chk_guard undefined00:46
kingosin a few .so files00:46
mgzif you want to try on 2.6 you can use `python2.6 ./setup.py build_ext --allow-python-fallback install` to not require pyrex00:47
kingosok00:47
kingosI am still getting failures on bzr selftest stats, a plugin I am trying to use00:48
mgzyou may need to report bugs, not all plugins are covered by the bazaar testing infrastructure yet00:51
mgzand there have been some changes to command registration etc recently00:51
kingosmgz: ok, thanks for the help00:52
mgzthe warning smells like a problem with the code pyrex is generating, or the flags it's getting compiled with, which is presumably a bug the red hat end.00:52
mgzas in, would need them to update that package.00:53
mgzkingos: to try a still recent, but slightly earlier version of bzr, you could do `bzr update -r tag:bzr-2.4b1` and rebuild to see if the plugin failures are regressions00:56
quotemstrWhat exactly does "nosmart" do?01:06
spivquotemstr: basically reduces to fetching files01:16
quotemstrAh. The Emacs bzr instructions recommend its use, but I don't recall seeing it mentioned in TFM.01:16
spivquotemstr: so it still uses the smart protocol, but no requests in it smart than say SFTP, it's all "get this file, put this file" rather than "open branch, insert revisions"01:16
spivThat seems like a strange thing to recommend.  Perhaps savannah doesn't have much memory?01:17
mgzthere was a thread about the initial checkout speed on the bazaar mailing list, wasn't there spiv?01:19
quotemstrspiv?01:19
quotemstrI'm just talking about the instructions in the wiki: http://www.emacswiki.org/emacs/BzrForEmacsDevs01:20
mgzhttps://lists.ubuntu.com/archives/bazaar/2011q1/071574.html01:21
mgzparticularly https://lists.ubuntu.com/archives/bazaar/2011q1/071683.html01:22
quotemstrThanks.01:27
lifeless50 errors01:30
lifelessquotemstr: mgz: that should be revisited with jam's recent perf work01:48
lifelessboth server and client will need updating01:48
quotemstrlifeless: I'll look forward to the change when it's available on bzr and launchpad.01:49
quotemstrlifeless: How far is bzr from git performance parity?01:49
lifelessquotemstr: depends on your ΓΈ01:50
lifelessfor most things its not meaningfully different01:50
lifelessmgz: we're getting there - FAILED (failures=17, errors=16)01:51
mgzlifeless, have you merged my branch yet?01:52
lifelessyes01:52
lifelesspushed rev 149 which merges yours01:53
lifelessquotemstr: there were some standouts which hav ebeen fixed in trunk in the last fortnight01:54
mgzcool, that's down to 28 for me.01:54
lifelessquotemstr: all but one of those are accessible just by running a trunk build; the final one requires the server to change (because the server is sending data andthe fix is in the sending logic)01:55
quotemstrCool.01:55
mgza few from bug 663600, some from basestring not existing, a few remaining bytes/unicode lineReceived ones, two os.fork ones, some bytes ones in _addOutcome, and some serialisation ones01:58
ubot5Launchpad bug 663600 in testtools "Use Python 3 style qualified exception names in tracebacks" [Medium,Triaged] https://launchpad.net/bugs/66360001:58
mgzoh, and test_join_dir not getting the path it wants.01:59
lifelessmgz: the exception name is fixed02:10
lifelessbasestring stuff is in the iso8601 module02:10
lifelessmgz: the os.fork & fdopen ones will be less mechanical, if you want to look at it02:11
=== Ursinha is now known as Ursinha-afk
lifelessgrrrr02:55
lifelessbytes('fo %d %d', 'utf8') % (1, 2) -> boom02:55
kingosIf a plugin command does  "raise errors.BzrCommandError", how come the return code of bzr is not set to something non-zero?02:59
kingoshello?03:08
lifelessmgz: thanks for your help06:30
lifelessjml: around ?06:31
kingoshi, if I run a test by run_bzr, how do I check the error code? the typical usage seems to be:07:38
jelmerkingos: usually you specify the expected error code07:38
kingosout, err = self.run_bzr(...), where err is sys.err07:38
jelmere.g. "out, err = self.run_bzr(["command", "arg1"], retcode=3)07:39
kingosjelmer: thanks, is there an example of that somewhere?07:39
kingosah... I was grepping for errors.EXIT_ERROR07:39
jelmerI think we usually just use numbers in the testsuite07:39
kingosah, that worked! thanks07:40
kingosjelmer: another question while I have you, if I pass an option to takes_options as part of a command, ie. option.Option('blah', type=str'), the string seems to be padded with a space either side. Is this expected?07:42
jelmerkingos: which string is padded?07:46
jelmerand where is it padded?07:47
kingosjelmer: if I add that option, then just do print "blah=", blah07:48
kingosthen run bzr blah=abc07:48
jelmerkingos: I think that's more just the print command07:49
kingosI get 'blah= abc '07:49
jelmer>>> print "bla=", "foo"07:49
jelmerbla= foo07:49
kingosjelmer: ah ok07:49
kingospython amateur07:49
kingos:)07:49
kingoshi, another question, if a command is outputting something with trace.note, how do I setup the tests correctly so I still can do self.assertEquals(err, '')07:58
jelmertest against out (stdout) rather than err07:59
jelmerin other words, the first element in the tuple returned by run_bzr07:59
kingosoh, so tests shouldn't check the contents of error?07:59
jelmerthey should check the contents of both08:00
jelmersome things (like errors) will go to stderr, some things (e.g. file content from "bzr cat") will go to stdout08:00
kingossure. I thought trace.note output was optional though, it could be turned on or off depending on some settings? in which case, I should be testing with it off right?08:01
jelmerI think it's on by default, at least that's what the testsuite uses08:03
kingosah ok thanks08:04
jelmerSomething like --quiet might turn it off, but I don't think I've ever used bzr without it08:04
jelmertime for some sun :) Back later08:11
rockyhas anyone noticed that on natty (ubuntu), after installing bzr and bzr-fastimport apt packages, "bzr plugins" does not list fastimport ?15:47
rockyam i supposed to do something extra to activate that plugin?15:47
maxbrocky: Which packages? Ubuntu primary archive only, or ~bzr PPA ?15:47
rockymaxb: ubuntu natty standard packages (no extra ppa's)15:48
maxbhuh, you're right. how odd15:49
rockymaxb: is the bzr ppa stable enough? i'd just use that if it's going to keep more recent bzr and bzr plugin releases15:49
maxbThere are multiple ~bzr PPAs15:50
maxbbzr/ppa for the really stable stuff15:50
maxbbzr/proposed for the probably stable stuff, but we're checking and occasionally building interdependent sets of packages15:50
maxbbzr/beta for the not-exactly-stable but still mostly safe stuff15:51
maxbbzr/daily for the really bleeding edge stuff15:51
maxb:-)15:51
rockysounds like i'll go with bzr/beta ;)15:56
maxbBear in mind that some plugins in there can be expected to be occasionally broken15:56
rockyright15:56
maxblike bzr-svn at the moment, I think15:57
maxbBecause it's still catching up with bzr core15:57
maxbHmm16:00
maxbSo, I think bzr-fastimport is broken in natty because it's the only packaged bzr plugin to be using python-support instead of python-central16:00
maxbAnd a nasty little incompatibility between bzrlib's plugin loading mechanism and different python package management methodology methods is breaking things16:01
* maxb comments on bug 75239616:05
ubot5Launchpad bug 752396 in bzr-fastimport (Ubuntu) "bzr-fastimport is not listed in "bzr plugins" list" [Undecided,Confirmed] https://launchpad.net/bugs/75239616:05
=== deryck is now known as deryck[lunch]
=== Ursinha-afk is now known as Ursinha
=== CardinalFang__ is now known as CardinalFang
=== beuno is now known as beuno-lunch
=== beuno-lunch is now known as beuno
=== Ursinha is now known as Ursinha-lunch
=== Ursinha-lunch is now known as Ursinha

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