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

mborzeckimorning05:18
mardymborzecki: hi!05:58
mborzeckimardy: hey05:58
mborzeckinot much has landed since yesterday :/05:59
mardymborzecki: but now codecov seems to be working at least :-)06:00
mardymborzecki: have you seen this error before? I'm trying to reproduce it locally: https://github.com/snapcore/snapd/pull/10797/checks?check_run_id=362882550106:00
mupPR #10797: usersession/client: refactor doMany() method <Created by mardy> <https://github.com/snapcore/snapd/pull/10797>06:00
mardylooks like a timing issue, with the test taking too long06:01
mborzeckimardy: yes, it's fixed in master06:01
mardyreally? I just rebased...06:02
mborzeckihmmm06:02
mborzeckilet me pull master again06:02
mardyI have Pawel's commit in my branch06:03
mborzeckiah w8, it's contxt deadline exceeded06:03
mborzeckiyeah, a timing problem then?06:03
mardyI think the problem is that locally, it takes less than 5 seconds, and it passes06:03
mardythere, in CI, it took longer than 5 seconds06:04
mardy5.77s06:04
mborzeckimardy: reproduced it locally https://paste.ubuntu.com/p/m4p5Gq74dF/06:12
mborzeckiwith -count 10006:12
mardymborzecki: did you change the timeout? I see it took just 1.02 s06:14
mborzeckimardy: i did `cd store && go test -check.f storeActionSuite.TestSnapActionTimeout -count 100 `06:14
mborzeckithen it failed after some number of attempts06:14
mborzeckii guess ti's either hitting a context deadline set when creating a request, or there's an overarching time.After() when the request is issued somewhere in net/http06:15
mborzeckimardy: https://github.com/snapcore/snapd/pull/1080006:17
mupPR #10800: store: one more tweak for the test action timeout <Simple 😃> <Skip spread> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10800>06:17
mupPR snapd#10800 opened: store: one more tweak for the test action timeout <Simple 😃> <Skip spread> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10800>06:18
pstolowskimorning07:12
mupPR snapd#10800 closed: store: one more tweak for the test action timeout <Simple 😃> <Skip spread> <Created by bboozzoo> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10800>07:13
mborzeckipstolowski: mvo: morning07:13
mvogood morning mborzecki and pstolowski 07:14
mborzeckimvo: can you land https://github.com/snapcore/snapd/pull/10703 ?07:14
mupPR #10703:  tests/main/security-device-cgroups-strict-enforced: demonstrate device cgroup being enforced <cgroupv2> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10703>07:14
mvomborzecki: sure07:16
mborzeckithanks!07:17
mvomborzecki: does this mean it's time for a git snapshot upload to impiish?07:17
mupPR snapd#10703 closed:  tests/main/security-device-cgroups-strict-enforced: demonstrate device cgroup being enforced <cgroupv2> <Created by bboozzoo> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10703>07:18
mupPR snapd#10787 closed: tests: add a local snap variant to testing prepare-image gating support <Created by pedronis> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10787>07:23
zygagood morning, I'll be right back, just need to reboot for kernel updates07:27
mupPR snapd#10779 closed: tests/nested/manual: use loop for checking for initialize-system task done <Simple 😃> <Run nested> <Created by anonymouse64> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10779>07:28
mvozyga: good morning07:29
mvopstolowski: looks like 10765 needs a master merge, failed with the timeout unit test with 1.1707:29
zygagood morning mvo :)07:30
zygahappy Friday!07:30
mborzeckimvo: not yet, one more branch07:32
zygacongratulations on firefox snap everyone!07:33
pstolowskimvo: yeah, not just this one, going over my PRs atm07:35
mupPR snapd#10801 opened: cmd/libsnap-confine-private: use root when necessary for BPF related operations <Security-High> <Needs security review> <cgroupv2> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10801>07:43
mupPR snapd#10802 opened: data/selinux: update the policy to allow s-c to manipulate BPF map and programs <Simple 😃> <cgroupv2> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10802>07:43
mvopstolowski: thanks07:51
mborzeckimvo: all the branches are up, i've closed the WIP one, also added cgroupv2-impish label for things that I think need to be part of the git snapshot (which is everything that's proposed, sans selinux bits)07:51
mvomborzecki: which one is this?07:51
mvomborzecki: aha, nice07:51
mvomborzecki: thanks so much!07:51
mborzeckii'll try to clean up my notes and maybe propose those too as in-source-tree documentation07:52
mupPR snapd#10575 closed: [WIP] many: device cgroup v2 support <â›” Blocked> <cgroupv2> <Created by bboozzoo> <Closed by bboozzoo> <https://github.com/snapcore/snapd/pull/10575>07:53
mupPR snapd#10803 opened: tests, interfaces/builtin: introduce 21.10 cgroupv2 variant, tweak tests for cgroupv2, update builtin interfaces <cgroupv2> <cgroupv2-impish> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10803>07:53
mborzeckimeh, tests/main/auto-refresh* tests are failing now08:01
mborzeckimvo: https://github.com/snapcore/snapd/pull/10799/ can land now, the tests that are affected by the PR are fixed, the failing ones are unrelated08:01
mupPR #10799: tests/main/preseed: update for new base snap of the lxd snap <⚠ Critical> <Simple 😃> <Test Robustness> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10799>08:01
mvomborzecki: +1 done08:10
mborzeckithanks08:11
mupPR snapd#10799 closed: tests/main/preseed: update for new base snap of the lxd snap <⚠ Critical> <Simple 😃> <Test Robustness> <Created by anonymouse64> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10799>08:13
mborzeckinot bad for 21.10 now https://paste.ubuntu.com/p/v7ZRj8G5JX/ 08:27
pstolowskimborzecki: awesome.. auto-refresh-gating? what failed there08:44
mborzeckipstolowski: afaiu the test expects an auto-refresh change to happen, but there isn't one, store does not return anything08:54
pstolowskimborzecki: ah, weird08:54
mborzeckifrom what i can tell test-snapd-refresh-control-provider snap should be refreshed after switching the  channels, but perhaps the store is rate limiting refreshes now?08:55
pstolowskimaybe logs will sched some light08:57
pstolowskibut that's how the test works and should continue to work08:57
mborzeckipstolowski: well, it's failing on master too right now, i'm looking at the logs: https://paste.ubuntu.com/p/V6hhDp6nqC/08:59
mborzeckithis is when we expect an auto refresh :)08:59
pstolowskihmm09:00
pstolowskistorehelpers.go:604: no install/refresh information results from the store09:00
mborzeckipstolowski: asked in mm09:03
pstolowskithanks09:04
miguelpiresmvo: hi, can you merge https://github.com/snapcore/snapd/pull/10756 please? The test failures are unrelated09:20
mupPR #10756: cmd/snap: only log translation warnings in debug/testing <Created by MiguelPires> <https://github.com/snapcore/snapd/pull/10756>09:20
mvomiguelpires: sure09:22
mupPR snapd#10756 closed: cmd/snap: only log translation warnings in debug/testing <Created by MiguelPires> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10756>09:24
pstolowskimvo: could you please merge https://github.com/snapcore/snapd/pull/10774 ? unrelated failures10:06
mupPR #10774: asserts, snapstate: return full validation set keys from CheckPresenceRequired and CheckPresenceInvalid <Needs Samuele review> <validation-sets :white_check_mark:> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10774>10:06
mvopstolowski: on it10:06
pstolowskity10:07
mupPR snapd#10774 closed: asserts, snapstate: return full validation set keys from CheckPresenceRequired and CheckPresenceInvalid <Needs Samuele review> <validation-sets :white_check_mark:> <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10774>10:09
mupPR core20#114 closed: Fix riscv64 build <Created by xnox> <Merged by xnox> <https://github.com/snapcore/core20/pull/114>10:22
mupPR snapcraft#3581 opened: packaging: load the correct libraries on riscv64 <Created by xnox> <https://github.com/snapcore/snapcraft/pull/3581>11:28
pstolowskimvo: could you also land https://github.com/snapcore/snapd/pull/10765 ?12:05
mupPR #10765: o/snapstate: enforce validation sets/enforce on InstallMany <Needs Samuele review> <validation-sets :white_check_mark:> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10765>12:05
mborzeckire12:16
mborzeckiheh that took a while12:16
pstolowskimborzecki: all fine?12:20
mborzeckiyeah, got one more checkup on sunday, but seems to be fine so far12:20
pstolowskigreat12:26
mardymvo: can you please use your merging powers on https://github.com/snapcore/snapd/pull/10772?12:48
mupPR #10772: kernel/fde: mock systemd-run in unit test <Created by mardy> <https://github.com/snapcore/snapd/pull/10772>12:48
mardyBTW, the tests there are failing because of some time tolerance issue: https://pastebin.ubuntu.com/p/g76qTyBhC7/ Is anyone working on it (I could take a look, otherwise)12:49
ijohnson[m]mardy yeah I've seen that a bunch I think there's a time sync that happens or something because the test definitely is not executing for 45 minutes like the time difference would suggest 12:54
ijohnson[m]But I'm not working on that failure 12:54
mardyah, now I see, it's the same test that once failed at midnight12:58
mardyso, this test does not appear to be doing any refresh on its own :-)12:59
mardyit just assumes that some other test must have been run before, which triggered a refresh13:00
mardybut whether that took 10 minutes or more, it depends from the order of the tests13:00
mupPR snapd#10765 closed: o/snapstate: enforce validation sets/enforce on InstallMany <Needs Samuele review> <validation-sets :white_check_mark:> <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10765>13:14
pstolowskimiguelpires: see tests/main/interface-hooks test 13:23
miguelpirespstolowski: thank you!13:24
mupPR snapd#10804 opened: [Feat] Add @squash rule support to snap-seccomp <Created by diddledani> <https://github.com/snapcore/snapd/pull/10804>13:29
mupPR snapd#10805 opened: overlord/devicestate: make settle wait longer in remodel tests <Simple 😃> <Skip spread> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10805>13:54
mborzeckitrivial pr ^^13:56
mupPR snapd#10806 opened: tests: rename interfaces-hooks-misbehaving spread test to install-hook-misbehaving <Simple 😃> <Skip spread> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10806>14:20
pstolowskiand this ^14:21
diddledani@jdstrand I'm working on getting per-rule squashing of seccomp denial logs.. I think I've got the snap-seccomp bits done, but it's still logging, so I'm wondering if I need to make changes in libseccomp-go. Any idea what I need to look for to generate a per-rule no-log?14:34
mborzeckipstolowski: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1943853 looks like a problem with snapd loosing all connections15:21
mupBug #1943853: Recent update DELETED SNAP PROGRAMS <amd64> <apport-bug> <hirsute> <wayland-session> <snapd:Incomplete> <snapd (Ubuntu):Incomplete> <https://launchpad.net/bugs/1943853>15:22
pstolowskimborzecki: oh well, we don't have snap changes, do we?15:24
mborzeckipstolowski: there's no way to auto connect things again right?15:25
pstolowskimborzecki: no15:27
pstolowskimborzecki: and no snaps are broken, very weird15:28
mborzeckipstolowski: the connections are clearly gone15:28
pstolowskimborzecki: or repo and conns are out of sync for some weird reason, but maybe snap connections uses conns directly these days15:29
pstolowskimborzecki: can you ask him for snap changes & snap change <id> if there were errors?15:30
mborzeckipstolowski: ok, sent a request15:32
pstolowskity15:33
mborzeckipstolowski: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1943853/comments/14 meh, looks like it was garbage collected, any ideas how we can help this poor soul?15:46
mupBug #1943853: Recent update DELETED SNAP PROGRAMS <amd64> <apport-bug> <hirsute> <wayland-session> <snapd:Incomplete> <snapd (Ubuntu):Incomplete> <https://launchpad.net/bugs/1943853>15:46
pstolowskimborzecki: dang, I don't think we will be able to figure what happened without changes :(15:54
ijohnson[m]I really hate some days the fact that we so aggressively garbage collect changes15:55
pstolowskiijohnson[m]: yes15:57
pstolowskialso, seems like we regressed with snap disconnect <snapname> and it must happened a very long time ago, filing a bug15:58
pstolowskior actually maybe not, but there is a confusing message with snap disconnect foo:16:00
pstolowskiyeah i think it's just the message problem16:08
pstolowskifyi https://bugs.launchpad.net/snapd/+bug/194398716:08
mupBug #1943987: snap disconnect <snapname>: prints a confusing error <snapd:New> <https://launchpad.net/bugs/1943987>16:08
mborzeckialso bit of a bummer right now, as I have no ide how to restore the connections other than just manaully running snap connect for all eligible plugs16:12
mborzeckior snap remove & snap install but that would remove their data16:12
mborzeckiso snap save?16:12
ijohnson[m]yeah that's what I was going to suggest them to do to restore their system is just snap connect everything16:12
mborzeckiijohnson: but then all connections would be flagged as manual, wouldn't they?16:13
ijohnson[m]oh hmm16:13
ijohnson[m]but what's the problem with that ?16:13
mborzeckiijohnson: afaiu some plugs are not auto connected, so i we iterate blindly and connect everythign the end result will be dierent than what auto connect does16:14
mborzeckiijohnson: so what i'm really missing is maybe `snap connect --eligible <snap>`16:15
mupPR snapd#10807 opened: tests/nested/manual/core20-cloud-init-maas-signed-seed-data: add gadget variant <Test Robustness> <Run nested> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10807>16:15
ijohnson[m]I was just going to install all the snaps manually so the auto-connections process in a known good machine and then just have them manually connect all of those16:15
ijohnson[m]snap connect --eligible feels like it's just there to fix a bug that shouldn't happen in the first place16:15
pstolowskiso I suspect we lost all the connections because at some moment there was a lot of " cannot read snap info of snap "core" at revision 11606: cannot find installed snap "core" at revision 11606: missing file /snap/core/11606/meta/snap.yaml" errors in the log16:17
pstolowskibut it's no clear how this leads to removing of connections, needs investigation16:17
pstolowskifwtw core isn't broken in his snap list, so it recovered16:19
pstolowskiijohnson[m]: i wonder if reinstalling core/snapd wouldn't fix it16:19
ijohnson[m]how would you reinstall core/snapd though 16:19
ijohnson[m]without removing all the snaps16:20
pstolowskiijohnson[m]: snap refresh --beta snapd etc, i.e. switch channels16:20
pstolowskidoing this here creates Automatically connect eligible plugs and slots of snap "snapd"  task16:25
ijohnson[m]Hmm maybe I'm not sure 16:25
ijohnson[m]Worth a try though, that operation couldn't delete the files at all 16:25
pstolowskiok, i sugested that, and that's EOW16:27
pstolowskihave a nice weekend, cu o/16:27
ijohnson[m]bye! you too16:28
diddledaniso I don't think snapd can disable logging on a per rule basis until kernel changes are made to not enforce logging which was added at: https://bugs.launchpad.net/snapd/+bug/172167616:31
mupBug #1721676: implement errno action logging in seccomp for strict mode with snaps  <verification-done-xenial> <verification-done-zesty> <snapd:Fix Released by tyhicks> <linux (Ubuntu):Fix Released by tyhicks> <linux (Ubuntu Xenial):Fix Released by tyhicks> <linux (Ubuntu Zesty):Fix Released by16:31
muptyhicks> <linux (Ubuntu Artful):Fix Released by tyhicks> <https://launchpad.net/bugs/1721676>16:31
mupPR snapd#10808 opened: cmd/snap-seccomp: add riscv64 support <Created by xnox> <https://github.com/snapcore/snapd/pull/10808>18:05
=== alan_g__ is now known as alan_g
mupPR snapcraft#3582 opened: github: update snapcore/action-build dep <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/3582>21:29
mupPR snapd#10809 opened: .github/workflows/test.yaml: bump action-build to 1.0.9 <Simple 😃> <Skip spread> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10809>22:31
mupPR snapcraft#3582 closed: github: update snapcore/action-build dep <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3582>23:34

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