/srv/irclogs.ubuntu.com/2011/10/12/#bzr.txt

=== medberry is now known as med_out
=== AuroraBorealis is now known as aurora\sc
=== aurora\sc is now known as AuroraBorealis
=== poolie changed the topic of #bzr to: Bazaar version control <http://bazaar.canonical.com> | try https://answers.launchpad.net/bzr for more help | http://irclogs.ubuntu.com/ | Patch pilot: poolie
pooliehi vila?06:33
jammorning all06:50
pooliehi jam06:56
mgzmorning!07:00
pooliehi gz07:02
AuroraBorealishiya07:05
pooliehi AuroraBorealis07:06
mgzAuroraBorealis: did you see the various bugs I filed on Sunday for the meliae issues you had?07:06
AuroraBorealisi saw the email, were the links in that?07:07
mgzI think I mentioned the bug numbers, was going to subscribe you to all of them but wasn't sure you'd want the bugspam07:09
AuroraBorealisnah its fine07:09
AuroraBorealissubscribe away~07:09
mgzI will do so :)07:10
AuroraBorealisand looking at that link you sent me for the win7 sdk07:11
AuroraBorealisit seems to be for net framework 3.5 instead of 407:11
AuroraBorealiscause i reinstalled the other one i used and it did not give me the 64 bit libs07:11
mgzhm, maybe it has to be the 3.5 one?07:14
mgzyou can probably just install that as well.07:14
mgzI unticked the samples and doc options and it was only 400MB or so07:14
AuroraBorealisyeah07:14
AuroraBorealisi'm installing it07:14
AuroraBorealisif this works, then chalk up another for "why i hate developing anything in windows"07:14
mgzyeah, that was a very annoying diversion07:15
mgzwhen you get that working, try `import random; from meliae.scanner import dump_all_referenced; with file("_random_module.json", "w") as f: dump_all_referenced(f, random._random)`07:23
mgzas that was one of the objects that was a dead end in the dump you sent me and prevented it being loaded07:24
AuroraBorealisok07:24
AuroraBorealiswill work on it07:24
AuroraBorealisfffuuuasdfjklasdfjklasdfjklsdfjklsdfjkl;sdfajk07:44
AuroraBorealisInstallation of the "Application Verifier" product has reported the following error: Fatal error during installation.07:44
mgzheh. is that an optional component you can just not install?07:45
AuroraBorealislets see if it is07:46
jelmermgz: we'll need to tweak your fix for unicode changelogs in bzr-builddeb08:17
jelmermgz: python-debian's changelog is unicode in newer versions but bytestrings in older versions, it seems08:18
pooliehi jelmer08:21
jelmerhi poolie08:21
mgzjelmer: ha. so, we do need ugly fallback code after all.08:45
mgzI take it previously no encoding was specified in the rules at all, so there's no actual way of decoding them?08:46
jelmermgz: yep08:48
jelmermgz: though the convention is to have them in utf808:48
mgzokay, so potentially we can just do .decode('utf-8', 'replace') so we don't error out.08:49
mgzor decode, catch the error, give a warning, and decode ascii-replace08:50
jelmermgz: I don't think we should do any replacement, we should just keep the existing text as is08:51
jelmermgz: and encode the commit message before appending it instead08:51
mgzwell, replace is an encoding. given random bytes, we need to do some kind of munging to get them in a bzr commit message.08:52
mgzwithout a specified encoding it's a choice between: asking the user, guessing, or munging08:53
mgzand as the rules now state that the file must be utf-8, getting people to fix their changelogs seems reasonable08:55
mgzjelmer: is there a bug report, or have you just run across a changelog file that failed?09:00
jelmermgz: http://people.canonical.com/~jelmer/recipe-status/bzr.html09:00
mgzthanks!09:01
mgzhm, that ftb looks like a C locale thing, the test needs a requires UnicodeFilenameFeature09:02
mgz...though there are a bunch of other issues as well on lucid09:04
jelmermgz: succeeds on oneiric though09:12
jelmermgz: (otp with poolie)09:13
mgzyup, I'll bug you after the call09:18
mgz(I get a different error with LANG=C so I'm guessing the difference is the debian changelog package version, the older one is borked)09:20
=== beuno is now known as beuno-lunch
quicksilverOn the rare occasions I have to rollback a merge, I find myself rewriting history because otherwise I won't be able to merge it again later when it's fixed13:42
quicksilveris that right?13:42
jamlifeless: are you around? I'm trying to use testscenarios with nosetests, and I'm getting a weird assertion error from nose13:45
jammgz: ^^ maybe you've played with testscenarios while you're playing with the other stuff?13:45
mgzI have... but not nose.13:47
mgzwhat's the traceback?13:47
jammgz: http://paste.ubuntu.com/706709/13:47
jamwell, full traceback, just a sec13:47
jamhttp://paste.ubuntu.com/706711/13:48
jamIt looks like testscenarios is creating a new instance, and nose's ResultProxy is asserting that it has the same instance13:48
mgzyes.13:48
mgzthat's exactly what it looks like.13:48
mgzI don't see an easy way around that, you have to duplicate tests for scenarios13:50
jammgz: ResultProxy.assertMyTest has "The test I was called with must be my .test  or my .tests's .test, or my .test.test's .case"13:50
mgzif you can arrange for the multiplication to happen before nose gets a sniff of the tests, that might work13:50
jamSounds like you can add the '.test' attribute13:50
mgzthat may be okay as a hack-around, if none of your tests already have a 'test' attribute13:51
jamnope13:52
jamat least my initial poke at it didn't work13:52
mgzyou'll need to write a test loader then I guess, so nose only sees the suite after the scenarios have been handled13:52
jamyeah, looks like13:53
jammgz: do you know if nosetests supports the 'load_tests' api?13:54
jam(not bzr's, but python's )13:54
jamand does that work on py2.6... guess I'll have to keep trying13:54
=== beuno-lunch is now known as beuno
mgzit should, but that's a 2.7 change iirc13:55
jamhttp://docs.python.org/library/unittest.html#load-tests-protocol13:57
jammgz: It looks like it calls 'load_tests' but it is assuming it is a test suite13:57
jamand doesn't pass it any parameters13:57
jamit just treats it as yet-another-test13:57
mgzyeah, that's the 2.7 api change I think13:57
mgzunittest implemented something slightly different from all the existing load_test type things that were floating around already13:59
jammgz: ugh, the whole reason to use nosetests was so i didn't have to write my own test loader...14:05
jamwell, test runner + loader + everything else14:05
jammgz: it looks like "python -m testtools.run discover" will work as long as you have py 2.7 or the 'discover' package available.14:15
mgzyup, that sounds like a better bet14:25
mgztesttools can also work without discover with minimal boilerplate14:28
mgzbasically import your modules in a test_suite function in __init__.py and use an existing TestLoader14:29
jammgz: of course, now I have to figure out how I went from 119 tests to 144 tests...14:39
mgzmore tests, that's a good thing! :)14:39
mgz(because scenarios are working?)14:39
jammgz: I was using mixins before, and had 119 tests14:40
jamI'm switching to scenarios for the same number of permutations14:40
jamand "-v" for verbose doesn't actually do anything...14:40
jamIt might be scenarios doing it differently, because in the pre-scenario code 'py -m testtools.run discover' also gives 11914:41
jambut without -v, I don't know *what* extra tests are running14:41
jam:(14:41
jamjml: poke about "testtools.run"14:42
jamIs '-v' supposed to list the tests like unittest does?14:42
jmljam: don't know, sorry.14:42
jambecause: py -m testtools.run discover -v14:42
jamlooks identical to without -v14:42
mgzpretty sure testtools' TestResult doesn't have a verbosity concept14:44
mgzwould be nice if it did the same thing as bzrlib14:44
jammgz: the TestResult doesn't, the TestRunner does.14:45
jamI've found the issue:14:45
jamTestToolsTestRunner is a stand-in for unittest.runner.TextTestRunner14:45
jamand TestToolsTestRunner doesn't support verbosity14:45
jamof course, testtools code is actually broken because it accesses a "runner.TextTestRunner" variable, but never imports 'runner'...14:46
mgzthe runner only passes the verbosity param on to the result I believe14:49
mgzbut did you try --list instead?14:49
mgzwould tell you what tests you gained.14:49
jammgz: to make matters worse, it is also trying to pass other flags like 'buffer' and failfast14:52
jamwhich aren't supported by py2.6's unittest.TextTestRunner14:52
jamso this is the hackaround that works: $ py -c "import sys; from testtools import run; import unittest; prog = run.TestProgram(testRunner=unittest.TextTestRun14:52
jamner(verbosity=2), stdout=sys.stdout)" discover14:52
jammgz: '--list' takes an argument... ?14:53
jamwhich is extra weird14:54
jamas I don't see code actually requesting a value14:54
jamand I can pass anything for the value14:54
mgzjam: the discover version shouldn't..14:54
mgzthe non-discover version needs a suite name14:55
jammgz: http://paste.ubuntu.com/706758/14:55
jamyou tell that to my testtools14:55
mgzit sounds like you have the potential of many bugs to file14:55
jamor even: http://paste.ubuntu.com/706760/14:55
mgz...yup, I get the same with 2.714:56
jammgz: yeah, the issue is they have OptParse14:57
jamwhich defaults to taking an argument14:58
jamunless you set "action=store_true" sort of thing14:58
jamuhg14:58
jamugh14:58
jam--list doesn't do scenario multiplication14:58
jambecause that is done in 'run()'14:58
mgz>_<14:59
mgzit works in bzr selftest...15:00
jamI think that's 4 or 5 bugs15:02
jammgz: we don't use TestWithScenarios15:02
jamwe implemented it ourself.15:02
mgzclearly bzr did it better.15:03
=== zyga is now known as zyga-afk
hrwhi15:20
hrwcan someone help with 'bzr dailydeb'?15:21
=== med_out is now known as medberry
jelmerhrw, hi15:22
jelmerhrw, sure, what about it?15:22
hrwjelmer: is there a way to tell bzr to not try to update with lp? lp:gcc-linaro is huge repo so each attempt of 'bzr dailydeb recipe .' (where . == bzr copy of lp:gcc-linaro) takes ~1h of bzr work and then fail due to some bugs15:23
jelmerhrw: if you run it inside of a shared repository it shouldn't have to fetch from Launchpad again each time15:25
jelmerhrw, alternatively, you can specify /path/to/gcc-linaro rather than lp:gcc-linaro15:25
hrwjelmer: local repo was fetched wth 'bzr pull lp:gcc-linaro' and thats all15:26
hrwI am not a fan of bzr so my knowledge of when repo is 'shared repo' and when not == null15:26
jelmerhrw: try "touch .bzr/repository/shared-storage"15:28
hrwthe 'Finding revisions' part of bzr is fun - takes several minutes on 1 commit branch15:28
mgzjelmer: I've just proposed a bzr-builddeb change that should greenify my problem test from earlier15:29
jelmermgz, thanks, I'll have a look15:30
=== gcerquant_ is now known as gcerquant
mgzalso, is touching a magic file really the best way? o_O15:32
mgzI guess maybe using bzr reconfigure would be two commands15:32
mgzokay, I'm about to push the testcase cleanup branch. watch out for falling chickens.15:35
hrwMerging '/home/hrw/devel/canonical/2011-oneiric/ci/code-bzr/gcc-linaro/' in to './gcc-linaro-native-{{debupstream-base}}-{revno}-{revno:packaging}'.                  212kB     1kB/s \ Finding revisions15:35
hrwwhere it is trying to find revisions? in 'ci/code-bzr/gcc-linaro' bzr branch?15:36
hrwor in a branch to which it merges?15:36
=== deryck is now known as deryck[lunch]
jelmer_mgz: still there15:59
jelmer_mgz: ?15:59
jelmer_mgz: With your patch, that test fails for me on oneiric15:59
jelmer_mgz: I wonder if we should just open('debian/changelog', 'w').write("""...""") to make things simpler16:00
kirklanddoes this error message look familiar?16:00
kirklandbzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)16:00
kirklandfor full python traceback, see https://launchpadlibrarian.net/82565565/cloud-init-output.log16:01
jelmer_kirkland: you're interrupting a discussion about that very issue16:01
jelmer_:)16:01
kirklandjelmer_: :-)  is this affecting bzr in 11.10 in general?16:01
kirklandjelmer_: if so, is there a bug i can link to?16:01
jelmer_kirkland: it's an issue with bzr-builddeb automatically determining a commit message from a debian changelog message which contains non-ascii characters16:01
kirklandDaviey: ^16:02
kirklandjelmer_: is there a bug #?16:02
jelmer_kirkland: lp:bzr-builddeb should have a fix, but that fix regressed on pre-oneiric16:02
jelmer_kirkland: bug 85366416:02
ubot5Launchpad bug 853664 in bzr-builddeb "tries to decode debian/changelog as ascii, and fails when it's not" [Medium,Fix released] https://launchpad.net/bugs/85366416:02
kirklandjelmer_: okay, so i think this is manifesting itself in a strange way for us...16:03
kirklandjelmer_: are you familiar with etckeeper?16:03
kirklandjelmer_: we're trying to install/use etckeeper on Ubuntu Orchestra installed servers, to maintain /etc in bzr automatically16:03
kirklandjelmer: subsequent package installation is failing, as etckeeper is failing to commit some changes16:04
kirklandjelmer_: digging through it, it looks to me like it's this bug16:04
jelmer_oh, that'd be odd16:04
kirklandjelmer_: can you have a look at that log and confirm?16:04
kirklandjelmer_: see https://launchpadlibrarian.net/82565565/cloud-init-output.log16:04
jelmer_kirkland: ok, that's definitely a different issue16:05
mgzkirkland: sec, I'll link you to the right bug for that one16:05
jelmer_kirkland: It seems like the file system encoding is not set to UTF-8, is that right?16:05
mgzjelmer_: how annoying, there's some incomptabile change in debian.changelog then... but my version works with *both*16:06
jelmer_mgz: there indeed is an incompatible change in debian.changelog..16:06
mgzjelmer_: what's the traceback on oneiric?16:06
kirklandjelmer_: I'm not sure -- how would i tell that?16:06
jelmer_mgz: I've pasted it to the MP16:07
jelmer_kirkland: is it supposed to be a standard Ubuntu system? If so, then the fsenc should be UTF8 (from the logs, it looks like it's not)16:07
jelmer_kirkland: we use Python's sys.getfilesystemencoding() to determine the encoding, let me have a look at what Python uses16:08
mgzkirkland: you want bug 71554716:08
ubot5Launchpad bug 715547 in Bazaar ""bzr add" crashed: UnicodeDecodeError in smart_add with ascii codec" [Medium,Confirmed] https://launchpad.net/bugs/71554716:08
kirklandmgz: ah, thanks.  that bug is a bit older16:08
mgzparticularly comment 7 there16:08
jelmer_mgz: in this specific case the file system encoding isn't UTF816:09
mgzyour problem is you're running without a locale that has a particular encoding set, but have filenames that aren't just ascii16:09
mgzthere's an etckeeper specific bug along the same lines.16:11
kirklandmgz: how do i check my fsenc?16:16
jammgz: I think stuff like testtools and testscenarios was inspired by "look at all this neat stuff we have in 'bzr selftest', lets try to make it generic so other people can use it".16:19
jambut since it isn't one unified code base, and it is trying to interoperate with unittest/nosetests/py.test, etc16:20
jamand then there are the licensing issues16:20
jamlike bzrlib is gpl, but these should be BSD-ish16:20
jametc.16:20
jamI know I tried to pull some of the progress bar stuff into (I think subunit), but robert was worried about the licensing clashes.16:20
mgzjam: that's a good point.16:20
mgzkirkland: what is calling the bzr commands that gave the output you pasted?16:21
mgzkirkland: basically that needs to run in a defined locale, so with LANG/LC_ALL set to something appropriate16:22
jelmer_mgz: 'python -c 'import sys; sys.getfilesystemencoding()'16:29
kirklandmgz: do you think it would be sufficient in etckeeper itself to [ -n "$LANG" ] || LANG=en_US.UTF-816:30
mgzwell, that'd work16:31
jelmer_kirkland: aren't ubuntu systems supposed to be UTF8 by default?16:33
jelmer_kirkland: as a workaround, setting LANG=en_US.UTF-8 should work but I think the core issue is elsewhere16:34
kirklandjelmer: interactive shells -- yes16:37
kirklandjelmer_: I suspect the problem is that these are non-interactive shells16:38
kirklandjelmer_: one bug report is about cron, which runs with a *very* minimal env16:38
kirklandjelmer_: the other one is juju, same thing16:38
mgzI don't really see why there shouldn't be an encoding set even in those sorts of situations16:39
jelmer_kirkland: even if it's non-interactive, Python should not return anything but UTF8 for the filesystem encoding16:39
mgzLANG and LC_MESSAGES and such like I guess I can see if we pretend unix is still a multi-user system with accounts using different languages16:39
jelmer_I can understand if it's something non-UTF8 for the terminal encoding16:39
mgzjelmer_: it goes off the unix locale, which is all it has to work with16:41
jelmer_mgz: but if the filesystem is always utf8 on Ubuntu, it should use that fact and always return utf-816:46
mgzposix doesn't give python a way of knowing that's what python wants.16:47
mgz*ubuntu16:48
mgzright, I need to go, I think I should be third time lucky on the builddeb mp16:48
jelmer_mgz: why not? the choice has been made for Ubuntu that the fs is UTF8 AFAIK16:49
mgzsure, but what should python do to tell that? I guess you could argue for a build-time patch.16:50
jelmer_mgz: that's what I had in mind16:50
jelmer_Python already hardcodes the fs encoding to mbcs for windows and utf8 for apple16:51
mgzright, really is cake time now16:53
=== zyga-afk is now known as zyga
=== deryck[lunch] is now known as deryck
=== medberry is now known as med_out
lifelessjam: nosetests is pretty evil18:51
=== zyga is now known as zyga-brb
=== med_out is now known as medberry
=== yofel_ is now known as yofel
hrwhi21:19
hrwstupid(?) question: why it is taking so long when bzr is branching from local dir to other local dir? "cp -a" is faster then bzr21:20
james_wbzr is also doing integrity checks21:21
hrwjames_w: ~400MB copy takes 5 minutes ;(21:23
hrwbut it is much faster then doing it with sources at launchpad - then it is 1h21:23
hrwanyway - 13 minutes for 'bzr dailydeb' to generate source pacakge I consider fine enough. will do local tests and once it will work I will give it for launchpad to try21:26
hrwhave  anice rest of day21:26
pooliehi all22:15
james_whi poolie22:17
pooliehrw: maybe you should do 'bzr init-repo DIR' which will avoid copying when you branch inside that directory22:21
pooliejelmer_, wgz, jam, emacs are seeing a connection drop exactly 1h after it started23:16
poolieis there any way this could be connected to a timeout in bzr?23:16
=== medberry is now known as med_out
mwhudsonthere's an hour timeout in lp for idle connections23:17
pooliedone in twisted ssh?23:18
pooliethis is on savannah23:18
mwhudsonyeah23:19
mwhudsonah ok23:19
pooliein this case it's not idle - of course it might be getting detected as idle23:19
jelmer_g'morning poolie, mwhudson23:29
jelmer_poolie: has this always happened or after the deployment of a newer bzr on the server/client side?23:29
spivpoolie: AFAIK there's no timeout like that in bzr23:33
pooliehi jelmer, spiv23:33
pooliethey've only mentioned it recently23:33
poolie"what changed" is always a good question23:33
mwhudsonmaybe they're running the site being somelike like my old netgear router :-)23:40
mwhudson*behind23:40
mwhudson(long lived tcp connection?  what would you want one of *those* for?)23:40
pooliewith openfirmware, of course :)23:40
mwhudsonah ture23:40

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