/srv/irclogs.ubuntu.com/2020/07/21/#snappy.txt

mborzeckimorning05:00
mborzeckiheh, vendor.json keep flipping between 2 revisions of secboot package05:56
mborzeckijamesh: iirc pulseaudio tests fail pretty consistently on 20.10, i don't remember whether it's the same case for preseed though06:58
jameshmborzecki: thanks.06:58
mborzeckihmm interesting behavior of shellcheck https://github.com/koalaman/shellcheck/issues/65007:01
mupPR snapd#8851 closed: interface/fwupd: add more policies for making fwupd upstream strict <Needs security review> <Created by woodrow-shen> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/8851>07:43
pedronismborzeck1: hi, could you finish the review of #8959 when you have a moment, I will also look at it today08:13
mupPR #8959: gadget,gadget/install: refactor partition table update <UC20> <Created by cmatsuoka> <https://github.com/snapcore/snapd/pull/8959>08:13
mborzeckiit'd be nice if for queued check jobs, there'd be some info since when the job has been in that state08:37
mupPR snapd#9023 closed: sysconfig/cloudinit: add CloudInitStatus func + CloudInitState type <Created by mvo5> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/9023>08:38
jameshpedronis: do you think https://github.com/snapcore/snapd/pull/8861 is good to merge then?08:43
mupPR #8861: data,packaging,wrappers: extend D-Bus service activation search path <Created by jhenstridge> <https://github.com/snapcore/snapd/pull/8861>08:43
pedronisjamesh: I need to look at it again, I'll try to do that today or tomorrow08:45
jameshthanks.08:45
=== ricab_ is now known as ricab
mupPR snapd#8959 closed: gadget,gadget/install: refactor partition table update <UC20> <Created by cmatsuoka> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/8959>10:08
=== Eighth_Doctor is now known as Conan_Kudo
=== Conan_Kudo is now known as Eighth_Doctor
jdstrandzyga: not sure if you say, but I have a reproducer: https://bugs.launchpad.net/snapd/+bug/188830513:41
mupBug #1888305: layout lost after snapd refresh with long running content plugging snap <snapd:New for zyga> <https://launchpad.net/bugs/1888305>13:41
jdstrandzyga: saw*13:41
jdstrandzyga: and hello :)13:41
ijohnsonjdstrand: I think Zygmunt is off today13:44
mupPR core20#76 opened: hooks/001-extra-packages.chroot: add gdbserver <Created by anonymouse64> <https://github.com/snapcore/core20/pull/76>13:54
mupPR core18#163 opened: hooks/001-extra-packages.chroot: add gdbserver <Created by anonymouse64> <https://github.com/snapcore/core18/pull/163>13:56
mupPR snapd#9039 opened: cmd/snap-seccomp/syscalls: add faccessat2 (2.45) <Simple 😃> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9039>14:04
mborzeckipedronis: ^^14:05
pedronisthanks14:05
mborzeckipedronis: fwiw google:ubuntu-20.10-64:tests/main/interfaces-audio-playback-record seems to be passing in isolation14:26
pedronisinteresting14:27
=== alan_g_ is now known as alan_g
mborzeckipedronis: the recording bit i handled by snap policy module which is added by ubuntu patches, and it queries the snapd api to get the connected plugs14:29
pedronisyes14:30
mborzeckipedronis: there shouldn't be any races there though14:30
mborzeckipedronis: otoh, it ECONNREFUSED, so maybe pulseaudio just died there?14:34
zygao/15:41
zygajdstrand: that's great news15:41
ijohnsonhey zyga15:41
* zyga woke up and catching up15:42
zygatoday was not the best but it's almost over15:42
zygaah15:42
zygajdstrand: interesting that it is related to snapd refresh15:43
zygait could be related to something i was looking at lately15:43
zygajdstrand: https://forum.snapcraft.io/t/injecting-snapd-tools-into-base-snaps-and-keeping-them-up-to-date/1213915:45
zyga(the last comment there)15:45
zygano need to read it but I suspect that's really just uncovering a bug we knew existed for a while15:45
zygait's great that there's a reproducer, I will try to pull myself together and write a spread test based on your super detailed bug report15:45
* cachio lunch15:46
zygahey ijohnson :)15:47
pedronisijohnson: I did a review of #901016:08
mupPR #9010: cmd/snap-bootstrap/initramfs-mounts: call systemd-mount instead of the-tool <UC20> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/9010>16:08
pedroniszyga: hi, I reviewed #8977 in my morning16:12
mupPR #8977: cmd/snap: track started apps and hooks <Created by zyga> <https://github.com/snapcore/snapd/pull/8977>16:12
zygathank you, I didn't look yet16:13
* zyga looks16:13
zygaah, thanks I'll send some updates there shortly16:13
zygaI will be around normally tomorrow16:14
jdstrandzyga: cool, thanks (though, I was told today you're off, so, only do it if it is fun and relaxing :)16:20
zygajdstrand: yes because it's a mystery and I want to know :)16:20
jdstrand:)16:20
jdstrandzyga: hopefully for a spread test you will create a smaller reproducer snap ;)16:21
zygayes, I just did16:23
pedronisijohnson: when you have time, #9030 needs your review16:26
mupPR #9030: bootloader/assets: helpers for registering per-edition snippets, register snippets for grub <UC20> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9030>16:26
ijohnsonpedronis: yes I will review it today16:26
ijohnsonand thanks for the review16:27
pedronisnp, thank you16:27
pedronismostly eod but I will look again later at the tests of some PRs to see if they are landable16:33
zygajdstrand: btw, did you notice that the snap has this:     target: $SNAP/data-dir/icons16:44
zygatwice16:44
zyga(I guess we should validate better)16:44
jdstrandzyga: ah, no, thanks! this doesn't use sounds so I never noticed it16:47
Elleowhat's the correct way to get the user's real home directory from within a snap?16:49
zygaElleo: there isn't a perfect way but most people use /home/$LOGNAME16:51
Elleozyga: okay, thanks16:51
zygaI have a patch somewhere that provides that but it's not proposed anywhere16:51
Elleoah, okay16:51
ElleoI vaguely remembered some discussion of adding an "$ORIG_HOME" variable or something, but wasn't sure if that ever happened16:52
zygaright, I don't think it did16:53
cachioijohnson, hey17:48
cachioijohnson, about the comment https://github.com/snapcore/snapd/pull/9027#discussion_r45820803017:48
mupPR #9027: tests: refresh/revert snapd in uc20 <Run nested> <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/9027>17:48
cachioijohnson, cmatsuoka requested me to force the reboot when we refresh and revert snapd17:49
cachioto check if tpm works well afte the reboot17:49
cachioor it is ok and I should leave the code you proposed without explaining why we force the reboot17:51
ijohnsoncachio: I understand17:54
ijohnsoncachio: it's okay to still do a reboot after the refresh17:54
ijohnsoncachio but the code as is is masking whether or not snapd triggered a reboot for the given type of refresh17:54
cachioijohnson, yes, that could be a problem17:54
ijohnsonThe code you have always reboots and so if there was a bug where we trigger a reboot when we shouldn't be, or vice versa, your code would mask the problem and make the test pass17:55
cachioor perhaps it does not work properly if we dont reboot17:55
ijohnsonYes exactly17:55
cachioperhaps I could test both scnarios17:55
ijohnsonThat's why I wanted you to refactor it to check what kind of snap was being refreshed, and ensure the change for snaps that don't automatically trigger a reboot don't trigger a reboot17:56
cachio1 forcing reboot and also without reboot17:56
ijohnsonI provided some example code for how to do that17:56
ijohnsoncachio: I don't think we need two tests17:56
ijohnsonJust make the existing test slightly more accommodating to the different scenarios17:56
cachioijohnson, I mean, same test test both thinks17:57
cachiothings17:57
cachioijohnson, but in the code you proposed it is going to reboot always for snapd and pc snaps17:58
cachioit is waiting until the refresh is comppleted fedore the reboot17:59
cachioright?17:59
ijohnsoncachio: yes it will reboot anyways but if snapd triggered the reboot it would make one of the commands fail if I understand what I wrote correctly17:59
ijohnsonYes exactly if the reboot was triggered as part of the refresh then I think that command would exit non-xero and the test would fail17:59
cachioijohnson, ah, ok, in that case I'll apply that18:00
cachiothanks for the suggestion18:00
ijohnsoncachio: yaw, hopefully it's not too difficult to make work18:01
cachiotrying now18:01
mupPR snapd#9038 closed: tests: check for pids correctly <Test Robustness> <Created by zyga> <Merged by cmatsuoka> <https://github.com/snapcore/snapd/pull/9038>18:21
zygajdstrand: interesting, the reproducer fails with18:40
zyga+ test-snapd-app.sh -c test -d /usr/share/hamster-applet18:40
zygaupdate.go:85: cannot change mount namespace according to change mount (/snap/gtk-common-themes/1506/share/gtk2/Materia-compact /snap/test-snapd-app/x1/data-dir/themes/Materia-compact none bind,ro 0 0): cannot write to "/snap/gtk-common-themes/1506/share/gtk2/Materia-compact" because it would affect the host in "/snap"18:40
mupPR snapd#9040 opened: spread: add opensuse 15.2 and tumbleweed for qemu <Simple 😃> <Created by jdstrand> <https://github.com/snapcore/snapd/pull/9040>18:46
jdstrandzyga: huh18:46
jdstrandzyga: fyi, don't worry about tumbleweed lzo. I am doing it18:47
zygak18:49
zygathat log is just a warning, not an error (in the sense that it doesn't stop)18:49
zygabut it's still wrong18:49
jdstrandyeah18:49
* jdstrand idly wonders if his https://blog.strandboge.com/2019/04/16/cloud-images-qemu-cloud-init-and-snapd-spread-tests/ has been useful for others here... I've found it immensely useful for my spread testing :)18:50
mupPR snapd#9018 closed: cmd/snap-preseed: check that target path exists and is a directory on --reset <Preseeding 🍞> <Simple 😃> <Created by stolowski> <Merged by anonymouse64> <https://github.com/snapcore/snapd/pull/9018>19:11
zygakenvandine: hi19:19
zygaI found a small bug in gtk-common-themes19:19
zygacat /snap/gtk-common-themes/current/meta/snap.yaml | grep Materia-dark-compact19:19
zygathis shows19:19
zyga      - $SNAP/share/gtk2/Materia-dark-compact19:19
zygabut19:20
zygals -ld /snap/gtk-common-themes/1506/share/gtk2/Materia-dark-compact19:20
zygals: cannot access '/snap/gtk-common-themes/1506/share/gtk2/Materia-dark-compact': No such file or directory19:20
zygajdstrand: the error was a red herring19:20
mupPR snapd#9041 opened: osutil/group.go: treat all non-nil errs from user.Lookup{Group,} as Unknown* <Bug> <Preseeding 🍞> <⚠ Critical> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/9041>19:31
zygasomething is weird in a way that makes no sense19:41
ijohnsontell me about it19:41
* ijohnson is slightly bitter about error checking getpwnam_r19:41
pedroniszyga: have we just too many PRs, started too many tests, or something else is off, we have some PRs with queued tests since hours, for example: https://github.com/snapcore/snapd/pull/901220:08
mupPR #9012: release/2.45: merge 2.45.2 release <Created by mvo5> <https://github.com/snapcore/snapd/pull/9012>20:08
zygapedronis: checking20:21
zygaonly 4 spread runs in progress20:22
zyganow three20:22
zygawe may be queued on the github hosted tests20:22
zygahttps://github.com/snapcore/snapd/actions?query=is%3Aqueued is very small20:23
ijohnsonit's odd that there's a bunch of jobs that are still waiting though20:23
ijohnsonfor example https://github.com/snapcore/snapd/pull/901320:24
mupPR #9013: many: merge 2.45.2 fixes back into master <⛔ Blocked> <Created by mvo5> <https://github.com/snapcore/snapd/pull/9013>20:24
ijohnsonactually now that I mention it that's the only one I can find other than the one pedronis found20:25
zygahmmm20:25
zygaI did the close & reopen dance20:25
zyganow they show up in the queue20:25
zygaijohnson: when it says "expected"20:29
zygait means that it's not queued20:29
zygabut the rules say it should run20:29
ijohnsonah interesting20:29
zygaso likely a bug on their side20:29
zygaI close/reopend both20:29
zygathat reliably fixes it20:29
ijohnsonzyga: so does it work to close and re-open someone else's PR?20:29
zygaor not?20:29
zygayeah20:29
ijohnsonI seem to have thought that wasn't allowed20:29
zygait didn't change from queued20:30
zygaer20:30
ijohnsonbut maybe I just misremember that20:30
zygafrom expected20:30
zygaI wonder if the fact it has conflicts matters20:31
zygacould it be that actions don't run20:31
zygabecause it cannot be merged20:31
zygaso it cannot create the workspace for actions?20:31
ijohnsonmmm interesting20:31
ijohnsoncould be20:31
zygaeh, shit20:33
zygaI just got a note that I need to re-do blood tests20:33
zygafor unknown reason20:33
zygaso I need to go there again and endure the morning without painkillers20:34
zygaeh, ...20:34
zygamore details in the morning20:34
ijohnsonoh I'm so sorry to hear that20:34
zygaoh well20:35
ijohnsonhope everything's still ok for your surgery20:35
zygaevery day is something now20:35
zygabut it's just a few more days20:35
zygathen it's going to be better20:35
zygaweek to get the stitches removed20:36
zygaabout two weeks for most of the cut to heal20:36
zygaand in a month I should be able to sit normally again20:36
zygajdstrand: do you have any experimental options set?20:54
jdstrandzyga: I do. is there an easy to list them all?20:54
jdstrandah yes20:55
jdstrand$ sudo snap get system experimental20:55
jdstrandKey                              Value20:55
jdstrandexperimental.hotplug             true20:55
jdstrandexperimental.parallel-instances  true20:55
jdstrandzyga: ^20:55
zygathanks20:56
zygajdstrand: no luck with a reproducer21:37
zygaI'll try more tomorrow21:37
zygaI pushed what I have21:37
zygahttps://github.com/snapcore/snapd/compare/master...zyga:fix/lp-1888305?expand=121:38
zygao/21:38

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