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

mborzeckimorning05:51
mardyhi!06:12
mborzeckimardy: any new PRs I should look at?07:04
pstolowskimorning07:05
mborzeckimardy: do you think you could take a look at https://github.com/snapcore/snapd/pull/10162 ?07:16
mborzeckipstolowski: hey, any PRs I should look at?07:17
pstolowskimborzecki: you can take a look at #1026107:21
pstolowskihttps://github.com/snapcore/snapd/pull/1026107:22
mborzeckisure will do07:22
pedronismborzecki: it's a bit annoying that the tag on 2.51 is wrong now for Fedora?08:11
mborzeckipedronis: that's fine, i'm tweakign the changelog manually when i prepare a downstream package08:11
pedronisah ok08:12
mborzeckipedronis: and i've landed https://github.com/snapcore/snapd/pull/10320 which fixes it in the branch08:12
mborzeckipedronis_: fwiw it's the same for opensuse's *.changes file, at least now i'll have some useful data for it 08:32
mardymborzecki: I'll have a look at that MR; as for me, maybe you can also write your opinion on https://github.com/snapcore/snapd/pull/10292 vs https://github.com/snapcore/snapd/pull/1028208:40
=== pedronis_ is now known as pedronis
pedronismardy: pstolowski: I commented here: https://github.com/snapcore/snapd/pull/10282/files#r64138518308:54
pedronismardy: #10292 seems should be closed08:56
pedronisbut other one changed08:57
pedronismborzecki: is the new discussion on #1030709:02
pedroniss/is/see/09:02
pstolowskipedronis: thanks, that's a valid observation09:03
mborzeckipedronis: yeah saw that, i'll probably be slightly different with proc, i have a pi with 20.04, i can try to measure it there09:04
mardythe unit tests are always failing in my machine (cmd_info_test): [10]: "refresh-date: 2006-01-03" != "refresh-date: 2006-01-02"09:36
mardyI'm running them with LC_ALL=C, but that does not seem to help09:36
rZrhi. today I'll present online a project about core check teaser demo https://mastodon.social/@rzr/106312151682794643#pinball-ubuntu-core-20-rzr 09:40
mborzeckipedronis: added a comment with some results from pi4: https://github.com/snapcore/snapd/pull/10307#discussion_r64142767309:59
mborzeckimardy ^^09:59
pedronismborzecki: are those 4ms 5ms  mostly i/o wait? or CPU use?10:00
mborzeckipedronis: this is 4-5 iterations of the loop, so waiting on sleep mostly, the fractional part was netgligible10:03
mborzeckialso suggesting that reading proc & processing the string is rather insignificant10:04
mborzeckipedronis: iow. that's time elapsed between first check and after the loop is done10:04
pedronismborzecki: ok, then it sounds like the code is ok as is I suppose10:05
mborzeckiit's even better under heavy load, snap just takes longer to do the first check, and by the time it does it the process has been moved10:06
pstolowskipedronis: i proposed bumping of maxp11:09
pstolowskimax postponement separately in https://github.com/snapcore/snapd/pull/10321 to reduce the other diff a bit11:09
pedronispstolowski: thx11:11
mborzeckimardy: hm i understand there's going to be more changes based on what pedronis suggested in https://github.com/snapcore/snapd/pull/10282 ?11:48
mardymborzecki: yes, I made the changes, now I'm strugglying to write unit tests11:52
mardymborzecki: the serviceControlTs() function does not seem to be tested at all in overlord/servicestate/servicestate_test.go, so I guess I need to create a new test from scratch11:53
mborzeckimardy: there may be some indirect tests that exercise Control()?11:55
mborzeckimardy: oh, I use a tool go-caret to view the coverage (rather than the built-in tools), https://github.com/msoap/go-carpet once the tests are passing i run it in the pacakge directory, `go-carpet | less -R` 11:56
pstolowskimardy: it's tested in service_control_test.go, but not called directly, it's called via Control12:01
pstolowskicachio: hi, i made another pass on https://github.com/snapcore/snapd/pull/1028612:02
mardymborzecki: nice, now I need to understand why the cmd_info_test fails for me, though :-)12:03
mardypstolowski: thanks, they look a bit complicated, do you think it would be a good idea if I wrote a unit test just for Control() in overlord/servicestate/servicestate_test.go?12:04
pedronispstolowski: I'm looking at #10261,  how much different is autoRefreshPhase2 from doUpdate now?12:14
pedronispstolowski: I made some high-level comments there12:20
pedronismborzecki: are you working on https://github.com/snapcore/snapd/pull/10291 ?12:26
mborzeckipedronis: yes, editing it right now12:27
pedronisok, thx12:27
pstolowskipedronis: thanks, yes they are very similiar, i'll try to merge them again, might be easier now than was before12:32
pedronispstolowski: to be clear my reason for wanting to merge them is not to have less code, is not two have to places to change if we need do changing something about their details, by definition they shouldn't need to diverge a lot of over time12:32
pstolowskipedronis: yes i share the concern. let me see12:36
pstolowskimardy: yes that's fine i think. but you will need some tests for integration with wrappers as well such as TestRestartServices in service_control_test.go, those should probably be added there12:43
rbasakAnyone else seeing "snap try" fail in a lxd container? I'm using Focal, and it doesn't seem to work at all. I can provide steps to reproduce if needed.12:46
rbasakIt does seem to work on KVM.12:47
pedronisrbasak: what's the version of snapd deb inside your container? we had some bugs related to this and they need a recent deb to be fixed, newer snapd snap is not enough12:54
pedronispstolowski might remember more about this and relevant versions12:55
pstolowskii'll check it in a moment13:00
rbasak^ I just posted https://forum.snapcraft.io/t/snap-try-broken-in-lxd-containers/24687 before seeing your question13:01
rbasaksnapd   2.48.3+20.0413:02
ograrbasak, do you have squashfuse installed on the host ? (perhaps the upgrade removed it)13:08
ogra(just a wild guess)13:09
rbasakogra: surely you mean the guest?13:09
rbasakI'll check, but I'm puzzled as to why it's needed when squashfs shouldn't be involved for "snap try"?13:09
rbasakogra: it was not installed in my failing example in the guest. I installed it and tried "snap try" again, and it still fails.13:10
ograyeah, i just checked on ym focal and it isnt instealled either anywhere (neother guest nor host) ... 13:11
ograred herring then, sorry 13:11
pstolowskirbasak: right. the fix is in snapd 2.49 deb13:38
pstolowskimardy: test13:45
pstolowskimardy: do you have a moment to review https://github.com/snapcore/snapd/pull/10321 ? it's trivial13:47
mardypstolowski: looking now (the test did not work :-( )13:50
ijohnsonpedronis: I wonder if we should have github actions workflows that don't run on self-hosted runners (so they are not spread tests and still run when we do "skip spread") which just try to build the package for the distros to catch my mistake yesterday in the date format14:12
ijohnsonI'm not sure how our github actions hosted runner queue is these days14:13
pedronisijohnson: no idea, I suppose it would be something for sergio to work on, we need mvo input on this14:18
ijohnsonpedronis: ack I will put it in the SU doc for us to discuss when mvo is back (he is back on monday right?)14:18
pedronisyes, he should be back on Monday14:19
pedronismborzecki: any reason not to land https://github.com/snapcore/snapd/pull/10295 ?14:46
pedronisijohnson: it's fine to land https://github.com/snapcore/snapd/pull/10139 but the tests are in a weird state14:59
ijohnsonpedronis: weird how so ?14:59
pedronisit has pending things that should be run early15:00
ijohnsonI just restarted the ones that were failed to see if they go green and we can land w/o needing sudo merge 15:00
pedronisijohnson: shouldn't also been run with nested?15:00
ijohnsonpedronis: ah yeah you're right it should be run with nested too15:00
pedronisso maybe not landable quite yet15:01
ijohnsonI always forget that uc20 label semantically should imply nested label many times15:01
pedronisbut doesn't15:01
ijohnsonhence why I said "should"15:01
ijohnsonbut anyways let me close and re-open with the nested label, if the nested tests are happy then hopefully we can land it15:01
pedronisijohnson: pstolowski: I answered to the question in https://github.com/snapcore/snapd/pull/10321 also added to the description the motivation behind this change.15:08
ijohnsonpedronis: ack thanks for mentioning that15:08
pstolowskithanks15:09
mborzeckipedronis: not really, i've restated the spread jobs today as some runs failed, but it seems to be good, only 21.04 restore failed, but looks unrelated15:22
pstolowskipedronis: doUpdate can be nicely reused, i'm pushing it 15:31
pedronispstolowski: thx, I will look at it first thing on monday15:41
pstolowskipedronis: i could also revert the change in doUpdate about waitPrereq & updatePrerequsitesTasksets if you thing it's unneeded?15:45
pstolowski*think15:45
pedronispstolowski: maybe it's a good idea, as it's not used anywhere else now?15:45
pstolowskipedronis: yes, i did this to reuse it in both implementations, now it's used only in doUpdate15:47
pedronispstolowski: unless you think the new code is much more readable?15:47
pedronispstolowski: I added some answers or new considerations in bold to the spec.15:51
pstolowskipedronis: thanks; no, i don't think the new code is much more readable, removing it to reduce the diff15:51
cachiopstolowski, hi, if you have some time, could you please take a look to #10286 again16:01
pstolowskicachio: i already did and added one more comment16:04
pedronisijohnson: I reviewed https://github.com/snapcore/snapd/pull/10316, nothing to change immediately but some wonderings16:07
pstolowskicachio: https://github.com/snapcore/snapd/pull/10286#discussion_r64161241216:07
cachiopstolowski, nice, thanks16:08
pedronisijohnson: should I go ahead and merge https://github.com/snapcore/snapd/pull/10322 ?16:09
ijohnsonpedronis: should we maybe consider changing the structure of the response for quota infos to be something similar to the structure we want for the CLI i.e. to have a `"current": { "memory": 100, "cpu": ...}, "constraints": { "memory": 400, "cpu": ... }` ?16:10
pedronisijohnson: we could I suppose16:11
ijohnsonpedronis: you can merge 10322 yeah, I +1d it16:12
ijohnsonpedronis: not for that PR obviously, but before making it non-experimental I suppose16:14
pedronisijohnson: yea16:15
ijohnsonok16:16
cachiomardy, hi, could you please give last check to #1016216:16
* cachio lunch16:20
ijohnsoncachio: can you take a look at https://github.com/snapcore/snapd/pull/10099 today? 16:20
pedronisijohnson: I reviewed https://github.com/snapcore/snapd/pull/9897 +1 but some nitpicking16:21
ijohnsonI did merge master in there just now so the tests will re-run16:21
ijohnsonthanks pedronis 16:21
mardycachio: sorry, was already off. I've approved it now20:23

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