/srv/irclogs.ubuntu.com/2020/11/02/#snappy.txt

mupPR snapd#9586 opened: update-pot: include file locations in translation template, and extract strings from desktop files <Created by jhenstridge> <https://github.com/snapcore/snapd/pull/9586>06:13
mupPR snapd#9587 opened: snap: fix failing unittest for quantity.FormatDuration() <⚠ Critical> <Created by mvo5> <https://github.com/snapcore/snapd/pull/9587>07:09
mborzeckimorning07:14
jameshDo we have a unit test that assumes all months have 30 days?07:14
zygagood morning07:15
zygamvo, with samuele away for the part of the week, 9546 won't make official progress but perhaps it could be reviewed by others to spot any mistakes or weirdness07:16
jameshIt looks like the TestSnapshotImportHappy test was written to start failing on November 1st07:16
zygaI suspect the changes are acceptable by him now, he just ran out of review time on Friday07:16
zygahey jamesh :)07:17
jameshhi zyga07:17
mborzeckizyga: jamesh: hey07:19
mvogood morning mborzecki and zyga07:22
mborzeckimvo: hey07:23
mvoand good afternoon jamesh :)07:23
mvozyga: I will try to have a look07:23
mvojamesh: I pushed a PR to fix the failing unittest07:23
mvojamesh, mborzecki PR#9587 fwiw07:23
zygamvo, thanks, no rush but I think making that landable will allow the rest to be reviewed in parallel07:24
zygamvo, https://github.com/snapcore/snapd/pull/9204 is green and has +2 but should be acked by someone the last time07:26
mupPR #9204: sandbox: track applications unconditionally <Created by zyga> <https://github.com/snapcore/snapd/pull/9204>07:26
zygajamesh, I think you will like that ^07:26
zygait makes snap identification work on Fedora and elsewhere07:26
zygawhere we have cgroupv207:26
jameshmvo: might it be better to remove the check entirely?  Your fix looks like it will only help up until March07:28
mvojamesh: not opposed to remove it, it's the wrong layer for this test anyway07:29
mvomborzecki: how do you feel about merging 9582?07:34
mborzeckimvo: sounds good to me, i can open a followup with test name tweak07:51
pstolowskimorning08:02
mvogood morning pstolowski08:02
zygahey pstolowski :)08:03
pstolowskio/08:05
mborzeckimvo: if you don't mind i'll push a patch dropping the check competely to #958708:05
mupPR #9587: snap: fix failing unittest for quantity.FormatDuration() <Skip spread> <⚠ Critical> <Created by mvo5> <https://github.com/snapcore/snapd/pull/9587>08:05
mvomborzecki: please do08:05
mupPR snapd#9588 opened: dirs: add "gentoo" to altDirDistros <Created by zmedico> <https://github.com/snapcore/snapd/pull/9588>08:14
zygamborzecki, https://github.com/snapcore/snapd/pull/9588#pullrequestreview-52140904308:19
mupPR #9588: dirs: add "gentoo" to altDirDistros <Created by zmedico> <https://github.com/snapcore/snapd/pull/9588>08:19
zygaFYI08:19
mupPR snapd#9582 closed: gadget/quantity: introduce a new package that captures quantities  <Simple 😃> <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/9582>08:24
mupPR snapd#9589 opened: gadget/quantity: tweak test name <Simple 😃> <Skip spread> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9589>08:34
mupPR snapd#9587 closed: snap: fix failing unittest for quantity.FormatDuration() <Skip spread> <⚠ Critical> <Created by mvo5> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/9587>08:54
* dot-tobias says hi09:24
mvocan someone check 9560 please? needs a second review, maybe mborzecki  ?09:41
mborzeckimvo: i have it open, just checkign some things that ondra raised09:42
mvomborzecki: sure, thank you! no rush09:43
mvozyga: nice, 9204 is green now \o/09:45
mupPR snapd#9589 closed: gadget/quantity: tweak test name <Simple 😃> <Skip spread> <Created by bboozzoo> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9589>09:54
niemeyerHeya10:08
niemeyerGood morning all10:08
niemeyerpstolowski: Around?10:08
pstolowskiniemeyer: hey, yes10:09
niemeyerpstolowski: Do you have a moment to explain the task-id/change-id presence in the timing module?10:09
niemeyerpstolowski: Even ignoring the encapsulation concern (timing knows about details of tasks/changes usage of itself), it seems curious that this logic takes effect precisely when timings are empty10:11
pstolowskiniemeyer: yes. 1 - we enrich the data returned to snap debug timings with doing/undoing times obtained from tasks, and we combine this data when queried; 2 - for change-id, we want to correlate a change with ensure loop that triggered it10:18
niemeyerpstolowski: Yeah, I understand the idea of tagging. Seems sound. I don't understand the idea of preserving a timing that has no timings.10:19
pstolowskiniemeyer: i don't think this is the case -  see func (t *Timings) Save(s GetSaver) line 140 & 141, and flatten() line 8510:22
niemeyerif len(t.timings) == 0 && !isEnsureWithChange {10:23
niemeyerreturn nil10:23
niemeyer}10:23
niemeyerpstolowski: The only use cases I can identify are clearly being used only to prevent wiping out empty timings10:25
=== mup_ is now known as mup
pstolowskiniemeyer: right,  i see what you mean, i need to think what was the driver for this change10:29
niemeyerpstolowski: If it's irrelevant, that's a nice cleanup. Besides simplifying the logic and making it less obscure, it also takes away the only reason why there's breakage of encapsulation there.10:29
niemeyerpstolowski: There's also a potential change in API that would reduce the API surface of the module. But that's a more involved improvement and that isn't really fixing any clear structural issues.10:31
pstolowskiniemeyer: so related PR is https://github.com/snapcore/snapd/pull/6904 and second paragraph of the description summarizes the reason for keeping empty timing in this case; there was a small followup https://github.com/snapcore/snapd/pull/6921 where I unfortunately dropped the comment that was useful10:35
mupPR #6904: timings: always store ensure timings as long as they have an associated change <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/6904>10:35
mupPR #6921: timings: tweak the conditional for ensure timings <Simple 😃> <Created by stolowski> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/6921>10:35
niemeyerpstolowski: Ah, it's nice to have the background, thanks. It still seems suboptimal, though.. you have two pieces of logic inside the module fighting with each other, and in a pretty convoluted manner, requiring knowledge of completely unrelated things.10:39
niemeyerpstolowski: That is,10:39
niemeyerpstolowski: There's one thing that removes fast timings, one thing that removes top-level empty timings, and one thing that prevents both of these from working.10:40
niemeyerpstolowski: If top-level timings are relevant even if they are empty, then we might just keep them around.10:40
niemeyerpstolowski: If fast timings are still relevant because people might search for them, we might just keep them around as well.10:41
niemeyerpstolowski: Or reduce the threshold until it's more honest10:41
niemeyerEither way, thanks for the background. That's indeed what I was looking for and now I know how to proceed with the skeleton here. This is not super important for snapd, so I'll let you decide whether/when to look into it.10:42
pstolowskiniemeyer: yes, i see how it is convoluted.  the only concern is not to  exhaust our timings "buffer" in the state, we want to keep a limited number of them, and we want only those that are time-consuming, so we don't want empty timings there in most cases10:43
niemeyerpstolowski: Sounds like the code disagrees. You've made a decision based on UX to actually have non-time consuming things around to satisfy user searches.10:45
niemeyerpstolowski: Proper encapsulation would try to understand that requirement and design for it, instead of teaching the module to do guess work based on deep knowledge of things far away.10:47
pstolowskiniemeyer: no disagreement. in the defence of that, this was initially all about task/changes (and imported state). a year later it was separated with https://github.com/snapcore/snapd/pull/828310:52
mupPR #8283: overlord,timings,daemon: separate timings from overlord/state <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/8283>10:52
niemeyerpstolowski: What I see there is Samuele working exactly on the direction being suggested here, which is clean up the encapsulation10:56
pstolowskiunbelievable, it's 2 years since timings were introduced, time flies...10:56
niemeyerpstolowski: This is a top-level package..10:56
niemeyerYeah, timing flies10:56
pstolowskiniemeyer: yes.. although the driver had a different angle as mentioned on mattermost... we wanted to not import state package elsewhere10:57
niemeyerpstolowski: Not importing the state package only has a meaning if you're not marrying with its internals :)10:57
pstolowskiyes sure10:58
mvomborzecki: 9577 looks good to me now, wdyt?11:31
mvomborzecki: I fixed one missing test update in 9560 and then I think this can land :) thanks for the review!11:37
mborzeckimvo: i've done the followup changes, but having some trouble with mocking sfdisk properly11:38
pstolowskimvo: i've a spread test for download timeout, slightly tricky stuff12:01
pstolowskisee #959012:01
mupPR #9590: tests: download timeout spread test <Created by stolowski> <https://github.com/snapcore/snapd/pull/9590>12:01
mvopstolowski: nice12:02
mvopstolowski: just looked, really cool12:04
pstolowskimvo: let's see if it's not flaky or something.. i only run it on 20.0412:05
mupPR snapd#9590 opened: tests: download timeout spread test <Created by stolowski> <https://github.com/snapcore/snapd/pull/9590>12:05
mupPR snapd#9560 closed: gadget/many: drop usage of gpt attr 59 for indicating creation of partitions <Run nested> <UC20> <Created by anonymouse64> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/9560>12:45
mupPR snapd#9591 opened: gadget, gadget/install: move helpers to install package, refactor unit tests <Run nested> <Simple 😃> <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9591>12:45
mborzeckimvo: ^^12:45
mborzeckimvo: pushed some changes to #957713:34
mupPR #9577: many: seal a fallback object to the recovery boot chain <Run nested> <UC20> <Created by cmatsuoka> <https://github.com/snapcore/snapd/pull/9577>13:34
mvomborzecki: \o/ thank you13:57
ijohnsonmvo: I also think we need https://github.com/snapcore/snapd/pull/9541 for 2.48, but we are still blocked on moving forward with that :-/14:38
mupPR #9541: osutil/disks: re-implement partition searching for disk w/ non-adjacent parts <Bug> <Run nested> <UC20> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/9541>14:38
mvoijohnson: let's raise it again today14:39
ijohnsonsounds good14:39
* mvo puts it on the meeting agenda14:39
* cachio lunch15:09
mupPR snapcraft#3340 closed: include SNAPCRAFT_STAGE in XDG_DATA_DIRS, needed to find Gir files built by other parts <Created by kenvandine> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3340>15:14
mupIssue core20#94 opened: fix pi4 names for wlan0 and eth0 <Created by xnox> <https://github.com/snapcore/core20/issues/94>15:15
mborzeckineed to drive the kids a bit15:47
ijohnsonmvo: submitted review for 957715:58
mvoijohnson: thanks!15:59
ijohnsonnp15:59
ijohnsonI will work on my followup to use that logic in snap-bootstrap today as we discussed15:59
mvota16:02
pstolowskiquick errand, bbiab16:15
mvocachio: I see failures like: "2020-11-02 16:00:35 Cannot allocate google-nested:ubuntu-18.04-64: cannot find any Google image matching "ubuntu-1804-64-virt-enabled" on project "computeengine" or "ubuntu-os-cloud"" in pr 9591, is there some gce issue?16:55
mupPR #9591: gadget, gadget/install: move helpers to install package, refactor unit tests <Run nested> <Simple 😃> <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9591>16:55
ijohnsonmvo: cachio I think the issue is that there are too many images in our gce project, usually cachio just goes in and clears out some old images and it works again16:55
cachiomvo, let me cehck, I think I need to clean up16:55
mvoijohnson: oh, right :(16:56
ijohnsonbecause gce api is silly and still doesn't know how to return more than X images if there are more than X images in the project16:56
cachioijohnson, well, they have pagination to support taht16:57
cachiobut spread does not support pagination16:57
mvoijohnson: I noticed two small issues around 9577 https://github.com/snapcore/snapd/pull/9577#discussion_r516113171 and https://github.com/snapcore/snapd/pull/9577#discussion_r516062913 otherwise this is good to go16:58
mupPR #9577: many: seal a fallback object to the recovery boot chain <Run nested> <UC20> <Created by cmatsuoka> <https://github.com/snapcore/snapd/pull/9577>16:58
ijohnsonah I see16:58
ijohnsonmvo: looking now16:58
mvoijohnson: \o/16:58
mvoijohnson: spread> there are two draft PRs for spread to support pagination but both not quite get it right :/16:58
ijohnsonah I see16:59
ijohnsonI thought this was gce's fault16:59
cachiomvo, do you want to re-trigger17:00
cachiomvo, already cleaned up17:00
ijohnsonmvo: re 9577, do you mean in `TestMakeBootable20RunModeSealKeyErr` that ResealKeys (or SealKeys? I forget which one) is never actually called?17:01
pstolowskire17:01
mvoijohnson: sorry, I mean in https://github.com/snapcore/snapd/pull/9577#discussion_r516113171 that there is no check like "c.Assert(sealKeysCalls, Equals, 2)" (or 1)17:06
mupPR #9577: many: seal a fallback object to the recovery boot chain <Run nested> <UC20> <Created by cmatsuoka> <https://github.com/snapcore/snapd/pull/9577>17:06
ijohnsonmvo: ah yes you are right that is true17:06
ijohnsonthat is less of an issue than I thought you were trying to say :-)17:06
mvoijohnson: it also already fails after the first call with an error so it will never be true in the switch17:06
mvoijohnson: it also means we don't actually test the error transmission from the second call :)17:07
mvoijohnson: it's probably not much of an issue, I agreee17:07
* mvo gets dinner17:12
timothyhi zyga, is confinement broken on Fedora 33?17:39
timothyhttps://paste.centos.org/view/e5b46b5b17:40
=== ijohnson is now known as ijohnson|lunch
=== ijohnson|lunch is now known as ijohnson

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