/srv/irclogs.ubuntu.com/2021/07/07/#snappy.txt

=== bandali_ is now known as bandali
futuretimI'm seeing a super strange behavior in store_download.go01:58
futuretimI think it must be around the handling/expectations of finalErr in that download loop02:05
futuretimeh, maybe not02:08
mardy'morning04:44
mborzeckimorning04:59
mborzeckimardy: hey04:59
mardymborzecki: hi!05:17
mardymborzecki: have you seen this failure before? https://github.com/snapcore/snapd/pull/10497/checks?check_run_id=299982005305:18
mardyI wonder if the kernel config for bionic has changed, as this doesn't look like a random failure05:19
mborzeckimardy: hm maybe they did change something in bionic05:23
mborzeckiwas there a systemd update maybe?05:23
mardymborzecki: mmm... I tried to update the test expectations, and now it failed again, but this time showing that the old expectations where correct...06:01
pstolowskimorning06:07
mardypstolowski: hi!06:12
pstolowskimardy: hi, and congratulations! ;)06:17
mborzeckipstolowski: hey06:24
mborzeckiheh `Failed for "gopkg.in/retry.v1" (failed to ping remote repo): unrecognized import path "gopkg.in/retry.v1"`06:42
mborzeckiin unit tests06:42
mvomborzecki: meh, we had this before, iirc it's gustavos and he is on vac. let's hope it was just a glitch07:02
mborzeckihaha 😉 ok07:02
mborzeckimvo: btw. can you bother you to take a look at https://github.com/snapcore/snapd/pull/10469 with your morning tea?07:02
mvomborzecki: sure07:09
zyga-mbpgood morning07:11
mardymmm... my snap cannot see folders like /usr/share/libreoffice (though its apparmor profile allows that); but AFAIU we are not running the snaps in a chroot... So, why is this happening?07:44
pstolowskimardy: snap's mount namespace only sees certain folders?07:46
* pstolowski physio07:46
mardyoh, it turns out my mount-control interface + snap is working fine, it's just that I was binding-mounting a directory which my snap saw as empty (not the real /usr/share/fonts/, but something else)07:53
mborzeckimardy: hm so the original directory was empty too?07:57
mardymborzecki: yes :-D07:58
zygamardy: snaps run in super-chroots08:20
zygamardy: pivot_root is like chroot but "more"08:21
zygaah ;)08:21
zygamount things can be confusing sometimes08:21
mborzeckimvo: can you land https://github.com/snapcore/snapd/pull/10493 ?08:32
mborzeckiwow, the only spread failure in https://github.com/snapcore/snapd/pull/10502 is unix socket thing on tw one we know about, otherwise it's all green08:33
=== pedronis_ is now known as pedronis
mborzeckia trivial one: https://github.com/snapcore/snapd/pull/1050308:49
pstolowskire08:54
mvomborzecki: I landed the PR09:00
mborzeckimvo: thanks!09:03
jameshpstolowski: Does the info in https://forum.snapcraft.io/t/a-desktop-notifications-client-api-for-snapd/25063/4?u=jamesh cover what you needed for icons in desktop notifications? Sorry for not getting back to you about it sooner.09:08
pstolowskijamesh: thanks, that's perfect. and no worries, i've been working on a few other things, wasn't blocked on that one09:13
pstolowskimborzecki: a simple PR https://github.com/snapcore/snapd/pull/10504, i wonder if there was a reason for this / something planned?10:28
mborzeckipstolowski: hm don't recall anything, maybe ian will10:32
mborzeckipstolowski: or maybe it was just missed during review ;)10:32
mvomardy: 10375 has a conflict currently10:47
pedronispstolowski: I don't remember, that code is quite convoluted, but not really at the top of things to clean up (so far)10:56
pstolowskipedronis: sure11:00
mardymvo: it's expected, I'll fix them now11:13
mvomardy: nice, thank you11:14
pstolowskimvo: could you please land https://github.com/snapcore/snapd/pull/10479 ? unrelated failures, been trying to land it since this morning11:31
mvomardy: also thanks for your suggestions in 10482!11:44
pstolowskipedronis: i've been pondering asserts pool changes wrt conflict checks on CommitTo(); does using existing checkers mechanism on .Add() seem like a good direction to you?12:02
pedronispstolowski: bit confused, I don't think we want that be bit to go as deep as asserts12:03
pedronispstolowski: I mean I expect this part to be a problem of assertstate12:03
pstolowskipedronis: ok, i probably misunderstood this from our discussion12:04
pedronispstolowski: we might need help, but my point is the call to CommitTo is assertstate, so it's more of decision to call it or not, vs having CommitTo decide, am I missing something?12:05
mardypedronis: hi! the "snapctl mount" command, should it be in the "nonRootAllowed" list?12:08
mardyI guess not, but double-checking12:08
pedronismardy: no, not initially for sure12:09
zyga-mbpmardy, pedronis: it feels like it should not but remember that snaps can trivially gain root and expose confined root to unconfined user via a socket 12:10
zyga-mbpso this is only a cosmetic distinction 12:10
mardyzyga-mbp: can I read more about this "trivially"? :-)12:11
pedronisany snap can define services and those run as root12:12
zyga-mbpmardy: put a snap in the store that runs a service that accepts input from anyone 12:12
pstolowskipedronis: i understand the high level concept. but one detail i'm struggling to understand now is: i've current db and a set of incoming (resolved) asserts in the pool, I now need a "combined" database of both to check if no conflicts arise, no? but maybe i'm confused12:12
zyga-mbpit's good that mount-control is not going to be granted to anyone12:12
mardyzyga-mbp: last famous words ;-)12:12
zyga-mbpbut keep in mind that snapctl root-only list is not a strong protection system12:12
zyga-mbps/anyone/just anyone/12:12
mardyzyga-mbp: good to know, thanks12:13
zyga-mbpright, I just wanted to make sure you know this :)12:13
pedronispstolowski: maybe we should have a quick chat, you might need a way to access the Backstore inside the pool12:15
pstolowskipedronis: ok, maybe after standup?12:16
pedronisyes12:16
ogra`zyga-mbp, you mean putting duct tape over a keyhole is not a safe security mechanism ?12:18
zyga-mbpogra` it's not a duct tape, it's a "please do not enter" sign on an open dor12:24
zyga-mbp*door12:24
ogra`hahaha12:24
futuretimGood <insert your time of day here> all! My snapd keeps trying to get the account key for "wrfougkz3Huq2T_KklfnufCC0HzG7bJ9wP99GV0FF-D3QH3eJtuSRlQc2JhrAoh1" which is very familiar but I can't remember why and I couldn't answer the question online. Does anyone know what account key that is?13:32
futuretimI guess it's generic-classic related.13:41
futuretimDoes the sign-key for generic-classic change often?13:43
futuretimAh- it's the serials assertion for generic. Right.13:45
futuretimAh- it's the serials (account-key) assertion for generic. Right.13:45
pedronisit can change at any point, snapd usually gets the signing key when getting any assertion in case it doesn't have it yet or has been updated14:02
pedronisexcept for the few in the trusted set14:02
mvoif someone could review the 2.51.2 changelog (pr#10506) that would be great14:04
pedronismvo: reviewed14:08
mvopedronis: thanks, I can update the "do not visit same halt..." text if you want, what do you want there?14:15
pedronismvo: put something there14:16
mvota14:17
mvopedronis: thanks, pushed again14:20
ijohnson[m]pedronis: I pushed again to https://github.com/snapcore/snapd/pull/1043714:31
pedronisijohnson[m]: thx, I'll see if I can get to it today, working on something else atm14:33
ijohnson[m]sure, np thanks for the reviews14:33
* cachio afk14:38
mvoa review for 10507 would be great14:55
futuretim_Why are some checks failing acceptable? 14:57
mvofuturetim it's not in general14:58
mvofuturetim there are sometimes infrastructure failures (503 from e.g. store registration service) where I may override the failure if it's absolutely clearly not related to the PR. is that what you were asking aobut? or did I misunderstand?14:59
futuretim_That PR has 12 commits that had failing checks.14:59
mvofuturetim PR#10437?15:00
futuretim_Just getting somewhat acclimated to the workings, so just asking questions15:00
futuretim_no 1050715:00
ijohnson[m]mvo: reviewing that pr now15:00
futuretim_or am I mistaken?15:01
mvofuturetim oh, sorry, I see now what you mean. I think (without having looked at the individual ones) that those are intermediate commits that may have had issues, we do not squash those (most of the time) so this can happen. as long as the aggregation is ok it should be fine15:02
futuretim_OK, that makes sense. Thanks.15:02
mvoyw :) 15:02
ijohnson[m]yeah github if it knows it ran checks for a given commit as part of another PR, it will show the results of that run next to the commit even if the commit is in another PR15:03
ijohnson[m]futuretim_:  also that particular little UI thing (the red X next to a commit) is basically always red since we have 1-2 tests on opensuse tumbleweed that fail 100% of the time that we haven't fully figured out yet (IIRC it's related the cloud kernel used in the tumbleweed images that we don't control), but those checks are not "required" to land the PR so it's "okay" that those opensuse failures are happening15:04
futuretim_ijohnson[m]: thanks for explaining! 15:05
ijohnson[m]np15:08
futuretim_Also, the testing is impressive in snapd.15:08
ijohnson[m]thanks! 🙂15:09
=== benfrancis2 is now known as benfrancis
DWDHello, I've been asked if there is a way to override environment variables in Snaps at runtime (i.e not when building).  Is there such a feature?16:04
ijohnson[m]DWD: you mean to change something that the snap is setting ? No unfortunately there is not16:05
DWDYes, that is my understanding of their question.  Thank you for your help16:06
ijohnson[m]np16:06
DWDMy friend has informed me that the Snap is one which performs some computational work that could be delegated to their GPU by setting "__NV_PRIME_RENDER_OFFLOAD=1 and __GLX_VENDOR_LIBRARY_NAME=nvidia" .Assuming the snap does not set these, could they be passed in?16:13
ijohnson[m]DWD: yes if the snap does not already set values for those in the snap.yaml or as part of any wrapper scripts, you could just set those in your environment and run the appropriate command16:14
DWDThanks very much, I'll forward this.  My friend also passes their thanks to you16:15
DWDenjoy your evening/ day :)16:16
cachioijohnson[m], hey17:06
cachioabout the comment https://github.com/snapcore/snapd/pull/10409#discussion_r66494756117:06
cachiothere is not MATCH implementation in snapd17:06
cachioit is a fake function17:07
cachioso it is not possible to copy that 17:07
cachionot sure if it is possible to copy the function which is in the scipt which is executed in runtime17:08
cachiothat should be ideal17:08
cachioYou mean to use type for that right?17:12
cachioijohnson[m], I think I have it 17:16
cachioit was much easier17:16
cachiothanks for the comment17:16
cachioijohnson[m], updated #1040918:25
ijohnson[m]cachio: cool I'll have a look when I'm back in a bit18:28
cachioijohnson[m], thanks18:38
cachioijohnson[m], that approach does not work20:40
cachiobecause using type I get the match implementation which is empty 20:41
cachioperhaps getting this in the spread.yaml could work20:41
cachioI see we already are doing type MATCH | tail -n +2 > "$TESTSLIB"/spread-funcs.sh20:45
cachiowhile we prepare the project20:45
cachioijohnson[m], it is fixed now21:01
=== jdstrand_ is now known as jdstrand
futuretimis there a branch or work being done to convert snapd to Go modules yet?23:48

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