/srv/irclogs.ubuntu.com/2015/09/18/#launchpad-dev.txt

=== cjwatson is now known as cjwatson_
=== cjwatson_ is now known as cjwatson
wgrantcjwatson: Can you merge up snap-add-view?09:55
cjwatsonOh, right, that actually needs a not entirely trivial merge due to the ZPT macrology09:56
wgrantYup09:56
wgrantNot hugely difficult, fortunately.09:57
cjwatsonWould you be inclined to use a slot or a variable for the create_snap link there?09:57
cjwatsonSince gitrepository isn't going to get it09:57
wgrantI think that makes sense as a variable.09:58
wgrantIf it works.09:58
wgrantI always have to look up exactly how macros work.09:58
wgrantNormally I just cargo-cult...09:58
cjwatsonYeah09:59
cjwatsonI can't find the order of evaluation of tal:define vs. metal:use-macro defined anywhere09:59
cjwatsonOh, or I could just include the link if context_menu/create_snap exists, no need for a variable10:03
wgrantDid you having a a single generic add view, with the link from Code just populating the source field?10:05
wgrantI'm happy either way.10:06
wgrantBah, edit lag10:06
wgrants/having a a/consider having a/10:06
cjwatsonThat's what I have, right?10:06
wgrantYou have a single view class, but it acts as a view on the source object.10:07
wgrantRather than the branches linking into the snappy hierarchy, there is this single parasite.10:07
wgrantWell, I guess also the listing views, and they're more awkward to move.10:08
wgrantSo carry on.10:08
cjwatsonI did originally have something like /+snaps/+new, but thought it was simpler to use the context rather than passing variables around10:08
cjwatsonI can try again if you think it might be worthwhile10:08
wgrantNot much point while +snaps is adjacent.10:09
wgrantRight, so I think I have reasonably good xref ports locally, though I may need to create fake BugTags for search performance10:23
wgrant(QuestionBug, BugBranch, SpecificationBug, SpecificationBranch abolished)10:23
cjwatsonNice10:24
cjwatsonwgrant: snap-add-view pushed10:24
wgrantThanks, looking.10:24
wgrantHm, if I do fake tags then I can kill BugCve too.10:25
cjwatsonI guess create_snap could go in HasSnapsMenuMixin, maybe?  Would need logic to exclude GitRepository until I make +new-snap smarter10:25
wgrantGitRepositoryNavigationMenu could just set create_snap to None10:26
cjwatsonContextMenu but yeah10:26
wgrantEr that10:26
wgrantI don't remember the difference.10:26
cjwatsonYeah, OK, let's do that10:26
wgrantAlso I think it's "snappy Ubuntu Core", though I might be out of date.10:28
wgrantThe ubuntu.com page sneakily only uses it at the start of a sentence.10:28
wgrantAh no, "Try snappy Ubuntu Core"10:29
cjwatsonI'll ask #snappy-internal10:29
wgrantA critical issue, I know.10:30
wgrantAnd snapcraft seems consistently lowercase.10:30
cjwatsonNobody has any taste, but oh well.10:34
wgrantHeh, quite.10:34
cjwatson(Actually, I'm OK with snapcraft if it's being treated as a Unix utility.)10:34
wgrantNot as distasteful but unavoidable as BuildableDistroSeries, fortunately.10:35
wgrantThe snapcraft docs use "Snapcraft" at the start of a sentence, and snapcraft both monospaced and not.10:35
wgrantSo even the non-command version should be lowercase.10:35
wgrantcjwatson: Do you deliberately exclude SUPPORTED series?10:36
wgrantLike, say, trusty.10:36
wgrantOr rather lts+1, I guess10:36
wgrantSince trusty is too old.10:36
wgrantlgtm otherwise10:37
cjwatsonwgrant: so that's confusing because this is not the observed behaviour10:49
cjwatsontrusty is SUPPORTED in my dev instance, but appears in +new-snap10:49
cjwatsonAnd I cloned-and-hacked that from +new-recipe10:49
wgrantI don't believe you.10:49
wgrantBut you have a good point.10:49
cjwatsonI don't believe me either10:50
cjwatsonAnd yet10:50
wgrantMaybe BuildableDistroSeries is even dodgier than I suspected.10:50
cjwatsonDoesn't seem to be ...10:50
* cjwatson pdbs10:50
wgrantHm, no.10:51
wgrantIt is exactly as dodgy as I remembered.10:51
cjwatsonOh, but this doesn't make any sense here10:51
cjwatsonEr10:52
wgrantOh10:52
wgrantinitial_series10:52
cjwatsonIt's only picking one10:52
wgrantderp10:52
wgranter, initial_values10:52
cjwatsonBut it ought to include FROZEN10:52
wgrantquite.10:52
cjwatsonOr just use currentseries or something10:52
wgrantIndeed...10:52
wgrantIt could easily accidentally pick RTM there.10:52
cjwatsonShould I just use the ubuntu celebrity?10:53
wgrantI don't know if fireworks will occur if it's not actually in the vocab, and it will likely break tests.10:53
wgrantBeing as bad as recipes isn't a great bar, but it's not terrible.10:53
cjwatsonLet's at least include FROZEN and an XXX comment10:55
wgrantYep10:56
wgrantOh10:56
wgrantI guess fixing the snap case without fixing recipes wouldn't break tests, would it.10:56
wgrantBut FROZEN is probably Good Enough.10:56
cjwatsonBuildableDistroSeries also uses the ubuntu celebrity, which should be enough to guarantee that it's in the vocab10:57
wgrantOh10:58
wgrantI thought it used the distros of all PPAs you could upload to.10:58
cjwatsonPlus ubuntu10:58
wgrantIt lists 14.09 for me.10:58
cjwatsonAnd currentseries is always going to be active10:58
wgrantAhh10:58
wgrantYep10:58
cjwatsonwgrant: brutal hack in place: http://bazaar.launchpad.net/~cjwatson/launchpad/snap-add-view/revision/1774811:07
wgrantcjwatson: As long as you feel bad about it. r=me.11:11
cjwatsonOh I do :P11:13
cjwatsonBut at least it's in a very very domain-specific place ...11:13
cjwatsonThanks.  Making good progress on a basic requestBuilds UI, which is the last significant piece of UI for this.11:13
wgrantDo you know what it looks like yet?11:13
cjwatsonFor now it'll just be a basic form with archive, architectures, pocket.11:14
cjwatsonWhich is crap but workable.11:14
cjwatsonThe only tricky bit is the archive selection.11:14
wgrantPocket!?11:14
wgrantBut I guess it's necessary here until we have something better.11:15
cjwatsonI'm adding a widget to let you choose primary archive or a PPA.11:15
wgrantHopefully searching PPAs11:15
wgrantRather than showing a <select> of four hundred.11:15
wgrantBeing added to Online Services teams was the worst thing that ever happened to me.11:15
cjwatsonThat's the intention11:15
cjwatsonHaven't tested what my current code actually does yet :P11:15
cjwatsonPocket is nearly the worst piece of terminology in Launchpad.11:16
wgrantIt's one of my earliest memories of Launchpad.11:16
wgrantTrying to work out what on earth the text on SP:+index meant.11:17
wgrantIt survives to this day, and makes a bit less sense.11:17
cjwatsonI remember Daniel swearing a lot after being told to introduce it ...11:17
cjwatsonSince it involved rewriting a good chunk of the Soyuz code he had at that point11:17
wgrantOh, I didn't realise it wasn't there from the start.11:18
wgrantIt's rather more seemless history-wise than the introduction of archives.11:18
cjwatsonIt may have been before much was committed.11:20
cjwatsonI think this was still in the phase where about 20% of Soyuz was being written in my house, and before the mega-landing on devel11:21
wgrantHeh11:21
wgrantBetter than good old r427411:21
wgrant("Personal Package Archives")11:22
wgrantcjwatson: Do you have any planned UI filling after requestBuild?11:30
cjwatsonNot at present11:31
cjwatsonDo you have requests?11:31
wgrantNot until I can do them through the web UI.11:32
cjwatsonNot sure I understand11:32
wgrantThe last piece of UI you're working on is for making requests, and then you asked if I had more requests.11:33
wgrantIt's a terrible pun, you seen.11:33
wgrantBut no, I don't know of any big remaining gaps.11:33
cjwatsonSigh.  Must be Friday11:33
cjwatsonwgrant: http://people.canonical.com/~cjwatson/tmp/snap-request-builds.png corresponds to https://code.launchpad.net/~cjwatson/launchpad/snap-requestBuild-ui/+merge/271650.  It's, er, basic, but works.13:43
wgrantcjwatson: It is very weird asking for pocket without series, but such is life.13:44
cjwatsonI wonder if that's really a model issue.13:47
cjwatsonI was thinking of it like livefs, where sometimes you want to do just one build against -proposed.13:47
cjwatsonBut maybe that's wrong.13:48
wgrantI wonder if snaps aren't actually series-specific.13:48
cjwatsonArguably not, since they aren't unique by series.  Though this request-builds form would be even worse if you had to pick the series every time too ...13:50
wgrantRight, but recipes have sensible defaults there13:50
wgrantOr rather they have a set of daily build series that are ignored for manual requests for some reason.13:50
cjwatsonI don't think people generally want to build snaps based on more than one series of code.13:50
cjwatsonAnd they probably don't want to flip-flop around or have to pick it every time.13:51
wgrantRight, they don't want to have to pick every time.13:51
wgrantBut think about eg. charms13:51
cjwatsonSo I think, while a snap isn't series-specific as such, it makes sense to store that persistently.13:51
wgrantOh certainly.13:51
wgrantA snap probably has a set of series.13:51
wgrantNow how do pockets fit in...13:52
cjwatsonAnd IMO the bug here is really that default pockets and architectures aren't stored on the snap too.13:52
wgrantYeah13:52
cjwatsonIt's definitely weird to be choosing that in separate places13:52
wgrantMaybe it has a set of suites and a set of processors.13:52
cjwatson(Well, SnapArch exists, and I'm not using it right now.  Probably should be.)13:52
wgrantIteration!13:52
cjwatsonSnapArch also has no UI13:53
cjwatsonSo a slight set of improvements would be (a) give SnapArch some UI, (b) move pocket to Snap, (c) drop pocket from request-builds UI, (d) default architectures in request-builds UI to Snap.processors13:55
cjwatsonI don't think a set of suites makes sense.  You're building the snap *from* the suite, not *for* the suite, and it's building a static blob of everything from there.  Why would you want more than one?13:56
wgrantIs it truly everything?13:58
wgrantSurely we don't include libc in the snap.13:58
cjwatsonTrue, and I suppose we don't really know the long-term snappy support model yet14:00
wgrantRight, exactly.14:00
cjwatsonI'll at least do (d), that's fairly obviously correct14:01
cjwatson(done)14:14
cjwatsonRecipes don't let you set the pocket in the UI at all, and daily builds always use RELEASE.  Which must be fun if you actually need something from -updates.14:16
wgrantNot quite14:17
wgrantThey use Release in the PPA14:17
cjwatsonOh true14:17
wgrantAnd then the PPA's dependencies for primary.14:17
cjwatsonDo we have anything else that models a set of suites?  Maybe it would be better to treat the pocket like ArchiveDependency does.14:17
wgrantYou can't build directly into primary.14:17
wgrantRight, that may be more reasonable.14:17
cjwatsonThat is, you choose the same pocket for all suites.14:17
cjwatsoner series14:17

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