/srv/irclogs.ubuntu.com/2014/06/10/#launchpad-dev.txt

wgrantcjohnston: How'd you go today?00:25
cjohnstonwgrant: so I'm a little confused about how we want to do this...00:27
cjohnstonFrom talking to cprov, my understanding is that LP just gets diff's as plain text from librarian...00:28
wgrantCorrect.00:28
cjohnstonso LP doesn't have the notion of hunks...00:28
wgrantCorrect.00:28
cjohnstonHe mentioned there may be code in bzrlib that we could reuse..00:28
cjohnstonBut other than that, I'm not even really sure how we want to go about attempting to do this?00:29
wgrantWhat do you mean by that last bit?00:30
wgrantbzrlib has some useful patch parsing utilities, eg in bzrlib.patches.00:30
wgrantIt may be worth using them, but parsing manually isn't terribly difficult if not.00:30
cjohnstonWe had initially discussed emailing out relevant hunks for IC's00:30
wgrantYes.00:30
cjohnstonso if only one hunk has an IC, only email the one hunk00:31
cjohnstonIf it's plain text that LP has, how do we determine what one hunk is?00:31
wgrantThe same way the 'patch' tool does.00:32
wgrantDiffs have a machine-readable format; that's what they're for.00:32
wgrantSo we can work out what a hunk is.00:32
wgrantbzrlib.patches has utilities to do that, but the format is obviously simple enough that it's not a huge challenge to do it ourselves.00:32
cjohnstonok00:32
wgrantSo we probably need to work out where the hunk dividers are, then map the comments we have onto hunks, so we can work out which hunks we care about.00:33
cjohnstonok..00:33
* cjohnston will bbiab, guest just showed up00:33
StevenKI *think* codehosting has some code using bzrlib.patches for detecting hunks.00:39
=== timrc-afk is now known as timrc
wgrantcjwatson: Why didn't you use multiprocessing again?10:08
wgrantAlso, os._exit? :)10:08
cjwatsonwgrant: Because hell on earth getting the file descriptors set up properly11:17
cjwatsonwgrant: os._exit is the correct thing to use in forked-but-not-execed child processes11:17
cjwatsonI think the particular problem was that multiprocessing kind of wants you to use a Queue to pass things around between processes, and I couldn't make that work - I was getting can't-write-to-closed-fileobj IOErrors all over the place11:18
cjwatsonand it was taking an unnecessarily long time to debug11:18
wgrantHrm, OK.11:19
cjwatsonI use os._exit in this kind of situation because I don't want double calls to atexit-registered functions happening under my feet11:20
cjwatsonIt just requires care to make sure that any fds that have been written to are flushed or closed first11:21
wgrantYeah.11:21
cjwatsonWow, these constant hwdb test failures aren't incredibly annoying at all.11:24
wgrantNot at all!11:26
wgrantI deferred investigating them because we had approval to remove hwdb, but then that was sadly rescinded.11:26
cjwatsonSigh11:27
wgrantSo maybe it's worth actually working out what's going on there at some point.11:27
cjwatsonDidn't remove it fast enough :)11:27
wgrantAt least it's not like polls, where we removed it and then had to put it back.11:27
cjwatsonI'll spend a bit of time testing the apt source-caching backport today, I think.11:29
cjwatson16:26 <cjwatson> yeah, I was going to just feed it a different db path11:29
cjwatson16:27 <cjwatson> copy in the binary dbs and time source generation, then compare Packages/Sources11:29
cjwatson16:27 <cjwatson> then time cached source generation11:29
wgrant:)11:30
cjwatsonBuilt the tip of http://anonscm.debian.org/gitweb/?p=apt/apt.git;a=summary on precise, on advice from Michael; if that works then he'll do a backport to trusty11:30
cjwatsonAnd then I think we'll SRU that into trusty and build the same source for precise11:30
cjwatsonUntil such time as pepo is on trusty11:30
cjwatsonMichael wants to get most of this code into precise for other reasons, but since this is the riskiest bit of the trusty upgrade we might as well QA it in one step11:31
wgrantAgreed, a-f is the most problematic and least testable bit of the upgrade historically.11:40
=== BradCrittenden is now known as bac
jtvDoes anyone know why "bzr branch lp:ubuntu/trusty/apache2" breaks?12:35
jtvThis post says that lowering bzr's output verbosity works around the problem!  http://bridge.grumpy-troll.org/2014/06/four-miscellaneous-things/12:36
jtvI hit the same problem with lp:ubuntu/trusty/firefox but not with some other branches.12:45
wgrantjtv: Breaks with an error about LazyParentGraphCacheSomething having no such revision?12:48
wgrantGraph(StackedParentsProvider(bzrlib.repository._LazyListJoin(([CachingParentsProvider(None)], []))))12:49
jtvYup.12:52
wgranthttps://bugs.launchpad.net/bzr/+bug/88861512:52
_mup_Bug #888615: UDD branch freshness checker breaks on incomplete history <Bazaar:Confirmed> <https://launchpad.net/bugs/888615>12:52
jtvNasty.  It's clearly not just the freshness checker...12:53
wgrantIt is.12:53
wgrantIf you disable it, it'll work fine.12:53
jtvOh, and the verbosity setting controls that?12:54
wgrantI assume it makes it sufficiently quiet that the freshness checker doesn't bother running, as it won't display its message.12:54
=== timrc is now known as timrc-afk
* cjwatson deploys germinate parallelisation16:21
=== BradCrittenden is now known as bac
=== timrc-afk is now known as timrc
=== dpm is now known as dpm-afk
=== james_w` is now known as james_w

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