/srv/irclogs.ubuntu.com/2017/09/12/#snappy.txt

=== ssweeny_ is now known as ssweeny
mupIssue snapcraft#1466 closed: scriptlets erroring behavior <bug> <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/issue/1466>00:51
mupPR snapcraft#1537 closed: project_loader: aliases are deprecated <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1537>00:51
mupPR snapcraft#1526 closed: catkin plugin: don't assume catkin is in underlay <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1526>01:18
mupPR snapcraft#1525 closed: typo: replace occured with occurred <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1525>02:03
=== chihchun_afk is now known as chihchun
=== JoshStrobl is now known as JoshStrobl|AFK
mupPR core#57 opened: fix typo in 500-create-xdg-wrapper.binary <Created by mvo5> <https://github.com/snapcore/core/pull/57>06:31
mupPR snapd#3904 opened: tests: test the real "xdg-open" from the core snap <Created by mvo5> <https://github.com/snapcore/snapd/pull/3904>07:08
mupPR snapd#3905 opened: tests: add new test that checks that the compat snapd-xdg-open works <Created by mvo5> <https://github.com/snapcore/snapd/pull/3905>07:52
mupPR core#58 opened: use `snapctl internal configure-core` to configure core <Created by mvo5> <https://github.com/snapcore/core/pull/58>08:13
mvomeh, we are at 26 open PRs again, code reviews for the rescue please!08:15
mvoto the rescue even08:15
Chipacaouch08:17
mvo3880 is probably an easy win08:17
Chipacahow's #3777 ?08:18
mupPR #3777: snap-repair: implement basic `snap-repair list` (with --verbose) <Created by mvo5> <https://github.com/snapcore/snapd/pull/3777>08:18
mvoChipaca: I think I need to address some bits from samuele first08:22
=== pachulo_ is now known as pachulo
Chipacapstolowski: what's up with #3810 ?08:23
mupPR #3810: interfaces/hooks: PlugData and SlotData wrappers <Created by stolowski> <https://github.com/snapcore/snapd/pull/3810>08:23
pstolowskiChipaca, working on it08:24
pstolowskiwill push soon08:24
Chipacapstolowski: thank you for the tweaks to #385208:29
mupPR #3852: hooks: commands for controlling own services from snapctl <Created by stolowski> <https://github.com/snapcore/snapd/pull/3852>08:29
pstolowskiChipaca, no, thank YOU!08:30
Chipacazyga-ubuntu: #3860 had spread failures that looked like network issues; i kicked it off again08:30
mupPR #3860: packaging: don't include any macros in comments <Created by zyga> <https://github.com/snapcore/snapd/pull/3860>08:31
zyga-ubuntuChipaca: thank you08:31
Chipacamwhudson: conflicts in #387208:31
mupPR #3872: preserve TMPDIR and HOSTALIASES across snap-confine invocation (LP: #1682308) <Created by mwhudson> <https://github.com/snapcore/snapd/pull/3872>08:31
mwhudsonChipaca: hooray08:32
Chipacai wonder if you can use non-ascii chars in env var names08:33
zyga-ubuntuChipaca: prooobably not want to ;)08:33
Chipaca       EINVAL name is NULL, points to a string of length 0, or contains an '=' character.08:34
Chipacanothing about having bittiness08:34
Chipacazyga-ubuntu: agreed :-)08:34
mupPR snapd#3906 opened: many: use snapcore/snapd/i18n instead of i18n/dumb <Created by mvo5> <https://github.com/snapcore/snapd/pull/3906>08:53
sitteris there a best practice way of running snapd in an isolated env (docker/vm/lxd)?08:56
pedronisChipaca: #3890 is an easy one OTOH it seems that always fails spread tests for unrelated reasons :/08:56
mupPR #3890: overlord: use overlord.Mock in more tests, make sure we check the outcome of Settle <Created by pedronis> <https://github.com/snapcore/snapd/pull/3890>08:56
Chipacapedronis: i just reviewed that one08:57
Chipacapedronis: :-D08:57
Chipacait'll probably conflict my PR though08:57
* Chipaca thinks the unverse is unfair every time that older PRs get conflicts from newer ones08:57
zyga-ubuntuChipaca: universe was never meant to be fair but maybe that's just fair to discover the hard way :)08:59
Chipacazyga-ubuntu: knowing it is unfair, and being reminded it's unfair, are completely separate08:59
pedronisChipaca: well, my branch might never land if spread tests continues like that, notice it changes only unit test so apart from that it should affect tests at all09:00
pedronis*not affect09:00
mupPR snapd#3884 closed: store: simplify api url config <Created by atomatt> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/3884>09:12
mupPR snapd#3902 closed: tests: try to fix staging tests <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/3902>09:15
mupPR snapd#3897 closed: systemd: do not run auto-import and repair services on classic <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3897>09:17
* Chipaca finishes a review pass09:22
* Chipaca thinks he deserves a gold star09:22
* zyga-ubuntu hands Chipaca a gold star 09:22
zyga-ubuntu(insert mario chime)09:22
Chipacazyga-ubuntu: thank you :-D09:23
Chipacazyga-ubuntu: also, finish your review of #3835 plz09:23
mupPR #3835: packaging: bring down the delta between 14.04 and 16.04 <Created by chipaca> <https://github.com/snapcore/snapd/pull/3835>09:23
mvozyga-ubuntu: what is the magic again to clean a mount namespace for a snap? context is https://forum.snapcraft.io/t/xdg-open-regression/2085/5 and I suspect that for him the fix does not work because his core snap is still the older version(?)09:28
zyga-ubuntumvo: I replied on the forum09:44
zyga-ubuntumvo: sorry, I saw the forum notification, no notification for irssi here09:44
zyga-ubuntumvo: are you on gnome shell now?09:45
mvozyga-ubuntu: not yet but I plan to move my workstation "soon"09:47
mvozyga-ubuntu: ish :)09:47
zyga-ubuntuI cannot stand the idiotic alt-tab09:47
zyga-ubuntuwhen I have two apps and dozens of windows open it's useless09:48
zyga-ubuntubrowser + terminal, on various workspaces09:48
zyga-ubuntualt-tab flies me across the workspaces09:48
zyga-ubuntusigh09:48
ogra_zyga-ubuntu, you want alt+^09:49
pedronismy Mock branch failed again, something somewhere doesn't want it in09:49
zyga-ubuntuogra_: I think gnome shell designers want that09:49
ogra_well, yes09:50
zyga-ubuntuogra_: the problem with alt~ is that I now need to differentiate apps and windows09:50
zyga-ubuntuand I much more prefer not to09:50
ogra_yep, same here09:50
zyga-ubuntuand in fact, I suspect users may not even grok the difference much09:50
zyga-ubuntu"new is shiny" eh :/09:50
ogra_i was ranting against that since unity implemented it years ago09:50
ogra_(unity has a way to switch back to the ld behaviour though ... i dont think gnome-shhell does)09:51
ogra_*old09:51
mvozyga-ubuntu: silly question about the discard-ns, should we run htis automatically, i.e. why did this user not get the updated xdg-open without manual work?09:55
zyga-ubuntumvo: this is https://bugs.launchpad.net/snapd/+bug/166747909:56
mupBug #1667479: mount namespace is not discarded when core snap changes revision <snapd:In Progress by zyga> <https://launchpad.net/bugs/1667479>09:56
zyga-ubuntumvo: I should update that bug09:56
zyga-ubuntumvo: I'll add a comment shortly09:56
zyga-ubuntumvo: updated10:03
Chipacahah! systemd's "job for snapd.service canceled" error in real life!10:04
Chipacahttps://launchpadlibrarian.net/336695206/DpkgTerminalLog.txt10:04
Chipaca(from bug#1716641)10:04
Chipaca(from bug 1716641)10:04
mupBug #1716641: package snapd 2.26.10 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1 <amd64> <apport-package> <xenial> <snapd (Ubuntu):New> <https://launchpad.net/bugs/1716641>10:04
mvozyga-ubuntu: aha, thank you10:04
* mvo hugs Chipaca for all his reviews10:05
* Chipaca hugs mvo back10:06
zyga-ubuntuChipaca: i wonder what does that mean in systemd-speak10:08
zyga-ubuntustop after start but before started?10:08
Chipacazyga-ubuntu: a daemon-reload hit during a 'stop'10:08
zyga-ubuntuaha10:08
Chipacazyga-ubuntu: this might be because of our roll-our-own systemd overrides10:09
Chipacazyga-ubuntu: but it might also be just dh_systemd10:09
ogra_ondra, https://forum.snapcraft.io/t/sources-of-snap-find-macaddr0/2089 ... why would /run/macaddr0 not be created when the dargonboard runs from eMMC ? (sounds really weird)10:15
ondraogra_ yeah sounds very strange10:18
ogra_ondra, can you check this n a board that runs from eMMC ?10:26
ogra_(i dont want to taint my board here and keep it in original state)10:27
ondraogra_ just testing some other bits on dragoboard so I can have a look here10:30
ogra_thanks10:30
ogra_i wonder if he uses his own kenel snap or so10:30
ondraogra_ yeah,something looks strange10:30
=== ShalokShalom_ is now known as ShalokShalom
* zyga-ubuntu looks outside at the shimmering rain10:33
zyga-ubuntuChipaca: can rain shimmer? is that a good way to say this?10:38
ogra_it surely shimmers if there is enough oil in the drops :P10:39
Chipacazyga-ubuntu: well, there's a song about it10:40
Chipacazyga-ubuntu: but it's from final fantasy10:40
jocmvo: hi, do you know if/why there was a rebuild of 2.27.6?10:40
mvojoc: yes, see https://forum.snapcraft.io/t/xdg-open-regression/208510:42
jocmvo: ah, thank you10:43
ogra_(shouldnt really matter for non-desktop )10:46
zyga-ubuntuChipaca: I mean it, I'm inclined to learn the rain terminology10:52
zyga-ubuntuand UK is the best place to learn10:52
zyga-ubuntumvo: do I undestand correctly that we only need a core rebuild and we don't need a new snapd10:52
zyga-ubuntumvo: regarding the xdg-open regression10:53
mvozyga-ubuntu: correct, the core change has already happend10:53
Chipacazyga-ubuntu: well, i've never heard rain described as shimmering, and google also thinks it's a proper name and not just an adjective10:54
zyga-ubuntuChipaca: how would you describe a rain that falls steadily, with no wind10:54
zyga-ubuntuChipaca: with rather large but not huge droplets10:55
Chipacazyga-ubuntu: steady rain?10:55
Chipacaalso ps just because i live in the uk doesn't make me rainman10:56
Chipaca:-D10:56
mvoChipaca: quick sanity check about i18n coming from the client. we would need some sort of context/thread-local-storage per request. so quite a change compared to how we do i18n right now (and how gettext traditionally does it). or do you have an idea about something smart we could do?10:58
Chipacamvo: we're needing a context for other things, but yes10:59
Chipacait's not a minor change10:59
=== chihchun is now known as chihchun_afk
mvoChipaca: it looks like a gigant change right now but maybe I'm missing something. every place that calls i18n.G() would have to have access to this context11:00
Chipacamvo: in my minid at least it's part of the same refactor of daemon to get rid of gorilla11:01
Chipacayes, major11:01
Chipaca'have a daemon2 package and transition things' major11:01
mvoChipaca: but it would be more, no? i mean, we would have to pass the context even into e.g. snapstate.Install() and similar? as those generate i18n.G() messages?11:02
zyga-ubuntuChipaca: "rainman" sounds like a nice song title11:02
mvoChipaca: don't get me wrong, not asking how it could be done, just if I have a thinko somewhere11:04
Chipacamvo: everything needs a context11:05
mvoChipaca: ok, thanks11:05
itsfemme[m]I tried to install the edge core snap and got the following error: - Setup snap "core" (2894) security profiles (cannot setup mount for snap "core": cannot update mount namespace of snap "core": cannot update preserved namespace of snap "core": fork/exec /usr/lib/snapd/snap-update-ns: no such file or directory)11:10
itsfemme[m]cmd.go:140: exe doesn't have snap mount dir prefix: "/usr/lib/snapd/snapd" vs "/snap"     and      handlers.go:208: Reported install problem for "core" as 95e9cec8-97a9-11e7-9958-fa163e192766 OOPSID11:15
itsfemme[m]are the only things I found from journalctl11:15
zyga-ubuntuitsfemme[m]: hey, can you tell me which distribution are you on11:17
itsfemme[m]subgraph os, which is a derivative of debian stretch11:18
mupPR snapd#3907 opened: cmd/snapctl: allow snapctl -h without a context (regression fix) <Created by stolowski> <https://github.com/snapcore/snapd/pull/3907>11:18
zyga-ubuntuitsfemme[m]: does subgraph os rebuild packages from source?11:20
zyga-ubuntuitsfemme[m]: personally, would you mind contriuting to http://github.com/zyga/os-release-zoo11:20
zyga-ubuntuitsfemme[m]: can you show me the source package of snapd from subgraph os? it looks curious11:20
mvoChipaca: a (slightly) crazy idea https://github.com/mvo5/snappy/commit/029f38be38ff9c634cb21d10e30ff6dba094ca3411:21
itsfemme[m]Not all packages, it uses the debian repo with its own repo for kernels and additional apps11:21
* mvo lunches11:21
zyga-ubuntuitsfemme[m]: is snapd rebuild or reused?11:21
itsfemme[m]reused11:22
zyga-ubuntuitsfemme[m]: which version do you have in the package?11:22
itsfemme[m]this is the repo https://devrepo.subgraph.com/subgraph/11:23
* itsfemme[m] sent a long message: itsfemme[m]_2017-09-12_11:23:59.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/PxsNVKydOHgxYYkZgVpJKhQS>11:24
itsfemme[m]I have PaX (from grsecurity) enabled but I didn't see anything from that in journalctl11:25
zyga-ubuntuinteresting11:27
zyga-ubuntuso snapd restarted into 2.27.611:27
zyga-ubuntubut snap (the client) did not11:27
pedroniswhat does snap restarting means?11:27
zyga-ubuntupedronis: I mean re-exec11:27
zyga-ubuntuitsfemme[m]: for now, can you please open a forum topic11:28
pedronisthat's a super confusing way to call that :)11:28
zyga-ubuntuitsfemme[m]: this will be eaier to track11:28
zyga-ubuntupedronis: sorry, I didn't mean that11:28
zyga-ubuntuitsfemme[m]: I guess someone should try subgraph and see what's going on11:28
* ogra_ wouldnt be surprised if gsecurity patches had influence on seccomp, apparmor and cgroups behaviour11:28
zyga-ubuntuyes, that's possible11:29
itsfemme[m]I mean I use all those things daily11:29
ogra_(sadly its is closed source so you wont easily find out :P )11:29
zyga-ubuntuitsfemme[m]: what's the kernel version you are on?11:29
itsfemme[m]it's not closed source you can go to the repo and get the kernel source11:29
itsfemme[m]4.9.33-subgraph11:30
zyga-ubuntuthank you11:31
itsfemme[m]But as I said, I use apparmor, namespaces and seccomp to sandbox my daily applications so I know those work11:32
zyga-ubuntuitsfemme[m]: thank you for the report, I'm pulling the release to see how it looks like11:36
zyga-ubuntuitsfemme[m]: I would appreciate if you could open a thread on the snapcraft forum11:37
zyga-ubuntuI will also check out debian stable and sid to see if this affects the parent11:37
ogra_itsfemme[m], i thought the current source is only available against money (only a subset is public) ?11:39
* ogra_ only knows what he read in linus rants about GPL violations actually ... ICBW for sure :)11:41
ogra_it would definitely be good to make sure it all works though (regardless of licenses, politics or rants :) )...11:43
Chipacamvo: I don't think we can use gls for this; there is AFAIK no connection between a request and the goroutine the handlers run on11:46
* Chipaca ~> lunch11:46
pedronismvo: I'm not sure I want to look what gls does11:49
pedronismvo: what's the inpulse to work on those? gnome software?11:50
Chipacamvo: also: Accept-Language is the header to use :-)11:50
Chipacapedronis: the i18n pr up right now11:50
Chipacapedronis: snapd#390611:51
mupPR #3906: many: use snapcore/snapd/i18n instead of i18n/dumb <Created by mvo5> <https://github.com/snapcore/snapd/pull/3906>11:51
* Chipaca ~> really lunch11:51
pedronisChipaca: sounds like a huge distraction to me right now11:51
pedroniseven worse if instead of that we make a hackish exercise11:52
pedronisChipaca: given we have async stuff and global bits it's all a bit unclear how this should be properly designed11:54
pedronisChipaca: there's a lot going in snapd that is not tied to a request, or only indirectly, or could be potentially visited from different locales (think snap changes)11:55
mupPR snapd#3890 closed: overlord: use overlord.Mock in more tests, make sure we check the outcome of Settle <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/3890>11:59
mvopedronis: yeah, not saying we should do  any of this gls stuff, just thinking aloud as it seems to be a bit difficult right now to get a handle on this per-connection i18n12:25
zyga-ubuntumvo: I'd vote for explicit, context-based i18n since traditional approach to implicit (thread local state) is harder in go12:26
zyga-ubuntuFound unused ./vendor packages:12:26
zyga-ubuntu vu github.com/mvo5/net/bpf12:26
mvozyga-ubuntu: yes, update your vendor dir, thats fine12:27
pedronismvo: as I said I feart apart the tech expect, there are interesting conceptual questions if we start having per request i18n12:27
pedronisit's probably weeks of work to get that right12:27
mvopedronis: yes12:27
mvozyga-ubuntu: re context-based i18n> seems like everyone agrees with this12:28
mvoanyway, I won't persuse this, it was just a short explore round12:28
pedronismvo: its seems we would need to do i18n very close to where we build the response12:28
pedronisnot all over the place as we do now12:29
mupPR snapcraft#1523 closed: node plugin: record installed node packages in manifest <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1523>12:29
zyga-ubuntupedronis: yes12:29
zyga-ubuntupedronis: or pass the context deeply everywhere which seems insane-ish12:29
pedronisthat doesn't help12:29
pedronissome strings have not direct request12:29
mvopedronis: right, which is tricky once you have format strings in the i18n, e.g. something in snapstate: fmt.Errorf(i18n.G("cannot install %q snap"), snapName)12:29
pedronislike all the stuff in changes12:30
zyga-ubuntupedronis: yes, I agree12:30
pedronisand tasks12:30
pedronismvo: we would need complex ways to pass strings around12:30
pedronisas I said12:30
pedronisweeks of work12:30
mvopedronis: yes12:30
mvopedronis: we are in agreement :)12:30
zyga-ubuntuI wonder if we can start with some common problems and come up with a cheaper solution for that12:30
zyga-ubuntuso _some_ errors could get context-sensitive i18n12:30
pedroniswe need to mark them but translate them late12:30
zyga-ubuntubut not all12:30
zyga-ubuntuN_(...)12:31
pedronisand keep the info of what needs translating12:31
pedronisetc etc12:31
zyga-ubuntupedronis: and also store interpolation12:31
pedronisyes12:31
pedronislots of fun12:31
pedronisseems a bit the wrong time to dive into that12:31
pedronistoo much other stuff12:31
mvo+112:31
zyga-ubuntuyes12:31
zyga-ubuntuI agree12:32
mvospeaking of other stuff> arm/armhf/powerpc fail to build in master right now :/12:32
zyga-ubuntuunless someone external goes to explore and then works on this exclusively without breaking everything for a while12:32
zyga-ubuntumvo: fun12:32
Son_Gokumvo: wut?12:32
pedronis"fun"12:32
zyga-ubuntumvo: let's raise a glass to unpopular architectures12:33
pedronisat least I could merge  my Mock branch, I think I had to retry 5+ times (or more, I really don't remember)12:33
ikeylol "unpopular"12:33
zyga-ubuntuikey: heh12:33
zyga-ubuntuikey: good to see you12:33
ikeyta, you too12:33
pedronisit's all relative12:33
zyga-ubuntuikey: I've installed solus and I loved the experience :)12:33
zyga-ubuntuikey: I played with the build tools a little12:33
ikeyoh im so sorry12:33
ikeyxD12:33
zyga-ubuntuikey: but I could not find the snapd package (I cloned everything using the helper make)12:34
mvocachio: hey, can I get commit access to spread-cron please :)12:34
zyga-ubuntuikey: I wanted to help with co-maintenance12:34
ikeyoh you legend12:34
zyga-ubuntuikey: and to update snapd to 2.27.612:34
ikeyhttps://dev.solus-project.com/source/snapd/12:34
ikeyeverything is nested on our dev portal12:34
ikeythe "main" file is https://dev.solus-project.com/source/snapd/browse/master/package.yml12:35
ikeyits basically bash script decorated with sexy yaml12:35
ikeyomg zygaception12:35
zyga-ubuntuikey: should this have been cloned by make pull?12:35
ikeyuhm so the "make pull" thing relies on the old common/packages notion12:36
Son_Gokuyou can clearly see the pisi influence :)12:36
zyga-ubuntuah12:36
zyga-ubuntu:)12:36
ikeyno you can't Son_Goku12:36
zyga-ubuntusome stale docs I ran into then12:36
ikeypisi is XML.12:36
zyga-ubuntuwhat is pisi12:36
Son_Gokuthe changelog is still in pisi format :)12:36
ikeyeopkg is forked from pisi12:36
ikeySon_Goku, what?12:36
ikeywhat changelog..?12:36
ikeyzyga-ubuntu, pisi is what eopkg is forked from12:36
Son_Gokuerr, pspec12:36
Son_Gokupspec_x86_64.xml12:36
ikeythats automatically generated for introspection12:36
ikeyits not actually used by the build12:37
ikeyypkg emits the eopkg itself12:37
Son_Gokuah, so you're not writing it :)12:37
ikeyin the old days we used to rely on the machine files12:37
ikeyoh god no12:37
Son_Gokuhaha12:37
ikeyypkg was to get us away from that old crap12:37
* Son_Goku remembers rpmxmlbuild12:37
ikeyand make packaging sane12:37
zyga-ubuntuikey: got it12:37
ikeyzyga-ubuntu, so yeah we infra-changed and some things broke ™12:37
Son_Gokuikey, there was a point where rpm spec files could be written as XML :P12:37
ikeySon_Goku, intentionally?!12:38
zyga-ubuntuikey: how do I send patches to that packaging?12:38
Son_Gokuyep, back in the early rpm 4.0.x ~ 4.3.x days12:38
ikeyzyga-ubuntu, you're gonna want to install "arcanist"12:38
Son_Gokujbj implemented it to make people back off about wanting a schema for rpm spec12:38
ikeyhttps://solus-project.com/articles/packaging/submitting-a-package/en/12:38
ikeysee the arcanist links down below12:39
ikeybasically you mangle and alter your clone of our repo12:39
ikeyget your commit in order12:39
ikeyand send it with "arc diff" (once arc is setup)12:39
ikeythen it creates a new patch against snapd in our infra12:39
Son_Gokuikey: probably the next go around, there will be an rpmyamlbuild :)12:39
ikeySon_Goku, yeah yaml is "so hot right now" :P12:39
cachiomvo, let me check12:39
zyga-ubuntuikey: I'll try12:39
ikeyyou gotta have a dev site account fwiw12:40
* zyga-ubuntu needs to clean his desk12:40
ikeyyou can log in with github anyway12:40
zyga-ubuntuikey: how do I get that?12:40
Son_Gokuikey: someone is already working on making rpm output yaml in addition to xml12:40
zyga-ubuntuah12:40
zyga-ubuntuI did log in12:40
ikeysaves farting about12:40
ikeyok so do the "Setting up Arcanist bit"12:40
ikeyer. misquoting but ya12:40
ikeybasically it sets up arcanist globally for the solus instance12:40
ikeyfwiw if you have a proper checkout with $dir/common $dir/snapd, etc, you can do "make" to actually build the package12:41
ikeyi assume you've got solbuild setup at this point?12:41
ikey(because it wouldn't be solus without a shedload of badly named tools.)12:41
zyga-ubuntuikey: I do12:42
ikeysuhweet12:42
ikeyyou can `sudo solbuild update -p unstable-x86_64` to keep the base image updated fwiw12:42
ikeymakes subsequent builds faster12:42
ikey(if you install `solbuild-config-unstable` you can skip the -p parameter nonsense)12:43
ikeyalways amazes me that solus users have never questioned why i opted to include the architecture field in everything for an x86_64 distro12:43
ogra_mvo, seriously, kill powerpc ... we never supported it, you cant even build snaps for it so it is totally pointless to have it12:44
ogra_there is so much time and energy wasted on it ...12:45
zyga-solusikey: hmm, what did I do wrong? zyga@lambert ~/packaging/snapd $ make12:46
zyga-solusmake build12:46
zyga-solusmake[1]: Entering directory '/home/zyga/packaging/snapd'12:46
zyga-solussudo solbuild build package.yml -p unstable-x86_64;12:46
zyga-solusProfile is not installed: Did you forget to init?12:46
zyga-solusmake[1]: Leaving directory '/home/zyga/packaging/snapd'12:46
zyga-solusmake abireport12:46
zyga-solusmake[1]: Entering directory '/home/zyga/packaging/snapd'12:46
zyga-solusabireport -p abi_ -D `dirname package.yml` scan-packages `dirname package.yml`12:46
zyga-solusError locating packages: No packages in directory .12:46
zyga-solusmake[1]: *** [../Makefile.common:15: abireport] Error 112:46
cachiomvo, I think niemeyer can give you permissions12:46
zyga-solusmake[1]: Leaving directory '/home/zyga/packaging/snapd'12:46
zyga-solusmake: *** [../Makefile.common:12: complete] Error 212:46
zyga-solusoh, darn, sorry, hexchat doesn't auto-pastebin12:46
mvocachio: ok, if you could merge my PR on spread-cron, that would be great12:47
mvopedronis: does http://paste.ubuntu.com/25520782/ ring any bell(s)? its the failure on arm/arm6412:48
mupPR snapd#3860 closed: packaging: don't include any macros in comments <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/3860>12:48
cachiomvo, done12:48
mvocachio: \o/12:48
mvocachio: I trigger a test run now12:48
* zyga-ubuntu needs to clean his desk *really* 12:48
zyga-ubuntuomg, fedora mail storm :)12:48
pedronismvo: no, seems weird12:49
mvopedronis: yeah, also why just arm? probably some race but looks very strange, I see if I can reproduce it12:49
ikeyzyga-ubuntu, sorry had to run downstairs12:49
zyga-ubuntuikey: no worries12:49
pedronismvo: doesn't seem like a race, more an issue with mocking hooks12:49
ikeyzyga-ubuntu, did you init unstable?12:49
ikeyunstable and main correlate to the two main solus repos12:50
zyga-ubuntuikey: ... I think I don't know12:50
ikeytypically package developers target unstable, as we don't explicitly build for main12:50
ikeyalright well, easiest way to do this12:50
mvopedronis: I wonder why its just manifesting itself on arm (this is why I suspected a race)12:50
ikeysudo eopkg it solbuild-config-unstable12:50
ikeysudo solbuild init -u12:50
zyga-ubuntuinitializing12:50
ikeythat'll initialise solbuild and update the base image12:51
ikeysolbuild-config-unstable installs a global config file that pins you to unstable by default12:51
ikey(in /usr/share because /etc is wrong. :P)12:51
pedronismvo: that stuff should be determinstic12:51
zyga-ubuntuikey: writable /usr/share? curious12:51
ikeynope, read-only12:51
ikeywe use layered configuration12:51
ikeyhttps://github.com/solus-project/solbuild/blob/master/src/builder/config.go#L3412:52
ikey/etc/solbuild takes precedence12:52
mvopedronis: yeah, I'm trying this on my pi now12:52
ikeywe have image + profile definitions12:52
pedronismvo: ah, those tests don't check chg.Err, you probably need to start there12:52
mvopedronis: aha!12:52
pedronissorry12:52
pedronisthey do12:52
pedronisbut don't check ready12:53
ikeyzyga-ubuntu, basically at solus we're weird and very opinionated about how to build a distro. :p12:53
pedronismvo: not sure what is going on there12:53
zyga-ubuntuikey: I think you just described snapd project :)12:53
ikey:D12:53
zyga-ubuntuikey: we're also opinionated and some people find some things weird12:54
ikeygood architecture usually is12:54
zyga-ubuntuikey: ok, now it works!12:54
ikeyand it has to be opinionated to be enforced12:54
ikeysuhweet12:54
ikeyso do you have common/ setup?12:54
zyga-ubuntuyes12:54
ikeywith the symlinks and such12:54
zyga-ubuntuwell12:54
zyga-ubuntumake works12:54
ikeyif you step into snapd directory, a simple "make" should suffice12:54
zyga-ubuntuand I see a few symlinks for makefiles12:54
zyga-ubuntuyes,12:54
zyga-ubuntuI think I'm good now12:54
ikeyif make works and it spits out eopkgs, you're golden12:54
zyga-ubuntuI'll let it build cleanly12:55
zyga-ubuntuthen do my changes12:55
ikeyaye12:55
zyga-ubuntuand then bug you to figure out how to send that :)12:55
ikeyin solus the release number is more important than the version number12:55
ikeyits the thing we actually track and says "this is an update"12:55
zyga-ubuntuikey: ahhh12:55
zyga-ubuntuikey: so like snap revision12:55
ikey(Even if its a downgrade)12:55
ikeyright12:55
zyga-ubuntuikey: so I should not reset it after changing version?12:55
ikeyso all updates include a relno bump12:55
zyga-ubuntuikey: interesting :)12:55
ikeynah bump by 112:55
zyga-ubuntuack, will do12:55
ikeynumbers are free so .. yknow. :)12:55
mvopedronis: no worries, thanks, I try to reproduce now on my pi12:56
zyga-ubuntuyes, and much nicer and simpler conceptually than debian -~4-fork512:56
ikeyyou also have "make clean" to nuke the local eopkgs, just because12:56
ikeyright12:56
ikeywe didn't want epochs and such12:56
zyga-ubuntuikey: and revisions are nice because versions can match upstream12:56
ikeyexactly12:56
zyga-ubuntubuild completed12:56
ikeywell, fwiw eopkg having pisi heritage has some gimped notion of version fields12:56
zyga-ubuntuok, let's just bump the release and the version12:56
zyga-ubuntuand see what happens12:57
ikeyin that it tries to be clever and interpret them12:57
ikeywhen we replace it with 'sol', we'll make it not care what the version field means12:57
zyga-ubuntuikey: after building I have a changed tree12:57
ikeyright, pspec changed12:57
ikeythats fine12:57
pedronismvo: ah, it might just be too slow12:57
zyga-ubuntuthe xml changed12:57
ikeyyou see what i mean about pspec being machine generated12:57
zyga-ubuntuikey: shall I commit or ignore12:57
pedronismvo: I just merged checking for Settle error12:57
ikeyjust ignore it12:57
ikeyin your final change you include your pspec diff12:57
mvopedronis: oh, that sounds reasonable12:57
ikeyas its the build record12:57
ikeyits generated on the fly, its not sourced12:57
zyga-ubuntuok12:57
pedronismvo: I don't know if with master you mean with my last landing or not12:58
ikeyit includes basic stuff to indicate the subpackages and file layout12:58
ikeythat way we can quickly glance to make sure its half sane12:58
mvopedronis: master as of ~1h or so ago12:58
mvopedronis: but let me double check, the builds are always a bit delayed12:58
pedronisI merged it around there12:58
pedronisbut from the failure mode12:59
ikeyzyga-ubuntu, fwiw ypkg/solbuild does support git builds but snapd repo is set up odd without git submodules12:59
pedronisit probably doesn't have that code yet12:59
ikeyso you'd need to set `networking: yes` to bypass some of the confinement we set12:59
ikey(we nuke networking in solbuild)12:59
ikeyit really is a glorified container at this point..12:59
* zyga-solus goes for the daily standup12:59
zyga-solusikey: what's the hash in packaging?13:06
ikeysha256sum13:06
ikeyif you're using git sources its the commit or branch13:06
zyga-solusyep13:06
ikeyi.e. git|someSource/.git : commit13:07
ikeyi typically look at git show in head and take the tip commit13:07
zyga-solusok, building with 2.27.613:07
ikeygl!13:07
zyga-solusikey: is it typical to run tests during the build13:08
ikeyso i mean if you *want* to run tests, you can13:08
ikeyyou can just nuke it13:08
ikeyand run tests yourself13:08
ikeyits not always appropriate for a make check13:08
ikey(and solbuild lacks x11/dbus isolation atm)13:08
zyga-solusok13:08
zyga-solusI'll try locally13:08
ikeywe're doing those in the next major version so we can have PGO on x11 apps13:09
ikeylike firefox ^^13:09
pedronisthis is a weird failure mode:  https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-xenial-snappy-dev-image/xenial/amd64/s/snapd/20170912_124213_dfd96@/log.gz13:09
pedronisa panic with fatal error: runtime: address space conflict13:09
* ikey takes `unsafe` away from golang13:10
zyga-solusSep 12 11:50:55 autopkgtest snapd[6307]: runtime: address space conflict: map(0xc820100000) = 0x7f01da1d700013:10
zyga-solusSep 12 11:50:55 autopkgtest snapd[6307]: fatal error: runtime: address space conflict13:10
zyga-soluswoah13:10
=== JoshStrobl|AFK is now known as JoshStrobl
greybackogra_: hey, were you playing with the vc4 driver on the rpi3 recently? I'm seeing rendering failures with Qt and GL, Qt is unable to allocate its atlas texture, breaking all images13:42
ogra_greyback, nope, havent touched it ...13:43
greybackogra_: ok. I'll see what I can figure out so. thanks!13:43
ogra_greyback, ppisati recently added a fix to make /dev/fb0 work again (some malloc stuff afaik) ... perhaps that has some influence ?13:44
pedronismvo: zyga-solus: that panic is interesting, not sure it something we control though13:44
greybackogra_: hmm I'll keep that in mind. I don't see how that would impact it, but I've been surprised before13:45
ogra_right13:45
ogra_i wouldnt expect it to break anything either13:45
=== JanC_ is now known as JanC
cachiomvo, have you ever seen this error https://travis-ci.org/snapcore/spread-cron/builds/274589912?utm_source=email&utm_medium=notification ?13:55
mvocachio: I saw it but can't make sense of it, I think my other PR needs to be revert :/ I prepare a PR14:06
cachiomvo, ok14:09
mvocachio: I opened a revert PR for this14:10
ackkhi, if I run "go test github.com/snapcore/snapd/cmd/snap-seccomp" in snapd master, tests seem to hang, any idea what could it be?14:15
mvoackk: they are slow for me (~15sec on a fast machine). you can try "go test -check.vv github.com/snapcore/snapd/cmd/snap-seccomp"14:16
mvoackk: that should give you some idea where its slow at least14:16
mvoackk: what is your hardware?14:16
ackkmvo: can't load package: package github.com/snapcore/snapd: no buildable Go source files in /home/ack/go/src/github.com/snapcore/snapd14:17
mvopedronis: 3893 looks ready (spread is green)14:17
ackkmvo, Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz14:17
ackkmvo, if I run the full suite tests pass, but running this package alone seems to hang14:18
mvoackk: heh, that is a fast machine, it really should not hang, strange14:18
mvoackk: aha, let me try this14:18
* zyga-ubuntu -> tea14:20
ackkmvo, do tests require a minimum kernel version (thinking about seccomp/apparmor stuff)?14:21
cachiomvo, when you have a minute, please could you take a look to this one14:21
cachiohttps://github.com/snapcore/spread-cron/pull/4314:21
mupPR spread-cron#43: Skip manual branches <Created by sergiocazzolato> <https://github.com/snapcore/spread-cron/pull/43>14:21
mvoackk: maybe, what is puzzling is that you say that the test works when you run it as part of the entire unit tests of snapd but not when run in isolation14:22
mvocachio: sure14:22
ackkmvo, the whole suite takes a lot of time, though14:22
mvoackk: yes, no disputing this :) I'm just confused that it works there but not when run in isolation and scratching my head what might be causing this14:23
mvoackk: if you "cd $GOPATH/src/github.com/snapcore/snap/cmd/snap-seccmp && go test", does that work?14:23
* ackk tries14:23
mvoackk: and curious, are you hunting a bug in this package? anything not working for you?14:24
ackkmvo, i'm on go 1.6.3 if that matters14:24
mvoackk: that should be ok. anything unusual about your kernel/libc/seccomp version maybe?14:24
ackkmvo, no, I was running tests in a brnach of mine (for adding socket activation support), tests were hanging and eventually timing out, so I was trying to get a baseline on master14:25
ackkmvo, I'm on yakkety, nothing special14:25
mvoackk: hm, indeed, sounds all quite normal14:25
mvoackk: so generally speaking this should work, so lets try to figure out why its not in your case :) - does it make a difference if you run"cd $GOPATH/src/github.com/snapcore/snap/cmd/snap-seccmp && go test" ?:14:26
ackkmvo, still runnning, but I suspect it's stuck14:26
ackkmvo, strace tells me it's stuck on a FUTEX_WAIT14:27
ackkweird14:27
ackkmvo, so, no, no change14:27
mvoackk: what does "go test -check.vv" tell you now? it should print each test14:28
mupPR snapcraft#1546 opened: cli: update parts cache in the container <Created by kalikiana> <https://github.com/snapcore/snapcraft/pull/1546>14:29
ondraogra_ dragonboard booting from emmc and I have there /run/macaddr014:29
ackkmvo, running, but I see some "cannot use non-native in runBpfInKernel" messages14:30
ackknot sure if they're relevant14:30
mvoackk: thats harmless14:30
mvoackk: and reminds me that I should fix those :/ thanks, I will do that in a wee bit14:30
ackkmvo, it's still running fwiw14:30
mvoackk: can you see the last START?14:31
mvoackk: i.e. in which of the tests is it hanging?14:31
mupPR core#57 closed: fix typo in 500-create-xdg-wrapper.binary <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/core/pull/57>14:31
ackkmvo, snapSeccompSuite.TestRestrictionsWorkingArgsPrctl is the last one14:31
ackkit seems stuck there14:31
mvoackk: ohh, interessting, let me look14:31
ackkmvo, oh, it just moved on, but 93s on that one14:31
mvoackk: geeeh, that is a long time14:32
mvoackk: this is master, right? I mean, its (reasonable) up-to-date with master?14:32
ackkmvo, yeah, I updated 2hrs ago tops14:33
mvoackk: that should be fine14:33
* mvo scratches head14:33
ackkmvo, is snapd secretly written in enteprise java? :)14:33
mvoackk: *cough*14:33
mvoackk: lalallaa14:33
mvoackk: ;)14:33
ackk:)14:33
mvoackk: so these tests do a lot of fork/exec, the way it works is that it creates a small C helper that runs all our  syscalls that we care about in sandboxes to ensure the code that generates the sandboxes works correctly. so its expensive but on your HW it should really not take so long14:34
mvoackk: btw, socket activation support sounds awesome!14:35
mupPR snapd#3893 closed: many: introduce asserts.NotFoundError replacing both ErrNotFound and store.AssertionNotFoundError <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/3893>14:35
ackkmvo, the problem seems locking-related, cpu is free14:35
ackkmvo, yeah I hope to be done soon with at least the basic stuff14:36
mvocachio: https://github.com/snapcore/spread-cron/pull/43 has my +1, I can't merge currently. but if niemeyer gives me write access to the spread-cron repo I can do it14:36
mupPR spread-cron#43: Skip manual branches <Created by sergiocazzolato> <https://github.com/snapcore/spread-cron/pull/43>14:36
niemeyermvo: on it14:36
pedronismvo: thanks, merged14:37
mvoackk: strange that the cpu is idle, there are no locks in these tests, its just running a bunch of binaries (and producing the right seccomp confinement). very puzzling. still hanging? I can give you a diff that springles some debug prints so that at least we get some idea what is doing on, i.e. if compile of the seccomp code is slow or if execution is slow etc14:38
jdstrandmvo: fyi, https://dashboard.snapcraft.io/dev/snaps/6021/rev/2902/ got hung up so I requested to rerun the review. it passed, but needs to be released14:38
ackkmvo, yeah still running14:38
mvojdstrand: thank you, released now14:39
niemeyermvo: Done, now the committers team has rw there14:40
mvoackk: I need to take a short break but I will read backlog if you find anything interessting14:40
ackkmvo, ok. thanks for the help14:41
ogra_ondra, yeah, see the forum ...14:41
cachiomvo, the revert didn't fix it14:41
cachiomvo, the problem is not related to that :(14:42
ogra_ondra, thanks fo testing though14:42
ondraogra_ no prob, I just needed to sort my dragonboard as I was testing one thing and it was messed up14:43
ackkmvo, fwiw that tests seems to hang in a trusty container and my (artful) laptop too14:51
ackkmvo, those tests are definitely i/o-bound for me14:55
ackkno idea why14:55
ackkmvo, ~40Mb/s disk write14:58
zyga-ubuntujdstrand: hey14:59
zyga-ubuntujdstrand: do you have a chance to re-review the snap-update-ns PR15:00
zyga-ubuntujdstrand: I'm still blocked on your request for changes15:00
ryebotIs there any way to set StartLimitIntervalSec=0 for snap-created services?15:03
ryebotOr otherwise force them to continue restarting forever?15:03
ackkmvo, ok      github.com/snapcore/snapd/cmd/snap-seccomp      420.994s FTR15:06
zyga-ubuntuackk: FYI on my opensuse laptop with btrfs this takes way too long to test and golang always kills it with 10 minute timeout15:07
zyga-ubuntuI wonder if we could somehow compile one huge executable and then fork each helper test process of it15:08
zyga-ubuntuas I strongly believe it is io bound on gcc for whatever reason15:08
ackkzyga-ubuntu, I suspected btrfs too, but it hangs even if I move $GOPATH under tmpfs15:08
zyga-ubuntuackk: well that test comples an awful lot of binaries15:08
ackkzyga-ubuntu, can't the be compiled upfront?15:09
ackk*they15:09
zyga-ubuntuackk: each one is compiled once15:09
zyga-ubuntuackk: there are generated test programs15:09
ackkzyga-ubuntu, then why the IO ?15:09
zyga-ubuntuackk: I assumed it was gcc but perhaps I'm missing something15:10
mvoackk: hm, it should pre-generate the helpers, let me try to figure out what is going on, maybe a bug15:14
* ackk updates master15:15
zyga-ubuntumvo: set up test vs set up test case?15:18
zyga-ubuntujust guessing,15:18
mvozyga-ubuntu: could be something stupi dlike this15:18
mvozyga-ubuntu, ackk: checking in any case15:18
zyga-ubuntumvo: add a print and see :)15:18
mvocachio: meh, thats nasty, wonder why the sync breaks just when the other branch gets merged, almost too much of a conicidence15:19
mvoackk: just to double check, your are on btrfs?15:22
ackkmvo, yes, but as said I tried moving my GOPATH to tmpfs15:22
mvoackk: it is definitely writing a gazillion of small files and callnig fsync and dirsync for each.15:22
mvoackk: does it make a difference if /tmp is tmpfs?15:22
zyga-ubuntumvo: that's super odd, what would call fsync and dirsync?15:22
mvoackk: I bet it does15:22
ackkmvo, doesn't seem to15:23
mvoackk: :/15:23
zyga-ubuntuI don't think we do that outselves15:23
ackkmvo, but is it slow for you?15:23
mvozyga-ubuntu: we do, the test writes out small bpf programs into files in /tmp/check-NNNN/bpf15:23
zyga-ubuntumvo: but that should not include any of the sync calls15:23
zyga-ubuntuthose are exception, not the norm15:23
mvoackk: its certainly not fast15:23
mvozyga-ubuntu: its our "normal" atomic write pattern15:24
zyga-ubuntuah15:24
zyga-ubuntutry SNAPD_UNSAFE_IO please15:24
mvozyga-ubuntu: its not using osutil - let me look why15:24
zyga-ubuntuthat should make a difference if this is really io bound fsync15:24
zyga-ubuntuahhh15:24
mvozyga-ubuntu: I think it can now actually because we have atomicwrite to fds now15:24
mvoackk: I think we are getting closer! thanks for your patience15:25
ackkthank you guys for digging into this15:25
ackkI'm trying SNAPD_UNSAFE_IO fwiw15:25
ackkoh, but you said it's not using osutil15:26
ackkso it shouldn't make a difference?15:26
zyga-ubuntunot yet15:26
* zyga-ubuntu plays with a snap that uses content interface in $SNAP_DATA/subdir15:26
ogra_dont the most do that ?15:28
zyga-ubuntuogra_: no15:28
zyga-ubuntuogra_: because making that subdirectory is hard15:28
zyga-ubuntuwell, no more15:29
zyga-ubuntuthat's why I'm fixing it :)15:29
ogra_i thought mir actually uses it like that15:29
ogra_(thats the content snap i use most)15:29
zyga-ubuntuthere are hacks15:29
zyga-ubuntuI'm making it easy15:30
ogra_having the interface actually create it ?15:30
zyga-ubuntuyes15:30
ogra_col15:30
ogra_+o15:30
ogra_hah popey beats me :)15:34
popeyReply twins! :D15:34
ogra_:D15:34
popeyWhee, he's getting all the love.15:34
ogra_hahaha15:35
ackkmvo, oddly, if I run those tests in a container, they succeed in ~400s, on the actual machine they get killed after 10m15:36
zyga-ubuntuackk: different mount laout15:38
zyga-ubuntuackk: so proof that they are really io bound15:38
ackkzyga-ubuntu, yeah, but both on btrfs15:39
zyga-ubuntuackk: but /tmp in container is probably tmpfs15:39
zyga-ubuntunot your real tmp15:39
ackkah, good point15:39
mvoackk: this http://paste.ubuntu.com/25521498/ with SNAPD_UNSAFE_IO=1 gives me test runs of 2s vs 14s on ext4. let me iterate a bit on this, I'm not quite happy yet15:44
mvoackk: with the code and also I think there should be no need to set an environment, the test can test it itself15:44
ackkmvo, awesome, that worked15:46
ackk2.3s15:46
mvonice15:46
mvoackk: I clean it up and will propose something shortly15:47
ackkmvo, thanks!15:47
zyga-ubuntumvo: suggestion15:47
mvothank you for raising it15:47
zyga-ubuntumvo: make unsafe io default=1 in tests15:47
zyga-ubuntumvo: I use that in opensuse packaging but it should not be hand-held that much15:47
ackkzyga-ubuntu, +1 :)15:47
zyga-ubuntumvo: everything will benefit15:47
mvozyga-ubuntu: yeah, I was thinking this15:47
zyga-ubuntumvo: setting it to =0 should still do the real thing15:48
zyga-ubuntumvo: and we should test that, ahem15:48
mvozyga-ubuntu: yeah, I was about to ask why its controlled by the evnrionment15:48
mvozyga-ubuntu: sounds good15:48
zyga-ubuntumvo: just so that it's controllable15:48
zyga-ubuntumvo: but then it was constrained to just tests15:48
zyga-ubuntumvo: and then it made less sense as a knob that needs to be set in the "fast" position manually15:48
ackklike the "turbo" button on old PCs :)15:50
mvoChipaca: quick question, I have a thing in seccomp that needs to write atomically to *os.File, seccomp.ExportBPF(file). do you think its reasonable to extend AtomicWriter to have a BackingFile() that would expose the "tmp" *os.File?15:51
mvoChipaca: this would allow me to kill my code duplication there15:51
Chipacamvo: it needs an *os.File, not an io.Writer?15:52
mvoChipaca: unfortuantely15:53
pedronisis it historical or fundamental?15:53
mvoChipaca: its talking to libseccomp and that expects an fd (int)15:53
pedronisah15:53
Chipacamvo: I was this >< close to making AtomicWriter be an actual struct that embedded *os.File :-)15:53
pedronisfundamental15:53
mvopedronis: I'm afraid so15:53
Chipacaso15:53
Chipacaone thing that would be less and more than *os.File15:54
Chipacais to expsoe the Fd :-)15:54
mvoChipaca: export it via an Fd() call?15:54
Chipaca(if that's complete nonesense then tell me so -- my pressur dropped and i ended up on the floor a few minutes ago so brain isn't fully engaged yet)15:55
Chipacayeah, add “Fd() int” to the interface15:55
pedronisChipaca: os.File has a a Fd() uintptr15:55
Chipacaeh, i don't mind which15:55
pedronismostly, didn't understand the more than *os.File bit of your comment15:56
Chipacait's rather silly, Fd() uintptr feels all low levelly, but then low level things take ints15:56
pedronisit's because of multi-platform15:56
Chipacapedronis: from one point of view it's more generic, as many things have fds, not just files (and not just *os.Files)15:56
mvoChipaca: I actually just need *os.File, but I can do the Fd() uint thing15:57
Chipacaeh, BackingFile works15:57
pedronisChipaca: os.File is not for files15:57
Chipacamvo: want me to whip it up?15:57
pedronisonyl15:57
pedronisit has a strange name tbh15:57
mvoChipaca: if its BackingFile() *os.File I have it almost ready,15:57
Chipacaone thing we could do if we were feeling pedantic is make it a separate interface15:58
Chipacaand check the interface15:58
mvoChipaca: but you are welcome of course, I will do the change in snap-secomp then and merge your commit there15:58
Chipacabut... feels too complicated :-)15:58
Chipacamvo: nah, go for it15:58
mvoChipaca, pedronis: thanks for your input15:58
Chipacai'm going to take 10 and lie down for a bit16:00
ogra_jdstrand, hmm, where did our mpris interface go ? (i seem to remember snap interfaces shoowing mpris before ... now i dont)16:00
ogra_*now i dont see it16:00
pedronisChipaca: get well!16:00
mvoChipaca: yeah, get well!16:00
zyga-ubuntuhmmmm16:01
zyga-ubuntufor whatever reason "mc" broke on me, all the keyboard navigation is broken and does odd things16:02
zyga-ubuntulike printing ".." all the time16:02
* zyga-ubuntu uses this as a sign to reboot 16:02
pedronismvo: did you find out more about those arm issues ?16:05
zyga-ubuntuoddly this worked16:05
mvopedronis: not yet, snapd-vendor-sync broke on us :( and that triggers those builds16:07
pedronis:/16:07
pedronismvo: do you want me to just bump those timeouts in #3991, it might be enough ?16:08
* zyga-ubuntu -> break16:08
mvopedronis: yeah, lets try that16:08
ogra_i bet you will find that the AI on arm is strong and that it knows that in Ubuntu you can not combine foo with 128 ... you can only combine seb with 128 here ...16:08
zyga-ubuntuwill be back to content and layouts soon16:08
ogra_:)16:08
pedronismvo: it also needs reviews btw16:08
mvopedronis: ok, will do either next or first thing in my morning16:11
pedronisnp16:13
pedronisI'll try to push some timeout bump there16:13
jdstrandogra_: mpris is not an implicit slot so you eed to have an application installed that slots mpris16:18
ogra_jdstrand, ah16:19
ogra_irritating (given it shows up as interface in the interface docs)16:19
jdstrandeg, vlc, gradio16:19
ogra_yeah, i was looking at the gradio thread when asking :)16:19
mupPR snapd#3908 opened: snap-seccomp, osutil: use osutil.AtomicFile in snap-seecomp <Created by mvo5> <https://github.com/snapcore/snapd/pull/3908>16:27
pedronismvo: pushed the timeout bump16:27
mvoackk: -^ this is the final PR16:27
mvopedronis: thanks a lot16:27
ackkmvo cool16:30
cachiomvo, there?16:41
cachioI see this issue in the dragonboard v16:41
cachiohttps://paste.ubuntu.com/25521952/16:41
cachiomvo, it is breaking the whole test suite on db16:42
cachioI'll skip that test16:43
cachioand rerun16:43
* zyga-ubuntu cleans his desk17:00
zyga-ubuntumost laptops off17:00
mupIssue snapcraft#1453 closed: nodejs plugin recording <designed> <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/issue/1453>17:21
mupPR snapcraft#1524 closed: node plugin: record the yarn.lock file <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1524>17:21
bschaeferif im on an sbuild amd64-armhf schroot how to i tell snapcraft to build an armhf package vs an amd64 one?17:22
* bschaefer sees --target-arch ARCH and tests that17:23
mupIssue snapcraft#1457 closed: remote per-project container <designed> <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/issue/1457>17:24
mupPR snapcraft#1302 closed: lxd: mount project folder via sshfs in case of a remote <Created by kalikiana> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1302>17:24
sergiusenstyhicks hey there! Mind taking a look at https://forum.snapcraft.io/t/record-machine-information-in-the-manifest/1961/2 ?17:24
tyhickssergiusens: hey! I'll try to have a look a little later this afternoon17:28
sergiusensthank tyhicks!17:28
tyhicksnp17:28
tyhicksratliff: ^ fyi17:28
ratliffthanks, tyhicks!17:29
mvocachio: hrm, hrm, so on the db network-manager did never stop?17:37
mupPR snapd#3906 closed: many: use snapcore/snapd/i18n instead of i18n/dumb <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3906>17:42
mupPR snapd#3907 closed: cmd/snapctl: allow snapctl -h without a context (regression fix) <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3907>17:45
cory_fuAre there any known issues with the "home" interface and trusty?  The strictly confined charm snap works fine on xenial, but on trusty I get a "bad system call" or "permission denied" when trying to access files under $HOME18:00
zyga-soluscory_fu: hey18:02
zyga-soluscory_fu: please tell me more, I'm cleaning my desk but I want do debug/fix this ASAP18:02
zyga-soluscory_fu: is your HOME on NFS?18:02
cory_fustokachu: ^18:02
cory_fuzyga-solus: It's on a MAAS cluster managed by stokachu, so looping him in18:03
zyga-solusstokachu: hey18:03
stokachucory_fu: zyga-solus they are local disks18:03
* zyga-solus will gladly help18:03
stokachunot NFS18:03
zyga-solusok18:03
zyga-soluscan you please show "snap version" and journalctl or the audit log actually18:03
zyga-solus(feel free to send to canonical pastebin)18:03
cory_fuzyga-solus: snap version: https://pastebin.ubuntu.com/25522377/18:04
zyga-soluswoah18:04
zyga-solussnapd   2.27.5~14.0418:04
zyga-soluswhat happened here?18:04
zyga-solusmvo: ^18:04
zyga-solussnapd doesn't reexec on 14.04 for some reason18:05
zyga-soluscory_fu: can you collect the system logs as well, most importantly audit log for the actual denial18:10
zyga-soluscory_fu: and snapd service logs for the lack or reexec please18:10
cory_fuzyga-solus: I'm not super familiar with debugging snaps.  What are the commands for the audit log?18:13
zyga-ubuntucory_fu: the system audit log should be ok (/var/log/syslog)18:14
zyga-ubuntu(well audit is logged there directly)18:14
zyga-ubuntu(on other distros it gets logged elsewhere)18:14
cory_fuzyga-solus: audit: https://pastebin.ubuntu.com/25522445/18:16
cachiomvo, it is a tests that was modified in master18:17
zyga-ubuntucory_fu: is this when you reproduce the error?18:17
cachiomvo, I think it was fixed for some reason18:18
cachiomvo, we should add all the test improvements for next beta on 2.28 if possible18:18
kyrofaWhat is the UI status on Ubuntu Core? Do we support wayland there yet?18:21
cory_fuzyga-solus: Well, that was just the lines that matched snap.charm.  If I tail -F the syslog and run the snap commands that fail (`charm create`, `charm build`, etc), nothing new shows up in the log despite the errors18:23
cory_fuzyga-solus: Also, how do I get the snapd service log?  I can't seem to find the proper service name18:23
zyga-ubuntucory_fu: hmm, not sure on 14.04 honestly18:23
zyga-ubuntucory_fu: since I'm EOD anyway please open a forum topic, I'll reproduce this first thing tomorrow18:24
zyga-ubuntucory_fu: just one more question18:24
cory_fuOk18:24
zyga-ubuntucory_fu: is this in the ephermeral environment18:24
zyga-ubuntucory_fu: or after installation?18:24
cory_fuzyga-solus: Not sure what you mean18:24
zyga-ubuntucory_fu: was the maas note netbooted18:24
cory_fuBut it's after I install the snap.  Then the charm commands from the snap don't work as they should18:24
zyga-ubuntucory_fu: is is this a vanilla 14.04 install on the disk18:24
cory_fustokachu: ^?18:25
zyga-ubuntucory_fu: I don't have maas at home so if I need to reproduce this, can I just use regular 14.04 system18:25
cory_fuzyga-solus: I believe so18:25
cory_fuzyga-solus: AFAIK it should just be a regular trusty system18:25
stokachuzyga-ubuntu: cory_fu yea these are cloud images18:25
zyga-ubuntuOK, thank you18:25
cory_fuOk18:25
zyga-ubuntustokachu: if you can add a link to the forum post, it will help me reproduce18:25
stokachuwhats the link to the forum post again?18:26
zyga-ubuntuforum.snapcraft.io18:26
stokachuoh i thought there was a post already18:26
cory_fuzyga-solus: Oh, I just realized I was watching the syslog on the wrong machine.  >_<18:26
zyga-ubuntu^_^18:26
* zyga-ubuntu stays tuned for more logs18:27
cory_fuzyga-solus: https://pastebin.ubuntu.com/25522507/18:28
zyga-ubuntuhmm, sadly the bad system call is not logged on 14.0418:29
zyga-ubuntuI'll reproduce and check18:29
zyga-ubuntucan you please include simple instructions about the snaps you've used?18:29
jdstrandroadmr: hey, can you sync r930 of the review tools? I've tested it a lot and expanded my local blackbox testing to include --json18:32
roadmrjdstrand: sure! will do18:33
jdstrandroadmr: but you may want to test a snap or two on staging. this has the change to put error()s into the error json when --json is specified18:33
zyga-ubuntujdstrand: I, for one, cannot wait for seccomp logging18:34
roadmrjdstrand: ok, thanks, I'll do more thorough than usual testing18:34
jdstrandroadmr: that should get rid of (almost) all cases of 'unexpected output'. there are a couple of other places in bin/click-review that could conceivably create non-json18:34
cory_fuzyga-solus, stokachu: https://forum.snapcraft.io/t/issues-with-strictly-confined-snap-charm-on-trusty/209818:35
zyga-ubuntuthank you18:35
jdstrandroadmr: but those cases are quite unlikely18:35
cory_fuzyga-solus: Thanks for your help.  Have a good evening!18:35
jdstrandzyga-ubuntu: we have seccomp logging today. what we don't have is not killing plus logging18:37
jdstrandzyga-ubuntu: you're probably seeing kernel rate limiting.18:38
jdstrandzyga-ubuntu: I've been using this: alias tail_journalctl='sudo sysctl -w kernel.printk_ratelimit=0 ; journalctl --follow'18:38
zyga-ubuntujdstrand: I think it's not working at all on 140418:39
zyga-ubuntujdstrand: logging (journald) is just absent there entirely18:39
jdstrandthe first disables rate limiting (though it can still happen...) and the latter seems to not have things drop as often. maybe I'm imagining things there18:39
zyga-ubuntujdstrand: I'm familiar with rate limiting, though I don't think we've hit it here18:39
jdstrandzyga-ubuntu: the 1404 lts kernel is (nearly?) identical to xenial18:40
zyga-ubuntujdstrand: it's identical but userspace parts are not18:40
jdstrandzyga-ubuntu: perhaps rsyslog stopped logging altogether. I've seen that. try logger18:40
zyga-ubuntujdstrand: AFAIK we're not loggged at all on 14.0418:40
zyga-ubuntujdstrand: systemd starts snapd18:40
zyga-ubuntujdstrand: but it's not integrated with regular syslog18:41
zyga-ubuntujdstrand: so on 14.04 logs are just lost (from snaps and snapd)18:41
jdstrandI see18:41
jdstrandwell, that is different than 'seccomp logging' of course :)18:41
jdstrandseems need to wire that all up18:42
jdstrandI have to believe that the snapd systemd is getting the messages-- just need to shove them into rsyslog18:42
jdstrandbut, apparmor and seccomp should log cause that is coming from the kernel, not snapd18:43
roadmrjdstrand: so with these latest changes - if there's a stray /tmp/blahblah, what'll be the exit code? will it exit with 1?18:43
roadmr(or is that considered a non-fatal condition and exits with whatever the actual review outcome was?)18:43
jdstrandand if they aren't, either it is rate limiting or rsyslog isn't logging (again, I've witnessed that)18:43
jdstrandroadmr: are you talking about the reaping code?18:44
roadmrjdstrand: yes, which I think is the one spitting out those "error can't find /tmp/whatever" which is what was confusing sca18:44
jdstrandroadmr: if so, it try's to remove the dir, if there is any exception, it logs via syslog18:45
roadmrnice18:45
jdstrandroadmr: but that is unchanged from r922 that is in prod now18:45
jdstrandroadmr: I thought you said before that that issue was resolved for a week or more?18:47
roadmrjdstrand: yes, we haven't seen that recently18:48
jdstrandroadmr: we had that one snap that had 'unexpected output' a few times, but no other issues (the sync today is meant to give us insight into what happened with that snap)18:48
jdstrandroadmr: ok, cool18:48
roadmryep, that's what I meant :) thanks!18:48
zyga-ubuntujdstrand: thank you for checking that systemd thing in my PR, looks like (oddly) a regression in master18:55
zyga-ubuntujdstrand: did you have a chance to look at the changes I made since your previous review?18:58
om26erHi! with snapd-control interface connected, can I talk to the snapd unix socket ?19:03
om26ercurrently even checking if that path exists (with snapd-control) says permission denied19:04
om26erzyga-ubuntu: ^19:04
om26ermy snap will install/remove/refresh/list snaps remotely, so need to talk to the snapd daemon.19:06
om26ers/daemon/unix-socket19:06
jdstrandzyga-ubuntu: dude19:09
jdstrandzyga-ubuntu: :)19:09
jdstrandzyga-ubuntu: I'm moving to it now. note, it still needs a deep audit of bootstrap.c19:10
kyrofajdstrand, do you know the current status of wayland on Ubuntu Core?19:13
kyrofaOr is mir still the one used there?19:14
jdstrandkyrofa: mir-kiosk. no slot side policy for wayland yet (and thus no wayland snap)19:15
kyrofajdstrand, okay, thank you19:15
jdstrandkyrofa: note, nobody afaik is assigned to create a wayland slot implementation19:15
kyrofajdstrand, exactly the info I needed19:15
kyrofaogra_, any chance you're around?19:37
zyga-ubuntuom26er: yes, you must just connect to it19:47
kyrofajdstrand, we don't have a can bus interface, right?19:47
zyga-ubuntujdstrand: thank you :)19:47
jdstrandkyrofa: correct. I'll note apparmor and snap-seccomp understand AF_CAN so an interface shouldn't be terribly difficult19:49
kyrofajdstrand, good, just checking. No LIN interface either? I'm not very familiar with that one: my research says no, but I want to make sure it's not covered by something else19:50
jdstrandkyrofa: I'm going to say 'no' since I've never heard of LIN :P19:51
kyrofaSounds about right! Thanks jdstrand :)19:51
jdstrandkyrofa: more seriously. no, no LIN yet19:51
zyga-ubuntujdstrand: corrected the two remarks19:51
zyga-ubuntukyrofa: wow, can and lin19:51
zyga-ubuntukyrofa: are you making a car?19:52
zyga-ubuntusnap install wheel19:52
kyrofazyga-ubuntu, responding to someone who is19:52
jdstrandkyrofa: seems that might be lumped in with CAN if one was doing it, but of course would have to research/review the implementation19:52
bschaeferhmm seems a new core update 2913 and im getting:19:55
bschaeferSep 12 08:43:53 localhost kernel: [    5.209208] vc4-drm soc:gpu: failed to bind 3f902000.hdmi (ops vc4_hdmi_ops [vc4]): -51719:55
bschaeferSep 12 08:43:53 localhost kernel: [    5.217788] vc4-drm soc:gpu: master bind failed: -51719:55
zyga-ubuntuI should take a break19:57
bschaeferogra_, ping if you're around :) (seems to be some vc4/kernel issues)20:03
bschaeferno /dev/dri20:03
zyga-ubuntubschaefer: is this a stable core snap?20:07
bschaeferi was on an edge image20:08
bschaeferhttp://cdimage.ubuntu.com/ubuntu-core/16/edge/current/20:08
bschaeferand core just bumped up to core        16-2.27.6+git365.f5f40b0  2913  canonical  core20:08
bschaefer(or so it seemed to have updated where it wasnt before as ive been reflashing that image all day)20:08
bschaeferjust reflashed before core updates20:19
bschaefercore        16-2.27.6+git363.8fc1b40  2897  canonical  core20:19
bschaeferseems happy with vc420:19
zyga-ubuntuexit21:36
=== jkridner|pd is now known as jkridner
niemeyerjdstrand: Still around?22:39
mupPR snapd#3903 closed: tests: change regex used to validate installed ubuntu core snap <Created by sergiocazzolato> <Merged by sergiocazzolato> <https://github.com/snapcore/snapd/pull/3903>22:46
jdstrandniemeyer: only for a moment. still working through 3621 (should be done tomorrow, got sidetracked by some high priority stuff, but back to 3621)22:59
niemeyerjdstrand: Yo22:59
niemeyerjdstrand: Any chance of a quick review for a name req?22:59
jdstrandniemeyer: I don't usually do name requests... /me would have to look up how to do that23:00
niemeyerjdstrand: Was hoping to have a call with zyga and you today, but we can do that tmorrow23:00
jdstrandniemeyer: what is the name and what do you want done with it?23:00
niemeyerjdstrand: Ah, sorry, np23:00
jdstrandok23:00
jdstrandniemeyer: is the call about 3621?23:00
niemeyerjdstrand: Yeah, I think so23:01
jdstrand(snap-update-ns)23:01
niemeyerYeah23:01
niemeyerjdstrand: Who usually approves names?23:01
jdstrandif the call is about the status, I'll have my final review done tomorrow. there won't be any blockers, but will have requested changes23:01
niemeyerjdstrand: Super, thanks23:02
jdstrandniemeyer: I feel like it's the store team or possibly advocacy. noise][ and nessita or ev would be who I personally would go to23:02
niemeyerjdstrand: Ack, thanks23:06

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