[05:02] <mup> PR snapd#8592 opened: Add initial support for the hardware-control interface <Created by devec0> <https://github.com/snapcore/snapd/pull/8592>
[07:13] <pstolowski> morning
[07:25] <zyga> Hi
[07:58] <BjornT> hi. i get this when trying to install a snap in a fresh ubuntu:20.04 lxd container: error: too early for operation, device not yet seeded or device model not acknowledged
[07:59] <zyga> Hey BjornT
[08:00] <zyga> This is a rather unfortunate part of our current implementation. After installing snapd there is a brief moment when snapd responds on the socket but is otherwise unable to do anything yet, as it is setting up some stuff
[08:00] <zyga> Normally it lasts a moment
[08:00] <zyga> Does it still happen?
[08:00] <BjornT> zyga: yes, it doesn't seem to go away
[08:01] <zyga> Can you run “snap changes” please
[08:01] <BjornT> zyga: https://paste.ubuntu.com/p/XmmVZfjgNG/
[08:02] <zyga> I can you try doing what you wanted before again? It seems that initialization is now done
[08:03] <BjornT> zyga: ah, yes, now it works
[08:04] <zyga> Cool
[08:13] <klaasvakie> Hi, if I have a snap refresh timer set to our maintenance windows, is there a way to check if there is actually a new snap that's going to be installed during that time?
[08:23] <zyga> klaasvakie: I don't believe there is, we don't have "snap refresh --dry-mode"
[08:23] <zyga> but there's a chance you could guesstimate that by looking at snap info
[08:23] <zyga> and checking the revision numbers installed on your system
[08:23] <zyga> and the channel you are tracking
[08:23] <zyga> and checking if snap info reports a different revision in the channel that is being tracked
[08:24] <zyga> if so, "snap refresh" will pick that revision
[08:27] <zyga> pstolowski: challenge for today, figure out what nukes some packages so that we don't have user-session services
[08:27] <klaasvakie> ok, thanks zyga. I'll script something around this. It basically makes the difference whether I have to stay at work on Friday nights or if I get to go home :)
[08:27] <zyga> the tests/main/session-tool-support test picks it up
[08:27] <zyga> normally this test passes all the time but there's an interaction with another thet where /{,usr/}lib/systemd/user/dbus.socket goes away
[08:28] <zyga> we probably remove the package with --autoremove or something similar
[08:28] <zyga> it's only occurring on deb-based systems so it may be using something hand-coded to apt-get remove stuff
[08:28] <zyga> klaasvakie: have you thought of using an enterprise proxy?
[08:28] <zyga> it's a fantastic way to manage your fleet
[08:28] <zyga> no need to worry about anything
[08:28] <zyga> it lets you control the revisions your systems see
[08:29] <zyga> https://docs.ubuntu.com/snap-store-proxy/en/
[08:29] <zyga> it's super nice iMO
[08:29] <klaasvakie> I have read about it, but I only started playing with 20.04 and snapd recently so I still have lots to learn
[08:30] <zyga> klaasvakie: you install the proxy on your network and configure each device to use it
[08:30] <zyga> klaasvakie: and then the proxy acts both as a cache
[08:30] <zyga> and as a control point where you can pick which revisions are "current"
[08:30] <zyga> let's you manage upgrades this way
[08:30] <klaasvakie> I'll consider the enterprise proxy, thanks for pointing it out
[08:32] <zyga> pstolowski: check this out please
[08:32] <zyga> https://github.com/snapcore/snapd/pull/8592/checks?check_run_id=641794081
[08:32] <mup> PR #8592: Add initial support for the hardware-control interface <Created by devec0> <https://github.com/snapcore/snapd/pull/8592>
[08:33] <zyga> panic in overlord/ifacestate tests
[08:34] <pstolowski> zyga: oh, not good, will check
[09:06] <pstolowski> zyga: running ifacestate tests in a loop, no panic so far (will run hooktest too)
[09:08] <zyga> is mvo off today?
[09:17] <seb128> zyga, yes, according to hr.c.c at least
[09:17] <zyga> ah, thank you
[09:17] <seb128> np
[09:17] <seb128> he should be back tomorrow according to the calendar
[09:22] <pstolowski> zyga: i think they took a swap day for the sprint
[09:22] <zyga> yeah
[09:22] <zyga> well deserved
[10:22] <mup> PR snapd#8593 opened: Stumb implementation of image.Prepare for darwin <Created by stolowski> <https://github.com/snapcore/snapd/pull/8593>
[10:25] <pstolowski> zyga: ^
[10:25] <zyga> oh :)
[10:26] <pstolowski> zyga: it's fine as is in master but fails on my other PR, so making it a prerequisite to reduce diff there
[10:26] <zyga> ok
[10:28] <pstolowski> i've tweaked the description
[10:28] <zyga> +1
[10:29] <pstolowski> ty
[11:23] <zyga> so, what's the most broken thing on master today
[11:24] <zyga> actually the preseed test
[11:24] <zyga> pstolowski: is the test fixed?
[11:24] <zyga> pstolowski: IIRC you sent updates
[11:25] <zyga> is it just unlucky, can it land now?
[11:25] <pstolowski> let me check
[11:25] <zyga> thank you
[11:26] <pstolowski> ah no, it landed. where is it failing?
[11:26] <pstolowski> zyga: ^
[11:26] <zyga> ah, great
[11:26] <zyga> I just need to rebase then
[11:26] <zyga> older branch from last week
[11:26] <pstolowski> ok
[11:33] <pstolowski> zyga: i see tests/main/interfaces-audio-playback-record failure
[11:33] <zyga> yeah
[11:33] <pstolowski> it's interesting
[11:33] <pstolowski> + rm -rf /run/user/12345 /home/test/.config/pulse
[11:33] <pstolowski> 1476
[11:33] <pstolowski> rm: cannot remove '/run/user/12345/doc': Is a directory
[11:33] <zyga> https://github.com/snapcore/snapd/pull/8581
[11:33] <zyga> :|
[11:34] <zyga> maybe I could merge all the fix branches
[11:34] <mup> PR #8581: tests: port pulseaudio test to session-tool <Created by zyga> <https://github.com/snapcore/snapd/pull/8581>
[11:34] <zyga> and just merge them together
[11:39] <pstolowski> ah, that, right..
[11:44] <zyga> I guess
[11:44] <zyga> with some luck
[11:44] <zyga> we can land them
[11:45] <zyga> just reduce the failure ratio one by one
[11:46] <zyga> pstolowski: https://github.com/snapcore/snapd/pull/8578 is rather simple if you want to look
[11:46] <mup> PR #8578: interfaces: add host-docs interface <Created by zyga> <https://github.com/snapcore/snapd/pull/8578>
[11:46] <pstolowski> zyga: right, i'll
[12:10] <oSoMoN> forum.snapcraft.io appears to be down
[12:12] <slyon> hey #snappy! What is the best way to build a snap, which uses "base:core20"? The "core20" release does not yet seem to be available inside multipass, which makes my build fail...
[12:13] <zyga> slyon: that's a great question, I don't actually know
[12:13] <mup> PR snapcraft#3096 closed: pluginhandler: export SNAPCRAFT_BUILD_BASE to build environment <Created by cjp256> <Closed by cjp256> <https://github.com/snapcore/snapcraft/pull/3096>
[12:13] <zyga> slyon: core20 beta will be released soon,
[12:13] <zyga> slyon: I suspect it will be generally available after that
[12:16] <oSoMoN> jdstrand, when you have a chance, can you comment on bug #1876442, please?
[12:16] <mup> Bug #1876442: [snap] chromium causing many audit messages in syslog <snap> <chromium-browser (Ubuntu):New> <https://launchpad.net/bugs/1876442>
[12:17] <slyon> zyga, hmm... thanks for the reply, anyway!
[12:17] <cjp256> slyon: you should be able to use core20 if using snapcraft from candidate/edge channels.  there are rough edges still, so it's not yet in the stable channel.
[12:21] <zyga> jamesh: hey
[12:22] <zyga> jamesh: it's kind of late, are you around by any chance?
[12:36] <ijohnson> morning folks
[12:36] <zyga> hey Ian
[12:36] <zyga> roses are red
[12:36] <zyga> and so is master
[12:36] <zyga> there is no rhyme
[12:36] <zyga> it's a disaster
[12:36] <ijohnson> just like there is no green
[12:36] <zyga> # just made up on the spot
[12:36] <zyga> :D
[12:37] <ijohnson> is it just you and pstolowski today?
[12:37] <zyga> so far
[12:37] <pstolowski> hi ijohnson !
[12:37] <ijohnson> o/ pstolowski
[12:37] <ijohnson> I think Claudio said it was a public holiday there, not sure about Sergio
[12:37] <pstolowski> ijohnson: one tiny nitpick to our lxd test PR, i'm happy to approve
[12:37] <ijohnson> sure, let me look now
[12:38] <zyga> pstolowski: thanks for spotting that, I missed it!
[12:38] <zyga> my back hurts, I would like to exercise a little
[12:38] <zyga> maybe after standup
[12:40] <ijohnson> zyga: so what's all red, is it many things?
[12:40] <ijohnson> zyga: is it anything related to the session-tool stuff we landed last week?
[12:40] <zyga> ijohnson: random stuff we fixed last week that we couldn't land because $(other_thing)
[12:40] <ijohnson> ah
[12:40] <zyga> ijohnson: nothing new AFAIK
[12:40] <zyga> ijohnson: I think we can push it all in with some luck in sequencing
[12:40] <zyga> ijohnson: I'd love to land the pulse test first as it fails most often
[12:41] <zyga> ijohnson: there _is_ something new, something picked up by one of the new tests (session-tool-support)
[12:41] <zyga> ijohnson: something removes a debian package in during execution
[12:41] <zyga> and that breaks all session tests as systemd --user has no service definitions for dbus anymore
[12:41] <ijohnson> ah right I remember you talking with Maciej about this a bit last week
[12:41] <zyga> that's the dbus-user-session package
[12:41] <zyga> I'm trying to find it but no luck yet (though I was distracted with general catch-up and the shutdown bug from Alex)
[12:42] <zyga> ijohnson: if all else fails let's "apt-get install" it in per-test prepare
[12:42] <zyga>  or flag its absence in restore
[12:42] <ijohnson> zyga: re the shutdown bug, did you see my notes on that in the SU doc?
[12:42] <zyga> I'll try to get to that later today but if you beat me to it I'd love to
[12:42] <zyga> oh, no
[12:42] <zyga> let me look
[12:42] <zyga> reading
[12:43] <zyga> My gut feeling was
[12:43] <zyga> it's the same bug we fixed recently in the context of lxd-in-classic
[12:43] <zyga> it's a core system so perhaps this is a false trail
[12:44] <zyga> but perhaps it's a "snap stop ..." command that runs in ExecStop=
[12:44] <zyga> and the sequence is that core18 unmounted snapd
[12:44] <zyga> but we have core
[12:44] <zyga> and now there's a skew
[12:44] <zyga> I wonder what happens on a core system
[12:44] <zyga> where get core18 + snapd
[12:44] <ijohnson> zyga: let's discuss the bug in the internal channel
[12:44] <zyga> and core
[12:44] <zyga> ok
[13:01] <ijohnson> zyga: SU?
[13:01] <zyga> joining
[13:42] <cachio> pstolowski, https://travis-ci.org/github/snapcore/spread-cron/builds/682751904#L3799
[13:42] <cachio> error in the preseed test
[13:43] <cachio> cmatsuoka, https://travis-ci.org/github/snapcore/spread-cron/builds/682751904#L4031
[13:43] <cachio> error in encript test
[13:45] <pstolowski> cachio: thanks, i'll investigate
[13:45] <cachio> pstolowski, thanks
[13:45] <zyga> pstolowski: so journal test failed again
[13:46] <zyga> makes me wonder about something you said recently
[13:46] <zyga> that restarting journal restarts snapd
[13:46] <zyga> do I remember that correctly?
[13:46] <pstolowski> zyga: yes
[13:46] <zyga> pstolowski: on core or on classic as well?
[13:46] <pstolowski> zyga: but now i'm sending sigusr1. i added some debug to the test
[13:47] <pstolowski> zyga: it's core-only config, i didn't check classic
[13:47] <zyga> I tried various things on my system and journal restarts fine
[13:47] <zyga> and snapd does *not* restart
[13:47] <zyga> I wonder why it would behave differently on core
[13:47] <pstolowski> zyga: i think it was only on core 16
[13:48] <pstolowski> zyga: do you have a log from this failure?
[13:48] <zyga> pstolowski: yeah,
[13:49] <zyga> I just restarted journal on core16 - no snapd impact
[13:49] <pstolowski> hmm
[13:50]  * ijohnson -> quick break
[13:50] <zyga> pstolowski: the failure was on
[13:50] <zyga> https://github.com/snapcore/snapd/runs/642670950
[13:50] <zyga> I need a break to stretch my back
[13:50] <zyga> but I will look next
[13:50] <zyga> don't worry :)
[13:58] <pstolowski> zyga: my debug there shows: Process: 21744 ExecStart=/usr/lib/snapd/snapd (code=killed, signal=PIPE)
[13:58] <zyga> oh :)
[13:58] <zyga> hahah
[13:58] <zyga> funny
[13:59] <zyga> sigpipe is ignored in systemd in the future
[13:59] <zyga> I bet we just need a small tweak
[13:59] <zyga> let me check this, this is great hint!
[13:59] <pstolowski> zyga: but why is this?
[13:59] <zyga> pstolowski: I will explain in a sec, just need to check it
[14:00] <zyga> pstolowski: stdout/stderr are piped to journald
[14:00] <zyga> pstolowski: https://github.com/cybozu-go/well/issues/13
[14:00] <pstolowski> zyga: aaaah
[14:01] <pstolowski> zyga: that's annoying, becuase we tell journald to just reload config :/
[14:01] <pstolowski> not to restart
[14:01] <zyga> software
[14:01] <pstolowski> sigusr1
[14:02] <zyga> must be broken somehow :)
[14:02] <zyga> it may just to that, it's still closing the pipe apparently
[14:02] <zyga> I wonder though
[14:02] <zyga> if that leaves us without any logging
[14:02] <zyga> because if we ignore it
[14:02] <zyga> ...
[14:02] <zyga> do we log anywhere?!
[14:03] <zyga> https://bugs.freedesktop.org/show_bug.cgi?id=84923
[14:03] <pstolowski> heh, indeed
[14:03] <zyga> oh my god
[14:03] <zyga> this is so bad
[14:03] <zyga> I mean
[14:03] <zyga> it's just literally killing snapd at _arbitrary_ point due to snap set
[14:03] <zyga> well
[14:03] <zyga> first thing is first
[14:03] <zyga> let's fix the test not to break
[14:03] <zyga> then let's figure out what needs to be done
[14:04] <pstolowski> it's worse, it's killing it while in configure hook
[14:05] <pstolowski> the test cannot be fixed really afaiu, snapd simply gets killed as snap set is being executed
[14:06] <zyga> pstolowski: https://bugs.freedesktop.org/show_bug.cgi?id=84923#c9
[14:06] <zyga> this is the killer
[14:06] <zyga> pstolowski: essentially on core16 we cannot have this feature
[14:06] <zyga> pstolowski: OR
[14:06] <zyga> pstolowski: we need to architect it so that snapd saves state and organizes a controlled "semi shutdown", anticipating SIGPIPE
[14:07] <zyga> pstolowski: we should escalate this
[14:09] <pstolowski> yes
[14:10] <pstolowski> i can prepare a PR that disables the feature & test for now (but not reverts it, just disables)
[14:10] <pstolowski> and then we can think
[14:14] <pstolowski> ah, we can disabled it just on core16
[14:14] <pstolowski> *disable
[14:15] <pstolowski> zyga: thanks for finding these bug reports!
[14:17] <zyga> pstolowski: https://github.com/snapcore/snapd/pull/8594
[14:17] <mup> PR #8594: tests: work around journald bug in core16 <Test Robustness> <Created by zyga> <https://github.com/snapcore/snapd/pull/8594>
[14:17] <zyga> pstolowski: I think we should consider disabling this *feature* on core16
[14:17] <zyga> or consider a backport of journald fix - if feasable - from foundations
[14:18] <mup> PR snapd#8594 opened: tests: work around journald bug in core16 <Test Robustness> <Created by zyga> <https://github.com/snapcore/snapd/pull/8594>
[14:21] <pstolowski> zyga: giving that core16 will eventually *cough* go away...
[14:21] <zyga> pstolowski: in 2016 ;)
[14:22] <pstolowski> zyga: thank you for the PR, looks great, i wonder if we shouldn't make retry conditional on core16 though, so we don't hide potential issue on other cores
[14:22] <zyga> yeah, I thought about that for a sec
[14:22] <zyga> it's testing now, if it passes I'll send a tweak
[14:22] <pstolowski> sounds good
[14:25] <zyga> pstolowski: ohh
[14:25] <zyga> https://www.theverge.com/2020/5/4/21245940/macbook-pro-13-inch-apple-new-magic-keyboard-price-release-date
[14:30] <zyga> ijohnson, pstolowski, cmatsuoka: please review https://github.com/snapcore/snapd/pull/8594 - mvo can merge this later today if it's +2
[14:30] <mup> PR #8594: tests: work around journald bug in core16 <Test Robustness> <Created by zyga> <https://github.com/snapcore/snapd/pull/8594>
[14:31] <ijohnson> zyga: looking
[14:31] <cmatsuoka> zyga: ack, checking it
[14:31] <zyga> to clarify, retry-tool there just gives us more chances
[14:31] <zyga> snapd still restarts
[14:31] <zyga> but snap the client, may get a chance to talk to it after reconnection more often
[14:31] <zyga> and may eventually work
[14:31] <zyga> that's all
[14:32] <zyga> this test fails in master randomly but often enough to be annoying
[14:32] <pstolowski> yeah, my only remark is to make retry conditional on core16
[14:39] <ijohnson> zyga: reading backlog, IMHO I think this needs to be escalated to foundations for a core16 backport
[14:39] <ijohnson> zyga: this feature was originally slated for a uc16 customer IIRC
[14:39] <ijohnson> so we can't just not have this feature on uc16 I think
[14:41] <ijohnson> also I agree with pstolowski I think we should only do this on uc16
[14:45] <zyga> I agree on both
[14:46] <zyga> Afk because back pain
[14:59] <mup> PR snapcraft#3104 opened: packaging: use git-based versioning for python package <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/3104>
[15:03]  * cachio lunch
[15:07] <zyga> I made the modifications and will push after round of local testing
[15:29] <zyga> pushed now
[15:31] <zyga> pstolowski, ijohnson: the relevant systemd commit is 13790add4bf648fed816361794d8277a75253410
[15:31] <zyga> I will look if we can have a backport
[15:32] <ijohnson> thanks for digging into that zyga, a LP bug is probably a good place to co-ordinate with foundations?
[15:32] <zyga> yeah, I will file one today
[15:32] <ijohnson> cool
[15:32] <pstolowski> zyga: \o/
[15:36] <zyga> ugggh
[15:36] <zyga> ijohnson: it's hopeless
[15:36] <zyga> we are on 219
[15:36] <zyga> we need at least 236
[15:36] <ijohnson> damn
[15:36] <zyga> the infrastructure to support it is substantial
[15:37] <zyga> journald passes a bunch of FDs to save to systemd
[15:37] <zyga> restartes
[15:37] <zyga> *restarts
[15:37] <zyga> and gets them back
[15:37] <zyga> there's no other way
[15:37] <zyga> so I guess ... SOL
[15:37] <zyga> I need to rest again, my back is killing me today :/
[15:37] <zyga> if I forget, please escalate this tomorrow to mvo
[15:37] <ijohnson> of course
[15:38] <ijohnson> I will put some thoughts into the SU doc so we don't forget
[15:38] <zyga> thank you!
[15:46] <ijohnson> pstolowski: so when we go to change the persistence of journald, can we change a config file and then just reboot the whole system ?
[15:46] <ijohnson> it wouldn't be  great that we have to restart the system just to change logging but it's certainly better than having things all randomly die
[15:47]  * ijohnson goes to read the implementation in snapd
[15:47] <pstolowski> ijohnson: reboot is not needed, it's a problem only with core16
[15:48] <ijohnson> pstolowski: no I mean for core16 could we reboot?
[15:48] <pstolowski> ijohnson: ah, i see. well, yes we could i suppose
[15:48] <ijohnson> pstolowski: because afaict the issue is that when we reload journald it kills everything which is bad, so maybe instead of reloading journald we just change some config file behind journald's back and then reboot the system so upon boot it would be fixed
[15:49] <ijohnson> I presume that journald is not inotify'ing the config files, etc.
[15:49] <pstolowski> ijohnson: heh, there is no config file
[15:49] <ijohnson> pstolowski: so there's just the dir that's created in /var/log/journal?
[15:49] <pstolowski> ijohnson: you just create /var/log/journal
[15:49] <pstolowski> ijohnson: and reboot
[15:50] <ijohnson> pstolowski: hmm maybe worth a try
[15:50] <pstolowski> ijohnson: normally you send sigusr1 to notify journald about change
[15:51] <ijohnson> right, so on uc16, instead of sending sigusr1, we would just request a restart
[15:52] <pstolowski> ijohnson: yes
[15:52] <ijohnson> pstolowski: would we need some kind of special code to make the change/tasks associated with this work, or could I just try putting in handleJournalConfiguration a call to restart snapd ?
[15:53] <ijohnson> hmm although that's probably not the level we want to restart things
[15:53] <ijohnson> err I mean reboot the system
[15:54] <pstolowski> ijohnson: that's a fair point
[15:55] <ijohnson> alright well I'll just leave this idea in the SU docs for folks to think about, I have a bit too much on my plate to dig more deeply on this
[16:08] <ijohnson> pstolowski: did you see I assigned you a bug on Friday related to hotplug and auto-connect?
[16:08] <ijohnson> https://bugs.launchpad.net/snapd/+bug/1876356
[16:08] <mup> Bug #1876356: greedy auto-connect doesn't work with hotplug <snapd:Confirmed for stolowski> <https://launchpad.net/bugs/1876356>
[16:08] <ijohnson> just curious if you have any thoughts on why that doesn't "just work"
[16:08] <pstolowski> ijohnson: ah, no, i didn't
[16:08] <ijohnson> no worries, I think it's a lowish priority thing
[16:10] <pstolowski> ijohnson: thanks for all the details in the report, i'll see if there is anything obvious
[16:10] <pstolowski> missing
[16:20] <mup> Bug #1876478 changed: Automatic snap refreshes changes state of service from stopped to running <Snappy:Invalid> <https://launchpad.net/bugs/1876478>
[16:41] <mup> PR snapcraft#3105 opened: build provider: clean incompatible build-environments <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/3105>
[17:11] <zyga> it seems the portal test is leaking stuff
[17:11] <zyga> | |-/run/user/12345                   tmpfs                                                                                    tmpfs      rw,nosuid,nodev,relatime,size=377196k,mode=700,uid=12345,gid=12345                                   shared
[17:11] <zyga> | | `-/run/user/12345/doc             /dev/fuse                                                                                fuse       rw,nosuid,nodev,relatime,user_id=12345,group_id=12345                                                shared
[17:11] <zyga> oh well
[17:11] <zyga> another test to fix
[17:14] <ijohnson> zyga: could we just do `[ -d $XDG_RUNTIME_DIR/doc ] && umount $XDG_RUNTIME_DIR/doc` ?
[17:14] <ijohnson> at the end of teardown_portals ?
[17:16] <zyga> ijohnson: perhaps but I doubt that is the problem
[17:16] <zyga> the problem is more comple
[17:16] <zyga> *complex
[17:16] <zyga> we *activate* portals each time we invoke a program that seems to have a desktop plug (at all)
[17:16] <zyga> so any test using snap run may trigger it
[17:16] <ijohnson> Hmm really?
[17:16] <zyga> yeah
[17:17] <zyga> I suspect we run a program via su -u test
[17:17] <zyga> and that runs the portal outside of the session
[17:17] <zyga> so just happily in the space
[17:17] <zyga> I'll add a small check and run all the tests
[17:17] <zyga> what we really need is proper session teradown
[17:18] <zyga> we may need to change session-tool --restore to wait for linger shutdown as well, I need t ocheck
[17:18] <zyga> but first, need to find that test that leaks this
[17:18] <zyga> saving the log archive
[17:21] <zyga> we ran this before: 2020-05-04T16:33:35.0630508Z 2020-05-04 16:33:35 Preparing google:ubuntu-19.10-64:tests/main/interfaces-desktop-document-portal (may041608-600544)...
[17:24] <zyga> https://www.irccloud.com/pastebin/y3YiWMAY/
[17:24] <zyga> it's one of those tests for sure :)
[17:25] <zyga> ijohnson: oh my
[17:25] <zyga> that test *badly* need session-tool
[17:27] <zyga> why is that test using snap-try?
[17:28] <zyga> ijohnson: session-tool beats su not because of any technical choices but simply becaues it puts the damn username before the damn command
[17:28] <ijohnson> Hahaha
[17:29] <ijohnson> Yeah I will look into this some more after lunch if you haven't figured it out
[17:29]  * ijohnson -> lunch 
[17:32] <zyga> done
[17:32] <zyga> ijohnson: I'll send a PR shortly
[17:36] <zyga> ijohnson: I wonder if I should grep for "su" in the code
[17:36] <ijohnson> you might be afraid of what you find
[17:37] <mup> PR snapd#8595 opened: o/ifacestate/handlers.go: fix typo <Simple 😃> <Skip spread> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8595>
[17:39] <mup> PR snapd#8589 closed: tests: port user-session-env to session-tool <Test Robustness> <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/8589>
[17:39] <mup> PR snapd#8594 closed: tests: work around journald bug in core16 <Test Robustness> <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/8594>
[17:39] <zyga> wooooot
[17:40] <mup> PR snapd#8581 closed: tests: port pulseaudio test to session-tool <Test Robustness> <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/8581>
[17:40] <mup> PR snapd#8587 closed: tests: session-tool allows preparing/restoring for many users <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/8587>
[17:47] <ijohnson> yay mvo for the win
[17:55] <zyga> interesting stuff I find
[17:55] <zyga> I wonder if 19.10 specific
[17:55] <zyga> maybe some fluke of bugs interacting
[17:56] <zyga> so on 19.10 session-tool -u test --prepare
[17:56] <zyga> seems to ... not make a session
[17:56] <ijohnson> that's the only reason snaps work at all sometimes is that bugs interact and cancel each other out
[17:56] <zyga> ??!
[17:56] <zyga> hahaha
[17:56] <ijohnson> so session-tool has become the-tool
[17:56] <zyga> isn't that like half of current physics theories ;)
[17:56] <ijohnson> on 19.10 at least
[17:56] <zyga> all the infinities cancel each outher ;)
[17:56] <ijohnson> yep!
[18:01] <zyga> ijohnson: totally off-topic, over weekend I got an i2c DS 1307 RTC add-on to my raspberry pi
[18:01] <zyga> maybe next weekend I'll have a snap that manages time
[18:01] <ijohnson> very nice
[18:01] <zyga> though not perfectly (late boot)
[18:01] <zyga> I wonder if there would be a way to run some super-special things earlier via snapd
[18:01] <ijohnson> I have an RTC board too ... somewhere in my collection of random add-on things
[18:01] <zyga> (with appropriate interfaces)
[18:01] <zyga> cool
[18:02] <ijohnson> true, it would be most useful to have a RTC available during early boot
[18:02] <zyga> I wonder if it uses the same chip, I heard DS 1307 is popular
[18:02] <zyga> ijohnson: sadly it's not a /dev/rtc kind of thing
[18:02] <zyga> maybe it could be if device tree said something
[18:02] <ijohnson> yeah most rpi things seem to not be quite as simple plug and play like that
[18:02] <zyga> but I don't know how to do that
[18:02] <ijohnson> yeah I haven't looked into that at all either
[18:03] <zyga> https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/rtc/rtc-ds1307.txt <- it seems to be supported
[18:06] <ijohnson> nice so I bet with your own pi gadget it would probably just work
[18:07] <zyga> I don't know how to use DBTs though :)
[18:07] <zyga> more to learn
[18:36] <zyga> digging deeper
[18:36] <zyga> but I will EOD soon
[18:37] <zyga> really not well today
[18:37] <zyga> and it's late
[18:38] <mup> PR snapd#8595 closed: o/ifacestate/handlers.go: fix typo <Simple 😃> <Skip spread> <Created by anonymouse64> <Merged by zyga> <https://github.com/snapcore/snapd/pull/8595>
[18:48] <zyga> drat
[18:48] <zyga> my daughter turned off my laptop
[19:21] <zyga> I see a pattern now, I wonder what's the cause
[19:21] <zyga> but I also have a solution
[19:22] <zyga> just cannot justify it apart from "it seems to work"
[19:22] <zyga> I guess some systemd sources are to be read
[19:38] <mup> PR snapcraft#3106 opened: sources: enable git, local, and tar handlers for all platforms <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/3106>
[19:39] <mup> Bug #1875543 changed: Ubuntu 20.04 "A stop job is running for Snappy Daemon" during shutdown <20.04> <ubuntu> <Snappy:New> <https://launchpad.net/bugs/1875543>
[19:42] <mup> Bug #1876478 opened: snap stop does not explain that automatic snap refreshes starts stopped, enabled svcs <Snappy:Confirmed for morrisong> <https://launchpad.net/bugs/1876478>
[19:46] <zyga> ijohnson: around? :)
[19:46] <ijohnson> yep
[19:47] <zyga> ijohnson: so here's what I learned: on 19.10 loginctl disable-linger leaves user@12345.service in user-12345.slice
[19:47] <zyga> why? I don't know yet
[19:47] <zyga> stopping the slice reliably stops everything and /run/user/12345 goes away
[19:48] <zyga> on 20.04 I don't see it
[19:48] <ijohnson> huh
[19:48] <zyga> I wonder if there's an interplay with some workarounds
[19:48] <ijohnson> that feels like a bug to me
[19:48] <zyga> so I patched session-tool to add the stops and the extra check for /run/user/12345 (for the test user obviously)
[19:48] <ijohnson> in systemd that is
[19:48] <ijohnson> wait but shouldn't the systemd version be basically the same between 19.10 and 20.04 ?
[19:49] <zyga> and I'm running a pass to see how it affects the "fleet" of systems running user-mounts test
[19:49] <zyga> ijohnson: 242 vs 245
[19:49] <zyga> ijohnson: we have a logind workaround for 242 (fixed in ... wait for it ... 243!)
[19:49] <zyga> ijohnson: so maybe more bugs bugs bugs
[19:49] <zyga> ijohnson: I've yet to look at logind source but that's my next plan
[19:50] <zyga> I kind of want core 20 now
[19:50] <zyga> at least so many systemd bugs are gone there
[19:50] <ijohnson> haha
[19:51] <zyga> ijohnson: with the change user-mounts with trivial restore (session-tool -u test --restore) leaves no junk behind
[19:51] <zyga> and I bet this improves interplay with other tests
[19:51] <zyga> but why? :D
[19:51] <zyga> beats me
[19:51] <ijohnson> bugs that's why
[19:52] <zyga> it's super late and my wife looks at me with that very clear "STOP WORKING" eyesight
[19:52] <zyga> so I'll defer that
[19:52] <ijohnson> ttyl zyga :-)
[19:52] <zyga> but I'll send the patch for user-mounts in today still
[19:52] <zyga> now suppe r:)
[20:44] <zyga> ijohnson: session-tool patch https://github.com/snapcore/snapd/pull/8596
[20:44] <mup> PR #8596: tests: session-tool --restore -u stops user-$UID.slice <Test Robustness> <Created by zyga> <https://github.com/snapcore/snapd/pull/8596>
[20:44] <mup> PR snapd#8596 opened: tests: session-tool --restore -u stops user-$UID.slice <Test Robustness> <Created by zyga> <https://github.com/snapcore/snapd/pull/8596>
[20:44] <ijohnson> Nice
[20:45] <zyga> it's not perfect because "Unknown reasons" but it's progress
[20:46] <zyga> I also suspect this could have some impact on other tests, as they were effectively leaking more bits
[20:47] <zyga> plus this is a PR for master after mvo landed all the good fixes
[20:47] <zyga> so with a bit of hope it won't fail
[20:52] <zyga> ijohnson: and this is the user-mounts test
[20:52] <zyga> https://github.com/snapcore/snapd/pull/8597
[20:52] <mup> PR #8597: tests: port user-mounts test to session-tool <Created by zyga> <https://github.com/snapcore/snapd/pull/8597>
[20:52] <zyga> and some typo fixes
[20:53] <mup> PR snapd#8597 opened: tests: port user-mounts test to session-tool <Created by zyga> <https://github.com/snapcore/snapd/pull/8597>
[20:53] <zyga> I'll break for an hour and walk the dog
[21:05] <ijohnson> zyga approved the session-tool one and commented on the other one
[21:05]  * ijohnson EODs
[22:20] <mup> PR snapcraft#3106 closed: sources: enable git, local, and tar handlers for all platforms <Created by cjp256> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3106>