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

mupPR snapd#7201 closed: HACKING.md: GitHub not Github <Created by doismellburning> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7201>01:58
mborzeckimorning05:25
=== pstolowski|afk is now known as pstolowski
pstolowskimornings07:22
mborzeckipstolowski: hey07:22
mupPR snapd#7203 opened: i18n, vendor, packaging: drop github.com/ojii/gettext.go, use github.com/snapcore/go-gettext <⛔ Blocked> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7203>08:02
mborzeckipstolowski: can you take a look at https://github.com/snapcore/snapd/pull/7186 ?08:04
mupPR #7186: gadget: ensure filesystem labels are unique <Gadget update> <Simple 😃> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7186>08:04
mupPR snapd#7204 opened: cmd/snap: use showDone helper with 'snap switch' <Created by stolowski> <https://github.com/snapcore/snapd/pull/7204>08:14
pstolowskiChipaca: good morning! something for you sir ^08:15
pstolowskimborzecki: will do08:15
Chipacapstolowski: nice. Will look in a bit.08:16
mborzeckipstolowski: thanks08:20
mborzeckiChipaca: morning08:20
Chipacamborzecki: mo'in08:20
mupPR snapd#7175 closed: gadget: effective structure role fallback, extra tests <Gadget update> <Simple 😃> <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/7175>08:22
mborzeckiis mvo the only one with write access to https://github.com/snapcore/go-gettext ?09:03
mborzeckiChipaca: pstolowski: can you take a quick look at https://github.com/snapcore/go-gettext/pull/2 ?09:04
mupPR go-gettext#2: Fix unit tests on hosts where /tmp is on a separate device <Created by bboozzoo> <https://github.com/snapcore/go-gettext/pull/2>09:04
mborzeckianyways, wonder why this didn't come up earlier09:07
pstolowskik09:13
Chipacamborzecki: we weren't running the unit tests of it i guess?10:01
mborzeckiChipaca: or /tmp was on the same device as the source dir :/10:02
Chipacamborzecki: or they set TEMPDIR10:02
Chipacaor is it TMPDIR10:02
mborzeckiChipaca: or that ;)10:03
pstolowskimborzecki: can you take a look at #7204?10:13
mupPR #7204: cmd/snap: use showDone helper with 'snap switch' <Created by stolowski> <https://github.com/snapcore/snapd/pull/7204>10:13
mborzeckipstolowski: sure10:13
pstolowskimborzecki: thanks10:45
=== alan_g is now known as alan_g_
mborzeckihm weird, perhaps soemthing wrong with our spread images, this minimal task.yaml https://paste.ubuntu.com/p/B4ZBQc5pnT/ REBOOT fails on 16.04 but works on 18.0410:55
zigfordsorry, I asked this before, but my PC may have fallen asleep by the time I got a response. Anyone think of a reason why snapd 2.40 complains unless I add libncurses to the apparmor profile?11:06
Chipacazigford: complains how?11:14
zigford1 sec, it was about a week ago that I tested. I'll remove my entry and repro11:20
mborzeckiChipaca: do you have any idea what could be wrong here? https://paste.ubuntu.com/p/988jjnTcw2/11:21
zigford"/bin/sh: error while loading shared libraries: libncurses.so.6: cannot open shared object file: No such file or directory11:22
zigfordchild exited with status 127"11:22
zigford"apparmor="DENIED" operation="open" profile="/usr/lib64/snapd/snap-confine" name="/lib64/libncurses.so.6.1" pid=13806 comm="snap-device-hel" requested_mask="r" denied_mask="r" fsuid=0 ouid=011:22
zigford"11:22
Chipacamborzecki: what am i looking at?11:22
Chipacazigford: what distro is this?11:22
zigfordSorry, that's after running snap run packagename11:23
zigfordGentoo11:23
mborzeckiChipaca: a spread restore script, executed on 16.04, returning 1, same script run on 18.04 returns 213 (as expected)11:23
zigfordIf I add an entry to apparmor.d snap-confine profile, the snaps run fine.11:23
Chipacamborzecki: why doesn't it have a shebang?11:24
zigfordJust wondering if something had changed in snapd that I need to account for in my snapd ebuild11:24
mborzeckiChipaca: running bash script.sh gives the same result, 1 on 16.04, 213 on 18.0411:25
Chipacazigford: there is a libncurses entry in the apparmor profile of snap-confine, at least on master11:26
Chipacamborzecki: hmmmm11:26
Chipacamborzecki: does shellcheck say anything?11:26
mborzeckiChipaca: nothing useful11:26
zigfordChipaca: is it libncurses or libncursesw? the makefile that generated the profile has libncursesw not libncurses11:27
Chipacamborzecki: w11:27
Chipacaalthough why it even has that is unclear to me11:28
Chipacaer11:28
Chipacazigford: libncursesw11:28
Chipacazigford: actually, it used to have both i think?11:29
Chipacaec4f3c07746 added both11:29
zigfordChipaca: curious. Guess the best bet might be to dig through the commits and see if/when/why it changed. I know Gentoo isn't supported, but I want to do my best to keep it running11:30
Chipacaer11:33
Chipacamborzecki: the subshell11:33
* Chipaca pokes more11:36
mborzeckiChipaca: strace is a bit confusing too https://paste.ubuntu.com/p/VrXKfhQhkf/11:38
mborzeckiChipaca: notice how on 16.04 3359 exits with 213, but then 3358 exits with 1 :??11:38
Chipacamborzecki: so11:42
Chipacamborzecki: on 16.0411:42
Chipaca( foo )11:42
Chipacaactually, let me double check that11:42
Chipacayes11:44
Chipacaso11:44
Chipacamborzecki: on 16.04, given: boo() { exit 213; }11:44
Chipacamborzecki: and 'set -e'11:44
Chipacamborzecki: then ( ( boo ); ( echo hi ) )11:44
Chipacaexits with 111:45
Chipacamborzecki: replace the outer subshell-causing ()s with {}s and it exits with 21311:45
Chipacamborzecki: a workaround11:46
Chipacamborzecki: ( boo ) || exit $?11:46
Chipacaso, two workarounds11:47
Chipacaeither replace the outer subshell with a group, or, explicitly re-raise the exit value11:48
mborzeckiChipaca: yet, we still need to get the fix through spread :/11:48
Chipacamborzecki: when did this start breaking?11:48
Chipacawhat changed?11:48
mborzeckiChipaca: noticed this in https://github.com/snapcore/snapd/pull/719811:50
mupPR #7198: tests: reboot the node when restoring after a test involving lxd <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7198>11:51
Chipacamborzecki: so I imagine the issue is that the restore is run in a further subshell, when compared to the test itself11:56
Chipacamborzecki: but I don't know, care to check that?11:56
Chipacathe other REBOOT-using tests use it in the body afaik11:57
Chipacaanyway I should make lunch11:59
Chipacaand then, apparently, i need to go to the bank11:59
Chipacamborzecki: can you lead the standup if I don't make it back in time?11:59
mborzeckiChipaca: sure12:01
mborzeckiChipaca: commented out restore-each in my spread.yaml, https://paste.ubuntu.com/p/6MkKSf9sqy/12:01
Chipacamborzecki: yes12:01
Chipacamborzecki: I'd call it a bug in bash :)12:02
mborzeckiChipaca: yup, trying to find a bug report or a changelog entry12:02
mupPR snapd#7204 closed: cmd/snap: use showDone helper with 'snap switch' <Created by stolowski> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/7204>12:02
mborzeckiChipaca: since it's fixed in newer version anyway :)12:02
zygaGood morning12:05
zygaI’m sorry for not doing more last night12:05
zygaI sent some reviews but didn’t have time to work on blockers12:06
zygamborzecki, Chipaca what does reboot expand to?12:06
zygaIs it the function or the executable12:07
zygaReboot returns 130 AFAIR12:07
zygaDid you check what spread does to detect a reboot request?12:07
mborzeckizyga: awe already know that set -e ( () () ) behaves differently in bash 4.3 and 4.412:08
mborzeckizyga: the bottom snippet here shows how the script looks like in the minimal test case that fails https://paste.ubuntu.com/p/6MkKSf9sqy/12:09
zygaBash, the bane of development :-(12:09
zygaThank you for digging12:09
zygaI read that12:09
zygaDid you see my question about command vs function?12:10
Chipacazyga: I don't think that makes a difference12:10
mborzeckizyga: it's complicated, REBOOT is a function which echos <REBOOT> and exists with special exit code (213), the spread separately runs `reboot` command12:10
Chipacazyga: you can change the 'REBOOT' for a direct 'exit 213' and it still misbehaves12:11
Chipacamborzecki: REBOOT can also be tests/lib/bin/REBOOT which is what zyga is asking about i think12:11
zygamborzecki: we also unset the function and do the equivalent in a reboot command12:11
zygaI wonder if that matters12:12
zygaYeah12:12
Chipacabut, as i say, it's not the function, it's the double subshell followed by a subshell12:12
Chipacaor as mborzecki said12:12
Chipacaanyway why am i not making lunch12:12
mborzeckiChipaca: i know, though i'm using a minimal task sample https://paste.ubuntu.com/p/B4ZBQc5pnT/ outside of your spread setup ;)12:12
mborzeckizyga: ^^12:12
zygaAck12:13
Chipacazyga: with 'set -e', this: ( ( exit 213 ); ( echo hi ) )12:13
Chipacazyga: exits with 112:13
Chipaca¯\_(ツ)_/¯12:13
mborzeckiduh, bash git log is most useless :/12:22
mborzecki(set -e ; ( ( exit 213 ) || exit $?; ( echo hi ) || exit $? ) || exit $? ); echo $?12:25
mborzeckiomg /o\12:25
mupPR snapcraft#2651 opened: Extension confinement <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2651>12:54
mupPR snapcraft#2648 closed: remote-build: include project name in build-id <Created by cjp256> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2648>12:57
mupPR snapcraft#2650 closed: store: send snapcraft-started-at in push requests <Created by cjwatson> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2650>12:57
mborzeckicachio: standup?13:01
ijohnsoncachio: I talked to field and they said there's a ufw snap - would that work for you? if not, then iptables is included in network-manager, but there's no app exposed for it so you'd need to do `snap run --shell ...`13:37
cachioijohnson, nice, thanks, I'll try ufw snap13:38
ijohnson+113:38
cachioand see if it works on the tests13:39
cachioijohnson, thanks!!13:39
ijohnsonif you have problems with it, blame ogra he recommended it to me so it's all his fault13:39
cachioijohnson, hehhe13:40
cachioijohnson, I'll do13:40
cachiothanks13:40
ograijohnson, cachio i'll pass that blame on to the owner of the snap .... jdstrand_ ;)13:44
mborzeckiwhat do we do with changes to spread? shall I open a PR?13:48
ograpstolowski, i'm just wondering, what happens to my hotplugged usb-serial device if i unplug and re-plug ... will the interface an app uses stay connected ?13:49
pstolowskiogra: when you unplug the device, the interface gets disconnected and slot disappears from the system; when you plug it back, the connection is restored13:53
ograprefect, thanks !13:53
diddledanfunny: https://www.reddit.com/r/ProgrammerHumor/comments/btkri6/i_call_for_death_penalty/?ocid=AID740620_FACEBOOK_oo_spl10000084193531514:09
Chipacapstolowski: would you like to join the meeting about the channel vs risk thing?14:27
Chipacapstolowski: wrt snapd-glib and the semantics change14:27
pstolowskiChipaca: sure14:27
Chipacapstolowski: ok, i'll add you to the invite14:27
Chipacait starts in ~3 :)14:27
pstolowskiChipaca: ok, np14:28
Chipacaman, i love short meetings of busy but smiling people14:43
pstolowskihaha14:43
pstolowskiChipaca: thanks for overseeing this change & making Robert aware of it14:44
Chipaca"overseeing" is a big label :-)14:45
* Chipaca adds "overseer" to his business cards14:45
pstolowskilol14:46
* ogra senses the next holliwood movie "The Overseer - featuring J. Lenton as the overseer"14:47
* Chipaca upgrades his cash-raking rake14:47
robert_ancellChipaca, pstolowski I just noticed the current G-S code doesn't use the full channel names, but I was intending to change that (to match snapcraft.io). Either way this still shouldn't be an issue.14:51
Chipacarobert_ancell: 👍14:52
pstolowskirobert_ancell: good, ty14:52
* cachio lunch14:53
=== pstolowski is now known as pstolowski|afk
mupPR snapcraft#2652 opened: meta: transparently support command-chain <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2652>16:28
mupPR snapd#7205 opened: many: introduce security profile failsafe flag <Created by zyga> <https://github.com/snapcore/snapd/pull/7205>19:59
* cachio EOD21:10
amurraykenvandine popey: fyi my lame attempt to get drawing snapped yesterday evening - https://github.com/alexmurray/drawing-snap21:34
kenvandineamurray: I have one that's pretty close.  Needs newer things, which are in the gnome build snap21:56
kenvandineamurray: which is still a WIP21:56
=== JamieBennett_ is now known as JamieBennett
=== cprov_ is now known as cprov
=== marosg_ is now known as marosg
=== kalikiana_ is now known as kalikiana
=== tedg_ is now known as tedg
=== jamespage_ is now known as jamespage
=== kenvandine_ is now known as kenvandine
=== zyga_ is now known as zyga
=== benoitc_ is now known as benoitc
=== joedborg_ is now known as joedborg

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