[05:29] mvo: re saveenv issue (had to leave early yesterday, right after filing this): https://bugs.launchpad.net/snap-core18/+bug/1910094 → for uc20, uboot.env.in was removed in favor of u-boot-pi, so idk if this also applies for uc20. [05:29] Bug #1910094: uboot fails to save env after core18 refresh [07:05] morning [07:07] PR snapd#9811 closed: tests: fix library path used for tests.pkgs [07:32] PR snapd#9808 closed: tests/main/snap-validate-basic: disable test on Fedora due to go-flags panics [07:33] morning mborzecki 👋 [07:34] dot-tobias: hey [07:39] zyga: mvo: hey [07:39] good morning guys :) [07:39] good morning mborzecki and zyga [07:50] mvo: zyga: have i shared those over the holiday break? https://imgur.com/a/zddivon [07:51] yes, you did [07:51] the spike of mystery [07:51] mborzecki: I remember this one - wasn't the spike apparmor_parser running? [07:52] mvo: yes, the bottom two are apparmor_parser replaced with symlink to /bin/true, and the last one is both aa parser and snap-seccomp [07:54] mvo: zyga: added one more graph from just calling apparmor_parser -R for snap.hello-world profiles followed by apparmor_parser --replace /var/lib/snapd/apparmor/profiles/snap.hello-world.* [07:56] mborzecki: 50mb is a lot [07:56] not skipping cache makes the memory usage lower ofc, but iirc zyga explained there was a corner case when the timestamps are messed up or something and that breaks things [07:56] mborzecki: in this last graph, especially since hello-world is presumably a simple profile [07:56] mvo: well, it isn't that simple ;) [07:57] mvo: there's a lot of rules, and i wanted to try exploding rules such as `/{,usr/}bin/arch ixr` to see if that changes anything [08:02] mborzecki: oh, interessting [08:02] PR snapd#9794 closed: daemon: start moving implementation to api_snaps.go [08:03] mborzecki, IIRC early pi boot sceniario [08:03] mborzecki, across rollback or something [08:03] mborzecki, we would reuse stale cache [08:03] mborzecki, in the end cache is still mtime based [08:03] mborzecki, this change came from jdstrand (IIRC, it was >2 years ago) [08:04] offtopic, this is the day when we are setting up mattermost/irc bridge [08:04] did that ever happen to canonical irc? [08:04] er [08:04] canonical mattermost [08:05] zyga: idk, i'm using mm chat in ff [08:06] mborzecki, yeah but for internal stuff [08:06] I'm curious to know if there is any channel on mattermost that got bridged to an irc channel [08:06] we're doing that so that the community space is not fractured [08:16] mvo: hah, i see your superpowers extend to ogra's repositories too :) [08:17] my new router arrives today, cannot wait to set that up after work [08:17] but now, last day of static analysis wrap up [08:17] o/ [08:17] zyga: I think don't think there is any server side ircd integration. Some people use matterircd, but that is really a single-user bridge [08:18] jamesh, I think we use matterbridge (or want to) [08:19] but yeah, it looks like a way that's really meant for one user [08:19] we'll see [08:22] mborzecki: yeah, slightly surprised about this but I don't complain [08:26] zyga: I guess it depends on what your goal is: allow a user to continue using their IRC client, or to bridge to an existing community of people who can't access the Mattermost server? [08:27] jamesh, our mattermost is open to all but we wanted to let people who hang around on IRC to not miss anything, lower barrier of entry [08:30] zyga: understandable. I guess that's the reason most public Canonical/Ubuntu stuff is on Freenode [08:31] jamesh, given we also use gitlab, mattermost integrations are valuable [08:32] so if those get to translate to irc, even imperfectly, it would be an added advantage [08:33] zyga: I kind of wonder if some kind of limited guest account access to mattermost might solve that too. [08:33] jamesh, yeah but again our mattermost is not closed [08:33] it's just something that requires you to have _a_ account [08:34] so we wanted to lower the barrier of entry even more [08:35] zyga: sure, but presumably I'd still need to create an account to ask a question. If there was some kind of anonymous guest account system, that could be even more accessible than IRC [08:35] ah, I see what you mean now [08:36] yeah, but I don't know if mattermost supports that kind of thing [08:37] If you're bridging to IRC, you're essentially allowing anonymous users into those mattermost channels anyway. [08:37] sure, the only question is if there's a better way of doing that [08:39] zyga: it looks like a feature that is on their radar but unimplemented: https://docs.mattermost.com/overview/faq.html#does-mattermost-have-an-official-website-based-plugin-to-offer-anonymous-chat-to-visitors [08:48] mvo: there's a bug in postrm, we have an if that check whether we're running inside the container (closer to the end of the file), and unmounts /snap in such case, however, couple of lines before there's and attempt to rm -rf /snap which fails with EBUSY [08:48] mborzecki: oh, thanks for noticing. is there an easy fix? just reshuffle some lines? also I wonder why we did not find it in spread testing :/ [08:49] mvo: this bit: https://github.com/snapcore/snapd/blob/master/packaging/ubuntu-16.04/snapd.postrm#L118-L142 [08:49] mvo: yeah, stgraber pointed me to it in https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1903967 i'm working on a fix and a spread test [08:49] Bug #1903967: Can't purge snapd: rm: cannot remove '/snap': Device or resource busy [08:49] mborzecki: oh, so the discard lines need to be moved up? [08:49] mborzecki: \o/ thank you! [08:49] mvo: afaict none of the spread tests executed apt remove --purge snapd in a container [08:50] mborzecki: *nod* [09:33] mvo: https://github.com/snapcore/snapd/pull/9812 [09:33] PR #9812: packaging/deb, tests/main/lxd-postrm-purge: fix purge inside containers [09:33] mborzecki: \o/ [09:33] PR snapd#9812 opened: packaging/deb, tests/main/lxd-postrm-purge: fix purge inside containers [09:43] mborzecki, nice [09:43] mborzecki, 2/3 reviewed, one sec [09:54] mborzecki, reviewed [09:54] coffee and more meetings [10:26] mborzecki, +1 === msalvatore_ is now known as msalvatore [12:40] go-flags feels like a mess tbh [12:41] actually validate has --forget option which has no hidden tag, but it does not show up either :/ [12:53] funny thing, when parser is initialized with HelpFlag, there's no panic, and that's because when the option is present it collects information from all registered 'groups' === zyga_ is now known as zyga [15:15] the 'fix' in go-flags: https://github.com/jessevdk/go-flags/pull/354 [15:15] PR jessevdk/go-flags#354: fix a panic when generating help while the subcommand and all option groups are hidden [15:30] off to the the vet with my meowing furball [16:33] * cachio lunch [16:35] PR snapd#9813 opened: tests: use os-query tool to check debian, trusty and tumbleweed [17:22] PR snapcraft#3399 closed: cli: do not require snapd deb for assertions [18:06] cachio: shouldn't this line also check for aarch* for the is_arm function? [18:06] https://github.com/sergiocazzolato/snapd/blob/master/tests/lib/tools/os.query#L102 [18:06] err I guess the right link is https://github.com/snapcore/snapd/blob/master/tests/lib/tools/os.query#L102 [18:12] ijohnson, yes [18:13] ijohnson, I think we just have armv7 and armv8 [18:13] but the check should be [18:14] uname -m | grep -qx '(^arm.*|^aarch*)' [18:14] ijohnson, right? [18:17] cachio: yes exactly === ijohnson is now known as ijohnson|lunch [18:27] ijohnson|lunch, I'll update that [18:27] thanks for that [18:42] PR snapcraft#3400 opened: requirements: uprev python-apt [18:45] PR snapd#9814 opened: tests: update check to verify is the current system is arm [19:16] * cachio afk7 [19:22] PR snapcraft#3400 closed: requirements: uprev python-apt [21:02] anybody have a good gadget/device config for pi zero w? [21:02] for core20 === ijohnson|lunch is now known as ijohnson [21:24] hardwire: ubuntu core 20 (well any ubuntu series) does not run on the pi zero w because that device is armv6 and ubuntu requires armv7 [21:51] armhf is a no go on that series? [21:58] Mostly just an understanding issue on my side between pi os, debian os, ubuntu os and if the difference is due to minimum standards with ubuntu kernel configs and compatible gcc flags that are purposefully altered from debian upstream.. or if there's some other gap in my understanding that just isn't obvious right now. [22:00] I'd like to use snap on these systems.. not sure if that means moving a bunch of this to an armv6 snap core. [22:01] The big gotcha I think is that armhf would be a 'misnomer' for any ubuntu pools recompiled to support armv6 [22:01] Unfortunately I think that is what threw me off [22:09] not even sure if uboot is set up to boot armv6 from those images either [22:40] hardwire: yes it's different for ubuntu vs debian in that respect ubuntu only supports armv7, whereas debian supports armv6 (or at least raspbian does) [22:41] unfortunately the issue is larger than just building an armv6 "core" snap, you would need to first compile ubuntu debian packages from the archive for armv6 and then use those to construct the core snap, since the current armhf core snap is built that way [22:44] that would be a lot of no fun but possibly worth it. [22:44] I think it may be more worth it to snaperize raspberry pi os. [22:44] that's a real word I just made up. [22:44] you could look into using Raspberry Pi 3 Model A+ instead of the raspberry pi zero w [22:45] Not with 3000+ Pi Zero W in the field. [22:45] not quite the same size, but smaller and cheaper than a normal raspberry pi [22:45] ah fair enough [22:45] I'm consulting to help deal with a 'rushed to production' issue. [22:46] Doing OTA without snap will be a pain. I'm left with ostree or a very custom setup. [22:46] I'd really like to target things so that the ext4 containing the mountable snaps was not also /writable as well. [22:46] yeah that is tough [22:47] you mean you want the .snap files on a different partition than the writable partition ? [22:47] I do appreciate whoever padded the core20 images to 8gb [22:47] that was useful. [22:47] ha that was a bug that they are padded like that, but glad it was helpful to someone :-) [22:48] I typically made a sparse file and then use dd with notrunc to overlay the image. [22:48] It took me a while to realize core20 was different than core18 [22:48] but I think it helps some folks not scratch their heads when the initial setup doesn't works so hot. [22:51] so it looks like setting up a snap based project to create a core/kernel for arm6 might be the best solution.. pulling from "offical" pi upstreams. [22:51] official even. [22:51] there's gonna be a few gotchas for sure. [22:51] I bet I'd get sued by either ubuntu or snapple if I called it snappleberry pi [22:52] the initial tar for core18/core20 isn't too far a stretch from vanilla