/srv/irclogs.ubuntu.com/2018/10/30/#snappy.txt

mupPR snapd#6065 opened: cmd, strutil: make coreSupportsReExec faster <Created by chipaca> <https://github.com/snapcore/snapd/pull/6065>02:00
* Chipaca zzs02:02
mborzeckimorning06:10
mupPR snapd#6066 opened: tests: fixes and new backend for tests on nested suite <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/6066>06:41
zygaHello07:26
mborzeckizyga: hey07:27
zygaFantastic day :-)07:28
mupPR snapd#6059 closed: snap: use Lstat to determine snap size, remove ReadSnapInfoExceptSize <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/6059>07:31
zygamborzecki: could you please review https://github.com/snapcore/snapd/pull/6063#pullrequestreview-16963937007:33
mupPR #6063: store: also make snaps downloaded via deltas 0600 <Simple ๐Ÿ˜ƒ> <Created by chipaca> <https://github.com/snapcore/snapd/pull/6063>07:33
zygait's trivial and needed for release07:33
mborzeckizyga: done07:35
mupPR snapd#6063 closed: store: also make snaps downloaded via deltas 0600 <Simple ๐Ÿ˜ƒ> <Created by chipaca> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/6063>07:35
zygathanks!07:36
zygagood morning mvo08:06
zygamvo: chipaca fixed the 0600 issue08:07
zygaI Ccd you on the PR that is now in master08:07
zygahow are you feeling this morning btw?08:07
zygais it also very warm for you today? In the morning it was almost 15C, very unusual for this time of year08:07
mborzeckizyga: it was the same around 10pm yday ;)08:07
mvozyga: \o/ good morning08:08
mborzeckizyga: if it stays like this for longer i see myself riding some bike on thursday :)08:08
mvozyga: cold here and I'm tired08:08
zygamborzecki: do it today08:08
zygaI already planned it with my daughter08:08
mvozyga: but less so than yesterday so yay08:08
zygait's going to be 22C today :)08:08
mvoand good morning mborzecki08:08
mborzeckimvo: hey :)08:08
zygamvo: that's too bad, maybe you should sleep in after all :)08:09
mvozyga: heh - I need to get into my timezone :)08:09
mvozyga: is the fix already in 2.36? if not I cherry pick now08:09
zygamvo: it's not, please look at GitHub notifications08:10
mvozyga: I see it now, nice08:10
mvozyga: cherry-pick, thanks for the quick reviews (also to mborzecki)08:11
mvolooks like 2.36.1 is ready :)08:11
zygathank you :-)08:11
zygayeah08:11
zygathe classic fix is not important enough to merge, right?08:11
zygacan wait for 2.3708:11
mvozyga: I think its ok to leave it unless you feel strongly about it08:12
zygano, I think it should stay out08:12
zyga2.36 is big and important and feels stable now08:12
mvoyeah, I have the same feeling08:13
mvozyga: I may try to get 6062 in, field wants this08:13
zygaaha08:13
mvozyga: it looks like there is a real bug there, something in the auth code goes to the net without a proxy08:13
zygayeah that looks ok08:13
zygahmm08:13
mvozyga: its hopefully small, just need to find what it is08:14
zygayep08:14
zygabrb, need to tweak window shades08:14
zygait's super bright today08:14
mvozyga: ok08:14
pieqHi!08:23
zygamvo: pieq is from CE and has a question about the release schedule of 2.36.108:23
mborzeckisnapshot job failed on master: https://paste.ubuntu.com/p/2xHwcG4Kf5/08:27
mvozyga: hey pieq, a rough eta is monday in 2 weeks (12 Nov). do you have any specific deadlines that we should know about?08:28
zygamborzecki: chipaca knows, we talked about it08:28
mvoI will also update the snap roadmap it a bit out of date right now, sorry for that08:28
zygamborzecki: there's a PR that adds logging, it could use a 2nd review08:28
mborzeckiack08:28
mborzeckizyga: #6060?08:28
mupPR #6060: overlord/snapshotstate/backend: be more verbose when SNAPPY_TESTING=1 <Created by chipaca> <https://github.com/snapcore/snapd/pull/6060>08:29
zygayes08:29
mvozyga: I looked at it had the same question about the matchall writer as you08:29
zygahey Chipaca09:08
Chipacamorning09:08
pieqmvo hey, sorry for the long silence :) No specific deadline. Since 2.36 is already in beta, guess this shouldn't take too long to be released09:10
pieq(I ask cause I'm interested in the snap layouts feature developed by zyga. I use it for a snap and currently it seems to work fine except for a UC16 device we have here running core 2.35.4)09:10
pstolowskimorning Chipaca09:14
Chipacapstolowski: 'sup09:16
pstolowskiChipaca: do you have a moment to talk about the fat PR?09:17
Chipacapstolowski: yes09:17
Chipacapstolowski: hangout, or irc?09:17
pstolowskizyga: you? ^09:17
zyga+109:17
zygagladly09:17
pstolowskiChipaca: hangout09:17
Chipacaok, let me get set up. 5 minutes? actually 10 so i can get more coffee09:18
mborzecki'fat PR'09:18
Chipacalet's call it 0930 GMT09:18
mborzeckishould have a label for that09:18
Chipacamborzecki: or not have them :-)09:19
pstolowskiChipaca: ok, in 10min09:19
pstolowskithat would be a funny label i'm sure09:19
dokosnapcraft autopkg tests are failing in bionic, all archs09:25
mupPR snapd#6067 opened: tests/main/snap-service-after-before-install: verify after/before in snap install <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6067>09:37
ChipacaChanServ: what have you *done*?!?09:47
Chipacaoh hi ogra09:47
ograheh09:47
mborzeckizyga: wow, applied your suggestion directly on github, didn't know it was possible09:48
zygaha, yes :)09:48
zygait's nice09:48
Chipacamvo: did #6062 actually point out the error and now it's grown the fix?09:48
mupPR #6062: tests: add test to ensure proxy is used even without core <Created by mvo5> <https://github.com/snapcore/snapd/pull/6062>09:48
Chipacamvo: first time I looked at it it was just a spread test =)09:48
mborzeckibtw. maybe we should allow executing systemd-notify in daemon-notify iface?09:49
zygaI'll be coding quietly in the corner, please ping me for attention09:49
zygaI won't do reviews today09:49
mvoChipaca: correct09:52
mvoChipaca: let me update the description09:52
mvoChipaca: it started as a simple test to ensure this really works but it turned out that the device session stuff is not using the proxy so things explode09:52
Chipacamvo: tests ftw09:54
Chipacamvo: I wouldn't've been able to do the hackery I did last night to version.go without 'em =)09:54
mvoChipaca: yeah, nothing beats integration tests09:55
mvo(except maybe real users)09:55
mvoChipaca: heh :) yeah, the version stuff is quite impressive09:55
mvoChipaca: just looked at it09:55
mvoChipaca: I want to look over the proxy stuff a bit, was wondering if some things should be methods on store.Store{} now - but my gut-feeling is no. but I'm not sure yet, maybe a new auth helper struct or something, want to medidate a bit over this. ideas welcome fwiw09:56
Chipacaactual users beat everything, yes. Sometimes to death :-รพ09:57
Chipacamvo: me I'd like to refactor store so it doesn't pull in overlord stuff09:58
Chipacamvo: (mostly auth)09:58
Chipacaso maybe there's something there09:58
Chipacai mean, maybe these two things are the same thing :-)09:58
mvoChipaca: with the proxy setting stuff we need state it seems, no?09:58
Chipacamvo: yes. But does store need to know it's state, or is there an interface that would serve?09:59
Chipacait's the things calling it that need to get the actual state; store shouldn't care09:59
mvoChipaca: aha, yeah, an interface is probably fine09:59
mborzeckiChipaca: as for version, we had some code checking kernel version and VersionCompare would trip over the uname -r in Arch09:59
Chipacaimo09:59
mvoChipaca: thats a good idea for direction09:59
Chipacamborzecki: the old one, or the new one, or both?10:00
mborzeckiChipaca: old one, probably new one too10:00
pieqmvo, zyga another question: will snap layout feature leave its experimental status with the release of snapd 2.36? Or will we still have to manually type `sudo snap set core experimental.layouts=true` before isntalling a snap using it10:00
Chipacamborzecki: AIUI our VersionCompare is just debian's10:00
zygapieq: you won't have to do that in 2.3610:00
Chipacapieq: layout is no longer experimental in 2.36 as it exists in beta today10:00
zygayou can still disable it by setting it to false10:00
pieq\o/10:00
zygabut absence of a setting is now interpreted as true10:01
Chipacapieq: why not install beta and try it out? feedback needed10:01
pieqzyga, Chipaca ok thanks for clarifying it!10:01
pieqChipaca, I already did actually, but I machinally typed the command anyway :)10:01
mborzeckiChipaca: uname -r is currently 4.18.16-arch1-1-ARCH, iirc i saw 4.18.2-arch1.a2-1-ARCH at some point too10:01
Chipaca/o =)10:01
Chipacamborzecki: ah, too many dashes for ours to be happy10:02
mvoyeah, version compare only allows a single "-"10:02
Chipacawe could relax that easily, fwiw10:02
mvo(the debian version policy is written this way where we inherited this from10:02
mvo)10:02
Chipaca"easily" -> generalise it to arbitrary number of -s10:02
mvowhat would the semantic be if we do that? 1-1 is lt,gt 1 ? 1-1 lt/gt 1-1-1 ?10:03
Chipacaonly question that'd need answering is, is 1-1 >? 1-1-110:03
Chipacaexactly10:03
mvo(we could treat it just like a ".")10:03
mvofor the kernel we simply could ignore everything after the second "-" (including the second "-")10:04
mvo4.15.0-36-generic should be equal in version to 4.15.0-36-bigtable10:05
Chipacaaugh, i'd meant to tag you in the pr that changes version this much, but forgot (was very late...)10:05
* Chipaca does it now10:05
mvono worries10:05
Chipacamborzecki: is that right, on arch? ^10:05
Chipacamborzecki: and, what did we use the kernel version compare for? =)10:05
mvodon't we already strip the second "-" anyway?10:06
mvofwiw, I updated the description of 606210:07
mborzeckiChipaca: it was used to guess whether we should degrade apparmor profile, but then i dropped it because the host is always using the latest mainline10:07
mupPR snapd#6068 opened: ifacestate/helpers: findConnsForHotplugKey helper <Hotplug ๐Ÿ”Œ> <Simple ๐Ÿ˜ƒ> <Created by stolowski> <https://github.com/snapcore/snapd/pull/6068>10:11
pstolowskiChipaca, zyga ^ exposing connState wasn't neccessary at the end10:11
mvoChipaca: would love to hear your opinion on https://github.com/snapcore/snapd/pull/6062#discussion_r229244418 (and the one below). if we make User{Login,Info} part of the store interface this PR would probably slightly shorter and it seems to also make sense that this is part of the store interface (even though it bloats the interface)10:12
mupPR #6062: tests,store,daemon: ensure proxy settings are honored in auth/userinfo too <Created by mvo5> <https://github.com/snapcore/snapd/pull/6062>10:12
mborzeckizyga: pstolowski: are you taking 02.11 off too?10:16
zygayes10:17
mborzeckiah, nice :)10:17
pstolowskii'm not10:17
mvome too10:21
Chipacamvo: that sounds alright10:24
Chipacamvo: will comment on the pr10:24
mvoChipaca: ta, will do10:27
Chipacagoing for a run, bbl10:43
mupPR snapd#6069 opened: ifacestate/hotplug: removeDevice helper <Created by stolowski> <https://github.com/snapcore/snapd/pull/6069>10:58
sborovkovogra: btw, on the matter of force_turbo. The only reason we want to turn it on is because there seems to be some bug in firmware or kernel module. When we play videos it will correctly start ramping up in 1 of 30 playbacks which is so weird... The same goes about governing policy. It ramps up extremely slow. Both on core and raspbian.11:10
mborzeckiso today is red dead travis job day11:17
mborzeckioh and opensuse mirros have hiccups again11:18
mborzeckipstolowski: is information wehether a connection is auto/manual kept in the state only?11:19
pstolowskimborzecki: yes11:19
mborzeckipstolowski: i'm looking aroudn the code, but it does not seem to be available in ConnRef or interfaces.Info11:20
mborzeckipstolowski: wondering if, in the context of https://forum.snapcraft.io/t/rfc-snap-connections-command/4296 we should show hotplug in Notes column too11:21
pstolowskimborzecki: we will only auto connect hotplug slots if their interfaces are declared as such11:22
pstolowskimborzecki: but yeah, we might want to show something about hotplug11:23
mborzeckipstolowski: https://paste.ubuntu.com/p/TcGjVXbm5D/ snap connections output i'm currently playing with (sans manual/hotplug in the notes column)11:23
pstolowskimborzecki: hotplug can be manual as well11:24
mborzeckipstolowski: right, so that would be hotplug,manual in the notes11:25
pstolowskimborzecki: hotplug will just create slots dynamically, some of them may auto-connect, some you need to connect manually11:25
mvoChipaca: heh, just looking at the proxy stuff it is already pretty abstracted, it does not pull anything state related in (yay)11:25
mborzeckipstolowski: what the example slot names for say usb serial device?11:25
pstolowskimborzecki: they are automatically generated from some key attributes - e.g. "ft232rusbuart" (one of the adapters i test with). another example "qemuusbserial" for qemu virtual adapter11:28
mborzeckipstolowski: thx11:37
mvoopensuse is unhappy it seems, second failure this morning related to repo install/update12:15
mupPR snapd#6070 opened: store,daemon: make UserInfo,LoginUser part of the store interface <Created by mvo5> <https://github.com/snapcore/snapd/pull/6070>12:15
mvoChipaca: ^- what we discussed, happy to move it all into a single PR if you prefer this, either way is fine for me12:15
mvoChipaca: the upside is that the mocks in the api_test get simpler too12:16
Chipacamvo: nice12:19
Chipacamvo: I'll review properly after the standup (now making lunch)12:19
Chipacatrying to not get caught out like i was yesterday12:19
cachiopstolowski, you can use #6066 to develop hotplug tests12:21
mupPR #6066: tests: fixes and new backend for tests on nested suite <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/6066>12:21
cachiopstolowski, it runs in 11 minutes the test12:21
pstolowskicachio: wooah, awesome!12:27
pstolowskicachio: thank you, will merge into my branch and try it soon12:30
cachiopstolowski, nice12:32
mupPR snapd#6071 opened: ifacestate/hotplug: updateDevice helper <Hotplug ๐Ÿ”Œ> <Simple ๐Ÿ˜ƒ> <Created by stolowski> <https://github.com/snapcore/snapd/pull/6071>12:42
Chipacasborovkov: is it the cpu, or the gpu ramping up?12:46
ograChipaca, it is "delaying the cpu from ramping up" as i understood12:49
Chipacayeah, but i thought they were doing gpu decoding12:49
Chipacaso maybe it's the gpu? dunno12:50
Chipacai know nothing =)12:50
ogracould be ... we dont really support the proprietary driver on the Pi ... so it could well be some drawback in the opensource vc4 driver12:50
sborovkovChipaca: both I think12:55
mupPR snapd#6064 closed: many: move regexp.(Must)Compile out of non-init functions into variables <Created by chipaca> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/6064>12:55
sborovkovChipaca: if we have on demand scheduler ramping up of CPU happens slowly. If we play 10 second videos - they all take 60 ms per frame. Eventually it goes to the 30 ms per frame. And then if stars align they stop underclocking GPU and memory and it goes to 13 ms per frame, but that almost never happens.12:57
mvoDmitrii-Sh: thanks again for your proxy report, I updated the LP bug and pointed to the PR that should fix the issue. thanks again for reporting!12:57
Dmitrii-Shmvo: thanks for following up! I'll give it a try13:02
sborovkovChipaca, ogra and cpu usage is super low. The only thing that's taking up cpu is audio decoding which is not a lot. I found it by chance basically. 30 ms was what happened in most of the cases. Until I came back to my rpi in the next morning and it magically was taking 13 ms per frame. and since force_turbo does not overclock but prevents it to go to the low frequencies when idle that seems to be the answer. force_turbo also set couple of options like13:13
sborovkovminimum frequeny for cpu, gpu and memory to higher values.13:13
ograright, it is simply not as power effectiver after you set it ... but since you dont run on battery (i assume) this is ignorable13:18
Chipacamborzecki: so... vercmp (https://git.archlinux.org/pacman.git/tree/src/util/vercmp.c) is just a frontend for alpm_pkg_vercmp, which is in https://git.archlinux.org/pacman.git/tree/lib/libalpm/version.c13:36
Chipacamborzecki: and it's just doing rpmvercmp on EVR13:36
Chipacaepoch-version-release13:36
Chipacano13:36
Chipacaepoch:version-release13:36
mborzeckilooking13:36
* Chipaca drags people into the madness13:37
* Chipaca walks away13:37
mborzeckiChipaca: /* whichever number has more digits wins */ heh13:38
Chipacamborzecki: so i think that instead of supporting arch-style versions, we want to go with plan B13:46
Chipacamborzecki: run away screaming13:46
mborzeckiChipaca: plan C, do nothing until required13:47
Chipacainterestingly it claims to be taken from rpm, so13:47
Chipacamborzecki: that's like plan B but for sensible people13:47
mvoafaict in rpm only a single "-" is speced13:47
mvoaha, no - it seems they cut after the first "-" but then its legal in the "remainder"13:48
Chipacamvo: this only looks at one -; the rest are โ€ฆ for free? i think. maybe13:48
mborzeckiChipaca: https://github.com/rpm-software-management/rpm/blob/ff4b9111aeba01dd025dd133ce617fb80f7398a0/lib/rpmvercmp.c13:48
mvoanyway I like the idea of ignoring it until it becomes a problem :)13:49
Chipacamborzecki: https://github.com/rpm-software-management/rpm/blob/ff4b9111aeba01dd025dd133ce617fb80f7398a0/lib/rpmvercmp.c#L9413:49
Chipacamvo: yep13:50
Chipacaanyway, i'll probably split the current thing into two prs as per zyga's request13:50
Chipacabut tonight when i'm in that sort of a mood13:50
mborzeckisince go-1.10 appears to be in xenial-updates and trusty updates, can we drop importing golang.org/x/net/context now?13:56
mborzeckiChipaca: mvo: ^^13:58
Chipacamborzecki: hmm13:58
Chipacamvo: did you talk any further on removing go from main?13:59
mborzeckioff to pick up the kids14:04
mvoChipaca: we did not talk about removing go from main14:05
mvomborzecki: I think we can and move to go 1.914:05
mvozyga: sent mail about /v2/interfaces14:06
zygaAck mvo14:17
zygaIโ€™ll reply in one hour14:18
mvoChipaca: snap info core and the new slightly highlighted channel that is tracked is such a nice feature (subtle but really nice)14:27
Chipacamvo: also a little bit buggy =) but yes14:27
mvoChipaca: not buggy for me :)14:28
mvoChipaca: its one of those nice touches that makes me thing that "woah, extra polish"14:28
Chipacamvo: when there is a refresh not yet applied, it might seem wrong14:28
Chipacamvo: but it's very subtle, and arguable14:29
* mvo nods14:30
mvoChipaca: aha, so after "snap switch" the output might be confusing?14:30
mvo(until the next refresh)14:30
Chipacamvo: yes14:30
* mvo nods14:30
Chipacaemphasis on might14:31
mvoyes14:31
Chipacawe might need some polish on the polish14:31
Chipacalike, bold one line and caret the other14:31
Chipacaor sth, dunno14:31
Chipacaยฏ\_(ใƒ„)_/ยฏ14:31
Chipacait does make it a lot easier to spot the thing you're on14:32
mvoyeah, what we have is pretty nice even with the caveats you gave14:32
cachiopstolowski, I have update the branch with an intermediate solution15:11
cachiohotplug takes 15 minutes with this15:11
pstolowskicachio: ok, thanks for the info15:11
cachioI'll continue working on another PR which uses the other aproach which takes 11 minutes15:12
cachiobut I need to work a bit more in order to get a good solution for all the tests15:12
cachiocore revert test went from 36 to 17 minutes with this approach15:13
cachiothat0s good improvemente15:13
pstolowskicachio: yes, it's fantastic15:18
mupPR snapd#6072 opened: ifacestate/udevmonitor: added callback to signal end of enumeration <Hotplug ๐Ÿ”Œ> <Created by stolowski> <https://github.com/snapcore/snapd/pull/6072>15:18
* Chipaca hugs cachio 15:20
Chipacacachio: that's awesome dude15:20
cachioChipaca, tx15:21
zygare15:30
zygahalloween costume procured15:31
zygaChipaca: should the polish on polish be added by polish?15:31
* cachio lunch15:39
Chipacazyga: Solidarnoล›ฤ‡! or something15:41
zygahaha15:41
zyganice, including ล›ย and ฤ‡15:42
Chipacayeah they charge extra for those, but I thought it was worth it15:43
mupIssue core18#56 closed: Sensible version number <Created by mvo5> <https://github.com/snapcore/core18/issue/56>15:50
mupIssue core18#86 closed: Ubuntu 18.10 <Created by kravietz> <https://github.com/snapcore/core18/issue/86>15:50
mupPR # closed: core18#43, core18#63, core18#72, core18#83, core18#8415:50
mupIssue core18#56 opened: Sensible version number <Created by mvo5> <https://github.com/snapcore/core18/issue/56>15:51
mupIssue core18#86 opened: Ubuntu 18.10 <Created by kravietz> <https://github.com/snapcore/core18/issue/86>15:51
mupPR # opened: core18#43, core18#63, core18#72, core18#83, core18#8415:51
pstolowskicachio: just tested it, it's day and night!16:04
pstolowskity!16:05
mupPR # closed: snapcraft#1649, snapcraft#1720, snapcraft#1875, snapcraft#1905, snapcraft#2020, snapcraft#2135, snapcraft#2176, snapcraft#2229, snapcraft#2239, snapcraft#2289, snapcraft#2354, snapcraft#2359, snapcraft#2380, snapcraft#238716:16
mupPR # opened: snapcraft#1649, snapcraft#1720, snapcraft#1875, snapcraft#1905, snapcraft#2020, snapcraft#2135, snapcraft#2176, snapcraft#2229, snapcraft#2239, snapcraft#2289, snapcraft#2354, snapcraft#2359, snapcraft#2380, snapcraft#238716:19
Pharaoh_Atemzyga: so we're finally going to have the gcp packages as part of fedora, and we're looking to figure out how to let google let us have official images in GCP16:29
zygaPharaoh_Atem: that's good to know16:30
zygathank you for sharing16:30
zygaoh, I have one thing to share as well16:30
zygaI was working with Zbyszek on mkosi16:30
Pharaoh_Atemoh?16:30
zygaand we will be working on fedora29 base snap release16:30
Pharaoh_Atemsweet16:30
zygabuilt entirely by mkosi16:30
Pharaoh_Atemthat's actually sweet16:30
Pharaoh_Atemthat's similar to what I was working on :)16:30
Pharaoh_AtemI wish I had known16:30
zygait started last Friday16:30
zygasorry for not mentioning it before16:30
zygasome busy days16:31
zygaand then the IBM thing16:31
Pharaoh_Atemyeah...16:31
zygaso after Zbyszek is recovered from shock I we will meet up again to work on mkosi16:31
zygaI am writing static typing support for it16:31
Pharaoh_Atemcool16:31
zygaso that the quality is better16:31
Pharaoh_Atemmkosi is a really nice, simple tool16:31
zygaand zbyszek has made it possible to build base snaps with it16:31
Pharaoh_Atemsweet16:31
Pharaoh_Atemwhich means all distros can use it16:31
zygaso some more work remains but progress looks good16:31
zygayeah!16:31
Pharaoh_Atemand maybe ubuntu will switch to it too :P16:32
zygaI was thinking about it actually16:32
zygait remains to be seen16:32
zygabut it's foundations now16:32
zyganot us doing the core snaps16:32
zyga(finally)16:32
Pharaoh_AtemI figured mkosi would also make it easier to make lightweight bootable snaps16:32
zygaanyway, we need to work on the essentials first16:32
zygashipping updated mkosi :)16:32
zygaso that's that16:32
Pharaoh_Atemthat part is easy on the fedora side :)16:32
zygaI'm working on a suse update16:32
zygaand there's some fedora work scheduled this cycle, we should get much better selinux support16:33
zygaso looking forward to that16:33
zygamaybe (though not for sure) some work on selinux backend for services16:33
zygawe'll see about that16:33
pstolowskizyga: hey, do you have a moment to take a look at #6068?16:49
mupPR #6068: ifacestate/helpers: findConnsForHotplugKey helper <Hotplug ๐Ÿ”Œ> <Simple ๐Ÿ˜ƒ> <Created by stolowski> <https://github.com/snapcore/snapd/pull/6068>16:49
zygapstolowski: yep, sure16:50
zygadone16:54
pstolowskizyga: thanks! fwtw i added ordering in the test16:56
zygaI missed that, I see it now16:57
zygahow are you planning on using this?16:57
zygashould ordering be built in?16:57
pstolowskizyga: ordering doesn't matter for real use.. so only relevant for tests16:58
pstolowskizyga: regarding your other suggestion to have map[string]*connState, it's sensible, but I'll need to change getConns and setConns as well (and likely a few places where they are used)17:00
pstolowskicause they also have map[string]connState17:00
zygapstolowski: don't change it here17:00
zygajust wondering aloud really17:00
zygaabout the ordering still17:00
zygawill the result be typically 0-2 elements long?17:01
pstolowskiprobably yes17:01
zygacould we add sorting then17:02
pstolowskisure17:02
zygaI'm slightly against non-deterministic ordering leaking around the code17:02
zygaif it is cheap, let us just do it please17:02
pstolowskiyep that's fine17:03
zygathank you17:03
zygaapproved!17:03
pstolowskithanks17:04
zygathanks :)17:04
zygaofftopic17:05
zyganew Mac mini looks like a pretty great deal17:05
Chipacazyga: pstolowski: I liked it more when it sorted for the tests =)17:27
zygaChipaca: nondeterminism spreads like tainted perl values :)17:28
Chipacazyga: that's what she said!17:28
* zyga is speechless ;)17:28
Chipacasometimes for the best17:29
zygabusted!17:29
Chipacazyga: universally, not just you17:29
zygathat's what she said ;)17:30
* Chipaca approves ALL the PRs17:32
zygakids can play when adults are off ;)17:34
zygawe can revert on Monday17:34
Chipacasigh, another snapshot error with no good logs17:36
zygaChipaca: can we merge anything to make it possible to collect them?17:38
zygathis reminds me, I need to prepare a proper PR for my idea for collecting logs for mount ops17:38
zygamaybe there's something to learn?17:38
zygausing a feature flag file I now collect logs for what happens in each mount namespace17:38
zygaalonside the mount namespace17:38
Chipacazyga: #6060 is for that17:39
mupPR #6060: overlord/snapshotstate/backend: be more verbose when SNAPPY_TESTING=1 <Created by chipaca> <https://github.com/snapcore/snapd/pull/6060>17:39
zygayeah but that's ... not sure17:39
zygait doesn't feel right17:39
zygathe matches17:39
zyga*matcher17:39
Chipacazyga: I can drop that bit, all I was  doing was making the errors on read  an write the same17:39
zygaI'd +1 that17:40
Chipacazyga: what is it that you don't like about the matcher?17:45
zygaIt feels heavy to process all output this way17:45
zygabut perhaps I was mistaken17:45
Chipacazyga: as opposed to which way?17:46
zyganot sure, redirecting all output to a log file when env is set17:47
zygaor something similar17:47
zygabut perhaps I'm just picky17:47
zygasorry about that17:47
Chipacazyga: um17:47
Chipacazyga: so, what this does is17:47
Chipacazyga: it catches and remembers the first line of stderr of tar17:47
Chipacazyga: and counts lines from there on17:48
Chipacazyga: if SNAPPY_TESTING is set,  it also writes to stderr17:48
zygausing regular expressions :)17:48
zygathat was the part I was objecting to17:48
Chipacahmm17:49
zygalet's push that for tomorrow17:50
ChipacaI'm missing what's bad, here :-/17:51
Chipacabut ok17:51
Chipacatomorrow is fine17:51
mupPR snapd#6073 opened: strutil: let MatchCounter work with a nil regexp <Created by chipaca> <https://github.com/snapcore/snapd/pull/6073>19:05
Chipacazyga: ^19:05
zygaaha19:15
ackkhi, I have a (classic) snap that stopped working (not sure when), it currently seem to just hang19:16
ackka strace stops at the exec of snap-confine19:16
ackkhow can I debug the issue (tried on different systems and ubuntu releases, same result)19:18
mupPR snapd#6074 opened: strutil: make VersionCompare faster <Created by chipaca> <https://github.com/snapcore/snapd/pull/6074>19:29
ackkzyga, any idea what could cause this issue? ^19:49
Chipacaackk: are you using 'snap run --strace'?19:58
Chipacaackk: or are you strace'ing snap run?19:58
ackkChipaca, snap run --strace19:58
Chipacaah19:59
Chipacadunno :-)19:59
ackkChipaca, it's a published snap fwiw19:59
Chipacaackk: public?19:59
ackkyeah19:59
ackkChipaca, snap install --edge --classic sshoot19:59
ackk(then "sshoot")20:00
Chipacahm, something is really slow20:04
cachiokyrofa, hey20:05
cachiodid you already merged the change on the images?20:05
cachioSaviq, hey20:05
cachiowe are changing the name of the images with virt enabled20:06
cachioif you are using them please tell me20:06
Chipacazyga: btw you might like the pretty pics on #607420:06
mupPR #6074: strutil: make VersionCompare faster <Created by chipaca> <https://github.com/snapcore/snapd/pull/6074>20:06
zygaackk: hey20:06
cachioSaviq, because a change in the names is needed20:06
zygaackk: is it spinning with 100% CPU?20:06
zygaChipaca: looking at 607420:06
zygawoah20:07
zygaman20:07
zygathat's impressive20:07
zygaI will review tomorrow as tonight I feel too tired to think about that reasonably20:07
ChipacaI'm particularly happy with the 0s20:07
zygabut I want to ack the effort!20:07
zygaackk: if it is spinning on 100% CPU20:07
zygaackk: it may be in an exec loop20:07
zygaackk: it typically happens in a scenario like this:20:08
Chipacastore is timing out, fwiw20:08
zygaackk: foo (command)20:08
zygaackk: foo -> snap run foo -> snap-confine -> snap-exec -> (look up and run foo) -> /snap/bin/foo -> snap run foo (Oh my...)20:08
Saviqcachio: ack, not using them yet - we noticed fedora 27 is gone now? (not a problem, just in case this is unexpected)20:08
Saviqshould there be 29 images yet?20:09
cachioSaviq, is it already released?20:09
ackkzyga, it does seem something like that20:10
cachioSaviq, I'll check that and create the image tomorrow20:10
ackkzyga, and yes, it's spinning20:10
zygajust change command20:10
ackkwdym20:10
zygato use $SNAP/bin/stuff20:10
zyga+120:10
Chipacaackk: it does look like the command wrapper will find itself again20:17
Chipacaackk: especially as you're classic20:17
ackkChipaca, ah I see20:18
mupPR snapd#6075 opened: tests: removing fedora 26 system from spread.yaml <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/6075>20:27
mupPR snapd#6076 opened: tests: linode execution is not needed anymore <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/6076>20:29
* mvo hugs Chipaca for 6074 - slightly crazy but in a good way :-D20:33
kyrofacachio, just merged20:39
mupPR snapcraft#2387 closed: spread: change virt-enabled image name <Created by kyrofa> <Merged by kyrofa> <https://github.com/snapcore/snapcraft/pull/2387>20:40
ackkChipaca, zyga thanks, that was the reason20:46
zygaackk: cool20:51
zygaI wonder if we can detect that ...20:51
cachiokyrofa, perfect, thanks21:19
Saviqcachio: just about - https://fedoraproject.org/wiki/Releases/29/Schedule21:20
cachioSaviq, nice, thanks21:20
cachiotomorrow I'll work on that21:20
* cachio afk21:38
popeyoh, 2.35.5 just released?21:45
zygamvo is busy at night21:53

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