[05:45] morning [06:04] 'morning! === oSoMoN_ is now known as oSoMoN [06:43] mardy: hey [06:47] good morning mardy and mborzecki [06:53] mvo: hi :-) [06:53] mvo: hey [07:13] hmm `/home/gopath/src/github.com/snapcore/snapd/tests/lib/prepare-restore.sh: line 518: go: command not found` during prepare on 21.04 [07:14] mvo: can you land https://github.com/snapcore/snapd/pull/10293 ? the failures are unrelated [07:14] PR #10293: packaging/debian-sid: update locale patch for the latest master [07:17] mborzecki: sure [07:18] mvo: thanks! [07:19] morning [07:19] good morning pstolowski [07:20] PR snapd#10293 closed: packaging/debian-sid: update locale patch for the latest master [07:34] pstolowski: hey [07:35] PR snapd#10295 opened: interfaces/apparmor: limit the number of jobs when running with a single CPU [07:36] hm should have added an [RFC] tag for that [07:37] mborzecki: "#define DEFAULT_JOBS_MAX -8 ... long jobs_max = -DEFAULT_JOBS_MAX;" I'm not sure I understand the logic here [07:39] mardy: haha, yeah that's fun, you need to take a look at process_jobs_arg(), auto_tune_parameters() and setup_parallel_compile(), and then there's a large'ish macro for spawning work [07:40] i think i got it right, but it's best if amurray takes a look (or maybe jjohansen if he has some time) [07:44] mborzecki: might be worth expanding the comment for -j0 [07:46] it's not obvious at all that giving -j0 is different than omitting it :/ [08:00] pstolowski: looks like your suggestion was spot on, now the spread tests are successful (well, some of them): https://github.com/snapcore/snapd/pull/10292 [08:00] PR #10292: WIP: overlord/servicestate: omit service list if only snap given [08:03] mardy: ok, glad it was helpful. also it's good that i still somewhat understand what's going on there ;) [08:16] pstolowski: and this is the parameter that appears to be redundant. The change is very small: https://github.com/snapcore/snapd/pull/10296 [08:16] PR #10296: overlord/hookstate/ctlcmd: remove unneeded parameter [08:20] PR snapd#10296 opened: overlord/hookstate/ctlcmd: remove unneeded parameter [08:47] mardy: thanks, +1 [08:50] PR snapd#10297 opened: [RFC] cmd/snap: stacktrace debug endpoint === ogra_ is now known as Guest30743 [08:53] mborzecki: wdyt ^ ? [09:09] pstolowski: i think it looks reasonable, added some questions [09:11] pedronis: hi, regarding your note, i've opened https://github.com/snapcore/snapd/pull/10295 [09:11] PR #10295: [RFC] interfaces/apparmor: limit the number of jobs when running with a single CPU [09:11] mborzecki: thanks [09:12] mborzecki: shouldn't we also look at memory? [09:18] pedronis: i'd like to refactor that code a bit when introducing tweaks for the memory, have something like `conserveMemory` flag similar to `conserveCPU` and pass that to the function that picks the number of jobs [09:20] pedronis: fwiw, apparmor_parser if none of the jobs settings were passed looks at the memory too, but it seems to be a very rough estimate, and the -j0 only kicks in when there's 2MB of free mem [09:21] pstolowski: can you take a look at https://github.com/snapcore/snapd/pull/10255 ? [09:21] PR #10255: tests/nested/core/core20-create-recovery: verify that recovery system can be created at runtime [09:21] sure [09:22] thanks [09:37] pstolowski: ah, forgot, you can make the stacktrace require post too [09:37] mborzecki: hmm what for? [09:37] pstolowski: (as related to the comment you added in 10255) [09:38] pstolowski: that way it will require root/pokit access [09:39] mborzecki: ah, so get rid of get and do everything via post ? [09:47] mborzecki: to me sounds like if we have <256mb we should also allow only a single process? [09:53] mborzecki: why did mark 10295 needs security review? [09:53] pedronis: we need to parse meminfo for that [09:54] pedronis: but yeah, 256mb seems reasonable [09:55] and the label was added to have someone more familiar to have a pass from someone more familiar with apparmor_parser internals [09:56] dropped the label now [10:10] mborzecki: you should probably ping JJ explicitly I suppose to ask for comments [10:21] PR snapd#10298 opened: Add spread test for classic snaps content slots [10:31] PR snapd#10299 opened: store: extra log message, a few minor cleanups [10:44] that elusive download getting stuck issue is annoying :( === ogra changed the topic of #snappy to: please move to libera.chat === ogra changed the topic of #snappy to: please move to #snappy on libera.chat [11:05] Bug #1929539 opened: pressing ctrl-alt-del on an attached USB KBD allows rebooting locked down devices [11:09] * pstolowski errand [11:36] PR snapd#10300 opened: osutil: a helper to find out the total amount of memory in the system === pedronis_ is now known as pedronis [12:44] pstolowski: hi, I did a pass on https://github.com/snapcore/snapd/pull/10290 lots of comments/questions there [12:44] PR #10290: o/snapstate: add helpers for setting and querying holding time for snaps [12:45] pedronis: thanks [12:50] mborzecki: is it a known issue that we get restore timeouts on Debian 10 ? [12:50] this is with the interface tests [12:51] PR snapd#10301 opened: seed/seedtest, overlord/devicestate: move seed validation helper to seedtest [12:52] pedronis: no, not really, it was green with the patch tweaks from yesterday, do you have a log maybe? [12:52] mborzecki: here, https://github.com/snapcore/snapd/pull/9043/checks?check_run_id=2664664397 [12:52] PR #9043: daemon: replace access control flags on commands with access checkers [12:55] pedronis: i think i've seen it, cachio was debugging a similar issue before, happens randomly when we're pking snapd.socket and systemd wakes up the snapd daemon, for some reason there's no EOF/socket not getting closed after receiving a complete response [12:58] mborzecki: fwiw it seems very consistent atm on that PR with debian 10 [12:59] pedronis: we've seen it when adding fedora 34, maybe it's specific to a particular systemd version [12:59] (or go) [13:01] PR snapd#10302 opened: overlord, overlord/devicestate: allow for reloading modeenv in devicemgr when testing [13:21] PR snapd#10294 closed: release-tools/changelog.py: refactor regexp + file reading/writing [13:30] pedronis: this commit was added for fedora 34 https://github.com/snapcore/snapd/pull/10249/commits/ae8b6f68961eec5a7948af73d50cb11e03c33846 [13:30] PR #10249: tests: adding support for fedora-34 [13:37] mborzecki: something changed about systemd socket activation then? [13:37] mborzecki: you are saying we might need this also for Debian 10 ? [13:40] mvo: I forgot to mention this: https://github.com/snapcore/snapd/pull/10298#issuecomment-847825704 [13:40] PR #10298: tests: add spread test for classic snaps content slots [13:40] pedronis: aha, I need to uplaod this? can do [13:41] mvo: yes, I think you should look at the PR as the snaps are defined in it as well [13:42] +1 [13:44] mvo: it's also in my queue to look at the PR but I have things before in the queue [13:45] pedronis: it's a bit weird, but yes, i was able to reproduce this locally too [13:45] mborzecki: let's make a PR then? as I said it's also annoying because the timeout is long [13:47] pedronis: sure, fwiw, fedora 34 is using systemd 248, debian 10 - 247, i have 248 locally too [13:51] PR snapd#9043 closed: daemon: replace access control flags on commands with access checkers [13:56] PR snapd#10303 opened: tests/lib/reset: make nc exit after a while when connection is idle [15:18] mborzecki: I commented on https://github.com/snapcore/snapd/pull/10291 [15:18] PR #10291: overlord/snapstate, overlord/devicestate: exclusive change conflict check === E_Eickmeyer is now known as Eickmeyer [15:40] * ijohnson is back [15:47] PR snapcraft#3528 opened: [wip] apt cache: raise PackageNotFoundError for packages without candidate [16:54] pedronis: do you have strong opinions on aligning the fields for `snap quota group1` output ? [16:54] currently we do not align the fields at all, but I think we should align it like this : [16:54] https://pastebin.ubuntu.com/p/MFHH864783/ [16:55] for example we align the output for snap info and snap model [17:00] also curious how you feel about ordering of the fields [17:01] ijohnson: we should align them the same way we align snap info fields [17:01] I would propose this: https://pastebin.ubuntu.com/p/2djbXWTjMn/ [17:02] pedronis: ack so we should align them, what order should we put them in ? [17:02] I note that it looks a little bit weird that the first field, name, has a lot of whitespace between the "name" and the actual name [17:03] ijohnson: name, memory, subgroups, snaps [17:03] ack, what about current-memory vs max-memory ? which should go first ? [17:03] also /me -> lunch [17:04] ijohnson: there's also the question if max should be there [17:04] ijohnson: we removed it from command line and snap quotas [17:04] Yeah I was thinking maybe removing max- prefix too [17:04] ijohnson: first constraint then current [17:04] like in snap quotas [17:07] ijohnson: current-memory is very long, that's why we get the aligment issue [17:08] ijohnson: one option is to have "constraints:" and "current:" sections [17:08] as info as channels: and notes: [17:10] *HAS [17:10] *has [17:12] PR snapd#10303 closed: tests/lib/reset: make nc exit after a while when connection is idle [17:21] pedronis: I like the constraints and current sections, let me quick prototype that out [17:25] pedronis: how does this look https://pastebin.ubuntu.com/p/c5DYtS4XWf/ ? [17:26] ijohnson: looks reasonable to me [17:26] this is with fixed alignment https://pastebin.ubuntu.com/p/qbWFGJgbcV/ [17:26] ok great [17:27] ijohnson: you should look at snap info for alignment because it seems it aligns subsections differently, unless I'm confused [18:35] pedronis: will do thanks [19:47] PR snapd#10304 opened: systemd: add CurrentMemoryUsage to get current memory usage for a unit [20:02] PR snapd#10305 opened: daemon/api_quotas.go: support updating quotas with ensure action