/srv/irclogs.ubuntu.com/2019/03/08/#snappy.txt

=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== pstolowski|afk is now known as pstolowski
pstolowskimornings08:04
pedronispstolowski: morning08:11
mvohey pstolowski and pedronis08:13
pedronispstolowski: when you have a moment could you review #6576 , is adding yet another attr merger, I wonder if it can reuse something or there is something to expose from else to avoid that08:13
mupPR #6576: cmd/snap, client, daemon, ifacestate: show a leading attribute of a connection <⛔ Blocked> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6576>08:13
pedronis*elsewhere08:13
pstolowskipedronis: looking at it right now08:13
pedronisthank you08:13
pedronismvo: hi08:14
pstolowskipedronis: i think we avoided attrs merger after all; it was floating around in the interface hooks PRs concerning policy check, but it eventually got replaced by implementation using Attrer interface and Lookup method, which looks dynamic/static attrs up without merging them physically08:42
pedronispstolowski: ah, I forgot08:44
pstolowskipedronis: re that PR i'm wondering if we shouldn't leave merging to the client (instead of doing it api-side), more future-proof in case we ever want to distinguish them if the cli grows some new options (e.g. "show me only attributes set by hooks")08:44
pedronispstolowski: not sure, that sounds more like a debug thing08:44
pedronisan attriute could be set statically or dynamically08:45
pedronisit shouldn't matter too much08:45
pedronisfrom somebody looking from outside08:45
mvopstolowski: hey, I remember you had a problem with check.DeepEqual going into a circular list and eating memory like crazy, what was the solution back then? it seems one of my tests has hit this now too08:45
pstolowskimaybe, probably. just a remark, when we do that it's set in stone as far as api is concerned, harder to change08:46
pstolowskimvo: i've a fix proposed upstream, but upstream is silent. one sec08:46
pedronispstolowski: those set are supposed to be disjoint, right?08:47
pedroniswe don't let you override08:47
pedronisif I remeber correctly08:47
pstolowskipedronis: yes, we don't allow that08:47
pedronispstolowski: so we have options08:47
pstolowskimvo: https://github.com/kr/pretty/pull/5808:47
mupPR kr/pretty#58: Fix infinite recursion when diffing structs with cycles <Created by stolowski> <https://github.com/kr/pretty/pull/58>08:47
pedronisanyway08:47
pedronispstolowski: like return a list of dynamic attr names08:48
mvopstolowski: ta08:48
pedronisif needed08:48
pstolowskimvo: i made a comment on that in the trello card as well a while ago.. perhaps we should move this into our tree08:48
pedronispstolowski: what I'm not sure though if the merging should happen in interface mgr or daemon08:48
pedronisbut that we can always change08:48
mvopstolowski: thank you!08:51
pstolowskimvo: i recently helped Chipaca with this fix as well.. so seems to be recurring problem with tests08:52
mvopstolowski: yeah, I pinged in the PR again (the kr) one, but yeah, maybe we need to fork it :(08:53
pstolowskimvo: yeah that would be unfortunate. let me know if the fix helps08:56
=== sparkieg` is now known as sparkiegeek
zygaHello09:25
zygaIf this continues I will start filing mornings off :/09:26
pstolowskihey zyga, what happend?09:27
zygaHomework late, kitchen cleaning late, bed time late, morning early kids prep. ENOSLEEP09:28
zygaI woke up at 6 but fell asleep after kids went to school at 809:29
pstolowskiaha09:51
pedronispstolowski: I did I think the last pass on 656211:08
pstolowskipedronis: ok, looking, ta11:09
pedronispstolowski: if the comments make sense, I can +1 it11:11
pedronispstolowski: as we discussed we can explore the Timing interface idea in a followup11:12
pedronis#6572 needs a 2nd review11:18
mupPR #6572: cmd/snap-confine: populate enter_non_classic_execution_environment <Created by zyga> <https://github.com/snapcore/snapd/pull/6572>11:18
pedronis(it's part of a refactoring chain)11:18
pstolowskipedronis: updated11:21
pstolowskiah, updating description of the PR11:22
mvopstolowski: happy to look at the timings pr again as well, I'm excited about this (but I think I mentioned this before ;)11:28
pstolowskimvo: ty :)11:28
* mvo just needs to finish his own PR first11:29
* zyga is slowly starting to work now11:33
zygamvo: I'll file the morning off11:33
zygasorry, I just feel so tired today11:34
zygahttps://github.com/snapcore/snapd/pull/6572 is an easy win11:37
mupPR #6572: cmd/snap-confine: populate enter_non_classic_execution_environment <Created by zyga> <https://github.com/snapcore/snapd/pull/6572>11:37
cachiomvo, hey11:49
cachiois snapd 2.38 going to beta as well?11:49
zygapstolowski: https://github.com/snapcore/snapd/pull/6568 is green and has two reviiews11:51
mupPR #6568: overlord/snapstate: fix restoring of "old-current" revision config in undoLinkSnap <Created by stolowski> <https://github.com/snapcore/snapd/pull/6568>11:51
pstolowskizyga: thanks; im not sure if pedronis would like to take a look?11:54
zygapstolowski: let's add him to the review11:55
mvocachio: yeah, 2.38~pre1 for the snapd snap should go into beta as well, once 2.37.4 for the snapd snap is in candidate I will arrange that12:01
mupPR snapd#6577 opened: many: make Remodel() download everything first before installing <Created by mvo5> <https://github.com/snapcore/snapd/pull/6577>12:03
cachiomvo, ok, I'll ask about what's missing12:05
cachioI gave the +1 last friday12:05
pedronispstolowski: zyga:  is there something deep going on in 6568 ?  (I don't think I need to review everything)12:11
zygapedronis: I don't think so, just easier to get your qucik decision if you want to review it12:12
pedronisthe problem there is more that nobody has told us of this bug, maybe people don't expect the behavior12:13
pedronisor maybe configure is not used a lot12:13
mvocachio: thanks, I just double checked and put the right 2.37.4 of the snapd snap into the beta channel - once that is validated please move it to candidate12:19
pstolowskipedronis: i think the chances of hitting this were simply very very slim, not only you need to have configure hook, it also needs to change config to something new on refresh, and then you need to hit an error for undo to kick in12:33
pedronispstolowski: anyway I added John to review it12:33
pedronisand removed myself12:33
pstolowskiok12:33
=== ricab is now known as ricab|lunch
zygamvo: do you have time for a quick review13:20
zygahttps://github.com/snapcore/snapd/pull/657213:20
mupPR #6572: cmd/snap-confine: populate enter_non_classic_execution_environment <Created by zyga> <https://github.com/snapcore/snapd/pull/6572>13:20
zygait is just taking a bit of code and wrapping it in a function13:20
mvozyga: meeting(s) now, after that yes13:28
mvozyga: thanks for looking into this why13:29
zygamvo: I'll take the whole day off, I'm just 100% useless today13:30
=== ricab|lunch is now known as ricab
mupPR snapd#6572 closed: cmd/snap-confine: populate enter_non_classic_execution_environment <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/6572>14:52
dot-tobiascjwatson: I just got this error on a LP builder while cloning a public Github repo: “Received HTTP code 407 from proxy after CONNECT” → couldn't find any forum entry, is this a known problem or should I just retry? Same snapcraft.yaml works fine on my local machine.15:05
cjwatsondot-tobias: I need a link to the build in order to say anything useful15:06
cjwatsonAlso we don't in general track Launchpad issues on the forum15:07
dot-tobiascjwatson: https://launchpadlibrarian.net/414273477/buildlog_snap_ubuntu_bionic_armhf_wpe-webkit-mir-kiosk_BUILDING.txt.gz15:07
cjwatson(Sometimes we post about major changes there)15:07
cjwatsondot-tobias: Right, so the proxy gives two hours of internet access to a build; this is a rough cut-off to reduce things like potential botnet impact15:08
cjwatsondot-tobias: The failure in this case was more than two hours into the build15:08
cjwatsondot-tobias: So you need to take steps to ensure that your pulls happen generally towards the start of the build process, or at least not over two hours in15:08
cjwatsondot-tobias: I think there are normally ways to do this by reordering parts15:09
dot-tobiascjwatson: Ok, that explains it. Unfortunately, the wpe-webkit just takes a lot of time to build and I can't build the github part before wpe-webkit (or it would fail to find the libs).15:09
cjwatsonCan you use some kind of dummy part to pull it earlier and then have a subsequent part do the actual build?15:09
cjwatsonThis is slightly more snapcraft wizardry than I possess myself, but I think I've seen people doing that kind of thing ...15:10
dot-tobiascjwatson: May be an option, but I'll just put the checked-out tag in the snap source until the snap is finished. Just wanted to make sure its not something else 😊 Thanks!15:10
cjwatsonOK15:11
* cachio lunch15:28
* zyga woke up and pushed master into https://github.com/snapcore/snapd/pull/657315:39
mupPR #6573: cmd/snap-confine: call sc_should_use_normal_mode once <Created by zyga> <https://github.com/snapcore/snapd/pull/6573>15:39
sergiusensmvo: kyrofa pinging you as I saw your conversation flow through, had this in draft for over a week as I couldn't get to editing it before shutting y computer down: http://blog.sergiusens.org/posts/broader-use-of-bases-for-snaps/17:35
cjwatsonsergiusens: Ah, is LP going to need to look at build-base as well as base in order to work out what builder base images to dispatch to?  A bug would be appreciated if so to tell us what the priority order should be17:37
sergiusenscjwatson: I will let the snapd folks timeline that, as the feature is only relevant once `base: none` is implemented on their side17:39
sergiusenspedronis: mvo ^17:39
cjwatsonsergiusens: (see https://bazaar.launchpad.net/+branch/launchpad/view/head:/lib/lp/snappy/model/snap.py#L620)17:39
diddledando we know of any costs involved in layouts with many configured mounts?17:40
diddledanthis is where I'm heading... https://www.irccloud.com/pastebin/G7thrJLE/17:40
ijohnsondiddledan: it increases the call to apparmor_parser and generating the apparmor profile is proportional to the number of mounts last time I checked17:40
diddledanI'm wondering which is faster and less resource intensive for runtime: either mounting everything up the wazoo or a huge launcher script17:41
ijohnsondiddledan: I think what you have there in that snippet is probably fine, I tried it with over 1000 layouts specified and apparmor crashed :-(17:41
diddledanoops :-p17:42
ijohnsonI think layouts would be faster because you only pay that apparmor cost once, and then it's like those files are already there17:42
diddledanI'm thinking about adding some of those into the gnome extension, you see, so I want to be sure it's better17:42
ijohnson(because they are)17:42
diddledancc/ sergiusens17:42
sergiusensdiddledan: you should cc cmatsuoka and kenvandine instead 🙂17:43
diddledanroger :-p17:43
* sergiusens is a plasma user17:43
diddledanhaha17:43
sergiusenswhere less hacks are needed17:44
diddledanthis is my untested (yet) new launch script for mycroft - MUCH shorter! https://www.irccloud.com/pastebin/Vn6kaHm3/17:45
* cmatsuoka is a gnome user, but agrees with sergiusens 17:47
mvosergiusens: my memory is a bit hazy but I thought we said that snapcraft could simply script "base: none" from the snapcraft.yaml when generating the snap.yaml, am I misremembering that?17:48
sergiusensmvo: that's for "base: core"17:48
sergiusensbase: none is an internally generated empty squashfs handled by snapd17:49
sergiusensmore useful for types base, snapd, kernel and gadget17:49
sergiusensmvo: my post is short, skim through it :-)17:49
mvosergiusens: sorry, I was just reading to the last backscroll item, didn't see the other lines, I have the blog post now17:53
sergiusensmvo: we had two discussions in parallel, one for use of base for other snap types and its implication and the other was how to get around core16 not being ready (which we agreed to support by allowing `base: core` in snapcraft.yaml and stripping it out from snap.yaml)17:53
sergiusensmvo: cjwatson https://bugs.launchpad.net/launchpad/+bug/181919617:54
mupBug #1819196: support for base: none and build-base <Launchpad itself:New> <Snapcraft:Triaged> <snapd:Triaged> <https://launchpad.net/bugs/1819196>17:54
cjwatsonta17:54
mvosergiusens: thanks, I ponder over base: none, hopefully not too much work on our side17:54
diddledanerror: cannot validate snap "mycroft": layout "/opt/mycroft" uses invalid bind mount source "$SNAP_USER_COMMON/mycroft-core": reference to unknown variable "$SNAP_USER_COMMON"17:55
diddledanaww17:55
diddledanno fair :-p17:55
sergiusensmvo: what i think was agreed to be a lot of work is supporting base for kernel and gadget17:55
sergiusensbase: none for a snap type of app shouldn't be that much work (just logic to generate an empty snap on the fly instead of downloading it from the store)17:56
sergiusensanyways, lp and snapcraft need to wait for base: one to become a thing before we can do any work on that specific item17:57
sergiusensfor "base: core" in snapcraft.yaml I can work on now and IIRC from conversations, base: core is mapped in launchpad already17:58
sergiusensant that requires no work on snapd17:58
cjwatsonLP doesn't *have* to wait, but it may be wise to in case the definition changes17:59
cjwatsonbase: core is dispatched to xenial base images and snapcraft from apt, yes17:59
cjwatsonsame as no base17:59
sergiusenscjwatson: right, it is the reason snapcraft waits too 🙂17:59
sergiusenscjwatson: hmm, base: core needs to be dispatched to the snap though. I will look into where I slipped up in communication there as "base: core" is not even allowed today.18:01
cjwatsonerr let me check what we actually did18:01
cjwatsonOK, indeed, base: core is dispatched to apt18:02
cjwatsonI mean, mainly by coincidence since we just needed a name for the default18:03
cjwatsonI'm at EOD but send me email or whatever with what the situation is actually supposed to be and I'll fix up the DB on Monday18:04
sergiusenscjwatson: yeah, and I misread your statement. I will log a bug, thanks18:04
cjwatsonif "base: core" were dispatched to the snap then there'd be no difference between it and core16 from LP's point of view18:05
cjwatsonperhaps that's how it should be, I dunno18:05
sergiusenscjwatson: yes, that is the proposal to get around the lack of a core16 coming anytime soon18:06
sergiusensand it is all confusing as core is a base when at the same time, it is not18:06
sergiusensI'll work it out in the bug, just EOD in peace18:06
cjwatsonwill do :)18:10
mupPR snapcraft#2494 closed: sources: handle network request errors <Created by cmatsuoka> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2494>18:58
mupPR snapcraft#2492 closed: store: handle invalid snap file errors <Created by cmatsuoka> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2492>19:04
mupPR snapcraft#2482 closed: docs: update pull request template <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/2482>19:16
mupPR snapcraft#1720 closed: kernel plugin: introduce kernel-channel to select from which channel … <Created by piso77> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/1720>19:19

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