/srv/irclogs.ubuntu.com/2021/05/27/#snappy.txt

=== Ringtailed_Fox is now known as RingtailedFox
=== stgraber is now known as stgraber_
=== stgraber_ is now known as stgraber
mborzeckimorning05:45
mborzeckimardy: hey05:48
mardymborzecki: hi!06:30
mardythis is not as helpful as I hoped it would be: https://www.dumels.com/diagram/68044f98-992d-43bc-a0f3-03f0f808681e :-D06:30
mborzeckimardy: hmm firefox does not like this page very much06:47
pstolowskimorning07:04
zygagoood morning07:04
mborzeckipstolowski: zyga: hey07:08
mborzeckipstolowski: i've updated https://github.com/snapcore/snapd/pull/10301/07:08
pstolowskilooking07:10
pedronismborzecki: pstolowski: thanks for the review, https://github.com/snapcore/snapd/pull/10305 needs a 2nd review07:41
mborzeckiwill do07:42
pedronismborzecki: https://github.com/snapcore/snapd/pull/9932 doesn't have two +107:44
pedronisah, it does, but I think Ian asked mvo to re-review it07:45
jameshmup on freenode seems really unhappy. It tries to join #snappy, finds itself in ##snappy, leaves and tries again07:46
pedronisjamesh: only Gustavo has control on that07:46
pedronismborzecki: I dismissed mvo original review for clarity07:47
pedronissorry, that one needs to wait a bit more07:48
mborzeckiwe're down to 80 PRs08:20
ograis that a suggestion that more should be created ? 🙂08:21
=== pedronis_ is now known as pedronis
pedronispstolowski: any reason not to merge https://github.com/snapcore/snapd/pull/9669 ? it got some stuck tests but I reopened it just now08:25
pstolowskipedronis: none, let's land, thanks08:26
mardypedronis: Hi! I don't know if you saw the discussion yesterday, but there was the question whether plugs specifying an attribute should also be autoconnected:08:48
mardykubernetes-support     microk8s:k8s-journald           -                    -08:48
mardykubernetes-support     microk8s:k8s-kubelet            -                    -08:48
mardykubernetes-support     microk8s:k8s-kubeproxy          -                    -08:48
mardykubernetes-support     microk8s:kubernetes-support     :kubernetes-support  -08:48
mardypedronis: in other words, the above situation, is it a bug, or the expected behaviour?08:48
pedronismardy: I answered, it's expected08:48
mardypedronis: ah, then I missed it08:49
pedronisunless they don't want this, in which case the snap-declaration needs changes08:49
mardypedronis: I'll check with them08:49
mborzeckipstolowski: https://github.com/snapcore/snapd/pull/10299 is has 3 +1 ;)09:00
pstolowskimborzecki: yeah but not green yet.. and i think i'll change it to noticef09:02
mborzeckiduh, we need another patch update for sid09:03
pedronispstolowski: I commented on https://github.com/snapcore/snapd/pull/1029909:07
mborzeckipstolowski: mardy: can you take a look at https://github.com/snapcore/snapd/pull/10312 ?09:08
mborzeckii'm thinking we should skip debian 10 in the many interfaces remove test09:10
=== zyga is now known as zyga-mbp
mardymborzecki: sure09:11
mardymborzecki: appoved with a nitpicky remark :-)09:13
mborzeckithx09:14
mardypedronis: the fact that you cannot give more than one plug to "snap connect ...", is it a design decision, or because of some technical limitation?09:15
pedronismardy: I suspect mostly that the CLI gets unwieldy in the general case, but the API also doesn't support more than one connection at a time ATM09:17
pedronisas well09:17
pstolowskiok, i think we have an issue with downloads (but probably unrelated to refresh getting stuck), and it's kinda made worse by introduction of download-speed measurement09:20
pstolowskideltas are downloaded using same downloadImpl, and if we fail on delta because of download-too-slow error, we fallback to regular download which is pointless in this case 09:21
pstolowskiis there a reason for a fallback at all if delta download failed?09:23
pedronispstolowski: delta can also fail applying, in that case it makes sense to fallback to full download09:33
pedronisbut maybe we are talking different levels here09:33
pstolowskipedronis: no, you're right, but we don't differentiate, maybe we should (err from downloadAndApplyDelta)09:35
pedronispstolowski: what's the issue anyway?  you said it's pointless , that doesn't sound a bug to me, also always unclear what is pointless or not09:36
pstolowskipedronis: on a sketchy network it can only get worse if we retry fail due to network error when downloading a delta and fallback to full download09:36
pstolowskid/retry/09:37
pedronispstolowski: do we know it's a sketchy network?09:37
mardyif someone here has permissions to change labels on the forum posts, I think that the label on https://forum.snapcraft.io/t/connect-multiple-interfaces-in-a-single-command/24493 should be changed to "snapd"09:37
pedronismardy: I can but in a little bit09:38
mardyno hurry09:39
pstolowskipedronis: i don't know about the reported issues; but while trying to reproduce it in a VM with network shaping I hit this case (cannot download or apply deltas: network too slow..) 09:40
pstolowskiso we downloaded quite a bit of xdelta file and then gave up on it and switched to full download when network was too slow09:41
pedronispstolowski: sorry if I'm a bit resistent but you asking to add even more code there, so unless there's a clear win or we really take the time to rework the whole thing, I'm a bit reluctant, especially because it doesn't seem related to the stuck case09:41
pstolowskiyeah i know the issue pre-dates the introduction of download-speed-error09:42
pedroniswe are being wasteful, but in the end that download will probably fail either way09:44
pstolowskiyes but i'm also wondering if 'getting stuck' is real or just a perception with big download and slow network which would be made worse by the above; otoh one week in auto-refresh is a lot and would result in 'download too slow errors', and we didn't see those 09:49
pedronispstolowski: having a way to inspect the internal state of the download still seems the best approach to try to understand something here09:53
pedronismardy: I changed it09:54
=== zyga_ is now known as zyga
pedronismborzecki: I merged the PR you asked me to merge10:01
mborzeckipedronis: thank you!10:03
pedronismborzecki: is apparmor_parser -j0  something new, I don't see it in the man page here10:06
mborzeckipedronis: on 18.04?10:07
pedronis20.0410:07
pedronismborzecki: I commented in the PR10:11
mborzeckihmm hmm, the change was introduces 3 years ago10:13
mborzeckiehh https://gitlab.com/apparmor/apparmor/-/commit/48a32b78b189cf9e2c4d8bce8fb45c68bf4cc327 only apparmor 3 apparently10:14
pedronismborzecki: what does it do on older apparmor  1 or auto though?  I mean the spread tests aren't failing10:15
pedronismborzecki: it might more conservative to do -j1 on 1 cpu?10:16
pedronisor check apparmor version?10:16
mborzeckipedronis: looks like we should be using -j1 to have it work on older versions too10:17
pedronismborzecki: yea10:17
mborzeckipedronis: and -j0 would just trigger the default behavior as if there's no -j at all10:17
mborzeckiso like -jauto10:18
mborzeckithere's a JOBS_AUTO which was 0 before, but is UINT_MIN in 3.0+10:18
pstolowskivar/lib/snapd/snaps/partial doesn't appear to be used anymore? can we drop it from debian/snapd.dirs?10:19
woutervbccccccibbcgvvdubhjibifgfierdffjkdgllkgntilte10:45
ogrameow ?10:48
mborzeckipedronis: this probably needs a pass from you https://github.com/snapcore/snapd/pull/9897 otherwise it looks good to land (with unrelated test failures)11:02
mborzeckialso maybe worthy of cherry pick to 2.50 too11:02
mborzeckiadded a milestone11:03
pedronisprobaly not something to add in .x release11:03
pedronisI'll look at it in the afternoon, thx for the heads up11:04
pstolowskipedronis: i've been looking at out http client setup, timeout and use of DialContext and i'm not sure our setup is sound due to use of context.TODO()11:05
pedronispstolowski: as it doesn't respect the timeout?  can you write a failing test?11:09
pstolowskilooking at DialContext implementation in https://golang.org/src/net/dial.go, afaict it may need a real context (even though DialContext.Timeout is set) for timeout to work on dial11:09
pstolowskipedronis: yes that's a good idea11:12
mborzeckifunny debian 10 is actually sucessful in some of the spread runs11:13
cachiomborzecki, hi, about the failing test tests/main/interfaces-x11-unix-socket on tumbleweed11:42
cachiomborzecki, should we skip it?11:42
cachiomborzecki, it is failing to create the socket for x11 currently11:43
mborzeckicachio: it's a known problem i will get around to fixing that sometime11:53
pstolowskipedronis: can https://github.com/snapcore/snapd/pull/10297 land?11:54
mborzeckicachio: but no, we should not skip the test as it's useful there too11:54
cachiomborzecki, ok11:54
cachiothanks11:54
pedronispstolowski: sorry, I wasn't clear, the command should also match the endpoint, no?11:56
pstolowskipedronis: ah, ok11:56
pedronismborzecki: maybe 10295 can be evens impler ?12:01
pedronissimpler12:01
mborzeckiheh, right, pushed now12:04
mborzeckii'll land https://github.com/snapcore/snapd/pull/10312 with 1 review since it's so trivial, unless someone else wants to take a look?12:06
pedronismborzecki: I don't understand mardy comment12:08
mardypedronis: it's about the text in the patch: "Upstream snapd uses an elaborate hack to bundle squashfuse under the12:12
mardyname snapfuse, and built as a fake go package.12:12
mardy"12:12
mardyit doesn't seem to be relevant anymore12:13
pedronispstolowski: I pushed a nitpick to that PR, sorry12:13
* rzr is watching https://libregraphicsmeeting.org/2021/en/live.html , uc to be shown tomorrow (pincab)12:14
pstolowskipedronis: that's fine, but we have lowercase elsewhere (debug model, seeding, validate seed..)12:16
pedronispstolowski: those are hidden though12:16
pedronispstolowski: look at snap help debug12:16
pedronispstolowski: they start with (internal)12:17
pstolowskipedronis: ah indeed, ok12:17
pedronispstolowski: btw related to this "snap debug state" short help has a final "." which shouldn't be there12:18
pedronisyou can see it also in "snap help debug"12:19
mardywhen a program inside a snap executes another app from the same snap (having different plugs), the second app will be executed under its own confinement, right?12:20
pedronismardy: not really12:22
pedronismardy: the confinement is from outside invocations and for services12:22
pedronismardy: internal snap calls are usually in the confinement on the caller, because as snap can't call a snap app as from outside, normally12:23
pedronis*of the caller, because a snap can't call a snap app...12:23
pedronismborzecki: it's your call whether to do something about the commit or not12:28
mborzeckilanded it as i'm in favor of unbreaking sid and now we can bikeshed about the commit message all we want :)12:30
mardypedronis: interesting, thanks.12:31
mborzeckihm still surprising how debian 10 is passing sometimes12:31
mborzeckimaybe something changed in the image again12:31
mardymborzecki: now everytime that I'll see a failure on Debian I'll blame it on that commit message ;-)12:32
mborzeckipedronis: any further thoughs on https://github.com/snapcore/snapd/pull/10082 ?12:32
mborzecki(and we're down to 76 PRs)12:32
mardypedronis: also if you let me know which one between https://github.com/snapcore/snapd/pull/10292 and https://github.com/snapcore/snapd/pull/10282 you like more (or dislike less), then I can close the other one12:34
pedronismardy: yes, likely tomorrow though, not today12:35
mardypedronis: OK12:35
pedronismborzecki: I suppose I should try it again locally12:36
mardyabout the previous question, is there any way for a snap to execute one of its apps under the proper confinement for that app? The use case is that the microk8s snap offers a microk8s shell wrapper to execute the various tools, and if there isn't a way to execute them under their own confinment this wrapper will end up having pretty much all permissions of the universe :-)12:37
pedronismardy: not without some specific support that we don't have yet12:38
mardysnapctl run ...? :-)12:38
pedronismborzecki: I put 10082 back into my queue12:38
mborzeckithanks12:38
pedronismardy: I put those two alternative PRs into my queue now at least12:40
mardypedronis: thanks12:40
pedronispstolowski: could you merge master into https://github.com/snapcore/snapd/pull/9669 ?12:42
pedronisI hoped it would mostly pass but the errors are obscure so it would need another anyway 12:42
pstolowskisure, doing12:42
pedronisthx12:43
mborzeckicachio: i've added some comments in https://github.com/snapcore/snapd/pull/1016213:44
cachiomborzecki, thanks13:44
mardymborzecki: what is the trick you mentioned in the chat about unpacking the snap?13:47
mborzeckimardy: if you only want to chage a shell script or something similar in the snap, you can `unsquashfs -d <some-dir> <file>.snap`, do the necessary edits, and then `snap pack <somedir>`13:53
mborzeckiyou can do that for anything that does not require recompilation of the source code13:54
mardymborzecki: thanks, this is super helpful :-)13:57
ijohnsonpedronis: we can chat during our meeting, but I only see #9932 and #9292 as marked for 2.51, nobody particularly has asked for 9932, so I think we can push that out to 2.52 and then it's just up to you if you want 9292 for 2.5114:19
pedronisijohnson: we have also some things still marked 2.5014:19
ijohnsonoh huh, let me take a look at triaging those14:20
=== Ringtailed_Fox is now known as Ringtailedfox
=== Ringtailedfox is now known as RingtailedFox
ijohnsonpedronis: also I have cherry-pick permission so I am going to cherry pick some of the things milestoned for 2.51 that have landed recently like #10297 just FYI14:20
pedronisijohnson: cherry pick to 2.50 ?14:21
pedronisanyway let's chat in a bit14:22
ijohnsonpedronis: oh right we haven't branched14:22
ijohnsonnvm me yeah I will hold off on doing anything until our meeting14:22
ijohnsonpedronis: hmmm somehow we again missed merging/updating the changelog for 2.50 + 2.50.1 to packaging/ubuntu-16.04/changelog, they are still both placeholders on master, my PR to release/2.50 will include the real changelogs for those too14:49
pedronisijohnson: mmh, ok14:49
ijohnsonit seems when I did the merge for #10280, I somehow didn't pick up the 16.04 file changes14:49
pedronispstolowski: was somebody waiting on https://github.com/snapcore/snapd/pull/9669 it was open for a long time and without milestone ?15:06
ijohnsonpedronis: oh I forgot to ask, mvo didn't mention this, but there is a LP bug placeholder for SRU's and such, I assume for a major version I should file a new one ?15:11
ijohnsonlike for example this one that was opened for 2.47 ?15:11
ijohnsonhttps://bugs.launchpad.net/ubuntu/+source/snapd/+bug/189592915:11
ijohnsonpedronis: once I have that LP bug number I have the changelog ready and can proceed with the pr15:12
pedronisijohnson: I suppose so (about the SRU)15:15
ijohnsonpedronis: ok, I will file one with the same template that mvo used there, but for 2.51 obviously15:15
pstolowskipedronis: no, it was just a drive-by of #9627 (see this comment: https://github.com/snapcore/snapd/pull/9627#issuecomment-727919698)15:18
pedronisok15:19
ijohnsonpedronis: ok changelog prs are up15:25
ijohnsonhttps://github.com/snapcore/snapd/pull/10314 for release/2.51 and 10313 for the placeholder for 2.51 to master15:26
ijohnsonpedronis: oh wait sorry I need to change it slightly I think15:32
=== rzr is now known as rZr
=== Ringtailed-Fox is now known as RingtailedFox
bandalihi, i'm curious what the criteria is for a package appearing in tab completions for `snap install blah`21:10
bandalisay 'blah' is a new package on snapcraft.io, i'm wondering how long it would take or what would need to happen on a user's computer for it to become available as a completion candidate for `snap install`21:10
ijohnsoncachio: when you get some time tomorrow can you take a look at https://github.com/snapcore/snapd/pull/10099 ? 23:12

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