/srv/irclogs.ubuntu.com/2021/09/02/#snappy.txt

mupPR snapd#10719 opened: interfaces/network-control: additional ethernet rule <Simple 😃> <Needs security review> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10719>03:02
pstolowskimorning06:05
mardypstolowski: hi!06:10
mborzeckipstolowski: mardy: morning06:26
mardymborzecki: hi!06:28
pstolowskia trivial needs 2nd review: https://github.com/snapcore/snapd/pull/1071306:38
mupPR #10713: tests: use host-scaled settle timeout for hookstate tests <Simple 😃> <Skip spread> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10713>06:38
mborzeckiPGP during unit tests but this time on OBS https://paste.ubuntu.com/p/Brxxc2VW6x/ so it's not only ubuntu where we see this06:52
mupPR snapd#10702 closed: interfaces: introduce snap-refresh-control interface <Needs Samuele review> <Refresh control> <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10702>07:03
pstolowskiahh no, i was tweaking it ;)07:04
mborzeckipstolowski: do tweaks in a followup07:08
pstolowskiyeah just did07:08
mborzeckiat least somethign landed :P07:08
pstolowskihttps://github.com/snapcore/snapd/pull/1072007:08
mupPR #10720: interfaces: no need for snapRefreshControlInterface struct <Simple 😃> <Skip spread> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10720>07:08
mupPR snapd#10720 opened: interfaces: no need for snapRefreshControlInterface struct <Simple 😃> <Skip spread> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10720>07:08
mupPR snapd#10721 opened: interface/builtin: add qualcomm-ipc-router interface for AF_QIPCRTR socket protocol (2.52) <Created by mvo5> <https://github.com/snapcore/snapd/pull/10721>07:23
zygao/07:27
zygahello07:27
pstolowskihej zyga 07:27
mupPR snapd#10720 closed: interfaces: no need for snapRefreshControlInterface struct <Simple 😃> <Skip spread> <Created by stolowski> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/10720>07:38
mvogood news! 10634 is green green, i.e. all tests happy - it looks like we solved a lot of the recent flakyness in the tests07:50
mvoWELCOME GO MODULES 07:50
mvo(let's see how much breaks after this merge ;)07:50
mupPR snapd#10634 closed: many: move to go modules  <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10634>07:53
pstolowskiyay!08:11
mardyjamesh: hi! When you have a minute (or two :-) ), please give another look to the portals PR08:20
zygahey mvo :)08:29
zygacongrats on modules08:29
zygaI hope that debian side of that won't be a problem08:29
zygaI've spent several days looking at go in yocto and it's not a happy picture08:29
jameshmardy: hi. Sorry for the delays.08:32
jameshzyga: I had a go at trying to set up a Debian-friendly Go package build, and got something that mostly works08:33
zygajamesh in yocto the problem is with the missing fetcher08:34
zygaso the package is not really offline-friendly08:34
mvohey zyga  - in a meeting right now, sry, will get back to you :)08:34
zygapackaging anything but applications is thus a bit pointless08:34
jameshzyga: the trick was to run a bunch of "go mod edit -replace ..." calls to point all the dependencies at the packaged versions under /usr/share/gocode08:34
zygamvo no worries, just saying hello08:34
zygajamesh that's interesting08:34
zygadid you run into multi-version problems?08:35
zygaI found that check.v1 has two versions of one library as a dependencyu08:35
zygaone for itself08:35
zygaand one for another dependency08:35
zygaI don't want to fight that, just embrace `go mod download` with a fetcher08:35
zygaso that we don't package libraries, just apps but with the correct offline files and correct (complex) license tracking08:36
zygathat's the plan I've shared with the yocto go maintainers and they seem to align08:36
jameshzyga: I personally think distro packaging Go libraries is a losing proposition, so I was mainly doing it from the point of view of reducing friction with Debian rather than because I think it is a good idea08:37
zygaI agree08:37
zygait'd be possible iff debian and yocto actually had multi-version libs08:37
zygasince they don't, it's really pointless to try08:37
jameshzyga: as far as multiple versions, you should only end up with a single version of each major version of a library in the executable08:37
zygathat's true08:38
zygabut test deps are different08:38
jamesheven if the go.mod files for the dependencies reference different versions08:38
zygayes08:38
zygaI've read the mod spec (painfully long)08:38
jameshsince they define the same types08:38
zygabut since tests are separate built binaries08:38
zygathey do end up with two08:38
zygaone in each package08:38
zygaso some insanity if you want to package the libs as two separate versions08:38
zygaso technically check.v1 depends on two different versions for a complete, tested build08:39
zygaoh fun :)08:39
jameshOn the Debian side, I don't think it really matters: you'd only have a single copy of check.v1 packaged, so you'd replace them both to the same version08:40
jamesh(even though that's not what the upstream tested)08:41
jameshzyga: anyway: this was the proof of concept: https://git.launchpad.net/~jamesh/+git/go-mod-test/tree/?h=main08:50
mupPR core20#112 opened: doc: add instructions on enabling bootcharts <Created by alfonsosanchezbeato> <https://github.com/snapcore/core20/pull/112>08:51
zygajamesh yes but I think in the long term that's going to be very painful unless we're lucky (no API breakage) and it's fully automated around distro tooling08:56
zygathat's very interesting though08:56
zygajamesh it's funny we have nearly the same go dependencies 08:57
zygacheck and dbus08:57
jameshzyga: in a modules world, API breakage should be accompanied by a major version bump (unless it is a v0 package)08:58
zygayes08:58
zygaso pre-modules and v0 are indeed the problem08:58
zygaI think modules are a bit immature though, in the community, and people are likely not to bump the version reliably yet08:58
zygaI don't think there is an equivalent of ABI checker that's used by default for go08:59
jameshzyga: you see that kind of problem in pretty much all language environments though09:01
mupPR snapd#10713 closed: tests: use host-scaled settle timeout for hookstate tests <Simple 😃> <Skip spread> <Created by stolowski> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/10713>09:03
mborzeckiheh gopls it totally confused with modules right now when master has it but some of the branches i work on don't09:04
zygamborzecki yeah, happens to me too09:07
zygajust restart gopls09:07
mborzeckiheh i see set -u leaking somewhere to the test from sourced files09:23
mupPR snapd#10722 opened: tests/nested/manual/refresh-revert-fundamentals: fix variable use <Simple 😃> <Run nested> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10722>09:44
mborzeckishould be trivial ^^09:44
pedronismvo: I just updated to master and I get a local diff after running get-deps10:12
mborzeckimeh systemd reloading its bpf programs is kind of annyoing10:23
mardypedronis: Hi! I wanted to ask about your feedback on https://github.com/snapcore/snapd/pull/10704; do I understand it correctly, that you are suggesting to replace the dummy implementation of the methods with calls to the real systemd, so that this type could be used in existing tests without much changes?10:33
mupPR #10704: systemd: add fake type for easier mocking of systemd functions <Created by mardy> <https://github.com/snapcore/snapd/pull/10704>10:33
mupPR snapd#10723 opened: o/ifacestate: special-case system-files and force refreshing its static attributes <Bug> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10723>10:34
mupPR snapd#10724 opened: many: update deps <Skip spread> <Created by MiguelPires> <https://github.com/snapcore/snapd/pull/10724>10:44
mborzeckifun, now getting EPERM on any bpf operation on sid :/11:02
mborzeckiinterestingly only when the service is started by systemd11:12
zygamborzecki systemd cgroups in effect?11:17
mborzeckizyga: i don't think so, there's only EPEM when creating a map or attaching a program11:18
zygahmm11:18
mborzeckizyga: fwiw BPF_OBJ_GET works, so not all bpf syscalls fail11:18
zygahmm11:18
zygawhich cgroup the service is in at the time?11:19
zygais there any stacking of cgroups going on? as in a bfp program attached up in the hierarchy11:19
zygais that a system or user service?11:19
mupPR snapd#10719 closed: interfaces/network-control: additional ethernet rule <Simple 😃> <Created by anonymouse64> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10719>11:19
mborzeckizyga: the one systemd created, but the program should be allowed to create a map at least11:20
mborzecki(that's even before it tries to attach a program with BPF_PROG_TYPE_CGROUP_DEVICE11:20
zygaand when you did the test without systemd in the way, what was the cgroup you were in?11:20
zygaright but even then you may have a seccomp filter attached11:21
mborzeckithat was a as user, but it worked for both root and uid 1000+11:21
zygaand when does it not work?11:22
mborzeckizyga: when running as a system service, and only seen this on sid11:22
zygahmm11:23
zyganew systemd?11:23
zyganew filters applied11:23
zygadifferent configuration options11:23
mborzeckinot newer than what i have on arch and tw11:23
zygacan you check the bpf program attached to snap-confine as it starts up?/11:24
zygabrb, reboot11:26
zyga-mbpre11:47
ijohnson[m]Morning folks11:50
ijohnson[m]pstolowski hey do you think you can just include the working version of my regression test in your PR fixing the system-files thing? I think it would be ideal to have the spread test in the same branch/PR as the fix11:51
pstolowskiijohnson[m]: sure i can11:51
ijohnson[m]Thank you! 11:53
ijohnson[m]I will close mine then 11:53
mupPR snapd#10707 closed: tests/regression: add regression test for LP #1942266 <Bug> <Created by anonymouse64> <Closed by anonymouse64> <https://github.com/snapcore/snapd/pull/10707>11:54
ijohnson[m]pedronis I noticed the same thing too, we seem to have an untidy go.mod11:56
ijohnson[m]The solution to this is to ensure that go.mod is tidy as part of run-checks I think11:57
zyga-mbphey ijohnson[m] :)11:59
mardyjamesh: thanks for the review!12:15
mardynow if someone is bored, I promise that https://github.com/snapcore/snapd/pull/10628 is super exciting! ;-)12:16
mupPR #10628: usersession/xdgopenproxy: move PortalLauncher class to own package <Squash-merge> <Created by mardy> <https://github.com/snapcore/snapd/pull/10628>12:16
mardydo we have some randomness in our unit tests? I'm asking because looking at the coverage changes, they often report changes in files which cannot be possibly affected by the PR: https://app.codecov.io/gh/snapcore/snapd/compare/10704/changes12:26
ijohnson[m]Hey zyga-mbp 12:32
ijohnson[m]mardy we certainly could maybe it would be worth trying to track which files that could not possibly have had their coverage change show up in PRs, that's probably where our non-deterministic coverage comes in 12:33
pedronisI know we have some tests about sorting helper that show some coverage randomness12:39
pedronismardy: I made some comments in the systemd testing PR12:39
pedronisijohnson[m]: mvo: what's the status with core20 issues? is it worth re-running tests in PRs or not yet?12:40
pstolowskiijohnson[m]: #10723 now includes your test12:44
mupBug #10723: shadow: new changes from Debian require merging <shadow (Ubuntu):Fix Released by mdz> <https://launchpad.net/bugs/10723>12:44
mupPR #10723: o/ifacestate: special-case system-files and force refreshing its static attributes <Bug> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10723>12:44
ijohnson[m]pedronis yeah core20 in edge is working now 12:45
ijohnson[m]Great thanks12:45
ijohnson[m]pedronis : mvo managed to land the revert into core20 edge channel before I landed my PR switching to beta channel so it was unnecessary and things are happy again 12:45
ijohnson[m]mvo: I added https://github.com/snapcore/snapd/pull/10723 to the 2.52 milestone I think we should include it in 2.52 if possible14:27
mupPR #10723: o/ifacestate: special-case system-files and force refreshing its static attributes <Bug> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10723>14:27
ijohnson[m]cachio_: do you think you could take a look at https://github.com/snapcore/snapd/pull/10718 ? it has 2 +1's but I'd like your review before landing it14:29
mupPR #10718: tests/lib/prepare.sh: download core20 for UC20 runs via BASE_CHANNEL <Simple 😃> <Test Robustness> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10718>14:29
mupPR snapd#10725 opened: o/hookstate: require snap-refresh-control interface for snapctl refresh --proceed <Refresh control> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10725>14:55
pedronismvo: ijohnson[m]: I get this state on master   D vendor/.gitignore  after get-deps.sh15:24
pedronisah, miguelpires PR addresses that too15:26
ijohnson[m]pedronis: yeah miguelpires 's PR fixes that too15:31
pedronismborzecki: I re-reviewed the remodel PR, it still seem that some situations are not covered by the code, see my comments15:39
miguelpiresmvo can you merge this https://github.com/snapcore/snapd/pull/10724 please? 15:39
mupPR #10724: many: update deps <Skip spread> <Created by MiguelPires> <https://github.com/snapcore/snapd/pull/10724>15:40
mupPR snapd#10726 opened: systemd: add mock systemd helper <Created by mardy> <https://github.com/snapcore/snapd/pull/10726>15:40
mupPR snapd#10704 closed: systemd: add fake type for easier mocking of systemd functions <Created by mardy> <Closed by mardy> <https://github.com/snapcore/snapd/pull/10704>15:45
mvomiguelpires: sure15:54
mupPR snapd#10724 closed: many: update deps <Skip spread> <Created by MiguelPires> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10724>15:55
cachio_ijohnson[m], sorry, for the delay, I'll take a look16:21
ijohnson[m]thanks16:40
* ijohnson[m] -> lunch16:40
mupPR snapd#10678 closed: o/snapstate: enforce validation sets assertions when removing snaps <Needs Samuele review> <validation-sets :white_check_mark:> <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10678>17:05
mupPR snapd#10590 closed: image,c/snap,tests: support enforcing validations in prepare-image via --customize JSON validation enforce(|ignore) <Created by pedronis> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10590>17:10
mborzeckiijohnson: trying to make xdo available in opensuse https://build.opensuse.org/request/show/916054 next step will be to prepare a pr for etrace20:00
ijohnson[m]bboozzoo: oh hey! I was actually just looking at using xdo in etrace, it seems like this order of command works (with various options for identifying the window):20:01
ijohnson[m]xdo id -m -N "Antstream Arcade"; while xdo id -N "Antstream Arcade" > /dev/null; do xdo close -N "Antstream Arcade"; done20:01
ijohnson[m]the problem is that `xdo kill` kills the client before the window is actually displayed20:01
mborzeckiijohnson: ha, that's interesting20:02
ijohnson[m]but `xdo close` doesn't work totally until the window is displayed, otherwise it just returns with exit code 0 as if nothing happened20:02
ijohnson[m]so you have to keep calling close in a loop until the window is actually properly closed and can't be identified anymore20:02
ijohnson[m]at least that is the most logical sequence of events I could figure out20:02
mborzeckiijohnson: have you maybe tried to raise the window?20:02
ijohnson[m]bboozzoo: hmm let me look, I didn't try anything with raise20:03
ijohnson[m]nope, raise doesn't block waiting for the window to actually be visible either20:04
mborzeckiheh20:04
ijohnson[m]but that's maybe an interesting question to see if the other commands manipulating the window would block until it's actually visible20:04
mborzeckiijohnson: there are actual 'show' and 'hide' commands, but i guess the problem is that the window isn't painted yet20:05
mborzecki(or mapped?) anyways iirc you actually have to create a window before, so it already has an id, don't recall though if properties are already set by this time20:06
ijohnson[m]yeah that seems to be the problem indeed, none of the show/hide/raise/lower/resize commands actually block until the window is painted/mapped so they just return20:07
ijohnson[m]in any case I think the loop of trying to close the window until it no longer shows up with `xdo id` seems to work well enough20:07
mborzeckihm wonder if all we need is maybe a simple hack in xdo to call xcb_get_geometry() and check whether the window is mapped20:09
ijohnson[m]yeah I dunno, I suppose we could patch/hack on xdo inside the snap of etrace20:10
mborzeckiheh, it's 2 C files and 2 headers ;)20:11
ijohnson[m]oh wow haha20:11
mborzeckiijohnson: anyways, need to wrap it up, if you plan to open a PR to etrace then please ping me in it and i'll give it a try tomorrow morning20:13
ijohnson[m]bboozzoo: yeah probably not tonight, just exploring a bit how xdo works and looking at the bugs popey filed for me :-)20:13
mborzeckisure thing20:14
grip__Hey all. I'm pretty new to Ubuntu Core and I'm having a network issue that's giving me trouble. Ubuntu Core 20 with the LXD snap. Running a container with a proxy device. If I ssh into Core host, I can see port is bound to `*:[port]` in `ss`, but I cannot hit that port from outside of the Core host.21:37
ijohnson[m]grip__: you might have better luck asking your question on the forum, either the snapcraft forum or the LXD forum, since many folks are offline for EOD and may not see your message here21:38
grip__Thanks, ijohnson[m]. I'll give it a go on the snapcraft forum. Far as I can tell, LXD is doing what it's supposed to so better to start there, I guess.21:41

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