/srv/irclogs.ubuntu.com/2018/02/13/#snappy.txt

mupPR snapcraft#1924 opened: schema: update version regex <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/1924>00:06
mupPR snapcraft#1836 closed: Update test_export_login.py <codein> <Created by heesen3> <Closed by kyrofa> <https://github.com/snapcore/snapcraft/pull/1836>00:15
mupPR snapcraft#1846 closed: go plugin: remove confusing importpath message <codein> <Created by Nissaar> <Closed by kyrofa> <https://github.com/snapcore/snapcraft/pull/1846>00:21
=== ahoneybun_ is now known as ahoneybun
mborzeckimorning06:09
zyga_good morning06:57
=== zyga_ is now known as zyga
mborzeckizyga: hey06:57
zygaman, I was so useless yesterday06:58
zygamaybe the weather is getting to me :/06:58
zygachihchun_afk: I hope we don't make any core snap invalid wrt version validation now07:06
mborzeckizyga: do you have any ideas about https://github.com/snapcore/snapd/pull/4647#issuecomment-365171068 ?07:11
mupPR #4647: cmd/snap: fix UX of snap services <Created by niemeyer> <https://github.com/snapcore/snapd/pull/4647>07:11
zygagood morning niemeyer :)07:11
zygaJob for snapd.socket canceled.07:11
zygahmm, we've seen that countless times07:12
zygaI don't remember what that is off the top of my head07:12
mborzeckizyga: right, i suspect that's somewhat related to snapd going down with sigpipe, getting restarted automatically and us trying to stop snapd.service and snapd.socket07:13
mvoits only 14.04, right?07:15
zygaI wonder if we can reproduce that on a simpler service07:15
zygamvo is it?07:15
mborzeckimvo: yes07:16
mvothe job canceled? yes - I only saw it on 14.04 so far07:16
mvoI think its a bug in the old systemd we use there07:16
zygahey mvo :)07:16
zygasome random bug report07:18
zygahttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=76820807:18
zygaare we still shutting down snapd.service before snapd.socket?07:18
zygahmmm07:18
mborzeckithe timers are stopped before the tests?07:21
zygaI don't recall07:22
zygaI think we set the schedule (internal one)07:23
zygaI don't know if we do something about the timers07:23
mupPR snapd#4653 closed: all: snap versions are now validated <Created by chipaca> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/4653>07:45
mupPR snapd#4648 closed: debian, snap: only static link libseccomp in snap-seccomp on ubuntu <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4648>07:54
mupPR snapd#4650 closed: daemon: allow `snapctl get` from any uid <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4650>07:55
mupPR snapd#4654 opened: tests/lib/prepare: disable snapd.refresh.timer <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/4654>08:00
mborzeckilet's see if this makes any difference in the long run08:00
mvomborzecki: thank you08:13
kalikianasliff08:17
zygamborzecki thanks!08:28
mborzeckimvo: we need to keep an eye on the strace spread tests, i saw it reaching kill-timeout in john's pr, maybe there's some syscall, that we haven't accounted for, that's causing issues08:40
mvomborzecki: yeah, definitely, is there any trace in that PR where it hangs?08:44
mvomborzecki: we might need to blacklist more08:44
mborzeckimvo: it stopped in tests/main/snap-run, this line: `snap run --strace test-snapd-tools.echo "hello-world" >stdout 2>stderr`08:46
mborzeckithe next line was kill-timeout reached08:46
mvomborzecki: is it killed eventually?08:46
mvomborzecki: hm, do we get debug output on kill? if so we need to add the last lines of stderr. if not we need to talk to gustavo08:47
mborzeckiit was the only test that failed, so i hope it was killed08:47
mvoxnox: hey, if you are around I would love to talk about 174900008:47
mupPR snapd#4647 closed: cmd/snap: fix UX of snap services <Created by niemeyer> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4647>09:10
mupPR snapd#4625 closed: daemon: remove redundant UserOK markings from api commands <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4625>09:15
mupPR snapd#4633 closed:  snap: introduce  timer service data types and validation  <Created by bboozzoo> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4633>09:15
mupPR snapd#4654 closed: tests/lib/prepare: disable snapd.refresh.timer <Created by bboozzoo> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4654>09:16
* Chipaca realises he made life harder for himself with #465309:18
mupPR #4653: all: snap versions are now validated <Created by chipaca> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/4653>09:18
* Chipaca shakes fist at self09:18
mupPR snapd#4615 closed: overlord/snapstate/backend: perform cleanup if snap setup fails <Created by bboozzoo> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4615>09:22
mborzeckisystemd timers are confusing, our timers are confusing too, ergo probably all timers are confusing09:27
mvomaybe like make systems? I need to find one I actually not dislike still09:32
Chipacamborzecki: no no, you need to find a random timer, base a timer on it, and if you can prove it's confusing just from that, you've got the 1 case and the n+1 case and you can deduce the all-of-em case09:32
* Chipaca can feel his maths prof glaring at him right now09:33
mborzeckiChipaca: iirc you need n, n+1, n+2 samples to infer anything :)09:33
mborzeckianyways, looks like the timer services will be a mix of systemd (to fire a timer helper regularly) and snapd (to keep the state) :/ and that makes me a bit uneasy09:35
mvomborzecki: yeah, I am not sure we should rely on systemd available. we don't do that in e.g. snap run as well (made a concious effort to not depend on a running snapd there)09:36
mvomborzecki: eh09:36
mvomborzecki: sorry, snapd being available09:36
mvomborzecki: systemd of course (freudian slip ;)09:36
mborzeckimvo: on one hand systemd can activate timers on regular intervals, but it's timer syntax is limited, eg. our 10:00-12:00 means 'happens once between 10am and 12am', once/between part cannot be expressed in systemd.time syntax, their events happen at specific time, eg. 10:00, as a workaround we could translate our timer to multiple oncalendar events every eg. 10minutes, then when running the service check if09:43
mborzeckiit already ran in the interval and do nothing or let it do its work09:43
mvomborzecki: yeah, I think we need a helper (not necessarily snapd) and we write a systemd timer that runs e.g. every 10min, passes the time string to the helper and the helper keeps the state when to fire09:45
mvomborzecki: I think this is pretty much what you described, right?09:46
mborzeckimvo: yup09:46
mvogreat09:47
mborzeckimvo: wonder if we could have like a templated oneshot service that gets activated by the timer09:47
mvomborzecki: yeah, that could work09:51
mupPR snapd#4655 opened: osutil: add and update docstrings <Created by zyga> <https://github.com/snapcore/snapd/pull/4655>10:14
Chipacahmmm10:17
Chipacathere's a failing test on master10:17
mborzeckiChipaca: which one?10:18
Chipacamborzecki: systemKeySuite.TestInterfaceSystemKey in interfaces/10:18
zygaoh10:21
zygaChipaca link?10:21
Chipacazyga: on master10:21
mborzeckiChipaca: looks green to me10:21
Chipacazyga: like, on my box, right here10:21
* zyga runs10:21
Chipacabecause the test is looking at _my fstab_10:21
ChipacaWTF10:21
zygaChipaca aah10:21
zygamissing mocking10:22
Chipaca*my* fstab10:22
zygawhich test fails?10:22
Chipaca*mine!*10:22
* Chipaca hugs it to his chest10:22
Chipacasshhh, shhh, i won't let the nasty hacker hurt you10:22
Chipacazyga: systemKeySuite.TestInterfaceSystemKey10:22
Chipacazyga: also, i'll have you know “none /tmp tmpfs” is a perfectly valid fstab entry :-)10:23
zygaoptional options10:23
zygaChipaca so what's your fstab like10:26
zygaI'll fix the parser10:26
zygaan can you please check if 4656 fixes it for you?10:26
Chipacazyga: I'd also rather it didn't look at the real fstab10:27
mupPR snapd#4656 opened: interfaces: mock away real mountinfo/fstab <Created by zyga> <https://github.com/snapcore/snapd/pull/4656>10:27
Chipacaah10:27
* Chipaca fetches zyga10:27
Chipacazyga: I can confirm it doesn't fix it10:28
* Chipaca runs it again to make sure10:28
zygaso what did you add to your fstab, I can test quickly locally to get this to work10:28
Chipacauhhhh10:30
Chipacazyga: so10:30
Chipacazyga: you're doing the mocking wrong10:30
Chipacabadly wrong in fact10:30
Chipacazyga: if you do10:30
Chipacadefer osutil.MockMountInfo("")()10:30
Chipacain SetUpTest10:30
zygaman10:31
zygaI see now10:31
Chipacathat'll get un-mocked at the exit of SetUpTest10:31
zyga:D10:31
Chipaca:-)10:31
zygasorry :10:32
zyga:)10:32
zygaChipaca force pushed10:33
Chipacazyga: mucho bettero10:34
Chipacazyga: I miss python's ability to make callable lists10:37
Chipacabut only sometimes10:38
zygacallable lists?10:38
Chipacazyga: you can pop a __call__ on anything10:38
zygaas in class funky(list) def __call__(self, *args, **kwargs): for fn in self: fn(*args, **kwargs)10:38
Chipacazyga: yep10:39
Chipacazyga: or return [i(*a, **kw) for i in self]10:39
mupPR snapd#4521 closed: many: move /lib/udev/snappy-app-dev to /usr/lib/snapd/snappy-app-dev <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4521>10:43
mvohm, 4491 needs a second review pretty please10:43
zygaChipaca one more for you 465710:43
zygamvo I'll do it10:44
mupPR snapd#4657 opened: osutil: parse mount entries without options field <Created by zyga> <https://github.com/snapcore/snapd/pull/4657>10:44
Chipacazyga: welll.....10:44
zygayes?10:45
* Chipaca tries10:45
Chipacaah10:45
* Chipaca tries harder10:46
Chipacazyga: let me get an example that breaks10:46
Chipacazyga: nothing, 's fine10:50
Chipacazyga: :-) good10:50
Chipacazyga: #4656 green10:58
mupPR #4656: interfaces: mock away real mountinfo/fstab <Created by zyga> <https://github.com/snapcore/snapd/pull/4656>10:58
mupPR snapd#4656 closed: interfaces: mock away real mountinfo/fstab <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/4656>10:59
zygaok  github.com/snapcore/snapd/x110.004s11:09
Chipacazyga: can all tests be that fast? kthx11:12
Chipacazyga: are there cases where ParseMountEntry fails but you still need to use the (partial) MountEntry it returns?11:13
zygano, I don't think so11:14
zygawe only read stuff we wrote (which has a fixed format) and when we read /etc/fstab11:14
zygabut when we read fstab we AFAIR ignore errors11:14
Chipacaignore errors -> if it fails you still use the returned MountEntry?11:15
zygano11:17
zygaI mean if we cannot determine if you're on NFS we just assume you are not and carry on11:17
Chipacamvo: have you seen #1747272?11:33
mupBug #1747272: Polkit dialogs of snapd are not translatable <l10n> <patch> <Ubuntu Translations:New> <snapd (Ubuntu):In Progress by gunnarhj> <https://launchpad.net/bugs/1747272>11:33
mupPR snapd#4657 closed: osutil: parse mount entries without options field <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/4657>11:33
Chipacamvo: it has a patch ;-)11:33
zygamvo reviewed 449111:51
mupPR snapd#4655 closed: osutil: add and update docstrings <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/4655>11:51
mupPR snapd#4658 opened: many: don't allow layout construction to silently fail <Created by zyga> <https://github.com/snapcore/snapd/pull/4658>12:06
* kalikiana going for a short break12:19
popeymborzecki: heya! What's the plan for updating snapd in opensuse? (I may have missed a conversation about this previously, sorry).12:21
popey(it's outdated and causes some modern snaps to not function)12:21
Son_Gokupopey, there's an openSUSE guy working on rebasing snapd based on the Fedora packaging12:34
Son_GokuI'm helping him with it12:34
popey<3 thanks Son_Goku12:36
popeythat's great to hear12:36
zygaSon_Goku what is his name?12:36
Son_Gokupopey: a big part of the problem is that the current snapd packaging doesn't comply fully with guidelines to get into Factory (the main entrypoint for the SUSE distribution)12:37
zygaSon_Goku please send him here, it will be easier to coordinate12:37
popeyfeel free to poke me if there is anything to test, we have copious vms here12:37
Son_Gokuzyga: he has been here before12:37
Son_Gokuyou should already know him12:37
zygasorry, I don't recall12:37
Son_Gokuhurricanehrndz12:37
zygathank you12:38
zygaI invited him here12:39
Son_Gokuhe's already been here...12:39
mvoChipaca: thanks for the pointer to the dialogs12:39
Son_Gokupopey: will do12:42
mupPR snapd#4659 opened: snap: improve the version validator's error messages <Created by chipaca> <https://github.com/snapcore/snapd/pull/4659>12:50
Chipaca^ RFC PR about snap version validation error messaging12:50
mupPR snapd#4660 opened: systemd: update comment on SocketsTarget <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/4660>13:05
mborzeckitrivial PR ^^13:05
GunnarHjHi zyga, do you have some time for bug #1747272? I have attached two alternative patches, showing the idea for a solution, but I'm not able to test it properly (don't know how to build snapd).13:10
mupBug #1747272: Polkit dialogs of snapd are not translatable <l10n> <patch> <Ubuntu Translations:New> <snapd (Ubuntu):In Progress by gunnarhj> <https://launchpad.net/bugs/1747272>13:10
zygahey13:10
zygaGunnarHj I think mvo here worked on an alternative patch13:10
zygaGunnarHj I myself haven't touched thay yet13:10
zyga*that13:10
mborzeckizyga: close enough? https://4.bp.blogspot.com/-NrtzlHIkl24/Vb5EXABEWbI/AAAAAAAAmeM/4qeOSmXcrp8/s1600/deadmau5-lamborghini-puracan-huracan-nyanborghini.jpg13:11
zygaI think the idea is to really link dynamically by default and do special magic where we need to13:11
GunnarHjzyga: Ah, great! mvo ^ ?13:11
zygamborzecki nyan cat!13:11
zygahmm13:12
zygainteresting failure13:12
zyga+ test-snapd-tools.env. execl failed: Permission denied13:12
zyga[Tue Feb 13 13:03:14 2018] audit: type=1400 audit(1518526994.091:78435): apparmor="DENIED" operation="exec" profile="/snap/core/4060/usr/lib/snapd/snap-confine" name="/usr/lib/snapd/snappy-app-dev" pid=4025 comm="snap-confine" requested_mask="x" denied_mask="x" fsuid=0 ouid=013:13
zygamvo ^ is this what I think it is13:13
zygafallout of that branch you merged a moment ago?13:13
mvozyga: I don't know (yet)13:13
zyga    /usr/lib/snapd/snappy-app-dev ixr, # drop13:14
zygawe have this rule13:14
mvozyga: oh, right13:14
zygabut it feels like this was not what was on disk13:14
zygahttps://github.com/snapcore/snapd/pull/465813:16
mupPR #4658: many: don't allow layout construction to silently fail <Created by zyga> <https://github.com/snapcore/snapd/pull/4658>13:16
* Chipaca gives zyga a quick intro course to advance mathematics concepts such as "1 != 0"13:18
Chipaca:-D13:18
zygaChipaca what? :D13:19
Chipacazyga: https://github.com/snapcore/snapd/pull/4659#discussion_r16785867213:20
mupPR #4659: snap: improve the version validator's error messages <Created by chipaca> <https://github.com/snapcore/snapd/pull/4659>13:20
zygahh13:20
zygad'oh :)13:20
zygathanks for pointing that out13:20
Chipaca:-)13:21
ChipacaTBH the "you can slice this way, you can slice that way, but you can't slice both ways at once" catches me out quite often13:21
mvojdstrand: when you have a moment, a re-review of 4652 would be great, should be super easy (much smaller now)13:21
Chipacazyga: "which character violated the regular expression" returns a universe13:22
* zyga breaks for quick lunch13:24
zygamvo let's trace that error in 30 min13:24
mvozyga: yeah, I think there is more broken in master right now13:26
* kalikiana lunch13:29
jdstrandmvo: done. fyi, tyhicks and I aren't super excited by the upstream dbus change and will review if it can be improved. I don't know what will happen there, so just fyi13:57
jdstrandzyga, mvo: re /usr/lib/snapd/snappy-app-dev: what's going on there-- that sounds like it would've come from my go rewrite branch (that I've been unable to circle back to, but will eventually)13:59
zygajdstrand yes, that branch landed13:59
jdstrandmy branch landed?13:59
zygaand we have issues now13:59
* jdstrand needs to check email :)13:59
zygano, that's the mv branch13:59
zygasorry, not the rewrite branch13:59
jdstrandok13:59
jdstrandyes, will, if you move it, you definitely need to adjust the snap-confine profile13:59
mvojdstrand: my branch that just puts it into a different place landed14:00
mvojdstrand: this is to fix a bug with core1814:00
jdstrandsnappy-app-dev is called by udev during hotplug/unplug events and by snap-confine for device cgroups wrt interface connections14:00
mvojdstrand: the rewrite is (AFAICT) orthogonal14:00
zygajdstrand we adjusted the profile too but something is broken still14:00
jdstrandmvo: yes, it would be orthogonal, but there was talk of incorporating the move, so I was confused for a sec14:01
jdstrandwhere's the PR?14:01
jdstrandor rather, where is the failing test?14:01
mvojdstrand: aha, ok14:02
zygajdstrand https://github.com/snapcore/snapd/pull/465814:03
mupPR #4658: many: don't allow layout construction to silently fail <Created by zyga> <https://github.com/snapcore/snapd/pull/4658>14:03
zygathe last commit fails on this now14:03
zyga(have a look at the PR as well)14:03
jdstrandso, it seems there is an issues applying the changed profile14:08
jdstrandin the testsuite14:08
jdstrandprofile="/snap/core/4060/usr/lib/snapd/snap-confine": that needs to have the new '/usr/lib/snapd/snappy-app-dev ixr,', but for some reason it doesn't14:09
jdstrandzyga: did you maybe pull in the change to move the binary but not the change to the profile?14:10
zygano, I didn't do anything actually, this branch is unrelated14:10
jdstrandI don't know how all this landed14:10
zygaand we simply merged master elswehre14:10
zygaI meant "merged to master elsewhere"14:11
zygaI'm checking if this is reproducible now14:11
jdstrandwell, there is a testsuite issue with generating snap-confine.apparmor14:11
jdstrandsnap-confine.apparmor is not getting cached somehow, is it? is snap-confine.apparmor.in being used on every spread run?14:12
zygawe now create and destroy machines for each spread run, I doubt there is something stale there14:13
jdstrandI didn't phrase tha well. when spread pushes the code to the node, is snap-confine.apparmor being regenerated at the right time from snap-confine.apparmor.in?14:13
zygathe push runs on a fresh machine14:13
zygathe whole build / install / test cycle is followed14:14
jdstrandzyga: right, but *perhaps* snap-confine.apparmor is on the host and being preferred over regenerating it from snap-confine.apparmor.in14:14
jdstrandI don't know, just trying to think through where it could break down14:14
zygawell, it _may_ be but we reinstall the package (which loads the profile) and then you can see this is the profile from reexec14:14
zygahmm14:14
zygaone idea is that we compute the reexec profile from something stale / old14:15
zygabut ... not sure how14:15
jdstrandzyga: but that line of thought is, you have snap-confine.apparmor, you pull from master something that changes snap-confine.apparmor.in, you run spread, snap-confine.apparmor isn't regenerated14:15
zygaI ran spread again locally, let's see if I can hit this14:15
zygaif that were (simply) true it would fail for any profile modification and we ran into those14:15
jdstrandzyga: a package reinstall could complicate things too, yes14:16
zygain any case, I'm looking, not sure what the fault is yet14:16
jdstrandzyga: eg, you generate the profile, load it, then (re?)install the package14:16
zygayep, that's what roughly happens14:16
zygawe build snapd, install that package14:16
zygarepackage core to include that new snapd14:16
zygaand then go14:16
zygaand repackaged snapd conta14:16
zygaoh14:16
zyga:D14:16
zygamaybe we don't replace this binary correctly14:17
jdstrandthe binary is using /usr/lib/snapd-snap-confine14:17
jdstrandbut the profile isn't allowing it14:17
zygahmm14:17
jdstrandso there is something happening where they didn't end up in sync in the testsuite14:17
mborzeckii'm off to pick up the kids14:21
zygajdstrand reproduced14:22
ikeyboy or girl? congrats either way14:22
* ikey walks out14:22
* Chipaca hugs ikey 14:22
ikey^^14:23
zygahttp://paste.ubuntu.com/p/v9rPYyH44b/14:23
zyga[  477.039513] audit: type=1400 audit(1518531578.798:45): apparmor="DENIED" operation="exec" profile="/snap/core/4060/usr/lib/snapd/snap-confine" name="/usr/lib/snapd/snappy-app-dev" pid=13872 comm="snap-confine" requested_mask="x" denied_mask="x" fsuid=0 ouid=014:23
zyga    /lib/udev/snappy-app-dev ixr, # drop14:23
zygathis is the rule on disk (in /etc/apparmor.d/snap.core.4060.usr.lib.snapd.snap-confine)14:24
zygajdstrand I think I get it14:24
zygalinode:ubuntu-16.04-32 /snap/core/current# find -name snappy-app-dev14:25
zyga./lib/udev/snappy-app-dev14:25
zyga./usr/lib/snapd/snappy-app-dev14:25
zygathe repackaged core snap has this inside:     /usr/lib/snapd/snappy-app-dev ixr, # drop14:25
zyga*hmm*14:27
zygaone more idea14:29
zygajdstrand the preserved project state contains the stale profile14:30
zygajdstrand the tarball we create in tests14:31
zygasnapd-state.tar.gz14:31
zygathen snapd doesn't regenerate the profile14:31
zygaI'll look at fixing this14:31
* kalikiana re14:35
zygahttps://securelist.com/zero-day-vulnerability-in-telegram/83800/ <- interesting14:41
jdstrandzyga: cool, nice find14:42
jdstrandzyga: this will help anyone touching the snap-confine profile :)14:42
mvozyga: thanks for finding this!14:49
mupPR snapd#4660 closed: systemd: update comment on SocketsTarget <Created by bboozzoo> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4660>14:55
ogra_jdstrand, https://forum.snapcraft.io/t/bin-sync-not-allowed/3988/115:00
Nissaarim packaging the nodejs snap 'POKEMON SHOWDOWN', here is the .aml file and the issue im facing: https://paste.ubuntu.com/p/PjV9tgDr24/15:03
zygaError: Command failed: git merge-base master HEAD15:04
zygayou need to put git inside your snap15:04
Nissaaruhmmm how ?15:04
ogra_add a build-packages entry15:05
ogra_and add git to it15:05
Nissaarin 'parts' section ?15:05
ogra_yes15:05
ogra_https://github.com/snapcrafters has a ton of example snaps you can steal from :)15:05
Nissaarlike this https://paste.ubuntu.com/p/jRzqwK96rk/ ?15:07
jdstrandogra_: yes, I saw. responded15:19
ogra_yeah, i saw too, thanks !15:19
mupPR snapd#4652 closed: tests: fix spread test failures on 18.04 <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4652>15:40
mupPR snapd#4491 closed: snap: allow options for --strace, e.g. `snap run --strace="-tt"` <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4491>15:44
Nissaarhttps://paste.ubuntu.com/p/vqFY5HVxDZ/ this is my new yaml15:46
Nissaarhttps://paste.ubuntu.com/p/mXwf4N2C8D/15:46
Nissaarthe error is the same15:47
Nissaari have added stage-packages: [git]] to the yaml15:48
mupPR snapd#4661 opened: snap: improve `snap run` comments/naming <Created by mvo5> <https://github.com/snapcore/snapd/pull/4661>15:48
ogra_Nissaar, and the snap did build fine ? no errors or anything ? (how did you create it before using "snap run" )16:03
ogra_(you should theroetically not actually need build-packages: [ git ], snapcraft should care for it on its own when building)16:04
Nissaarogra: https://docs.snapcraft.io/build-snaps/node16:06
Nissaarhttps://paste.ubuntu.com/p/vqFY5HVxDZ/16:06
ogra_and there were no errors when you did build it ?16:06
Nissaarused the example form the 1st link to edit the snapcraft.yaml in the 2nd one16:07
ogra_yeah, the snapcraft.yaml looks basically sane (at least to build a proper node based snap from it)16:07
ogra_do you have a log of the build ?16:09
Nissaarogra_: https://paste.ubuntu.com/p/25zR3JDhHY/16:12
Nissaarhere it is16:12
ogra_ah, it seems that your snap actually uses git internally at runtime16:13
ogra_change "build-packages:" to "stage-packages:"16:13
ogra_re-build and it should finr git16:13
ogra_*find16:13
Nissaarim on it16:14
greybackzyga: gentle reminder you've been asked a question in my PR: https://github.com/snapcore/snapd/pull/454516:16
mupPR #4545: interfaces/x11: allow X11 slot implementations <Created by gerboland> <https://github.com/snapcore/snapd/pull/4545>16:16
=== nacc_ is now known as nacc
zygagreyback ack, I didn't notice. that16:17
greybackno worries16:17
zygaI'll finish fixing master and then switch to this16:17
mupPR snapd#4662 opened: tests: removing packages which are not needed anymore to generate random data <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/4662>16:21
zygamvo, almost done with that fixx16:59
* kalikiana out for the day17:10
jdstrandogra_: hey, so twice I've seen the bbb refresh the core snap in the background and drop to a uboot shell. If I type 'reset' it boots. have you seen this?17:14
ogra_nope17:14
ogra_any errors ?17:14
jdstrandwhen? before the uboot? no17:14
ogra_well, yeah, on serial typically17:15
jdstrandI connected serial to type 'reset'17:15
ogra_"in" uboot ...17:15
jdstrandthere was nothing before the prompt17:15
ogra_yeah, i guess serial wont show you the backlog17:15
jdstrandI'm refreshing the core snap and will reboot with serial connected17:16
jdstrandit'll probably work fine17:16
ogra_if there was an error it would show between u-boot starting and the showing of the prompt17:16
* jdstrand nods17:16
jdstrandogra_: yep booted fine. that's what happened in december17:19
ogra_it is very likely that the refresh failed somehow ... what i can do is to force CONFIG_RESET_TO_RETRY and "CONFIG_BOOT_RETRY_TIME  5" in the uboot build, that way it would auto-reboot after 5 sec on the uboot prompt17:19
jdstrandogra_: I guess I'll continue to keep an eye on it17:19
jdstrandogra_: that would be good17:20
ogra_... but that makes development really annoying since it will *always* reboot after 5sec ... even if you are interacting with the prompt17:20
jdstrandogra_: cuase it looked like th refresh did fail. when I 'reset' I went into an old core17:20
jdstrandogra_: 60 seconds would've been fine in this case17:20
zygamvo it turned out larger but I'm sure you will like it :)17:20
zygajdstrand and you too ;)17:21
zyga:-)17:21
ogra_(the question is if there are actually people developing on that level)17:21
jdstrandI use this as a little armhf build machine17:21
jdstrandand I went to login to it and it was down17:21
jdstrand(actually, I knew it was down cause of nagios ;)17:21
ogra_yeah, 60sec sounds mildly sahe17:21
ogra_*sane17:21
jdstrandogra_: 300? :)17:21
ogra_haha17:22
jdstrandI really don't care much. if I could ssh in and debug after noticing it went down and reboot, that would work for me17:22
jdstrandthis happened in the middle of the night17:22
ogra_for actual bootloader development people can defintely just turn it off and rebuild the gadget17:22
jdstrandanyway, whatever timeout you think is good wfm17:22
ogra_(the option that is)17:23
ogra_yeah, i''ll add that17:23
jdstrandthanks!17:23
ogra_you will need a fresh install though17:23
ogra_since we still dont have gadget upgrades :P17:23
ogra_(or do we and i missed that ?)17:23
jdstrandreally? I thought we just didn't on rpi2 (and I thought that was because of lack of promotion due to the underlying issues...)(17:24
jdstrandI have no idea tbh17:24
jdstrandogra_: I'm still on r117:24
jdstrandthat's all there seems to be17:25
ogra_me neither ... since i moved to CE i'm to busy with actual customer stuff to follow this17:25
* jdstrand shrugs17:25
jdstrandheh17:25
jdstrandwell, if you upload the gadget to the store, I can try. if it blows up, I'll regenerate17:25
jdstrandzyga: cool!17:25
ogra_jdstrand, i'll let you know ... (not tonight anymore though ... )17:26
jdstrandogra_: sure. thanks again :)17:27
ogra_well, thanks for reporting :)17:27
jdstrand:)17:29
Chipacahrmph, just realised we can't go with our usuall "Noun verbed" for the 'check-snapshot' verb17:38
Chipacamaybe the verb is wrong, or english is terrible :-)17:38
Chipaca"Snapshot 42 checked." leaves you going "...and? what do I _have_, doctor?!?"17:39
Chipaca"your blood results came back" "..." "sit down" "...?" "cuppa tea?" <dies> "no sugar then"17:40
kyrofaShould that be "verify" instead?17:41
kyrofaThe meaning of "check" is indeed overloaded17:41
kyrofaOr rather, you could be checking something for numerous reasons17:41
ogra_depends on the $$$ really17:41
Chipacakyrofa: "verified" has the same problem: it tells you the verification finished, not that the snapshot was ok17:43
kyrofaHmm17:45
Chipacamaybe it's the nature of the beast, and i just need to print "checked and passed" or sth17:45
kyrofaChipaca, what are you actually checking?17:48
Chipacakyrofa: my current account17:48
Chipacano, er17:48
Chipacakyrofa: it's like md5sum -c17:48
kyrofaChipaca, validated?17:49
Chipacakyrofa: if it's not valid i don't even open it17:49
Chipaca:-)17:49
kyrofaEnglish is stupid17:49
Chipacaif it's not valid, as in the zipfile is corrupt, or the index is corrupt, or doesn't match _its_ hash, the snapshot isn't even listed17:49
Chipacabah, there is something called 'valid' in this context, but it's more subtle, snapshots that aren't valid in the above sense are just not snapshots at all17:50
Chipacaej17:51
Chipacakyrofa: don't worry, i'm more ranting than anything17:51
Chipacaor sharing the pain17:51
Chipacanot strictly looking for solutions at this time17:51
Chipaca(there are 110+ comments on the PR i'm working through, and this one is not one of them)17:51
mupPR snapd#4663 opened: interfaces/builtin: allow MM to access login1 <Created by alfonsosanchezbeato> <https://github.com/snapcore/snapd/pull/4663>17:52
Chipacazyga: you around?18:44
zygayep18:44
Chipacazyga: are you running something newer than 16.04 there?18:44
zygayep18:44
zyga17.1018:45
zygaI have 18.04 as well18:45
Chipacazyga: can you check if on a terminal there, 😀 shows up (1) double wide, and (2) counted as narrow?18:45
Chipacazyga: as opposed to 明 which should show up as double-wide and counted as double-wide18:46
zygaone sec18:47
zygaactually18:47
zygahow do I check?18:47
* nacc was wondering the same thing18:47
zygaChipaca I can show you and you can tell me18:47
Chipacazyga: paste it in the terminal and write an 'a'18:47
zygaChipaca in standup18:48
Chipacagoing ;-)18:48
jdstranddavidcalle: hey, ping re https://docs.snapcraft.io/deprecation-notices/dn518:54
Chipacaso, everything is terrible in 16.04 but it gets better :)18:56
Chipacaoh, zyga, was that 18.04 or 17.10?18:56
zyga17.1018:56
Chipacaperfect18:56
Chipacazyga: I can _probably_ detect it at least for gnome terminal using $VTE_VERSION but I'm not at all sure I want to :-)18:57
zygamvo I pushed the rework to 465818:59
zygaif it passes I will propose it separately18:59
Chipaca18:59
zygajdstrand the rework includes use of ensure-dir-state to write and load the apparmor profile for snap-confine in core18:59
Chipacai can use escape sequences to find out18:59
Chipacadid i want to know this19:00
zygaChipaca you can talk to the tty19:00
Chipacaexactly19:00
zygaas in, you can talk to the terminal emulator19:00
zygaand ask it stuff19:00
Chipacayes19:00
zyganot sure how much gnome vte implemented there19:00
Chipacaincluding "how wide did you think this thing was19:00
Chipaca"19:00
zygawell, you can just get the cursor position19:00
Chipacayes, but reading that back is a nightmare19:00
zygawhy so?19:00
zygamvo, jdstrand: the new interesting bit is https://github.com/snapcore/snapd/pull/4658/files#diff-57dc34ab6f4bf9730b356d0439daa0fdR17019:01
mupPR #4658: many: don't allow layout construction to silently fail <Created by zyga> <https://github.com/snapcore/snapd/pull/4658>19:01
Chipacazyga: termios black magic19:01
zygamvo and the function immediately below that19:01
zygaChipaca screw termios19:01
zygahold on19:01
zygahttps://invisible-island.net/xterm/ctlseqs/ctlseqs.pdf19:01
zyga(I really like that pdf)19:02
Chipacazyga: i know the control sequences19:02
Chipacazyga: but to read what it echoes back, which doesn't include a newline, you need to set the terminal into raw mode + unbuffered or whatever it is, then echo the char, then read it, then set it back to cooked19:03
Chipacathat's the termios bit i'd rather avoid19:04
Chipacaanyway, i'll stop distracting you -- i'm not working and you are :-)19:04
mupBug #1749276 opened: Interface request: dvb <snapd-interface> <Snappy:New> <https://launchpad.net/bugs/1749276>19:20
mupPR snapd#4664 opened: interfaces/apparmor: ensure snap-confine profile for reexec is current <Created by zyga> <https://github.com/snapcore/snapd/pull/4664>20:00
zygamvo, jdstrand: https://github.com/snapcore/snapd/pull/466420:00
mupPR #4664: interfaces/apparmor: ensure snap-confine profile for reexec is current <Created by zyga> <https://github.com/snapcore/snapd/pull/4664>20:00
zygathis is the bit I cherry-picked out of 465820:00
zygaI'll break now, ttyl20:00
mvozyga: thank you20:10
* Chipaca wanders off to figure out dinner20:16
mupPR snapd#4661 closed: snap: improve `snap run` comments/naming <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4661>20:16
cachioniemeyer, hey, could you please take a look to this https://github.com/snapcore/spread/pull/50 ?20:21
mupPR spread#50: Adding repeat option again <Created by sergiocazzolato> <https://github.com/snapcore/spread/pull/50>20:21
=== ikey is now known as ikey|afk
zygacachio. linde is belly up21:10
zyga*linode21:10
cachiozyga, yes, I am trying to reproduce those errors22:41
cachioand fix them22:41
zygacachio this is linode failing22:43
zygawhat can you do?22:43
cachiozyga, ahh, I am researching this error https://travis-ci.org/snapcore/snapd/builds/341118599#L299322:44
cachioit made fail like 5 or 6 builds today22:44
zygacachio that is not what I was talking about22:46
zygalinode fails on API requests22:46
zygathis bug is fixed in my PR22:46
zygahttps://github.com/snapcore/snapd/pull/466422:46
mupPR #4664: interfaces/apparmor: ensure snap-confine profile for reexec is current <Created by zyga> <https://github.com/snapcore/snapd/pull/4664>22:46
cachiozyga, great, I'll review it22:47
cachiozyga, which error are you talking about, some networking problem?22:47
zygacannot create new VMs22:48
zygalinode doesn't work :.22:48
zyga:/.22:48
cachiozyga, ouch22:48
zygaI restarted that branch a few times and it timed out at 49 minutes22:48

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