/srv/irclogs.ubuntu.com/2015/04/28/#launchpad-dev.txt

wgrantblr: Evening.07:00
blrwgrant: morning!07:09
wgrantblr: I saw that your default clone_from thing landed, testing it now.07:10
wgrantDid you make any progress on the init with alternates?07:10
blrwgrant: merged your recent changes into the alternates branch as well now, which is much better - only change in the view is docstrings for repo:repo07:10
wgrantGreat.07:10
blrthe only thing I'm a little uncertain about is that there is now obvious place to cleanup the ephemeral repo - I've added a repo_cleanup() method to both diff functions, but it might be better to have a sweeper do this later07:11
blrs/now/no/07:11
wgrantI think that using a context manager makes sense.07:12
wgranteg. "with open_repo(blahblah) as repo:" would ensure that it's always cleaned up at the end.07:13
wgrantThe autocloning stuff works well, with one unforeseen issue.07:45
wgrantThe connectivity check on push uses rev-list --not --all, but --all only looks in the local ref.07:45
wgrants07:45
wgrantSo my first push to ~wgrant/ubuntu/+source/linux took a bit over a minute, as it ended up walking the entire tree when it had no known-good refs.07:46
wgrantIt may be worth patching git to let rev-list consider alternate refs as well.07:46
wgrantBut it's just a bit slow on first push, not a serious problem.07:47
wgrantParticularly not for sensibly sized repos.07:47
wgrantblr: What d oyou think of the context manager approach to ensure the ephemeral repo is always cleaned up?07:50
blrwgrant: yep that sounds sensible, I'll have another pass07:56
wgrantThanks.07:57
wgrantLet me know how it goes.07:57
blrwgrant: open_repo() is a contextmanager now, that should be ready for you10:14
wgrantblr: Let me see.10:15
wgrantlifeless: I think you can do away with repo.ephemeral and cleanup_repo now, since you only call cleanup_repo in the ephemeral case.10:16
wgrantEr10:17
wgrantblr: ^^10:17
wgrantThis ssh latency is really awful for typing.10:17
blrwgrant: quite, that's a fairly useless function now.10:19
blrok pushed10:20
wgrantblr: Couple of other trivial comments, then I think it's all good.10:22
blrwgrant: hmm actually, in get_commit repo=None is used to prevent us re-initialising repositories in get_commits10:24
wgrantAh, that's right.10:24
blrnot certain how to perserve that nicely in the context of the context manager10:24
wgrantblr: Maybe get_commits and get_commit should call a private method which just takes a repo that must already be open.10:25
blrthat sounds reasonable, I'll sort that out in the morning, getting late10:27
blrthanks wgrant10:27
wgrantNight.10:27
cjwatsonwgrant: https://code.launchpad.net/~cjwatson/launchpad/git-fix-clone-from-owner-default/+merge/257622 if you get a minute, little bit of cleanup10:35
cjwatsonwgrant: Creating MPs on the webservice now works, though https://code.qastaging.launchpad.net/~cjwatson/germinate/+git/germinate/+ref/exp/+merge/254302 will OOPS in the web UI for now.10:37
wgrantcjwatson: Nice, how's the testing of the remaining KLOC going?11:58
cjwatsonwgrant: Making progress, just thinking about how to mangle TestRegisterBranchMergeProposalView suitably.12:11
cjwatsonwgrant: Have you heard anything from IS?12:11
wgrantcjwatson: We're yellow.12:13
cjwatsonAh yes, thanks for the score bump.12:13
cjwatsonwgrant: Is there any equivalent of SQLObjectVocabularyBase for Storm?12:48
wgrantcjwatson: I don't think so.12:55
cjwatsonI wonder if I should write one.  I just noticed that GitRepositoryVocabulary is wrong.12:57
wgrantIt would not be a huge task.12:58
cjwatsonhttps://code.launchpad.net/~cjwatson/launchpad/storm-vocabulary-base/+merge/257655 https://code.launchpad.net/~cjwatson/launchpad/git-mp-basic-browser/+merge/257674 https://code.launchpad.net/~cjwatson/launchpad/git-mp-register/+merge/257676 are all the MP stuff I have so far, except for my in-progress stuff on preview diffs.16:55
cjwatsonShould be (barely) enough to go live with.16:56
xnoxcjwatson: did you see recent discussions about git / merge proposal workflows on debian-devel et.al.?17:24
xnoxcjwatson: it would be cool if launchpad would support emailing in git-bundle(1) to create mp just like one can with bzr bundles17:25
cjwatsonxnox: I noticed the thread, but we have a fair bit still to do before getting to that kind of point17:25
xnoxcjwatson: sure. plus i believe git-bundle has insufficient information as usual in the git world. E.g. bzr bundle encodes public/parent/submit branch locations, and git bundle does not as far as i remember....17:26
wgrantbzr bundle slso hasn't worked since 200917:27
xnoxwgrant: the email interface or the bundles themself?!17:28
cjwatsonYes, I wondered why I couldn't find any of this alleged-to-exist code17:29
xnoxi sure used bundles as recent as 2013-2014 e.g. generate it somewhere throw into usb-stick or email and pull from it on the other end....17:29
wgrantbundles never worked with 2a17:29
wgrantso the LP side was removed17:29
xnoxwgrant: just tested works here.... created --unchanged commit, branched, created --unchanged commit, bzr bundle ../first-branch, then branch first branch again and pulled from the bundle17:34
xnoxgot matching revision-ids out of it....17:34
* xnox is sad =(17:34
wgrantah yes, the unchanged test :P17:43
wgrantthat crestes little new 2a data17:43
xnoxwgrant: well i did merges and the like... and it didn't fail me.18:15
xnoxalthoguht plenty of things are broken with ghost revisions18:16
wgranthmmm18:24
lifelesswgrant: I can? thanks18:30
wgrantlifeless: 500ms sucks18:34
lifelessaye, where art thou?18:38
wgrantMalta18:38
lifelessnice18:38
wgrantafter Austin and London18:38
lifelessI don't miss those trips18:38
wgrantit's certainly a new experimebt in blood caffeine content18:39
blrthis looks like it might be useful https://github.com/libgit2/pygit2/pull/52520:19
cjwatsonblr: I thought about backporting it, but reckoned I could probably just reuse the stuff in LP (actually bzrlib I think) for now and no rush to backport.  But I might change my mind if that turns out to be non-trivial :)20:39
cjwatson(That is, it looked like it'd be less work to reuse)20:39
blrright20:41
cjwatsonWe'll see - I'm going to try to finish the LP side of preview diffs tomorrow20:42
lifelesswgrant: whats em1.rapid.c.c ?22:51
lifelesscjwatson: ^22:51
lifelessthomi: ^22:51
lifelessblr: ^22:52
lifelessany two-letter nicks around ?22:52
cjwatsonlifeless: replacement for batuan, if you remember that22:57
lifelesscjwatson: no; I've just got hold of the ops VG so we're good22:57
lifelesscjwatson: thanks22:57
cjwatsonVPN endpoint for misc crap22:57
wgrantlifeless: what was it spamming you with?23:01
lifelesswgrant: git requests. see #openstack-infra. blahdeblah is on it23:01
thomihmmm?23:04
* thomi makes whooshing motion above his head23:05
wgranthmm23:05
lifelessthomi: outbound NAT gateway for OIL it appears23:05
cjwatsonnot totally implausible23:05
thomiI know what some of those words mean, so yay!23:06
wgrantfor moat of the weird non-IS-managee labs23:06
thomiwgrant: how's Malta? I'm surprised you're awake23:06
wgrantawake is pushing it23:06
cjwatsonthere's still a load of CI jenkins stuff behind rapid isn't there?23:07
wgrantthe CI lab, all the ex-CTD stuff, servenab, hwcert23:07
lifelesscontra-terrene devices?23:07
wgrantCTS, that is23:07
cjwatsonright.  not LP anyway :)23:08
lifelessno23:08
lifelessI was pinging clued up people in the most convenient channel :>23:08
cjwatsonheh23:08
wgrantbatuan has ll the stuff you don't want to think about23:08
thomilol... and you pinged *me* :D23:08
lifelessthomi: penance for using the wrong channel :). Actually its the CI nature of it that led me to ping you23:09
thomiahh23:09
lifelessnon-CI doesn't need many many many accesses to the same git repos23:09
wgrantyep23:09
thomiblissfull ignornace is my motto...23:09
lifelessthomi: and I hear you've done some CI stuff23:09
wgrantanyway, night avain23:09
lifelesswgrant: night, thanks. cjwatson ditto23:10

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