/srv/irclogs.ubuntu.com/2019/09/05/#snappy.txt

mupPR snapd#7411 opened: cmd/model: output tweaks, add'l tests <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/7411>01:36
=== epod is now known as luk3yx
zygagood morning04:56
zygawow, I'm online _before_ maciek for once :)04:56
mborzeckimorning05:35
zygaHey Maciek :-)05:43
zygaStart with reviews please05:43
zygaThere is a fix for master from Sergio05:43
zygaGood morning mvo05:45
mupPR snapd#7410 closed: tests: support fastly-global.cdn.snapcraft.io url on proxy-no-core test <Simple πŸ˜ƒ> <Created by sergiocazzolato> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/7410>05:51
zygathank you mborzecki06:01
mborzeckizyga: hey ;)06:01
mborzeckimvo: morning to you as well06:02
zyga    - google:ubuntu-18.04-64:tests/main/desktop-portal-filechooser06:02
zyga    - google:ubuntu-18.04-64:tests/main/proxy-no-core06:02
zygatwo failures of the day :/06:02
mborzeckiduh06:02
mvogood morning mborzecki and zyga06:02
zygarestarted already _today_06:02
zygaoh well06:02
zygaI'll rebase on the fix and try again06:02
zygamborzecki: I extracted https://github.com/snapcore/snapd/pull/7400 from the MS_SHARED bugfix branch06:03
mupPR #7400: cmd/snap-update-ns: don't propagate detaching changes <Bug> <Created by zyga> <https://github.com/snapcore/snapd/pull/7400>06:03
zygamborzecki: it's fairly isolated, except for apparmor changes (yuck)06:03
zygamborzecki: I'll add a ns test for writable mimic now06:03
zygalast night while working on this I wrote DiffEquals checker06:06
zygait's like Equals but it requires text or error and it produces actual diffs06:07
zygaI think it's fantastic and would be 99% of the benefit of whatever else we were using at the total line cost of about a dozen06:07
mborzeckizyga: hmm i think the tests in snap-test.c using g_test_subprocess() are incorrect06:18
mborzeckizyga: looking at this code right now, and we shouldn't be calling g_test_fail() in the subprocess when we expect the actual code-under-test to die :/06:18
mborzeckizyga: fortunately the actual code is correct :P so it dies as expected06:19
zygamborzecki: oh, is that because we set the non-fatal failures?06:19
mborzeckizyga: loo at the diff, https://paste.ubuntu.com/p/zKhcQ8gWgK/ we shouldn't be calling g_test_Fail() as it would mask the error case when the sc_draop_instance_key doesn't die() when we expect it to06:21
zygammmm06:21
zygamborzecki: perhaps time to move away from die to sc_error06:21
zygait's so fragile to test that06:21
zygaand error is so-much-nicer06:21
zygamborzecki: speaking of which06:27
zygaI have a patch for mountinfo to use that06:27
zygaI'll send it today06:27
zygait's been too long, it's half a year old by now06:27
zygamvo: I'll start slow, I stopped working past midnight06:28
zygamvo: see you at around 9:30 ish06:28
mvozyga: ok06:31
=== pstolowski|afk is now known as pstolowski
pstolowskimorning06:58
mupPR snapd#7412 opened: tests: run dbus-launch inside a systemd unit <Test Robustness> <Created by mvo5> <https://github.com/snapcore/snapd/pull/7412>07:17
mborzeckizyga: added some tests for sc_invocation, though will open a PR once #7406 lands07:53
mupPR #7406: cmd/snap-confine: keep track of snap instance name and the snap name <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7406>07:53
mborzeckipstolowski: hey07:54
pstolowskimborzecki: hi07:54
mborzeckipstolowski:  can you take another look at https://github.com/snapcore/snapd/pull/7387?07:55
mupPR #7387: packaging/fedora, tests/lib/prepare-restore: helper tool for packing sources for RPM <Simple πŸ˜ƒ> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7387>07:55
pstolowskimborzecki: yep, just need to finish another review07:55
mborzeckipstolowski: sure, thanks!07:55
pstolowskipedronis: hey, +1 on #7381 with a few minor remarks and two typo fixes08:04
mupPR #7381: seed,image,o/devicestate: extract seed loading to seed/seed16.go <Created by pedronis> <https://github.com/snapcore/snapd/pull/7381>08:04
pstolowskimborzecki: would it make sense to move pack-source one level up (or somewhere else) since it's not fedora only?08:05
mborzeckipstolowski: hm wasn't able to find a good place for it, doesn't really fit under reelase-tools08:06
mborzeckipstolowski: maybe under packaging? $top/packaging/pack-source?08:06
pedronispstolowski: thank you08:07
pstolowskimborzecki: yes, directly under packaging/ sounds good08:12
mupPR snapd#7413 opened: hookstate/ctlcmd: fix snapctl set help message <Simple πŸ˜ƒ> <Created by stolowski> <https://github.com/snapcore/snapd/pull/7413>08:40
pstolowski^ a trivial one line change of help string08:40
zygamborzecki: ack08:49
zygasorry, back now,08:49
zygaI was sleeping08:49
zygafeeling better now08:49
pedronispstolowski: I made some comments again in #727708:49
mupPR #7277: overlord/snapstate: fix undo on firstboot seeding <Created by stolowski> <https://github.com/snapcore/snapd/pull/7277>08:49
zygamvo: I'm commenting on https://github.com/snapcore/snapd/pull/741208:53
zygaoh wow08:53
mupPR #7412: tests: run dbus-launch inside a systemd unit <Test Robustness> <Created by mvo5> <https://github.com/snapcore/snapd/pull/7412>08:53
zygathat's quick :D08:53
zygamvo: retry-tool is new, usability ideas welcome08:53
mupPR snapd#7404 closed: cmd/snap: don't append / to snap name just because a dir exists <Simple πŸ˜ƒ> <Created by chipaca> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7404>08:54
jameshIf it wasn't for xenial and centos 7, I'd suggest just spinning up a systemd user instance together with its bus08:56
mvozyga: I was tweaking things there anyway :)08:57
mvojamesh: yeah, its a bit of pita on these older distros08:57
pstolowskipedronis: ty08:58
mvojamesh: i noticed serveral seconds of delay when doing "test-snapd-eds.contacs list" etc, this is normal, right?08:58
mvojamesh: I checked with both my version and the previous one and it seems to be no regression08:58
jameshmvo: is that every time or just the first time?08:58
mvojamesh: just the first time08:59
jameshso it might just be "evolution-data-server is slow to start"?08:59
mvojamesh: could be, its seconds and strace shows some sort of poll timing out09:00
mvojamesh: but its fine, I was just wondering09:00
pstolowskizyga: looks like the problem is more common, fresh bug report: https://bugs.launchpad.net/snapd/+bug/184252109:01
mupBug #1842521: Deleted snaps showing up in gnome-disks and nautilus sidebar <snapd:New> <gnome-disk-utility (Ubuntu):New> <https://launchpad.net/bugs/1842521>09:01
zygapstolowski: that's interesting09:02
zygait's an app snap that leaks then09:02
jameshmvo: I don't know specifically, but EDS is a bit over complicated09:02
mvojamesh: yeah, its fine09:02
jameshIt's the kind of thing that could probably be a lot smaller if redesigned today, but there is no one to do it09:03
pstolowskiChipaca: hey, can you take a look at https://bugs.launchpad.net/snapd/+bug/1838788? you're probably the best person to assess the validity and if it can be fixed09:13
mupBug #1838788: Pagination information not returned in /v2/find <snapd:New> <https://launchpad.net/bugs/1838788>09:13
pstolowski(or if should be)09:13
pstolowskizyga: app leaks? you mean app is stil running and holding the mountpoint?09:14
zygapstolowski: it's not a mount point09:15
zygait's a loop device09:15
zygait doesn't even have to be mounted09:15
zygajust attached to a file (now deleted) on disk09:15
zygait's a different level of leak IMO09:15
pstolowskizyga: i see09:15
zygaI'll spend some time debugging that later, I'm adding tests for writable mimic now09:15
zygait's clear that it _is_ leaking09:15
pstolowskiack09:16
pstolowskislightly annoying it pollutes file manager like this09:16
zygano disagreement there09:19
pstolowskiuhm getting repetitive travis failures on desktop-portal-filechooser (i know this one has a PR from sergio), and two other tests failed to prepare on core16 and core18, it seems like snapd was not listening when it should be there already during prepare09:31
zygapstolowski: remember that bug where snapd starts before cores are mounted?09:31
zygamaybe that happened?09:31
Chipacathat happens every time in the core18 spread test (but it recovers afaict)09:32
Chipacaif you run it manually you'll see snapd coming and failing to find core18's snap.yaml09:33
zygawhat's not great09:33
zyga*that's*09:33
zygaI need coffee, sorry guys, I'm very sleepy still09:33
pstolowskiChipaca: thanks for updating the bug09:34
mborzeckipstolowski: about that LP bug, that's what i mentioned seeing last time we discsused the problem09:35
Chipacapstolowski: I don't know how you manage to do triage erryday09:36
Chipacapstolowski: I'd be jumping out windows at this point09:37
zygaChipaca: if you were any closer I'd grab you for a bike ride together :)09:37
pstolowskiChipaca: haha. not every day though.. and today i only looked at maybe 3 bugs09:37
zygaChipaca: a bit of a shame we live so far away09:37
zygaChipaca: I think the secret is that pawel's window is on the ground floor so he comes back rattled a little and carries on :D09:37
Chipacazyga: opening it before starting triage probably helps09:38
Chipacapstolowski: ssh, let me worship you without knowing the nitty gritty09:38
pstolowskiChipaca: however.. it seems to me that just spending 15-30 minutes on it every day we can keep up the pace with any new bugs, so...09:38
zyga*that's the sprit*09:39
pstolowski:)09:39
pstolowskiChipaca: one more related for you (and then i'll shut up): https://bugs.launchpad.net/snapd/+bug/183878609:45
mupBug #1838786: Categories not returned in /v2/find results <snapd:New> <https://launchpad.net/bugs/1838786>09:45
pstolowskisorry, two ;) https://bugs.launchpad.net/snapd/+bug/183878709:45
mupBug #1838787: Website not returned in /v2/find results <snapd:New> <https://launchpad.net/bugs/1838787>09:45
Chipacai have a pr for the first one, some where09:47
pstolowskiChipaca: didn't you also work on https://bugs.launchpad.net/snapd/+bug/1832767 at some point? or was it only some fixes for restricted characters?09:51
mupBug #1832767: snap info doesn't strip Markdown <snapd:New> <https://launchpad.net/bugs/1832767>09:52
Chipacapstolowski: i fixed it from the other end09:52
Chipacapstolowski: i'll update the bug09:53
pstolowskithanks!09:53
pstolowskimborzecki: i think we just need better help message to steer users09:55
mborzeckipstolowski: in snap connections?09:55
pstolowskimborzecki: i didn't remember the details of our discussions from one of the previous sprint. i had literally to play around with it to re-discover this ;)09:56
pstolowskimborzecki: yes09:56
Chipacapstolowski: by "from the other end" i mean, the issue i addressed was _ugly_ markdown coming from the store, which we addressed by … not sending ugly markdown :-)09:56
Chipacait can still be fairly ugly, but not full on eugh ugly09:56
pstolowskimborzecki: so i can only imagine it's more confusing for users09:56
pstolowskiChipaca: i see :). i thought i you meant you fixed it server side so it never sends or accepts it09:57
pstolowskis/sends/returns/09:58
Chipacapstolowski: 'snap info firefox' has plenty of markdown09:59
Chipacait's just not too ugly09:59
pedronismvo: hi, is #6404 ready for re-review or not yet ?10:20
mupPR #6404: snapstate: auto transition on experimental.snapd-snap=true <Created by mvo5> <https://github.com/snapcore/snapd/pull/6404>10:21
* zyga fixed one small bug and moves forward10:55
mupPR snapd#7073 closed: interfaces: OpenGL/Vulkan drivers provided by a base should be usable <β›” Blocked> <Created by jhenstridge> <Closed by jhenstridge> <https://github.com/snapcore/snapd/pull/7073>11:00
mupPR snapd#7414 opened: tests: keep track of installed packages and restore the state after the test <Test Robustness> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7414>11:07
zygamborzecki: some feedback there11:12
zygamborzecki: I experimented with something similar, have a variant of that for dpkg that's somewhat weaker than yours11:13
zygamborzecki: I think we could join forces and craft something together11:13
mborzeckizyga: sgtm, let me look at the apt-tool and your draft pr11:13
zygamborzecki: thank you11:14
zygamborzecki: if you want we can spin up a blank testbed-tool PR and land that quickly11:14
zygaand add various measurement parts on top11:14
zyganote that my PR does one essential change11:14
zygait fixes where we restore11:14
zygait's no longer causing the world to fall apart11:14
ograzyga, i see some weird behaviour using layuouts ... when using an install or configure hook to put a file into $SNAP_DATA and using a layout to map that file to a subdir in /etc i somehow end up with an empty file in $SNAP_DATA ... in what order do the hooks run in relation to layouts ?11:15
zygaI think we should split that out as a small PR and land separately after careful review11:15
ogra(looks like the copied file is overlayed by an empty one somehow, if i take the layout out of snapcraft.yaml i get a proper file as expected (just not mapped to /etc)11:16
ogra)11:16
zygaogra: to answer your question, hooks cannot ever observe pre-layout filesystem11:16
zygaogra: can you file a bug, ideally with a small reproducer, I'll take a look11:16
ograso i need a wrapper and actually write into the file then ... k11:16
zygaogra: some bugs got fixed recently, 2.41 will be much better on that than before11:16
zygaogra: but perhaps there's another one11:17
zygahttps://github.com/snapcore/snapd/pull/7168/files#diff-d2dd0567bc81c6005b7c0f2e727f9b57R53111:17
zygaer11:17
zygasorry, cannot copy paste in this wayland business11:17
zygaanyway11:17
mupPR #7168: tests: measure testbed for leaking mountinfo entries <Created by zyga> <https://github.com/snapcore/snapd/pull/7168>11:17
zygamborzecki: I need to fix the die situation to release 2.4111:17
zygafor opensuse11:17
ograwell, i can switch my machine to beta, perhaps it works there ...11:17
zygamborzecki: mvo said he doesn't have time to review 736211:17
* ogra gives it a try with 2.4111:18
zygapstolowski: ^ can you look instead, mvo said another reviewer is fine11:18
zygaI can then cherry pick that into a distro patch11:18
mvopedronis: 6404 is ready yes11:27
pedronisyea, added it to my queue11:28
pstolowskizyga: 7362? ok, looking11:31
zygayes, thanks!11:32
pstolowskiallright, i remember that other PR from contributor..11:34
mupPR snapd#7413 closed: hookstate/ctlcmd: fix snapctl set help message <Simple πŸ˜ƒ> <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/7413>11:34
=== ricab is now known as ricab|lunch
zygamborzecki: https://github.com/snapcore/snapd/pull/7400 is green, I think you are the one to review it11:44
mupPR #7400: cmd/snap-update-ns: don't propagate detaching changes <Bug> <Created by zyga> <https://github.com/snapcore/snapd/pull/7400>11:44
* Chipaca ponders lunch11:46
zygamore progress, more passing tests11:56
zygafeels like a good day now11:56
pstolowskizyga: +1 with 2 minors12:02
zygathanks, looking12:02
zygapstolowski: replied on both, can you check the first answer please12:04
pstolowskiyep, done, got it12:08
zygasuper, thank you12:11
mupPR snapcraft#2700 closed: schema: build-base support for the kernel type <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2700>12:18
* dot-tobias says hi12:34
dokomvo, sergiusens: snapcraft autopkg test failure, triggered by binutils in eoan12:34
ografix binutls then :P12:39
Chipacapstolowski: did you resolve the core18 test prepare failures? getting them too12:40
Chipacahttps://travis-ci.org/snapcore/snapd/builds/581107491?utm_source=github_status&utm_medium=notification12:40
cachioChipaca, is it new?12:49
Chipacacachio: i think so12:49
cachioChipaca, I'll take a look if nobody else is already on it12:50
Chipacacachio: thanks!12:50
cachionp12:50
=== ricab|lunch is now known as ricab
cjp256Is there an "official" recommendation/doc stating how to detect if running in a snap? I've seen a couple of apps doing it slightly differently (e.g. checking for "SNAP" or "SNAP_NAME" in environment).  Someone in #snapcraft was asking. sergiusens pointed out that snapcraft itself uses SNAP_NAME,  the preferred route to detect if being invoked by another classic snap.12:57
pstolowskiChipaca: not yet, i was about to look at this. got them a couple of times since yesterday12:58
Chipacacachio: standup?13:01
ijohnsoncjp256: usually most folks just check for $SNAP being defined13:03
sergiusensijohnson: in the past lxd had a problem as snapcraft was calling out to it (the deb) and the in-code logic assumed it was a snap, so we check to see if the SNAP_NAME matches what we want13:06
mupPR snapcraft#2701 opened: spread tests: update gnome extension tests <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2701>13:06
ijohnsonsergiusens: fair enough, I haven't written many classic snaps so I haven't run into that kind of issue13:07
sergiusensassumed it was a snap as it was only checking for the existence of the export and not the value it carried... SNAP_NAME is an easier value to check against as it is fixed to the snap13:07
zygajdstrand: hey, can you please look at https://github.com/snapcore/snapd/pull/740013:14
mupPR #7400: cmd/snap-update-ns: don't propagate detaching changes <Bug> <Created by zyga> <https://github.com/snapcore/snapd/pull/7400>13:14
zygait's super small in non-test code, just interested in your opinion13:14
Chipacazyga: it might be related to the generator, as there is a target (local-fs.target) which is part of snapd.service (and .socket) critical path13:14
Chipacazyga: in 16.04, which doesn't use the generator13:15
Chipacaafaik13:15
cjp256It does seem like something that should be formalized one way or another and added to the docs. degville: Where do you think would be the most appropriate place?13:15
zygaChipaca: in the bug report it happened on core18 system13:16
zygaChipaca: but in either case, we need to think about what happens when snapd doesn't have snaps mounted13:16
zygaChipaca: I think only bad things will happen13:16
Chipacazyga: ??13:16
zygaChipaca: because no plugs or no slots13:16
zygaChipaca: e.g. on reboot with new kernel,  new system key13:16
Chipacazyga: why would a new system key mean no snaps mounted?13:17
zygaChipaca: new kernel -> you reboot -> you race with mounting snaps -> you lose -> you create profiles without any interfaces for apps13:17
Chipacazyga: why are you racing with mounting snaps?13:17
zygaChipaca: because snapd.service is not synchronized with .mount units13:18
Chipacazyga: it is13:18
Chipacazyga: I just said so13:18
zygahow is that done?13:18
zygaah, I misunderstood that13:18
zygacan you re-state please13:18
Chipacaat least on 16.04, i haven't checked 18.04 but it's easy to check13:18
Chipacazyga: there's a local-fs.target13:18
Chipacazyga: mounts are done before that13:18
Chipacazyga: snapd runs after that13:18
Chipacaat least, that's how it _should_ work :-)13:19
zygammm, I see13:20
Chipacazyga: easy to check13:20
Chipacazyga: in core18, systemctl show snap-core-*.mount13:20
Chipacasystemctl show snap-core-*.mount | grep Before13:20
Chipacashould list local-fs.target13:21
zygathey have before=snapd.service now13:21
zygahmmm13:21
zygaisn't that automatic somehow?13:21
Chipaca$ systemctl show snap-core18-*.mount | grep Before13:21
zygathe local-fs13:21
ChipacaBefore=local-fs.target snapd.service multi-user.target umount.target13:21
zygasomething to check13:21
Chipaca^ that's 16.04, 18.04 should have the same13:21
zygaoh13:21
zygashow vs cat13:21
zygathanks, I didn't know about this13:21
Chipacaand, snapd should have After13:21
Chipacain 16.04 that After actually includes every .mount13:22
Chipacanote the mount has a before on snapd.service :-)13:22
Chipacaso it *should* be doubly-sure that it won't happen13:22
Chipacathere is explicit ordering13:22
Chipacanow, does it work? i don't know13:22
Chipacaif it doens't there's clearly a bug somewhere13:22
zygamhm13:22
zygayeah, it'd be interesting to see if we can attempt to reproduce this somehow and run it in a loop13:22
zygato gather some fresh data13:23
Chipacait might just be in the weird snapd in our core18 spread environ13:23
zygaor it might be in our weird snapd-from-snap service13:23
Chipacazyga: if you can get a shell on a system showing this, systemctl analyze plot would be useful13:23
zygammm, indeed13:24
mborzeckicmatsuoka: ping me if you have questions about snap-image13:31
Chipacazyga: as last words "the treasure is buried in the" is hard to beat13:31
cmatsuokamborzecki: thanks, I'll have a good look and probably questions will appear13:32
zygaChipaca: :)13:35
zygapstolowski: remember that TV crew? they are coming back for another episode13:35
pstolowskizyga: aha, what tv show is that?13:36
zygapstolowski: gliniarze or something like that13:36
degvillecjp256: I think documenting this is a good idea too. There currently isn't an ideal place - I do have a doc describing the running environment on my todo list, but for now it may be most useful in the snap hooks page: https://forum.snapcraft.io/t/supported-snap-hooks/379513:38
mupPR snapd#7383 closed: cmd/snap: improve help and error msg for snapshot commands <Created by galgalesh> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/7383>13:46
mborzeckioff to pick up the kids and do groceries13:59
pedronismvo: https://github.com/snapcore/snapd/pull/6705#discussion_r32128583114:07
mupPR #6705: bootloader: little kernel support <Needs Samuele review> <Created by kubiko> <https://github.com/snapcore/snapd/pull/6705>14:07
pedronismvo: I'll work on that today after I pushed my current state of the image refactoring14:08
=== vicamo_ is now known as vicamo
Chipacapedronis: I'd rather we didn't print "lk" in error messages as it can be hard to tell from "1k"14:12
pedronisChipaca: so LK ?14:12
pedronisI don't mind a ton14:12
pedronisas long as it is consistent14:12
Chipacaand "cannot open 1k environment file" is not impossible, as error messages go14:12
* ogra proposes "hackish-android-bootloader" 14:12
Chipaca:)14:12
Chipacaogra: it's like swedish chef was fired from the kitchen so they picked up bootloader hacking instead14:13
ograhaha14:13
Chipacaogra: also, https://www.youtube.com/watch?v=B7UmUX68KtE14:13
mvopedronis: thank you14:14
ograLOL14:14
ograPΓΆpcΓΈrn14:14
mvopedronis: yeah, thats nice14:14
ijohnsonpedronis: I'm sorry the explanation for the changes are complicated... I don't think we can do it during start-snap-services because that's too late I think, we need to disable the services before the post-refresh hook14:22
ijohnsonI need to think more about stop-snap-services, that might be okay because we run that after the post-refresh hook IIRC14:23
ijohnsonerr s/post-refresh/pre-refresh/14:23
pedronisijohnson: anyway you are probably victim of having put code near something that seems wrong14:23
pedronisI don't understand anymore14:23
pedronisijohnson: anyway my main worry about where we unlock remains14:24
ijohnsonI can look into where we unlock, I mainly just put it there because that's what mborzecki commented on, I will try to find more examples in the codebase of how that is done other places14:24
ijohnsonpedronis: the main thing I am trying to do is capture the state as late as possible from systemd during unlink-snap, and then restore it as early as possible in link-snap (similar for the undo handlers)14:26
pedronisI don't late is a useful concept here14:26
pedronisthis a relatively fast operation holding the lock14:26
ijohnsonI realize it's not very similar to other things in the codebase since it's both very short lived and also potentially ver long lived14:26
pedronisas they are on trunk14:26
pedronisyes, my worry there14:26
pedroniswe are changing some property of this things14:26
pedronispstolowski: can you remind why of this line:  https://github.com/snapcore/snapd/blob/master/overlord/snapstate/handlers.go#L1311 it doesn't make sense to me atm, why would we restore a config while we are unlinking a snap14:28
pedronisI would imagine we do that when linking14:28
pedronisthe other unlink has a save instead14:28
pedronisijohnson: anyway that's why your code confused me ^, I don't understand the lines it has close14:29
pedronisnow14:30
ijohnsonok14:30
pedronisijohnson: anyway as I said we need either need to move those interaction with systemd close to end of the handlers, to to the stop/start ones14:31
pedroniss/to to/or to/14:31
pstolowskipedronis: in undoLink, afair we restore config of previous revision, because config might have already been updated e.g. by configure hook14:31
pedronispstolowski: it's part of the undo case?14:31
pedronisbut we do a relink at the very end14:32
pedronispstolowski: if it's right, it needs a comment, if it isn't it needs moving/going away. atm it's very confusing14:33
pedronisijohnson: also  s/end/start or end/14:34
pedronissorry14:34
ijohnsonwhat other tasks do we run after a configure hook? the only one I see is the health-check14:35
ijohnsoncould the health-check fail and trigger things to be undone?14:36
ijohnsonif the health-check could fail the entire change, then I think pstolowski's code is correct as is, because the configure hook could have successfully finished and committed changes to the state that we need to restore14:37
ijohnsons/health-check/any other random task that runs after the configure snap task/14:37
pedronisbut by definition we should run anything on an unlinked snap14:38
pedronisshouldn't run14:38
pedronisthat's the bit I don't get14:38
pedronisI'm not saying we shouldn't restore14:38
pedronisI'm questioning the where14:38
ijohnsonhmm14:38
pedroniswhen of it14:38
ijohnsonI see your point now14:39
ijohnsonfor my case, with specifically undoLinkSnap, we could save the state of the services very early in the function rather than right before the unlink14:39
ijohnsonwould that make more sense?14:39
ijohnsonbecause we can't save it after the unlink14:40
pstolowskii need to refresh my memory re the details of config snapshots; the general idea is to switch to respective version of config whenever we switch between revisions, whether it's undo or succesfull op14:42
pedronisijohnson: yes, doing this slow things that don't want the lock either first or last seems best14:43
pedronissorry, do want the lock14:43
pstolowskii'll check that code and add comments or fix if needed14:43
pedronispstolowski: thank you14:43
zygare14:43
pedronispstolowski: it got me slightly confused in a different review14:44
ijohnsonpedronis: ack I will make changes to that effect, do you still want me to pursue using the task for storing the list short-term and then commit it later for long term storage?14:44
pedronisijohnson: yes, think about that and see if it's better or worse14:45
ijohnsonI'm still not convinced we can entirely push it out to the start/stop-snap-services tasks I need to think on that a bit more14:45
ijohnsonokay I will see what I can do14:45
ijohnsonthanks for the review14:45
pedronisijohnson: keeping unlink/link fast is attractive14:45
pedronisin terms of think we can reason about14:45
ijohnsonalso did you see my questions about the new `snap model` output on your forum post?14:45
ijohnson(and also my PR for that too)14:45
pedronisijohnson: yes, but didn't get to look at it yet, I saw the question14:46
ijohnsonokay, thanks14:46
pedronismy original thought was not do that, but now not sure14:46
pedronisI'm thinking about it14:46
ijohnsonokay, well whenever you get a chance either on the PR or the forum post is fine and I'll update the PR with whatever else you need14:46
ijohnsonoh one last thing, do you think I should split out the cli.StoreAccount change to a different PR?14:47
ijohnsonit seemed like a small change so I kept it but I could also see the case for making that a different PR14:47
pedronisijohnson: the PR at least at moment doesn't look too big, and we have nothing pressing that would need it, so seems ok14:48
pedronisas is14:48
ijohnsonpedronis: ack, thanks14:48
jdstrandzyga: I plan to (7400)14:50
zygathank you14:52
diddledanooh, 2.41 is in candidate!15:00
diddledan\o/15:00
* diddledan reboots to loonicks to try it15:00
pstolowskizyga, Chipaca annoyingly, I cannot reproduce that spread test issue we talked about on standup when running individual tests on gc15:13
zygapstolowski: it's always like that15:14
zygathe magic compounds :/15:14
diddledandang. my changes in 2.41 aren't enough for makemkv to find the optical drive :-(15:35
diddledanlooks like it still needs another permission granted: `/sys/bus/scsi/devices r,`15:36
diddledanI would expect that to be in hardware-observe. but we _could_ add a new scsi-observe if we want it more fine-grained?15:36
diddledan@jdstrand ^^^^15:37
mupPR snapcraft#2701 closed: spread tests: update gnome extension tests <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2701>15:39
diddledanhow do I double-check the device cgroup again to make sure it added the sg0 device into it?15:40
mupPR snapd#7415 opened: tests: fix mountinfo-tool filtering when used with rewriting <Created by zyga> <https://github.com/snapcore/snapd/pull/7415>15:45
mupPR snapd#7416 opened: seed/seedwriter: start of Writer and internal policy16/tree16 <Created by pedronis> <https://github.com/snapcore/snapd/pull/7416>15:45
pedronismvo: next steps ^ but it's huge instead of just big because I need to land the seed16 one15:46
pedronisfirst15:47
pedronisdoing the small bootloader Find change now15:48
diddledanok, it looks like the cgroup has it assigned (actually sg2, not sg0) `c 21:2 rwm`15:50
diddledanso my changes are working correctly, they're just not sufficient :-)15:50
mupPR snapd#7387 closed: packaging/fedora, tests/lib/prepare-restore: helper tool for packing sources for RPM <Simple πŸ˜ƒ> <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/7387>15:51
mupPR snapcraft#2702 opened: Release changelog for 3.8 <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2702>15:54
* cachio lunch16:00
mvopedronis: cool, I think I will have a look at this pr tomorrow16:00
* Chipaca β†’ run16:01
mvopedronis: uh, 3k diff :/16:01
* mvo runs as well16:01
zygamvo: haha16:01
zygamvo: now you promised ;)16:01
mvozyga: heh - its actually not that huge, it contains the seed loading one (7381)16:02
Chipacamvo: *actual* run?16:02
mvoChipaca: nah, not today :(16:02
Chipacamvo: aw, had my hopes up16:03
Chipacaanyway, 'm off. take care and see some of you around later. Otherwise, have a great weekend!16:03
zygaChipaca: o/16:03
mupPR snapd#7417 opened: interfaces/wayland: On classic systems only consider the OS slot for auto-connect <Created by AlanGriffiths> <https://github.com/snapcore/snapd/pull/7417>16:07
pedronismvo: it contains the previous one as I said16:21
pedronisbut yes, it will be 1400 on its own16:21
mvopedronis: I'm experimenting with bases remodel right now, when testing this for real I get "invalid request: unexpected data after serial-request and optional model"16:46
mvopedronis: is this something known, am I doing it wrong?16:46
pedronismvo: experimenting in which sense?16:47
mvopedronis: doing a uc16->uc18 remodel16:47
pedronismvo: with the what kind of model?16:47
pedronisin the tests?16:47
pedronisfor real?16:47
mvopedronis: the real models16:47
mvopedronis: should I use test models for this?16:47
pedronismvo: the issue is that the serial vault knows about remodeling, but the store doesn't16:48
pedronisthe real model use the store as serial vault16:48
pedronisthe store needs  change for that to work16:48
mvopedronis: aha, ok. that makes sense then, I will setup appropriate test models and retry :)16:49
mvopedronis: thats fine, thanks for the explaination16:49
* mvo needs to be afk for a few minutes16:49
pedronismvo: the store is not setup to do remodels, but I suppose we need to teach about this  kind of remodel16:49
pedronisif we want to do it16:49
pedronisa bit unclear though16:49
mupPR snapd#7159 closed: tests: add functions to make an abstraction for the snaps <Simple πŸ˜ƒ> <Created by sergiocazzolato> <Merged by sergiocazzolato> <https://github.com/snapcore/snapd/pull/7159>16:51
* zyga is on child watch duty16:51
zygathough there's one more bugfix PR coming after16:51
zygamaking some more progress17:23
zygaabout to fix duplication on core1617:23
zyganeed to explore because unique to 16 somehow17:23
Saviqughies https://status.snapcraft.io/17:23
zygahttps://xkcd.com/908/17:24
mupPR snapd#7418 opened: many: pass the rootdir and options to bootloader.Find <Created by pedronis> <https://github.com/snapcore/snapd/pull/7418>17:35
mupPR snapd#7362 closed: cmd: unify die() across C programs <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7362>17:44
mupPR snapd#7358 closed: cmd/system-shutdown: Rename die() -> die_reboot() to fix build failures with LTO enabled <β›” Blocked> <Created by dcermak> <Closed by zyga> <https://github.com/snapcore/snapd/pull/7358>17:45
ardaguclu_TCP connection gets lost after handshake completed for snapcraft.io17:48
zygaardaguclu_: status.snapcraft.io17:48
ardaguclu_zyga: yeah, after checking there I tried myself17:49
mborzeckihttps://paste.ubuntu.com/p/dpSXHrZtQc/ funny test failure17:52
jdstranddiddledan: hardware-observe should handle that18:09
jdstranddiddledan: as for the device cgroup, look in /sys/fs/cgroup/devices/snap.name.cmd/devices.list for the major:minor of /dev/sg0. can also do: udevadm info /dev/sg0 to see if the TAGS has your snap18:12
diddledanThanks, jdstrand . The device is correctly in the cgroup.18:14
jdstrand\o/18:14
mupPR snapd#7406 closed: cmd/snap-confine: keep track of snap instance name and the snap name <Created by bboozzoo> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7406>18:27
mvohrm, hrm, so commit 92a096278e040b452125260b00742ae6e62caf2c (zyg@xenial-server) breaks the cla checker in my 6404 pr - I wonder how to get out of this missery18:30
zygaoops18:34
zygaah, 201618:34
zygauff :)18:35
zygamvo: I can offer a rebase solution ;)18:35
zyga(just kidding)18:35
zygacan you whitelist zyga@xenial-server and18:35
zygajust call it a day?18:35
mvozyga: I have no idea why it breaks :/18:35
mvozyga: I think that works - or I could rebase my patches18:35
zygaI mean the rebase was a silly suggestion18:35
zygayou'd have to rebase 3 years18:35
mvozyga: I wonder why it hits my PR :(18:36
zygamvo: git history caught it?18:36
zygamvo: AFAIK we take only shallow history18:36
zygaso something close is related pulling it in?18:36
zyganot sure18:36
* mvo has no idea18:37
jdstrandzyga: I review PR 7400. curious, how much more is there wrt 'mount namespace robustness'?19:29
mupPR #7400: cmd/snap-update-ns: don't propagate detaching changes <Bug> <Created by zyga> <https://github.com/snapcore/snapd/pull/7400>19:29
jdstrandreviewed*19:29
zygajdstrand: MS_SHARED for sure19:29
zygajdstrand: some more tests19:29
zygajdstrand: like mount-ns test for more constructs, specifically the mimic19:29
zygajdstrand: after that I think we can return to wrapping up persistence19:29
jdstrandzyga: are there open PRs for these or are those all the ones you'll reopen?19:29
zygajdstrand: I'll open those, I'm trying to keep it under six19:30
zygajdstrand: some are not fully ready19:30
* jdstrand nods19:30
zygajdstrand: note that MS_SHARED you had reviewed before19:30
zygajdstrand: but it uncovered more issues19:30
zygajdstrand: there's something wrong with loopback devices19:30
zygajdstrand: they definitely leak19:30
zygajdstrand: apps, bases, all alike19:30
zygajdstrand: so more research into that area19:30
zygajdstrand: is there some specific concern you have?19:31
jdstrandzyga: just trying to understand the scope and timing of work. this will be a blue item for us19:32
zygajdstrand: we have an item for it, under robustness19:32
zygajdstrand: you can refer to that one from your roadmap perhaps, not sure if that's useful19:33
zygajdstrand: note that most of the work involves digging and fixing tests19:33
zygajdstrand: there are relatively few patches still, compared to the amount of time19:33
jdstrandzyga: yes. and we will have a similar one that is blue for me to perform the reviews to help you achieve it :)19:33
zygajdstrand: thank you :)19:33
zygajdstrand: so far most of the effort was to stabilize the test suite19:33
zygajdstrand: so that we actually get to write new tests19:33
jdstrandyeah. it is all really good stuff19:34
zygaI'll produce updates and answers for your questions tomorrow19:34
jdstrandanyway, don't mean to dtract from your evening or change any priorities, just a simple question to help me plan19:34
zygajdstrand: no worries, it's always fine :)19:34
=== msalvatore_ is now known as msalvatore
=== guiverc2 is now known as guiverc
* Chipaca EOWs21:00
diddledangui snaps work in WSL2: https://usercontent.irccloud-cdn.com/file/HyrFk7TC/image.png23:23

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