[04:56] morning [06:12] PR snapd#8962 closed: tests: allow to add a new label to run nested tests as part of PR validation [07:01] morning [07:03] pstolowski: hey [07:03] pstolowski: is it as cold at your place? [07:03] good morning pstolowski and mborzecki [07:03] mvo: hey [07:04] mvo: i need to push one more tweak to https://github.com/snapcore/snapd/pull/8883 [07:04] PR #8883: packaging: stop snapd early on purge [07:16] mborzecki: can you +1 8883 if you are happy with it? [07:16] (please :) [07:17] PR core20#75 opened: 030-fix-timedatectl.chroot: fix quoting issues [07:19] mvo: i'll push the last tweak, let me know what you think about it [07:23] mborzecki: ok [07:23] mvo: funny, that since we moved DEBHELPER in postrm earlier, there's no systemd daemon-reload happening after we remove the service/mount units [07:24] btw. zyga wrote me he's had a hard night and it's fully up yet [07:27] mvo: pushed https://github.com/snapcore/snapd/pull/8883/commits/f1897983d9d79b96d0b9306cf4fdf9711d729f46 [07:27] PR #8883: packaging: stop snapd early on purge [07:29] taking the kids for a dentist checkup, back in 1h or so [07:39] mborzecki: yeah, 14C [07:40] hello [07:40] sorry for starting late, I'm very tired lately [07:40] it's hard to sleep [07:40] mborzecki: thank you [07:41] hey mvo, good morning :) [07:41] mborzecki: nice one! [07:41] zyga: good morning [07:54] mborzecki: https://github.com/snapcore/snapd/pull/8977 needs reviews [07:54] PR #8977: cmd/snap: track started apps and hooks [07:54] mborzecki: it's somewhat more complex than initially assumed but I think what is there now is acceptable [07:56] PSA: it seems that actions are buggy wrt refreshing the tree sometimes [07:56] pushing new patches clearly seems to test older versions [07:56] I will update the workers to use the latest stable agent later today [07:58] mborzecki: I will dig into systemd to find and report the bug [08:16] re [08:17] mvo: looks like it's green on ubuntu & debian [08:18] zyga: pstolowski: can you take a look at https://github.com/snapcore/snapd/pull/8883 ? [08:18] PR #8883: packaging: stop snapd early on purge [08:18] mborzecki: sure [08:18] mborzecki: thank you, yeah, it needs review(s) [08:20] mborzecki: I think this is wrong [08:20] mborzecki: we placed debhelper there for a reason [08:20] mborzecki: remember that stopping systemd units of snaps may require snapd to be up [08:20] yep [08:21] mborzecki: I think it needs to be more elaborate :/ [08:21] mborzecki: also remember that snap reexec will come into play [08:21] so we must not unmount core/snapd before stopping any service units [08:21] as those will wait on system key mismatch [08:22] perhaps it's time to bail out of the debhelper helper entirely [08:22] or move it to the very bottom after we've done everything ourselves [08:23] mborzecki: does this make sense? [08:31] i'm afraid i cannot comprehend possible effects of this PR === pedronis_ is now known as pedronis [08:33] mborzecki: added a comment [08:35] me too [08:39] zyga: hm snapd.socket/service are masked, so the stop comand, even if it tries to poke snapd, should fail right away [08:39] zyga: iow, there's no socket to talk to [08:40] zyga: and since the units are masked, they won't be started by accident [08:45] mborzecki: masking is fine, but I think the remove sequence should first reduce the system to equivalent of "snap remove --all-the-snaps" [08:45] and then remove just snapd as it does now [08:50] zyga: hm but isn't that what it does currently? [08:51] not quite, we never remove the snaps, we just unmount and delete them (e.g. hooks don't run) [08:51] but on a bigger note, I strongly think we should not stop snapd while we do the purge, only at the very end [08:52] could purge really be "snap remove --purge --all-snaps" followed by ##DEBHELPER## ? [08:54] zyga: not really, there's no snap command at this point [08:54] because .postrm? [08:54] yup [08:54] I see [08:54] I mean we could adjust prerm/postrm [08:54] zyga: you could do it in prerm, but snapd is on it's way out, so why bother? [08:55] mborzecki: because there's one implementation then [08:55] not two [08:55] mount namespaces are discareded, hooks run [08:55] data is removed [08:55] right now all the shell scripts need to reimplement that [08:55] in addition, snapd should stop / abort all background refresh tasks [08:55] zyga: what you're describing needs to run in prerm [08:55] I agree [08:56] I guess I'm saying we are here because what we got is complex and buggy [08:56] and I'm looking for a way to make it simple and not buggy [08:56] by piggy-backing on the existing machinery [08:56] in addition, this needs to be implemented in all the distro scripts [08:57] one other thing prerm could do is to ask you if you want to retain snapshots or not [08:57] zyga: so first we probably need ot know why postrm cleans up the stuff and not prerm [08:57] (debconf) [08:57] good point [08:57] zyga: secodnly, can we expect snapd to be running at all in prerm [08:57] it may be running or not [08:57] if it doesn't run we could just not remove things [08:58] it's not the best outcome but I think that's unavoidable [08:58] zyga: but we can't leave things behind, can we? that's the whole point of purge aiui [08:58] well, it depends [08:58] I think we should take a step back [08:59] and look at what those scripts should do [08:59] and separately fix the immediate problem [08:59] where purge is racy [08:59] perhaps we come to a conclusion that problem #2 is really problem #1 [08:59] perhaps there's a shorter intermediate path we can take [09:07] zyga: hm, tbh i thin i can move the debhelper in postrm back, it's not really changing anything [09:07] mvo: ^ perhaps we need your opinion and wisdom [09:11] zyga: slightly busy right now .( sorry, I can have a look in a bit, could you summarzize the input in the PR? [09:11] mvo: I did already, we're wondering what to do about the pre/post rm scripts [09:16] mborzecki: are centos8 failures expected now? [09:17] zyga: something new? [09:17] not specific, just mostly red tests across PRs [09:28] mborzecki: https://github.com/snapcore/snapd/pull/8981#pullrequestreview-444566073 [09:28] PR #8981: boot, bootloader: query kernel command line of run mod and recovery mode systems [09:38] mborzecki: I did a pass on #8947, some questions/comments there [09:38] PR #8947: many: update managed boot config when refreshing snapd [09:38] pedronis: thanks [09:38] zyga: thanks for the review too [09:55] mborzecki: pstolowski: I made the follow to my PRs: #8987 [09:55] PR #8987: asserts: small improvements and corrections for sequence-forming assertions' support [09:56] ack [09:58] PR snapd#8987 opened: asserts: small improvements and corrections for sequence-forming assertions' support [10:02] pstolowski: https://github.com/snapcore/snapd/pull/8979#pullrequestreview-444594855 [10:02] PR #8979: tests: more checks in core20 early config spread test [10:05] ty [10:18] I need reviews for 8977 [10:18] * zyga dives into https://github.com/snapcore/snapd/pull/8843 [10:18] PR #8843: [RFC] many: export tools from core/snapd to mount namespaces [10:38] eh, conflicts [10:40] snapstate_test.go conflicts are fun [10:43] PR snapd#8985 closed: snap/validate.go: disallow snap layouts with new top-level directories [10:44] brb, break [10:49] zyga: tumbleweed seems to be failing, xdg-desktop-portal package is no longer present? [10:49] dunno [10:49] maybe a new image? [10:55] ok, coffee and back in a moment [10:55] gotta rebase that thing [11:16] re [11:16] doh, we're hitting 'unknown nfs option' error on debian sid on 2.45, that was fixed in master some time ago [11:20] pfff power outage [11:21] ofc, synchronized home dirs like an hour ago, so missing the latest code changes [11:23] synchronized? [11:23] as in sync? [11:24] yeah [11:25] as in write from ram to disk? [11:25] zyga: no, as in synchronize the content of $HOME between my laptop and the desktop [11:25] ahh [11:32] PR core20#75 closed: 030-fix-timedatectl.chroot: fix quoting issues [11:35] pfff [11:35] hmm? [11:36] power comes back, and it's off a minute later [11:36] and there's no even a thunderstorm or strong wind [11:37] haha [11:37] it's very common when guys are fixing power lines [11:59] PR snapd#8988 opened: many: use more specific check for unit test mocking [12:14] * zyga has a cool idea :) === tinwood is now known as tinwood-afk [12:25] How does one build snapcraft from source? [12:29] PR snapd#8981 closed: boot, bootloader: query kernel command line of run mod and recovery mode systems [12:39] drat, [12:39] * zyga ran out of space [12:39] realtime-neil: hey [12:39] I presume with snapcraft but for best advice please ask on the #snapcraft channel [12:39] zyga: whoops, sorry [12:41] realtime-neil, do you mean the snapcraft utility to build snaps or the snapd daemon that mediates a system and the snaps installed upon it? [12:42] for snapcraft the utility to build snaps, it's python so there isn't much building required - the best way to build that is to use snapcraft itself to build it into a snap (chicken and egg, meet catch 22) [12:43] diddledan: probably all of the above, modulo the topological sort along dependencies. [12:44] diddledan: what would the workflow look like for someone trying to bootstrap from, say build-essential ? [12:45] realtime-neil: what are you trying to achieve? [12:45] it depends what you want to work on [12:45] note that snapcraft is now a snap, not a classic package [12:46] so it's not using the traditional methods of building [12:46] zyga: yeah, I'm noticing that from the more recent (early 2019) tutorials I find. [12:46] zyga: I'm trying to achieve better understanding I like knowing where these things come from [12:47] realtime-neil: well, that's pretty easy, both are in github.com/snapcore/{snapcraft,snapd} [12:47] one is python the other is go, mostly [12:47] each with their own deps [12:47] I assume you understand the difference between those but ask if you want to know more [12:48] snapd is built into several distinct ways depending on the purpose [12:48] I don't know much about snapcraft though [12:48] you assume correctly, and I was having trouble finding those repos from the snapcraft.io site, so thanks [13:01] cachio: standup [13:01] no, sit down! [13:29] PR snapd#8987 closed: asserts: small improvements and corrections for sequence-forming assertions' support [13:34] PR snapd#8989 opened: osutil/systemd: add new pkg and systemd.EscapePath === tinwood-afk is now known as tinwood [14:05] do we ahve grub-editenv packaged as a snap maybe? [14:05] s/ahve/have/ [14:24] PR snapd#8989 closed: osutil/systemd: add new pkg and systemd.EscapePath [14:36] pstolowski: mborzecki: thanks for the reviews of the validation-set PRs [14:36] pedronis: yw [14:37] mborzecki: can you re-review https://github.com/snapcore/snapd/pull/8977 [14:37] PR #8977: cmd/snap: track started apps and hooks [14:37] I'd love to make progress on that front and I think this step is ready [14:39] PR snapd#8990 opened: systemd/escape: fix issues with "" and "\t" handling [14:56] * cachio lunch [15:08] pedronis: yw === Eighth_Doctor is now known as Conan_Kudo === Conan_Kudo is now known as Eighth_Doctor [15:59] hmm i could swear we had a helper for human-friendly unit (kB, mB...) output but cannot find it [16:00] maybe i confused it with helpers for time [16:02] ah, got it, SizeToStr in strutil [16:04] Bug #1886840 opened: classic confined snap can't access audio devices [16:07] Bug #1886840 changed: classic confined snap can't access audio devices [16:13] Bug #1886840 opened: classic confined snap can't access audio devices [17:09] oSoMoN: hey, fyi, 20200706-1602UTC is now in prod (thanks roadmr!) so you should be able to use system-packages-doc now [18:05] jdstrand, excellent, thanks! [18:45] * cachio -> kenesiologist [18:45] PR snapd#8991 opened: tests: preinstall shellcheck and run tests on focal [18:49] Bug #1886840 changed: classic confined snap can't access audio devices [19:49] PR snapcraft#3207 opened: packaging: use PEP-440 compliant versioning for python & snap [21:09] PR snapcraft#3207 closed: packaging: use PEP-440 compliant versioning for python & snap [21:19] PR snapcraft#3208 opened: snap: set PATH for snapcraft command