/srv/irclogs.ubuntu.com/2015/06/24/#launchpad-dev.txt

wgrantOh, russkaya, go away.00:04
wgrantNobody likes you.00:04
blrwgrant: cjwatson: what's the significance (if any) or 'scotty' and 'mountain'? heh00:13
blrs/or/of/00:13
cjwatsonblr: Your guess is as good as mine; the branch vocabulary tests go back quite a way00:15
cjwatsonI probably copied them, but ...00:15
blrcjwatson: I've perpetuated the mystery.00:16
blrwgrant: all sorted save a GitDefaultConflict on setting the default repo to the same repo on a second submission.00:18
blrwgrant: suppose that will have to handled with the abort hack?00:19
cjwatsonblr: That's a bug in GitRepository.set{Owner,Target}Default, I think; they should return early if existing == self00:20
cjwatsonblr: Please fix that while you're there rather than inserting abort hacks.  The test should be simple00:21
blrcjwatson: ah, I assumed that was the right behaviour. Sure, I can fix that up.00:21
cjwatson(Or just "if existing is not None and existing != self", given that the following code is quick and a no-op in both cases)00:22
blrgrabbing some lunch00:32
cjwatsonhloeung: All right, so much for tomorrow morning.  https://code.launchpad.net/~cjwatson/launchpad/openpgp-show-fingerprint/+merge/26280300:37
cjwatsonWe'll get +activereviews under control yet :-)00:38
hloeungheh; oh so stories/*/xx-*.txt aren't actually generated?00:38
cjwatsonNo00:38
hloeungit looks easy now that I've seen someone else's diff of the changes required00:38
cjwatsonDoctests are no fun00:39
cjwatsonBut they're easy enough to do lightweight tweaks to if you have an environment to run the tests in, indeed00:39
cjwatsonThe idea is that the indented bits that look like Python interpreter sessions are run and the output compared with what the file says it's supposed to be00:40
cjwatsonSo we wouldn't want to generate them00:41
wgrantDoctests are good for some things :)00:41
wgrantMainly for documenting APIs.00:41
wgrantView aren't APIs :/00:41
=== maozhou__ is now known as maozhou
lifelessdoctests are the devils spawn02:08
lifelessthere's a very narrow set of places they make sense - and they are great there.02:08
lifelessbut - attractive nuisance everywhere else02:08
blrlifeless: gather someone was a little over-enamoured with Cucumber?02:09
lifelessblr: doctests are a very different thing to cucumber02:11
lifelessblr: but if it had existed, they probably would have loved it :)02:11
blrlifeless: the way they're using in LP is very similar02:11
blr*used02:11
lifelessthere's none of the regex object lookup stuff02:12
lifelessnor rich verifiers02:12
lifelessbecause there's no DSL02:12
lifelessso there's no place to fix the issues02:12
blrright, I just mean in the 'BDD/tests as stories' sense02:13
blrlifeless: I would be happier with them if they were less brittle I guess02:14
lifelessyah02:15
blrwgrant: fixed the setTargetDefault bug, should be ready for you to look at when you're free.02:39
blrwgrant: one thing that could use improvement (although not certain how it works wrt the vocab), an invalid shortened_path returns "Invalid value" which could be nicer.02:50
=== maozhou__ is now known as maozhou
wgrantblr: "Invalid value" is the best Launchpad error.03:51
wgrantblr_: ProductSeries:+index doesn't seem to work any more.06:07
blr_wgrant: hrm, will have a look, thanks.06:29
blr_ah, the git vocab context type06:30
blr_wgrant: hmm, that vocabulary won't be used in the ProductSeries context of course, s07:25
wgrantblr_: Shouldn't need to exist, no, since the field doesn't exist there.07:25
blr_weird, tmux went bellyup... anyhow.07:29
blr_wgrant: have pushed a fix, although it might not be the best approach.07:30
blr_the vocabulary will be called in both contexts, so I've handled ProductSeries there.07:31
wgrantblr_: Why is it being called when the widget isn't rendered there?07:31
blr_the SetBranchForm schema is inherited07:33
=== blr_ is now known as blr
wgrantblr: It's common to customise self.field_names in setUpFields.07:34
wgrantSo you could only include default_vcs and the git bits in one case.07:34
blrwgrant: right, can see that in some of the other views, that seems preferable to handling the unwanted context in the vocab!07:36
wgrantblr: Yep. The only thing to worry about is fixing the update actions to only run the code when the relevant widgets aren't excluded.07:36
blrwgrant: ok that should be looking happier now, thanks.08:54
blrwould be nice if the comment nav left a buffer at the top of the frame...20:58
cjwatsonwgrant: Are you happy with me requesting a prod git upgrade run?  I'd like to get turku in place again (it'll require slightly special instructions in the ticket, which I'll take care of).  It'll also pull in your recent turnip changes though.20:59
blrevening cjwatson20:59
cjwatsonhiya21:00
cjwatsonwill vanish shortly to put kids to bed :)21:00
blryep, see you in an hour21:01
cjwatsonblr: will you have a chance to finish off verbose-diff today?21:01
blrcjwatson: will certainly try - just about finished with changes from wgrant's review21:02
blrwgrant: regarding configure_codehosting on ProductBranchListingView, not certain I understand your comment - it isn't an override afaict.21:44
wgrantcjwatson: Yep, turnip upgrade is fine.22:00
cjwatsonman I love being able to do entire meetings without making a noticeable dent in my battery23:01
wgrantHeh23:03
cjwatsonwgrant: oh, BTW, I'm deliberately not landing avoid-pbuilder until the buildd upgrade happens, to avoid confusion with the recipe build that would follow a commit23:03
wgrantcjwatson: Which confusion?23:04
cjwatsonperhaps we should change procedures there to copy from ~launchpad/ubuntu/buildd-staging instead of ~launchpad/ubuntu/ppa23:04
wgrantOh23:04
cjwatsonthe current procedure has them copying from ~launchpad/ubuntu/ppa, which is the target of a recipe23:04
wgrantIS confusion, right.23:04
cjwatsonthat23:05
cjwatsonwgrant: I was thinking the other day about how we'd do git mirroring, incidentally; my thought is that we'd want to have a separate juju environment for pull/push workers (it wants rather different firewall rules from turnip, lots more outgoing), each of which keeps something like an LRU store of repositories which it reaps when it runs low on space; probably no point in sharing code with the existing codeimport stuff, it wants to be ...23:42
cjwatson... juju from the start and there's not a huge amount it can usefully share; haven't figured out how the dispatch would work yet; don't know how the existing codeimport stuff arranges to be sufficiently privileged23:43
wgrantcjwatson: The existing codeimport stuff is valuable as a lesson in how not to do it.23:43
cjwatsonthe job dispatch business is something we'd need to solve to jujuise bzr codeimport anyway, since we wouldn't want the workers talking to the DB23:43
wgrantI was going to try avoiding having a duplicate copy of the branches.23:44
wgrantThe codeimport workers currently talk only to xmlrpc-private and librarian upload.23:45
cjwatsonThe only way I can see to do that is to allow turnip outbound access; or perhaps a custom twisted thing to proxy git receive-pack/upload-pack23:45
wgrantI believe a bridge may be feasible.23:46
cjwatsonYeah, might even be buildable out of turnip code perhaps23:46
cjwatsonIt has most of the right pieces for it23:46
wgrantIt just needs to handle the have/want negotiation between the remote upload-pack and the local receive-pack.23:46
wgrantThat was always my preferred solution, but I don't have a proof of concept.23:46
mwhudsonyes, don't do what the codeimport stuff does23:48
mwhudsonfiguring out how to let launchpad services have privileged access to branches would be nice too...23:50
wgrantYou mean other than unauthenticated-but-firewalled read-only slow HTTP? :)23:50
mwhudsonideally23:51
mwhudsonthat's codebrowse you're talking about there?23:51
wgrantAll internal services access Bazaar branches using the same mechanism.23:52
wgrantScanning, diff generation, etc.23:52
mwhudsonoh right, yes23:52
mwhudsonwhat i meant, as i'm sure you know, is things like recipes for private branches23:52
mwhudsonand also having code imports just being able to push to the branch directly23:52
wgrantYep.23:53
mwhudson(but not having code import workers having the ability to just push to any branch...)23:53
wgrantNow that we have HTTPS git repo access that's probably more reasonable.23:53
wgrantNo need for SSH keys. We can just create temporary tokens.23:53
cjwatsonWe'd need auth tokens23:53
cjwatsonYeah23:53
wgrantSimilar to the librarian's TLTs, except that they can be revoked once the job is done.23:53
mwhudsoni half implemented this for the codehosting ssh server once23:55

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