/srv/irclogs.ubuntu.com/2020/07/08/#snappy.txt

mborzeckimorning04:56
mupPR snapd#8962 closed: tests: allow to add a new label to run nested tests as part of PR validation <Run nested> <Skip spread> <Created by sergiocazzolato> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/8962>06:12
pstolowskimorning07:01
mborzeckipstolowski: hey07:03
mborzeckipstolowski: is it as cold at your place?07:03
mvogood morning pstolowski and mborzecki07:03
mborzeckimvo: hey07:03
mborzeckimvo: i need to push one more tweak to https://github.com/snapcore/snapd/pull/888307:04
mupPR #8883: packaging: stop snapd early on purge <Test Robustness> <Created by mvo5> <https://github.com/snapcore/snapd/pull/8883>07:04
mvomborzecki: can you +1 8883 if you are happy with it?07:16
mvo(please :)07:16
mupPR core20#75 opened: 030-fix-timedatectl.chroot: fix quoting issues <Created by mvo5> <https://github.com/snapcore/core20/pull/75>07:17
mborzeckimvo: i'll push the last tweak, let me know what you think about it07:19
mvomborzecki: ok07:23
mborzeckimvo: funny, that since we moved DEBHELPER in postrm earlier, there's no systemd daemon-reload happening after we remove the service/mount units07:23
mborzeckibtw. zyga wrote me he's had a hard night and it's fully up yet07:24
mborzeckimvo: pushed https://github.com/snapcore/snapd/pull/8883/commits/f1897983d9d79b96d0b9306cf4fdf9711d729f4607:27
mupPR #8883: packaging: stop snapd early on purge <Test Robustness> <Created by mvo5> <https://github.com/snapcore/snapd/pull/8883>07:27
mborzeckitaking the kids for a dentist checkup, back in 1h or so07:29
pstolowskimborzecki: yeah, 14C07:39
zygahello07:40
zygasorry for starting late, I'm very tired lately07:40
zygait's hard to sleep07:40
mvomborzecki: thank you07:40
zygahey mvo, good morning :)07:41
mvomborzecki: nice one!07:41
mvozyga: good morning07:41
zygamborzecki: https://github.com/snapcore/snapd/pull/8977 needs reviews07:54
mupPR #8977: cmd/snap: track started apps and hooks <Created by zyga> <https://github.com/snapcore/snapd/pull/8977>07:54
zygamborzecki: it's somewhat more complex than initially assumed but I think what is there now is acceptable07:54
zygaPSA: it seems that actions are buggy wrt refreshing the tree sometimes07:56
zygapushing new patches clearly seems to test older versions07:56
zygaI will update the workers to use the latest stable agent later today07:56
zygamborzecki: I will dig into systemd to find and report the bug07:58
mborzeckire08:16
mborzeckimvo: looks like it's green on ubuntu & debian08:17
mborzeckizyga: pstolowski: can you take a look at https://github.com/snapcore/snapd/pull/8883  ?08:18
mupPR #8883: packaging: stop snapd early on purge <Test Robustness> <Created by mvo5> <https://github.com/snapcore/snapd/pull/8883>08:18
zygamborzecki: sure08:18
mvomborzecki: thank you, yeah, it needs review(s)08:18
zygamborzecki: I think this is wrong08:20
zygamborzecki: we placed debhelper there for a reason08:20
zygamborzecki: remember that stopping systemd units of snaps may require snapd to be up08:20
pstolowskiyep08:20
zygamborzecki: I think it needs to be more elaborate :/08:21
zygamborzecki: also remember that snap reexec will come into play08:21
zygaso we must not unmount core/snapd before stopping any service units08:21
zygaas those will wait on system key mismatch08:21
zygaperhaps it's time to bail out of the debhelper helper entirely08:22
zygaor move it to the very bottom after we've done everything ourselves08:22
zygamborzecki: does this make sense?08:23
pstolowskii'm afraid i cannot comprehend possible effects of this PR08:31
=== pedronis_ is now known as pedronis
zygamborzecki: added a comment08:33
pstolowskime too08:35
mborzeckizyga: hm snapd.socket/service are masked, so the stop comand, even if it tries to poke snapd, should fail right away08:39
mborzeckizyga: iow, there's no socket to talk to08:39
mborzeckizyga: and since the units are masked, they won't be started by accident08:40
zygamborzecki: masking is fine, but I think the remove sequence should first reduce the system to equivalent of "snap remove --all-the-snaps"08:45
zygaand then remove just snapd as it does now08:45
mborzeckizyga: hm but isn't that what it does currently?08:50
zyganot quite, we never remove the snaps, we just unmount and delete them (e.g. hooks don't run)08:51
zygabut on a bigger note, I strongly think we should not stop snapd while we do the purge, only at the very end08:51
zygacould purge really be "snap remove --purge --all-snaps" followed by ##DEBHELPER## ?08:52
mborzeckizyga: not really, there's no snap command at this point08:54
zygabecause .postrm?08:54
mborzeckiyup08:54
zygaI see08:54
zygaI mean we could adjust prerm/postrm08:54
mborzeckizyga: you could do it in prerm, but snapd is on it's way out, so why bother?08:54
zygamborzecki: because there's one implementation then08:55
zyganot two08:55
zygamount namespaces are discareded, hooks run08:55
zygadata is removed08:55
zygaright now all the shell scripts need to reimplement that08:55
zygain addition, snapd should stop / abort all background refresh tasks08:55
mborzeckizyga: what you're describing needs to run in prerm08:55
zygaI agree08:55
zygaI guess I'm saying we are here because what we got is complex and buggy08:56
zygaand I'm looking for a way to make it simple and not buggy08:56
zygaby piggy-backing on the existing machinery08:56
zygain addition, this needs to be implemented in all the distro scripts08:56
zygaone other thing prerm could do is to ask you if you want to retain snapshots or not08:57
mborzeckizyga: so first we probably need ot know why postrm cleans up the stuff and not prerm08:57
zyga(debconf)08:57
zygagood point08:57
mborzeckizyga: secodnly, can we expect snapd to be running at all in prerm08:57
zygait may be running or not08:57
zygaif it doesn't run we could just not remove things08:57
zygait's not the best outcome but I think that's unavoidable08:58
mborzeckizyga: but we can't leave things behind, can we? that's the whole point of purge aiui08:58
zygawell, it depends08:58
zygaI think we should take a step back08:58
zygaand look at what those scripts should do08:59
zygaand separately fix the immediate problem08:59
zygawhere purge is racy08:59
zygaperhaps we come to a conclusion that problem #2 is really problem #108:59
zygaperhaps there's a shorter intermediate path we can take08:59
mborzeckizyga: hm, tbh i thin i can move the debhelper in postrm back, it's not really changing anything09:07
zygamvo: ^ perhaps we need your opinion and wisdom09:07
mvozyga: slightly busy right now .( sorry, I can have a look in a bit, could you summarzize the input in the PR?09:11
zygamvo: I did already, we're wondering what to do about the pre/post rm scripts09:11
zygamborzecki: are centos8 failures expected now?09:16
mborzeckizyga: something new?09:17
zyganot specific, just mostly red tests across PRs09:17
zygamborzecki: https://github.com/snapcore/snapd/pull/8981#pullrequestreview-44456607309:28
mupPR #8981: boot, bootloader: query kernel command line of run mod and recovery mode systems <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/8981>09:28
pedronismborzecki: I did a pass on #8947, some questions/comments there09:38
mupPR #8947: many: update managed boot config when refreshing snapd <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/8947>09:38
mborzeckipedronis: thanks09:38
mborzeckizyga: thanks for the review too09:38
pedronismborzecki: pstolowski: I made the follow to my PRs: #898709:55
mupPR #8987: asserts: small improvements and corrections for sequence-forming assertions' support <Created by pedronis> <https://github.com/snapcore/snapd/pull/8987>09:55
pstolowskiack09:56
mupPR snapd#8987 opened: asserts: small improvements and corrections for sequence-forming assertions' support <validation-sets :white_check_mark:> <Created by pedronis> <https://github.com/snapcore/snapd/pull/8987>09:58
zygapstolowski: https://github.com/snapcore/snapd/pull/8979#pullrequestreview-44459485510:02
mupPR #8979: tests: more checks in core20 early config spread test <Test Robustness> <Created by stolowski> <https://github.com/snapcore/snapd/pull/8979>10:02
pstolowskity10:05
zygaI need reviews for 897710:18
* zyga dives into https://github.com/snapcore/snapd/pull/884310:18
mupPR #8843: [RFC] many: export tools from core/snapd to mount namespaces <Needs Samuele review> <Created by zyga> <https://github.com/snapcore/snapd/pull/8843>10:18
zygaeh, conflicts10:38
zygasnapstate_test.go conflicts are fun10:40
mupPR snapd#8985 closed: snap/validate.go: disallow snap layouts with new top-level directories <Bug> <Created by anonymouse64> <Merged by anonymouse64> <https://github.com/snapcore/snapd/pull/8985>10:43
zygabrb, break10:44
mborzeckizyga: tumbleweed seems to be failing, xdg-desktop-portal package is no longer present?10:49
zygadunno10:49
zygamaybe a new image?10:49
zygaok, coffee and back in a moment10:55
zygagotta rebase that thing10:55
zygare11:16
pstolowskidoh, we're hitting 'unknown nfs option' error on debian sid on 2.45, that was fixed in master some time ago11:16
mborzeck1pfff power outage11:20
mborzeck1ofc, synchronized home dirs like an hour ago, so missing the latest code changes11:21
zygasynchronized?11:23
zygaas in sync?11:23
mborzeck1yeah11:24
zygaas in write from ram to disk?11:25
mborzeck1zyga: no, as in synchronize the content of $HOME between my laptop and the desktop11:25
zygaahh11:25
mupPR core20#75 closed: 030-fix-timedatectl.chroot: fix quoting issues <Created by mvo5> <Merged by xnox> <https://github.com/snapcore/core20/pull/75>11:32
mborzeck2pfff11:35
zygahmm?11:35
mborzeck2power comes back, and it's off a minute later11:36
mborzeck2and there's no even a thunderstorm or strong wind11:36
zygahaha11:37
zygait's very common when guys are fixing power lines11:37
mupPR snapd#8988 opened: many: use more specific check for unit test mocking <Bug> <Test Robustness> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8988>11:59
* zyga has a cool idea :)12:14
=== tinwood is now known as tinwood-afk
realtime-neilHow does one build snapcraft from source?12:25
mupPR snapd#8981 closed: boot, bootloader: query kernel command line of run mod and recovery mode systems <UC20> <Created by bboozzoo> <Merged by cmatsuoka> <https://github.com/snapcore/snapd/pull/8981>12:29
zygadrat,12:39
* zyga ran out of space12:39
zygarealtime-neil: hey12:39
zygaI presume with snapcraft but for best advice please ask on the #snapcraft channel12:39
realtime-neilzyga: whoops, sorry12:39
diddledanrealtime-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:41
diddledanfor 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:42
realtime-neildiddledan: probably all of the above, modulo the topological sort along dependencies.12:43
realtime-neildiddledan: what would the workflow look like for someone trying to bootstrap from, say build-essential ?12:44
zygarealtime-neil: what are you trying to achieve?12:45
diddledanit depends what you want to work on12:45
zyganote that snapcraft is now a snap, not a classic package12:45
zygaso it's not using the traditional methods of building12:46
realtime-neilzyga: yeah, I'm noticing that from the more recent (early 2019) tutorials I find.12:46
realtime-neilzyga: I'm trying to achieve better understanding I like knowing where these things come from12:46
zygarealtime-neil: well, that's pretty easy, both are in github.com/snapcore/{snapcraft,snapd}12:47
zygaone is python the other is go, mostly12:47
zygaeach with their own deps12:47
zygaI assume you understand the difference between those but ask if you want to know more12:47
zygasnapd is built into several distinct ways depending on the purpose12:48
zygaI don't know much about snapcraft though12:48
realtime-neilyou assume correctly, and I was having trouble finding those repos from the snapcraft.io site, so thanks12:48
zygacachio: standup13:01
diddledanno, sit down!13:01
mupPR snapd#8987 closed: asserts: small improvements and corrections for sequence-forming assertions' support <validation-sets :white_check_mark:> <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/8987>13:29
mupPR snapd#8989 opened: osutil/systemd: add new pkg and systemd.EscapePath <Simple 😃> <UC20> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8989>13:34
=== tinwood-afk is now known as tinwood
mborzeckido we ahve grub-editenv packaged as a snap maybe?14:05
mborzeckis/ahve/have/14:05
mupPR snapd#8989 closed: osutil/systemd: add new pkg and systemd.EscapePath <Simple 😃> <UC20> <Created by anonymouse64> <Closed by anonymouse64> <https://github.com/snapcore/snapd/pull/8989>14:24
pedronispstolowski: mborzecki: thanks for the reviews of the validation-set PRs14:36
mborzeckipedronis: yw14:36
zygamborzecki: can you re-review https://github.com/snapcore/snapd/pull/897714:37
mupPR #8977: cmd/snap: track started apps and hooks <Created by zyga> <https://github.com/snapcore/snapd/pull/8977>14:37
zygaI'd love to make progress on that front and I think this step is ready14:37
mupPR snapd#8990 opened: systemd/escape: fix issues with "" and "\t" handling <Bug> <Simple 😃> <Test Robustness> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8990>14:39
* cachio lunch14:56
pstolowskipedronis: yw15:08
=== Eighth_Doctor is now known as Conan_Kudo
=== Conan_Kudo is now known as Eighth_Doctor
pstolowskihmm i could swear we had a helper for human-friendly unit (kB, mB...) output but cannot find it15:59
pstolowskimaybe i confused it with helpers for time16:00
pstolowskiah, got it, SizeToStr in strutil16:02
mupBug #1886840 opened: classic confined snap can't access audio devices <Snappy:New> <https://launchpad.net/bugs/1886840>16:04
mupBug #1886840 changed: classic confined snap can't access audio devices <Snappy:New> <https://launchpad.net/bugs/1886840>16:07
mupBug #1886840 opened: classic confined snap can't access audio devices <Snappy:New> <https://launchpad.net/bugs/1886840>16:13
jdstrandoSoMoN: hey, fyi, 20200706-1602UTC is now in prod (thanks roadmr!) so you should be able to use system-packages-doc now17:09
oSoMoNjdstrand, excellent, thanks!18:05
* cachio -> kenesiologist18:45
mupPR snapd#8991 opened: tests: preinstall shellcheck and run tests on focal <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/8991>18:45
mupBug #1886840 changed: classic confined snap can't access audio devices <snapd:New> <https://launchpad.net/bugs/1886840>18:49
mupPR snapcraft#3207 opened: packaging: use PEP-440 compliant versioning for python & snap <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/3207>19:49
mupPR snapcraft#3207 closed: packaging: use PEP-440 compliant versioning for python & snap <Created by cjp256> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3207>21:09
mupPR snapcraft#3208 opened: snap: set PATH for snapcraft command <bug> <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/3208>21:19

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