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

mborzeckimorning05:45
mardy'morning!06:04
=== oSoMoN_ is now known as oSoMoN
mborzeckimardy: hey06:43
mvogood morning mardy and mborzecki06:47
mardymvo: hi :-)06:53
mborzeckimvo: hey06:53
mborzeckihmm `/home/gopath/src/github.com/snapcore/snapd/tests/lib/prepare-restore.sh: line 518: go: command not found` during prepare on 21.0407:13
mborzeckimvo: can you land https://github.com/snapcore/snapd/pull/10293 ? the failures are unrelated07:14
mupPR #10293: packaging/debian-sid: update locale patch for the latest master <Simple 😃> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10293>07:14
mvomborzecki: sure07:17
mborzeckimvo: thanks!07:18
pstolowskimorning07:19
mvogood morning pstolowski07:19
mupPR snapd#10293 closed: packaging/debian-sid: update locale patch for the latest master <Simple 😃> <Created by bboozzoo> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10293>07:20
mborzeckipstolowski: hey07:34
mupPR snapd#10295 opened: interfaces/apparmor: limit the number of jobs when running with a single CPU <Needs security review> <Simple 😃> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10295>07:35
mborzeckihm should have added an [RFC] tag for that07:36
mardymborzecki: "#define DEFAULT_JOBS_MAX -8 ... long jobs_max = -DEFAULT_JOBS_MAX;" I'm not sure I understand the logic here07:37
mborzeckimardy: 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 work07:39
mborzeckii think i got it right, but it's best if amurray takes a look (or maybe jjohansen if he has some time)07:40
pstolowskimborzecki: might be worth expanding the comment for -j007:44
pstolowskiit's not obvious at all that giving -j0 is different than omitting it :/07:46
mardypstolowski: looks like your suggestion was spot on, now the spread tests are successful (well, some of them): https://github.com/snapcore/snapd/pull/1029208:00
mupPR #10292: WIP: overlord/servicestate: omit service list if only snap given <Created by mardy> <https://github.com/snapcore/snapd/pull/10292>08:00
pstolowskimardy: ok, glad it was helpful. also it's good that i still somewhat understand what's going on there ;)08:03
mardypstolowski: and this is the parameter that appears to be redundant. The change is very small: https://github.com/snapcore/snapd/pull/1029608:16
mupPR #10296: overlord/hookstate/ctlcmd: remove unneeded parameter <Created by mardy> <https://github.com/snapcore/snapd/pull/10296>08:16
mupPR snapd#10296 opened: overlord/hookstate/ctlcmd: remove unneeded parameter <Created by mardy> <https://github.com/snapcore/snapd/pull/10296>08:20
pstolowskimardy: thanks, +108:47
mupPR snapd#10297 opened: [RFC] cmd/snap: stacktrace debug endpoint <Created by stolowski> <https://github.com/snapcore/snapd/pull/10297>08:50
=== ogra_ is now known as Guest30743
pstolowskimborzecki: wdyt ^ ?08:53
mborzeckipstolowski: i think it looks reasonable, added some questions09:09
mborzeckipedronis: hi, regarding your note, i've opened https://github.com/snapcore/snapd/pull/1029509:11
mupPR #10295: [RFC] interfaces/apparmor: limit the number of jobs when running with a single CPU <Needs security review> <Simple 😃> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10295>09:11
pstolowskimborzecki: thanks09:11
pedronismborzecki: shouldn't we also look at memory?09:12
mborzeckipedronis: 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 jobs09:18
mborzeckipedronis: 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 mem09:20
mborzeckipstolowski: can you take a look at https://github.com/snapcore/snapd/pull/10255 ?09:21
mupPR #10255: tests/nested/core/core20-create-recovery: verify that recovery system can be created at runtime <Run nested> <Simple 😃> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10255>09:21
pstolowskisure09:21
mborzeckithanks09:22
mborzeckipstolowski: ah, forgot, you can make the stacktrace require post too09:37
pstolowskimborzecki: hmm what for?09:37
mborzeckipstolowski: (as related to the comment you added in 10255)09:37
mborzeckipstolowski: that way it will require root/pokit access09:38
pstolowskimborzecki: ah, so get rid of get and do everything via post ?09:39
pedronismborzecki: to me sounds like if we have <256mb we should also allow only a single process?09:47
pedronismborzecki: why did mark 10295 needs security review?09:53
mborzeckipedronis: we need to parse meminfo for that09:53
mborzeckipedronis: but yeah, 256mb seems reasonable09:54
mborzeckiand the label was added to have someone more familiar to have a pass from someone more familiar with apparmor_parser internals09:55
mborzeckidropped the label now09:56
pedronismborzecki: you should probably ping JJ explicitly I suppose to ask for comments10:10
mupPR snapd#10298 opened: Add spread test for classic snaps content slots <Created by alfonsosanchezbeato> <https://github.com/snapcore/snapd/pull/10298>10:21
mupPR snapd#10299 opened: store: extra log message, a few minor cleanups <Simple 😃> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10299>10:31
pstolowskithat elusive download getting stuck issue is annoying :(10:44
=== 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
mupBug #1929539 opened: pressing ctrl-alt-del on an attached USB KBD allows rebooting locked down devices <Snappy:New> <https://launchpad.net/bugs/1929539>11:05
* pstolowski errand11:09
mupPR snapd#10300 opened: osutil: a helper to find out the total amount of memory in the system <Simple 😃> <Skip spread> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10300>11:36
=== pedronis_ is now known as pedronis
pedronispstolowski: hi, I did a pass on https://github.com/snapcore/snapd/pull/10290 lots of comments/questions there12:44
mupPR #10290: o/snapstate: add helpers for setting and querying holding time for snaps <Needs Samuele review> <Refresh control> <Created by stolowski> <https://github.com/snapcore/snapd/pull/10290>12:44
pstolowskipedronis: thanks12:45
pedronismborzecki: is it a known issue that we get restore timeouts on Debian 10 ?12:50
pedronisthis is with the interface tests12:50
mupPR snapd#10301 opened: seed/seedtest, overlord/devicestate: move seed validation helper to seedtest <Simple 😃> <Skip spread> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10301>12:51
mborzeckipedronis: no, not really, it was green with the patch tweaks from yesterday, do you have a log maybe?12:52
pedronismborzecki: here, https://github.com/snapcore/snapd/pull/9043/checks?check_run_id=266466439712:52
mupPR #9043: daemon: replace access control flags on commands with access checkers <Created by jhenstridge> <https://github.com/snapcore/snapd/pull/9043>12:52
mborzeckipedronis: 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 response12:55
pedronismborzecki: fwiw it seems very consistent atm on that PR with debian 1012:58
mborzeckipedronis: we've seen it when adding fedora 34, maybe it's specific to a particular systemd version12:59
mborzecki(or go)12:59
mupPR snapd#10302 opened: overlord, overlord/devicestate: allow for reloading modeenv in devicemgr when testing <Simple 😃> <Skip spread> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10302>13:01
mupPR snapd#10294 closed: release-tools/changelog.py: refactor regexp + file reading/writing <Simple 😃> <Skip spread> <Created by anonymouse64> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/10294>13:21
mborzeckipedronis: this commit was added for fedora 34  https://github.com/snapcore/snapd/pull/10249/commits/ae8b6f68961eec5a7948af73d50cb11e03c3384613:30
mupPR #10249: tests: adding support for fedora-34 <Created by sergiocazzolato> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/10249>13:30
pedronismborzecki: something changed about systemd socket activation then?13:37
pedronismborzecki: you are saying we might need this also for Debian 10 ?13:37
pedronismvo: I forgot to mention this: https://github.com/snapcore/snapd/pull/10298#issuecomment-84782570413:40
mupPR #10298: tests: add spread test for classic snaps content slots <Created by alfonsosanchezbeato> <https://github.com/snapcore/snapd/pull/10298>13:40
mvopedronis: aha, I need to uplaod this? can do13:40
pedronismvo: yes, I think you should look at the PR as the snaps are defined in it as well13:41
mvo+113:42
pedronismvo: it's also in my queue to look at the PR but I have things before in the queue13:44
mborzeckipedronis: it's a bit weird, but yes, i was able to reproduce this locally too13:45
pedronismborzecki: let's make a PR then? as I said it's also annoying because the timeout is long13:45
mborzeckipedronis: sure, fwiw, fedora 34 is using systemd 248, debian 10 - 247, i have 248 locally too13:47
mupPR snapd#9043 closed: daemon: replace access control flags on commands with access checkers <Created by jhenstridge> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/9043>13:51
mupPR snapd#10303 opened: tests/lib/reset: make nc exit after a while when connection is idle <Simple 😃> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10303>13:56
pedronismborzecki: I commented on https://github.com/snapcore/snapd/pull/1029115:18
mupPR #10291: overlord/snapstate, overlord/devicestate: exclusive change conflict check <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/10291>15:18
=== E_Eickmeyer is now known as Eickmeyer
* ijohnson is back15:40
mupPR snapcraft#3528 opened: [wip] apt cache: raise PackageNotFoundError for packages without candidate <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/3528>15:47
ijohnsonpedronis: do you have strong opinions on aligning the fields for `snap quota group1` output ?16:54
ijohnsoncurrently we do not align the fields at all, but I think we should align it like this :16:54
ijohnsonhttps://pastebin.ubuntu.com/p/MFHH864783/16:54
ijohnsonfor example we align the output for snap info and snap model16:55
ijohnsonalso curious how you feel about ordering of the fields17:00
pedronisijohnson: we should align them the same way we align snap info fields17:01
ijohnsonI would propose this: https://pastebin.ubuntu.com/p/2djbXWTjMn/17:01
ijohnsonpedronis: ack so we should align them, what order should we put them in ?17:02
ijohnsonI note that it looks a little bit weird that the first field, name, has a lot of whitespace between the "name" and the actual name17:02
pedronisijohnson: name, memory, subgroups, snaps17:03
ijohnsonack, what about current-memory vs max-memory ? which should go first ?17:03
ijohnsonalso /me -> lunch17:03
pedronisijohnson: there's also the question if max should be there17:04
pedronisijohnson: we removed it from command line and snap quotas17:04
ijohnsonYeah I was thinking maybe removing max- prefix too17:04
pedronisijohnson: first constraint then current17:04
pedronislike in snap quotas17:04
pedronisijohnson: current-memory is very long, that's why we get the aligment issue17:07
pedronisijohnson: one option is to have "constraints:" and "current:" sections17:08
pedronisas info as channels: and notes:17:08
pedronis*HAS17:10
pedronis*has17:10
mupPR snapd#10303 closed: tests/lib/reset: make nc exit after a while when connection is idle <Simple 😃> <Created by bboozzoo> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/10303>17:12
ijohnsonpedronis: I like the constraints and current sections, let me quick prototype that out17:21
ijohnsonpedronis: how does this look https://pastebin.ubuntu.com/p/c5DYtS4XWf/ ?17:25
pedronisijohnson: looks reasonable to me17:26
ijohnsonthis is with fixed alignment https://pastebin.ubuntu.com/p/qbWFGJgbcV/17:26
ijohnsonok great17:26
pedronisijohnson: you should look at snap info for alignment because it seems it aligns subsections differently, unless I'm confused17:27
ijohnsonpedronis: will do thanks18:35
mupPR snapd#10304 opened: systemd: add CurrentMemoryUsage to get current memory usage for a unit <Simple 😃> <Skip spread> <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10304>19:47
mupPR snapd#10305 opened: daemon/api_quotas.go: support updating quotas with ensure action <quota> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/10305>20:02

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