[05:39] <mborzecki> morning
[06:28] <mup> PR snapd#5459 opened: cmd/snap: add 'debug paths' command <Simple> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5459>
[06:50] <zyga> good morning
[06:56] <mborzecki> zyga: hey
[07:05] <pstolowski> mornigns
[07:05] <mborzecki> pstolowski: heya
[07:08] <mvo> hey pstolowski and mborzecki
[07:08] <mborzecki> mvo: hey, have you seen https://forum.snapcraft.io/t/need-help-snapd-services-in-ubuntu-18-04/6205/4?
[07:10] <mvo> mborzecki: good morning - not yet, let me look
[07:12]  * zyga settles in for work
[07:13] <zyga> today looks, finally, like an emerging summer day
[07:13] <zyga> it's not expected to rain and temperatures will be a little above 20
[07:14] <mvo> mborzecki: hm, hm
[07:22] <mborzecki> mvo: wouldn't that be caused by stuff running with 5minute iteration times?
[07:27] <zyga> mvo: that's not great :/
[07:27] <zyga> mvo: is seeding blocking 1st boot?
[07:27] <zyga> mvo: or perhaps registration blocking 1st boot
[07:28] <mvo> mborzecki: can you elaborate a bit, not sure I get what you mean. I think we have two problems: a) its so slow - why is that? we don't seed on classic, so the snapd startup is slow. I saw earlier reports about missing entropy in VMs so that might be a clue then we need to figure out why we need random data b) why we block login, i.e. we should not have wantedby=multi-user.target
[07:28] <mvo> zyga: aiui this happens on every boot not just first boot
[07:29] <mvo> zyga: in any case, I think we need to check what target we can use that is not blocking login
[07:29] <zyga> mvo: if this is on every boot then something is very wrong
[07:29] <zyga> unless it fails and keeps retrying
[07:30] <mvo> zyga: yeah, it *might* be entropy but it might also be something else, definitely not reproducible on my (real HW) box but I try a VM next
[07:30] <zyga> mvo: I'm all-day-vm and I haven't seen that
[07:30] <zyga> mvo: but I'm in vmware
[07:30] <mvo> ok
[07:34] <mborzecki> mvo: tought that it's some ensure thingy, but i see that doMarkSeeded calls EnsureBefore(0) so it's probably good
[07:36] <pedronis> mborzecki: yes, I added it so that registration starts immediately but nothing waits on registration afaiu
[07:36] <pedronis> (I mean refresh does but shouldn't be visible outside)
[07:36] <mborzecki> hm if release.OnClassic && !osutil.FileExists(seedYamlFile) {, is there a seed.yaml in the desktop images?
[07:37] <pedronis> they do seeding in 18.04, no?
[07:37] <pedronis> I mean desktop
[07:37] <mborzecki> hmm maybe that gnome-calculator snap
[07:38] <mborzecki> still doesn't explain why this happens on each boot :(
[07:38] <pedronis> each is weird
[07:38] <pedronis> apparmor stuff ?
[07:38] <pedronis> do we reload profiles for some strange reasons at each boot?
[07:42] <mvo> mborzecki: do you know if there is a default systemd target that runs after multi-user?
[07:42] <zyga> pedronis: on a new kernel we would but otherwise no
[07:42] <mborzecki> mvo: iirc graphical requires multi-user
[07:42] <zyga> mborzecki: graphical.target
[07:43] <mborzecki> yup systemctl cat graphical.target
[07:43] <mborzecki> Requires=multi-user.target
[07:43]  * zyga learned this while installing RHEL 7 
[07:43] <mborzecki> haha ;)
[07:44] <zyga> any objections for merging https://github.com/snapcore/snapd/pull/5443
[07:45] <mup> PR #5443: interfaces: treat "snapd" snap as type:os <Core18> <Created by zyga> <https://github.com/snapcore/snapd/pull/5443>
[07:45] <zyga> mborzecki: I was thinking if we should build a script that collects some information for debugging
[07:46] <zyga> for people that come and say "foo is broken"
[07:46] <zyga> we ask snap version, os-release, a few others
[07:52] <mborzecki> zyga: a combination of all debug commands probably
[07:56] <Chipaca> zyga: 'snap debug lies'
[07:57] <zyga> Chipaca: snap debug report
[07:57] <zyga> I already like it
[07:57] <zyga> but I think it should be a shell script in case "snap debug" is broken
[07:57] <mvo> hm, askubuntu is interessting
[07:57] <zyga> mvo: ?
[07:57] <mvo> one guy reports the problem *and* he did not upgrade snapd but the kernel and a bunch of unrelated packages
[08:01] <mup> PR snapd#5443 closed: interfaces: treat "snapd" snap as type:os <Core18> <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5443>
[08:05] <mborzecki> Chipaca: and you don't know if it's a verb or a noun ;)
[08:10]  * zyga debugs interfaces-many
[08:13] <zyga> public service announcement
[08:13] <zyga> using MATCH for if ... MATCH; then ... else .... fi is not good, it spams the log with garbage that you don't want to see
[08:21] <zyga> also running this test makes me want to run and optimize
[08:24] <mvo> so askubuntu indicates that using the older kernel makes the problem go away and the kernel was released two days ago
[08:24] <mvo> so that matches - *but* its not clear why I can't reproduce it :(
[08:25] <Chipaca> zyga: make 'snap foo' try to run snap-foo if foo isn't an internal command, and ship snap-debug-report?
[08:25] <zyga> ooooh
[08:25] <zyga> that's sweet
[08:25] <zyga> actually /usr/lib/snapd/snap-foo maybe
[08:25] <Chipaca> ye
[08:26] <zyga> that would be nice, too bad golang cannot do small executables
[08:26]  * zyga applied one simple apparmor optimization and goes to look for breakfast
[08:26] <Chipaca> zyga: i thought you said it'd be a script?
[08:26] <zyga> yes
[08:26] <zyga> but in general
[08:26] <zyga> this one would be a script, yes
[08:26] <Chipaca> zyga: second breakfast i hope
[08:27] <zyga> um
[08:27] <zyga> nope
[08:28] <zyga> I tend to shift my hours late
[08:28] <zyga> And I wake up later as well
[08:29] <zyga> Well apart from today at 5AM because $SUNSHINE
[08:35]  * Chipaca off to take one of the boys to the doc
[08:35] <Chipaca> bbiab
[08:40] <mborzecki> simple review https://github.com/snapcore/snapd/pull/5459 anyone?
[08:40] <mup> PR #5459: cmd/snap: add 'debug paths' command <Simple> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5459>
[08:43] <zyga> ohh, nice
[08:47] <pedronis> Job for systemd-journald.service failed. See "systemctl status systemd-journald.service" and "journalctl -xe" for details.
[08:47] <zyga> pedronis: I saw that on travis yesterday
[08:47] <pedronis> fun
[08:47] <zyga> weird-ish but I think not new
[08:47] <zyga> very unlikely combination of jurnal ops
[08:48] <zyga> (racy)
[08:48] <zyga> we probably don't wait for it to stop and sync
[08:48] <zyga> and restart fails because it's running
[08:48] <zyga> or something
[08:51] <mvo> xnox: hey, good morning! a recent kernel update caused some issues with random numbers and that caused snapd to start super slow (because it now waits for entropy). what is the best way to a) ensure snapd starts b) but is not in the way of the login screen? do we need a different target (wantedby) than multi-user.target?
[09:11] <zyga> tests are taking longer, I suspect they will pass now
[09:11] <zyga> which is good :)
[09:13] <niemeyer> Mornings
[09:13] <zyga> hey
[09:14] <niemeyer> mvo: I've merged the spread PR, with a small tweak so closing the old session is done right before assigning the new one, similar to what we have before.. that avoids multi-closing and leaving a closed session assigned.. please let me know if the old behavior was intended somehow
[09:15] <niemeyer> mvo: Travis is also updated with the new logic
[09:15] <mvo> niemeyer: sounds correct, thank you
[09:24] <niemeyer> mvo: Replied on https://forum.snapcraft.io/t/how-to-specific-the-kernel-snap-on-core18/5947/5 .. please let me know if we need anything else about this
[09:25] <pedronis> mborzecki: mvo: this is happening quite a lot:  Job for systemd-journald.service failed. See "systemctl status systemd-journald.service" and "journalctl -xe" for details.
[09:25] <pedronis> I got two test runs in a row hitting that
[09:25] <mvo> niemeyer: thanks, I think this is perfect
[09:25] <mborzecki> pedronis: and on ubuntu-core only iirc
[09:26] <pedronis> seems so, but on random tests
[09:26] <pedronis> anyway is part of prepare
[09:27] <mvo> pedronis, mborzecki thanks, sounds like we need add debug code there. side-note: tests seems to be more unstable lately again, kind of annoying
[09:27] <mborzecki> pedronis: i saw one more with `find ..../state-lib/*`, seemd like a glob gone wrong
[09:27]  * mvo meanwhile goes into a systemd fistfight
[09:27] <mborzecki> https://paste.ubuntu.com/p/Cp3SdyRyxj/
[09:27] <mborzecki> pedronis: ^^
[09:28] <pstolowski> uh, google:ubuntu-16.04-64:tests/main/interfaces-contacts-service failure again
[09:29] <mborzecki> pstolowski: same as before?
[09:30] <pstolowski> mborzecki: i don't remember the previous failure. relevant bit is https://pastebin.ubuntu.com/p/p6vTVH5nxx/
[09:31] <mborzecki> pstolowski: nope, this one occurred randomly before (rarely though) and iirc i tracked it back to libevolution-blahblah
[09:31] <pstolowski> mborzecki: ack, not good.. thanks
[09:45] <zyga> Chipaca: hey
[09:45] <zyga> question about the warnings
[09:45] <Chipaca> zyga: 'sup
[09:46] <Chipaca> zyga: sure
[09:46] <zyga> should we seek integration with desktop notification systems?
[09:46] <zyga> (where appropriate)
[09:46] <zyga> imagine we never open the CLI
[09:46] <zyga> and never see any warnings there
[09:46] <Chipaca> zyga: I'd expect each client to keep track of warnings in its own way
[09:46] <zyga> aha
[09:46] <zyga> so gnome-software
[09:47] <zyga> interesting
[09:47] <zyga> that's sane, yes
[09:47] <Chipaca> zyga: e.g. gnome-software would keep a 'last warning seen' timestamp around, separate from snapd's
[09:47] <Chipaca> zyga: even the acking mechanism could be different
[09:47] <Chipaca> zyga: for example, gnome software might take 'ownership' of the warnings itself
[09:47] <zyga> could a waning be generated asynchronously by snapd itself
[09:47] <Chipaca> zyga: whereas snap does not
[09:48] <Chipaca> zyga: did not follow
[09:48] <Chipaca> zyga: all warnings are generated by snapd itself
[09:48] <zyga> you are on an idle desktop, snapd fires a warning, a desktop notification shows up, you click on it and go to gnome-software showing the details there
[09:48] <zyga> Chipaca: (without user action triggering it)
[09:48] <Chipaca> zyga: that'd be gnome-software's integration work if so
[09:48] <Chipaca> also that'd probably only happen after we got notifications working from snapd
[09:48] <Chipaca> that is
[09:49] <Chipaca> gnome-software have asked for a no-polling way of getting stuff
[09:49] <Chipaca> (so if you install something from snap, and gnome software has a listing, it can update the listing for example)
[09:49] <Chipaca> or if it's showing a listing and a snap refreshes, it can update it
[09:49] <Chipaca> anyway, i need to step away again
[09:50] <Chipaca> zyga: but, this thing should support all that (modulo the no-poll thing)
[10:13] <xnox> mvo, it sounds like you want to fix the kernel, no?
[10:13] <xnox> mvo, do you have the entropy bug? is snapd consuming entropy? (e.g. we had a bug were generating a few uuids could stall things)
[10:14] <xnox> mvo, if a hardware number generator is available.... is it in use?
[10:15] <xnox> mvo, and we do need to ensure that snapd starts when it does =/ because of cloud-init, etc.
[10:16] <xnox> mvo, also, there were some kernels rolled back.
[10:34] <mvo> xnox: well, I follow #stable-kernel and have no seen anything rolled back yet. as for fixing> yes. however I wonder if we can mitigate this somehow by ensuring that snapd is not blocking login
[10:34] <mvo> xnox: I think its an entropy problem, we use random numbers for various things, I need to dig where this exactly hangs though
[10:35] <xnox> mvo, that's conflicting goals. as then you will break all the public clouds that preseed snaps and expect that sdk/agents are there, and working upon login.
[10:35] <mvo> xnox: hm, hm. fair point
[10:35] <zyga> honestly I think that is a special case
[10:36] <zyga> and it should not be default
[10:37] <pedronis> well, we cannot really change it
[10:37] <pedronis> we have the relationship setup that way since a while
[10:39] <zyga> I need 2nd review on https://github.com/snapcore/snapd/pull/5457
[10:39] <mup> PR #5457: many: lessen the use of core-support <Core18> <Created by zyga> <https://github.com/snapcore/snapd/pull/5457>
[10:39] <pedronis> mvo: also I'm not quite sure what we need entropy for after the first boot
[10:41] <mvo> pedronis: yeah, I'm checking if I can find anything
[10:55] <mvo> pedronis: catalogRefresh needs quite a bit of getrandom() data - that one is easy to delay. however we also have something that uses 4 bytes of getrandom() before main() which I'm looking at right now. aiui the problem is that the urandom entropy now only becomes non-blocking once a certain amount of real entropy is available to seed the prng (but I might be wrong here). so even those 4 bytes are problem blocking the boot
[11:07] <zyga> mvo: are all our timer randomization things using real randomness?
[11:09] <mvo> zyga: getrandom is pseudo random unless a flag is specified. but it looks like the bug is that urandom now is blocking until its initialzed with real entropy (my working theory so far)
[11:09] <zyga> hmmm, I strongly doubt that is the case
[11:09] <zyga> (urandom blocking ever)
[11:12] <mup> PR snapd#5460 opened: tests: use grep to avoid non-matching messages from MATCH <Created by zyga> <https://github.com/snapcore/snapd/pull/5460>
[11:13] <mup> PR snapd#5461 opened: tests: "snap connect" is idempotent so just connect <Simple> <Created by zyga> <https://github.com/snapcore/snapd/pull/5461>
[11:13] <mvo> zyga: well
[11:13] <mvo> zyga: " If  the  urandom  source has not yet been initialized, then getrandom()
[11:13] <mvo>        will block, unless GRND_NONBLOCK is specified in flags.
[11:13] <mvo> "
[11:13] <mvo> zyga: from the man-page
[11:14] <zyga> !
[11:14] <zyga> that's very interesting then
[11:15] <zyga> so urandom is not really that reliable after all
[11:15] <mvo> zyga: it looks like it, I'm digging. we are not the only ones affected I'm trying to figure out a fix for the common case
[11:16] <mvo> zyga: seeding will be hard though, here we need urandom
[11:16] <zyga> mvo: can we polinate from snapd?
[11:16] <mvo> zyga: but at least we should not block in the already-seeded case
[11:16] <zyga> mvo: if urandom blocks then we do what polinate does
[11:16] <mvo> zyga: an interessting idea! the kernel team did investigate polinate and they suspect it might be buggy though
[11:16] <zyga> fun :)
[11:16] <zyga> I'll go to core18 topics for now
[11:16] <mvo> zyga: I did not follow that
[11:16] <zyga> good luck
[11:17] <mvo> ta
[11:20] <mup> PR snapd#5403 closed: many: use extra "releases" information on store "revision-not-found" errors to produce better errors <Squash-merge> <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/5403>
[11:23] <mborzecki> hmmpf, woring on some changes in snapstate, broke aliases not even touching that code :/
[11:26] <pedronis> mborzecki: aliases are delicate
[11:27] <pedronis> mborzecki: let me know if I cand help
[11:38]  * Chipaca ~> lunch
[11:48]  * zyga tests a switch over to internal LTE
[12:00] <pedronis> mvo: why does catalogUpdate delays  start up? it's a goroutine, no?
[12:02] <mvo> pedronis: because it accesses getrandom
[12:02] <pedronis> and it blocks everything?
[12:03] <pedronis> sorry, I'm dense but still not understanding
[12:03] <mvo> pedronis: sorry, let me give a bit more context
[12:03] <mvo> pedronis: the latest kernel update make reading from urandom block at early boot
[12:03] <mvo> pedronis: until it has a certain amount of entropy
[12:04] <mvo> pedronis: that seems to be a regression and a bug but its not totally clear yet, the kernel team is researching this, it might be a valid security fix
[12:04] <pedronis> I understand
[12:04] <mvo> pedronis: I looked into why we need urandom at startup of snapd
[12:04] <pedronis> but I understand why getrandom from some init code whould block stuff
[12:04] <pedronis> I don't understand why getrandom from a gorotuine not in the main daemon start path
[12:04] <pedronis> does
[12:05] <pedronis> we do systemdSdNotify READY  from  daemon.Start
[12:05] <mvo> pedronis: I need to look, maybe the catalog-update is not the problem. there is another reader of getrandom() (bson.go) which happens during "func init()" time
[12:06] <mvo> pedronis: I just wrote it in the forum, its two places right now
[12:06] <pedronis> yes, I understand
[12:06] <pedronis> I see the problem with init
[12:06] <pedronis> not sure I understand the other one
[12:07] <pedronis> unless go is starved somehow of threads for os calls
[12:10] <ogra_> hmm, wasnt the purpose of urandom (vs random) to be non-blocking ?
[12:11] <ogra_> (sounds like a kernel bug all over, why would someone change that)
[12:14] <mvo> pedronis: if the theory is correct it does not even enter main() because the init code in bson.go reads urandom - or am I misunderstanding you maybe :) ?
[12:14] <pedronis> mvo: yea, then why would catalog-update matter?
[12:14] <mvo> ogra_: yeah, I'm simplifying here a bit but the getrandom syscall man page explains that it may block if the prng is not initialized yet
[12:15] <mvo> pedronis: maybe/probably it does not
[12:15] <mvo> pedronis: sorry, I was just hunting for the sources of what reads getrandom
[12:15] <mvo> pedronis: I don't run into the bug myself so I can't test my theory :/ but I will add code that does
[12:15] <mvo> (that does test my theory)
[12:18] <ogra_> mvo, well, but thats new behaviour and getrandom can be switched back to the old one if GRND_NONBLOCK is set as i understand
[12:23] <mvo> pedronis: you are correct, catalog-update does not matter -
[12:23] <mvo> pedronis: sorry for that
[12:23] <mvo> ogra_: correct, GRND_NONBLOCK is not used by the golang runtime though and we can not control that
[12:24] <ogra_> ah
[12:24] <ogra_> evil ...
[12:27] <mvo> ogra_: yes
[12:28] <mvo> pedronis: I updated the forum message - its just bson.go it seems that we would have to fix to workaround the issue
[12:29] <mvo> pedronis: anyway lets talk in the standup
[13:01]  * Chipaca on his way
[13:25] <Chipaca> mvo: is #1779948 the same issue again?
[13:25] <mup> Bug #1779948: Snapd gets stuck when starting Ubuntu. <amd64> <apport-bug> <bionic> <snapd (Ubuntu):New> <https://launchpad.net/bugs/1779948>
[13:28] <mvo> Chipaca: probably, let me look
[13:32] <zyga> ha, this is fun
[13:32] <zyga>  while systemctl restart systemd-journald; do :; done
[13:32] <zyga> this fails nearly instantly
[13:32]  * zyga investigates
[13:56] <Chipaca> pstolowski: you reminded me of https://www.facebook.com/jesse.newton.37/posts/776177951574 (viewable in incognito if you don't use the book of faces)
[14:04] <mborzecki> pstolowski: hahah https://github.com/snapcore/snapd/pull/5416/files#diff-9c91792e9bb71d29a3ae728fc544152fR48
[14:04]  * zyga goes to make some coffee
[14:04] <mup> PR #5416: interfaces/hotplug: add hotplug Specification and HotplugDeviceInfo <Created by stolowski> <https://github.com/snapcore/snapd/pull/5416>
[14:04] <zyga> Chipaca: I know that story, it's terrible
[14:05] <pstolowski> Chipaca: lovely, rotfl :). and btw, ircloud kindly gave me entire content inline, the dod that apparently for facebook too
[14:06] <zyga> pstolowski: irc cloud is nice, eh?
[14:06] <zyga> are you using the snap or the web browser to use it?
[14:06] <pstolowski> mborzecki: yeah i do that when i run out of foo & bar vocabulary ;)
[14:06] <zyga> my only issue with it is lack (apparent) of any way to set the font I want
[14:07] <pstolowski> zyga: i didn't know of a snap; i just use it in the browser. yes it's nice, i haven't looked back since i started my subscription a few months back
[14:11] <mborzecki> Chipaca: found the problem with aliases :( magic name handling in fakeSnappyBackend.ReadInfo
[14:16] <pedronis> mborzecki: that's used for everything though, is not just aliases
[14:16] <pedronis> we fake various snaps there
[14:19] <Chipaca> mborzecki: I'm still grinning evilly, here
[14:23] <mborzecki> pedronis: yeah, i just missed a little `if strings.Contains(snapName, "alias-snap") {` which changes the name :(
[14:25] <mborzecki> funny that it worked until it hit reenabling of manual aliases which looks in info.Apps[], which was obviously an empty map
[14:42] <mborzecki> anyone up for a simple review of #5459?
[14:42] <mup> PR #5459: cmd/snap: add 'debug paths' command <Simple> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5459>
[14:45] <mup> PR snapd#5462 opened: many: use extra "releases" information on store "revision-not-found" errors to produce better errors (2.34) <Created by pedronis> <https://github.com/snapcore/snapd/pull/5462>
[15:09] <mborzecki> pedronis: i've resolved the conflicts in #5452 and force pushed
[15:09] <mup> PR #5452: store, overlord/snapstate: introduce instance name in store APIs <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5452>
[15:10] <pedronis> mborzecki: thx,  I will look tomorrow morning I think
[15:10] <mborzecki> pedronis: great, thanks!
[15:12] <mup> PR snapd#5463 opened: Optimize snap install time 1 <Created by alfonsosanchezbeato> <https://github.com/snapcore/snapd/pull/5463>
[15:25] <mup> PR snapd#5464 opened: vendor: switch to latest bson <Created by mvo5> <https://github.com/snapcore/snapd/pull/5464>
[15:30] <Chipaca> *ahem*
[15:30]  * Chipaca grins
[15:30] <mup> PR snapd#5465 opened: daemon, overlord/state: warnings pipeline <Created by chipaca> <https://github.com/snapcore/snapd/pull/5465>
[15:44]  * cachio lunch
[16:11]  * ogra_ hugs popey 
[16:11] <popey> \o/
[16:11] <ogra_> (for also doing an armhf build of xonotic !)
[16:11] <popey> lulz
[16:12] <popey> bet that doesn't work
[16:12] <popey> we're dumping their pre-built binaries, not building from source
[16:13] <ogra_> dont lauch, my next objective is kiosk systems so after i have a proper chromium kiosk image for the pi (which might still take a lot of work, it is definitely not accelerated atm) i'll move on to kodi and xonotic ;)
[16:13] <ogra_> *laugh
[16:13] <ogra_> i dont see why it wouldnt work ...
[16:14] <ogra_> anyway ... as a xonotic junkie i'm happy to see we ha a snap now
[16:14] <ogra_> *have
[16:15] <popey> i see threads suggesting it could work
[16:15] <popey> the snap is smaller than the upstream zip too :)
[16:15] <ogra_> ha !
[16:16] <popey> (and stays compressed of course, double bonus)
[16:17] <ogra_> yeah
[16:17] <ogra_> the littel ram might be an issue while gaming
[16:17] <ogra_> *little
[16:18] <ogra_> though if it fully utilizes the GPU it should work
[16:22] <cachio> zyga, do you have a dragonboard with you?
[16:23] <cachio> I can reproduce the error of MATCH
[16:23] <cachio> mvo, do you have one?
[16:29] <zyga> cachio: no, I don't :-(
[16:29] <zyga> cachio: well, I do back in my offie
[16:29] <zyga> office
[16:29] <zyga> I could get it online shortly but not instantly
[16:29] <zyga> cachio: can you tell me more about the match issue?
[16:30] <cachio> zyga, the test interfaces-bluetooth-control is failing on dragonboard
[16:31] <cachio> it fails when it does MATCH "Permission denied" < btusb.error
[16:31] <cachio> but when I debug it, the file contains the string
[16:31] <cachio> then, if I change the match by a grep it works
[16:32] <cachio> zyga, it is supper weird
[16:32] <cachio> I'll run with -vv to see the deatuls
[16:32] <cachio> details
[16:33] <zyga> cachio: that's the same as the "^test:" string we've seen elsewhere
[16:33] <zyga> I don't think it's specific to any hardware
[16:34] <pedronis> do we get the wrong MATCH definition in some context?
[16:34] <cachio> zyga, the test just works on dragonboard
[16:34] <pedronis> it's starting to be too strange
[16:34] <zyga> cachio: can we add a trace to what MATCH does
[16:34] <zyga> cachio: yes but the user check is universal
[16:34] <zyga> pedronis: I doubt that, it is defined by spread
[16:35] <zyga> pedronis: definitely we don't have one that's nearly the same but inverts one bit of logic while keeping everything else
[16:35] <pedronis> zyga: well,  I see tests/lib/spread-funcs
[16:35] <pedronis> .sh
[16:35] <zyga> look inside
[16:35] <pedronis> that is used sometimes
[16:35] <zyga> the only definition is that from spread
[16:35] <pedronis> are we getting coonfused by that
[16:35] <zyga> and this is not new, we had that for months
[16:36] <pedronis> maybe somthing changed
[16:36] <zyga> it'd be interesting to see if we can run tests from last month and hit this
[16:38] <cachio> in the debug session I defined MATCH as spread does
[16:38] <cachio> and I run the same line which is failing during the test and it works
[16:41] <cachio> zyga, pedronis, I'll make a change to spread to add some debug info
[16:41] <zyga> cachio: maybe just set -x
[16:41] <pedronis> we can also try to do declare -pf MATCH somewhere close to where we get those errors
[16:41] <zyga> hm
[16:41] <zyga> or redirect to a file
[16:41] <zyga> pedronis: good idea
[16:42] <zyga> maybe in that prepare logic
[16:42] <zyga> that seems to be hit very often
[16:42] <zyga> we can also re-define MATCH just ahead of that
[16:42] <zyga> though I think it must be something that is racing in the system
[16:42] <zyga> in a way that we don't understand
[16:42] <zyga> that impacts MATCH
[16:43] <zyga> but I cannot put my finger on anything that could do something like this
[16:43] <zyga> one thing to, perhaps, think about
[16:43] <zyga> is a very obscure mechanism in bash (and maybe dash)
[16:43] <zyga> that "inherits" function definitions
[16:43] <zyga> from one shell to another
[16:43] <zyga> but this still doesn't explain why it is racy
[16:43] <zyga> especially when invoked with a file
[16:43] <zyga> we could also try to copy /etc/passwd to /tmp/INSANE
[16:44] <zyga> and MATCH that to isolate from anything writing to passwd
[16:44] <zyga> some ideas to explore
[16:51] <cachio> zyga, ok, working on that
[16:51] <cachio> let's see what's going on
[16:52] <zyga> thank you!
[17:24] <mup> PR snapd#5466 opened: tests: remove extra ' which breaks interfaces-bluetooth-control test <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/5466>
[17:26] <zyga> sigh
[17:41] <mvo> cachio: sorry, I don't have a dragonboard
[17:54] <cachio> mvo, np
[17:54] <zyga> Chipaca: are we there yet ;-) https://twitter.com/c___f___b/status/1014529179742810112
[18:33]  * zyga break
[18:58] <mup> PR snapd#5467 opened: tests: stop restarting journald service on prepare <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/5467>
[19:22] <mup> PR snapd#5461 closed: tests: "snap connect" is idempotent so just connect <Simple> <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5461>
[19:32] <mup> PR core#92 closed: Remove core-support plug <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/core/pull/92>
[19:40]  * cachio afk
[20:09] <mup> PR snapd#5279 closed: interfaces/builtin: create can-bus interface <Created by jocave> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/5279>