/srv/irclogs.ubuntu.com/2019/07/26/#snappy.txt

mupPR snapcraft#2642 closed: remote-build: detect early build errors <Created by cjp256> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2642>03:21
mborzeckimorning05:20
zygaHey mborzecki05:50
mborzeckizyga: hey hey05:50
zygaCheck out https://github.com/snapcore/snapd/pull/717205:51
zygaMagic :-)05:51
mupPR #7172: tests: work around classic snap affecting the host <Created by zyga> <https://github.com/snapcore/snapd/pull/7172>05:51
mborzeckizyga: looking05:51
zygaInteresting behavior05:56
mborzeckizyga: it'd be nice to pinpoint the reason05:59
zygaAs soon as I get to the office05:59
zygaI spoke with Jamie and we have some ideas06:00
zygahmmm06:16
zyga"newinstance" literally does nothing at all06:16
zygaeedf265aa003b4781de24cfed40a655a664457e606:17
zygadevpts: Make each mount of devpts an independent filesystem.06:17
zygathis option is from 201606:17
zygait seems that before devpts was really magically shared no matter where it is mounted06:17
zygamborzecki: so the working theory is gone06:19
mborzeckizyga: hah :P06:20
zygamborzecki: something like this:06:24
zygahttps://www.irccloud.com/pastebin/JdL7fdQS/06:24
mborzeckizyga: we know it'll happen each time you run classic snap though? so it might be better to error when it does not, in case it's a regression or sth06:27
zygaso you want more tests to fail? :)06:27
zygaI'm happy if whoever fixes this adjusts workaround06:28
mborzeckizyga: more like a failure accounted for :P but not a blocker06:34
mborzeckizyga: let me +1 it06:34
zygaI'm testing the change06:34
zygahey mvo06:34
zygamborzecki: I'll likely fix the original issue and adjust this test if that makes you feel better06:35
mborzeckizyga: so classic snap mounts it's own devpts then?06:35
zygamborzecki: don't even get me started, that code is horrid06:36
zygayes06:36
zygalet me show you06:36
mvozyga: hey, good morning06:36
mborzeckihaha06:36
mvoand hey mborzecki06:36
zygahttps://github.com/snapcore/classic-snap/blob/master/bin/classic#L6706:36
mborzeckifeel sorry for whoever will have to explain all meanings of classic06:37
zygamborzecki: it uses systemd-run06:37
zygamborzecki: so, presumably, that's running on the host, right?06:37
zygait's a init-spawned service?06:37
zygamborzecki: what is curious06:37
zygaif you experiment on your machine06:38
zygais that there's only one /dev/pts mounted06:38
zygait seems that whatever the kernel did affects the existing /dev/pts, not a newly mounted one06:38
zygait's not a new mount, it seems06:38
mborzeckizyga: --scope makes the process a child of systemd-run06:39
zygamborzecki: do you know if systemd-run does reparenting to the initial mount namespace?06:40
zygaI'll experiment some more in a moment, just need to get breakfast and take the dog out06:40
zygamborzecki: classic is not loved much, though06:40
zygathat script cries for fixes06:40
zygaeven shellcheck pass06:40
mborzeckizyga: perhaps if it's a normal unit, it wouldn't make sense with --scope06:42
zygamborzecki: pushed a small update06:43
zygamvo: wanna review this craze?06:43
mvozyga: sure06:44
zygahttps://github.com/snapcore/snapd/pull/717206:45
mupPR #7172: tests: work around classic snap affecting the host <Created by zyga> <https://github.com/snapcore/snapd/pull/7172>06:45
zygathank you!06:45
mborzeckimvo: morning :)06:45
zygamborzecki: on the up side, we now found this :)06:50
zygaI have more coming, core is a bug rich environment06:50
zygaguys, just a heads up06:58
zygaI noticed some unit tests hang06:58
zygawe may have a racy deadlock or something like that06:58
zygaI restarted about half a dozen tests like that yesterday06:58
* zyga spawns more tests and goes for a break07:03
zygaI work way too long lately, need to take a walk and have breakfast07:03
zygaback07:53
zygano breakfast yet but I feel much better07:53
zygawalk + shower :)07:53
mupPR snapd#7172 closed: tests: work around classic snap affecting the host <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7172>07:55
zygamvo: did you see the python-apt + snapd build regression?08:04
zygahttps://www.irccloud.com/pastebin/AcGQjDFA/08:04
zygait was reported by Dimitri08:05
abeatozyga, hey, was testing the change to mount /lib/firmware, but it is not happening for me - besides bind-mounting snap-confine, is there anything else I should consider?08:06
abeatozyga, nm, reinstalling the snap made the trick (plus reloading the snap-confine apparmor profile)08:13
mvozyga: looking08:15
Chipacamo'in, mo'in08:28
zygaabeato: Due to the place where this change happens it requires the namespace to be discarded08:31
zygaHey Chipaca08:31
mvozyga: this looks like a bug in python-apt in eoan08:55
zygare09:09
* zyga made a coffee09:09
mvojuliank: hey, do you already know about https://paste.ubuntu.com/p/DH8YZj8Gfd/ in python-apt 1.9 - fetch_source (and probably fetch_binary) is unhappy. I can try to look into it later today if you are busy09:13
* zyga chases another issue in core tests09:25
zygaon the up side, fewer things fail now, it takes a while to get to a broken one09:26
mvozyga: nice09:26
zygamvo: little by little, it's not green yet though09:27
mupPR snapd#7167 closed: cmd/Makefile.am: support building with the go snap <Simple šŸ˜ƒ> <Created by anonymouse64> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/7167>09:35
zygabrb, need to help my wife09:36
zygare09:45
mupPR snapd#7173 opened: Support Tegra display drivers in x11/opengl interfaces <Created by alfonsosanchezbeato> <https://github.com/snapcore/snapd/pull/7173>09:56
ograogra@acheron:~/Devel/branches/snapd:master$ git pull10:02
ogra...10:02
ogra1578 files changed, 153607 insertions(+), 22623 deletions(-)10:02
ogra...10:02
ograhmm, i should perhaps do that more often ...10:02
zygaabeato: reviewed10:03
zygaogra: wow10:03
* zyga fixed another core test bug10:03
abeatozyga, thanks10:06
mupPR snapd#7174 opened: allow setting start_x=1 which enables the CSI interface for the RPi cā€¦ <Created by ogra1> <https://github.com/snapcore/snapd/pull/7174>10:24
ograthanks zyga10:26
zygathank you ogra10:27
Chipacahm, what's even the purpose of snap.PlaceInfo10:28
zygaChipaca: there must be a place for it10:56
* zyga hides10:56
mborzeckihehe11:01
mborzeckiogra: hmm  ogra@ubuntu.com (https://api.launchpad.net/1.0/~ogra) has NOT signed the CLA11:04
mborzeckiour CLA checker going bonkers?11:04
mborzeckiChipaca: do you have any clue what could be happening here? ^^11:05
Chipacawat11:06
Chipacamborzecki: dunno. Is there a commit by ogra in the PR in question?11:06
mborzeckiChipaca: yup, From: Oliver Grawert <ogra@ubuntu.com> checks out11:07
Chipacamborzecki: hadn't we landed a change to make it pull the whole repo?11:08
Chipacamborzecki: i can't see it in the .travis.yml though11:08
Chipacamborzecki: there should be a git: depth: false in the CLA section11:09
mborzeckiChipaca: it was reverted apparently11:09
Chipacamborzecki: anyway, that would/should fix it :-/11:10
juliankmvo: yes I have a fix in progress11:22
juliankBoth hardcoded md5 so kind of good they broke11:23
ogramborzecki, Chipaca, sorry, was melting^Wlunching ... do i need to do anything ?11:39
Chipacaogra: sweat11:39
ograat yur command !11:39
ogra*your11:39
Chipaca'yur' worked well in context11:39
Chipacaogra: I don't think you need to do anything, no11:40
ograok11:40
Chipacaogra: the CLA checker has a bunch of heuristics to work around the fact that we can't ask launchpad for all your emails :-)11:40
Chipacaogra: nor can we ask it about your group membership11:40
Chipacabah11:40
Chipacawe can't ask it whether you're a member of a private team11:41
ogrageez ... how silly ... given you could screen-scrape them from my LP page11:41
Chipacaogra: no you can't11:41
Chipacathat's the point :-)11:41
ograah, right, private11:41
ograsilly security !11:41
ograalways in the way11:41
* zyga chases systemd/snapd mount bug :/11:56
zygaman that test is very har11:56
zygadd11:56
zygagoogle:ubuntu-core-16-64:tests/main/ubuntu-core-gadget-config-defaults:ssh_common11:58
zygathis test is leaking a mount for a test snap11:58
zygathe test snap cannot be removed (gadget requirement)11:58
zygathe code hand crafts the removal11:58
zygabut the removal depends on the mount unit being okay11:58
zygabut it isnt11:58
zygadaemon-reload just a moment before _probably_ corrupts systemd state11:58
zygaI'm debugging but iteration is slow11:59
mvojuliank: thanks!12:19
mvoChipaca: if ogra  signes with @canonical.com things are fine, no?12:20
Chipacamvo: yes12:21
Chipacamvo: or @mozilla.com :-)12:21
Chipacamvo: or if he signs the CLA12:21
Chipacas/signs/commits/12:21
Chipacamvo: or with an email address in the commit history12:22
Chipacamvo: the latter is already done, so it should work if it doesn't do --depth=5012:22
zygaDOH12:40
zygaman12:40
zygathat's sooooo frustrating12:40
zygasolved the bug12:40
zygamvo, mborzecki: can we use systemd-escape in all tests or is it absent in 14.04?12:41
mborzeckizyga: don't remember12:41
mborzeckiwow, it's standup coffee time12:42
mupPR snapd#7175 opened: gadget: effective structure role fallback, extra tests <Gadget update> <Simple šŸ˜ƒ> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/7175>12:44
zygafun bug12:46
zygaand there are more of it!12:47
zygarunning again12:50
zyga:)12:50
zygahttps://github.com/snapcore/snapd/pull/717612:57
zygamborzecki, Chipaca: ^12:57
mupPR #7176: tests: correctly escape mount unit path <Created by zyga> <https://github.com/snapcore/snapd/pull/7176>12:57
mupPR snapd#7176 opened: tests: correctly escape mount unit path <Created by zyga> <https://github.com/snapcore/snapd/pull/7176>12:58
zygathough I think I've missed a nice pun chance there12:58
zygabetter now12:59
zyga:D12:59
diddledan@popey you're better at words - can you try to explain what I failed to please?: https://forum.snapcraft.io/t/vlc-cve-a-good-oportunity-for-snappy/1244013:06
* popey_ looks13:07
diddledanthanks :-)13:07
ogranote that this CVE is also very controversial ... vlc denies it is their issue blaming it on a distro lib)13:08
diddledaneven more reason to steer clear :-)13:08
ogramvo, have you seen last nights discussion about classic snap vs using lxd ? i wonder if we should sunset classic for core18 and onwards and point people to use lxd containers13:16
* ogra must admit he hasnt used classic in ages ... 13:16
mvoogra: I did not see that but it sounds great, I think lxd is really the better choice in many ways, only for real corner cases (like low level hw access) the real one might be needed13:23
ograyeah and there you could simply download an ubuntu-base tarball and chroot13:24
zyga180/277 core tests passed without leaking any mount entries13:24
zygadoh - I take that back13:27
zygawrong branch :D13:27
zygamvo: I didn't want to take more time at the standup but we have one more general issue13:37
zygamvo: some snaps leave stuff on the system when we "remove" them13:37
zygaclassic is one13:37
zygalxd is another13:37
zygaI'll file a bug on lxd to make sure this is tracked13:37
mvozyga: ok13:46
zygamborzecki, mvo: https://github.com/snapcore/snapd/pull/717713:47
zygaanother simple one13:47
mupPR #7177: tests: remove test-snapd-curl <Created by zyga> <https://github.com/snapcore/snapd/pull/7177>13:47
mupPR snapd#7177 opened: tests: remove test-snapd-curl <Created by zyga> <https://github.com/snapcore/snapd/pull/7177>13:48
zygasorry, force pushed because there are two tests like that13:51
zygaI'll dust my cleanup-tool patch13:52
zygathis will be the biggest win for reliability and speed13:52
zygatest prepare/restore won't be this "magic" anymore13:52
mupPR snapd#7178 opened: tests: remove test-snapd-snapctl-core18 in restore <Created by zyga> <https://github.com/snapcore/snapd/pull/7178>14:07
mupPR snapd#7179 opened: tests: remove installed test snap <Created by zyga> <https://github.com/snapcore/snapd/pull/7179>14:07
mupPR snapd#7180 opened: tests: remove installed snap in the restore section <Created by zyga> <https://github.com/snapcore/snapd/pull/7180>14:07
zygacachio: https://github.com/snapcore/snapd/pull/7171#pullrequestreview-26722553514:37
mupPR #7171: tests: improve how the system is restored when the upgrade-from-2.15 test fails <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/7171>14:37
* zyga runs another pass14:39
zygaand spawns core18 to see what happens there14:39
zyganext up pass on more than main suite14:39
zygaI will land the test fix PRs when they become green14:39
cachiozyga, thanks14:39
* zyga takes a break for an hour14:41
zygaogra: what's up with the CLA test?14:44
ograzyga, dunno, Chipaca said i dont need to do anything (i asked above)14:47
Chipacais this happening in one PR, or everywhere?14:47
Chipacazyga: ^?14:48
juliankSetting up snapd (2.39.2+18.04) ...14:52
juliankInstalling new version of config file /etc/apparmor.d/usr.lib.snapd.snap-confine.real ...14:52
juliankmd5sum: /etc/apparmor.d/usr.lib.snapd.snap-confine: No such file or directory14:52
juliank^ don't like that14:52
zygajuliank: oh? where is that coming from14:52
zygaperhaps the dpkg conffile helpers?14:52
zygamvo: ^ help14:52
juliankI just upgraded: Unpacking snapd (2.39.2+18.04) over (2.38+18.04) ...14:53
zygaChipaca: in one PR14:53
zygajuliank: looks like a bug, let me look14:53
Chipacazyga: that pr (or another one that lands and then is merged) needs to update .travis.yml14:53
zygajuliank: I see it, let me fix that for the next update14:54
zygaChipaca: what needs to happen in travis.yml?14:54
juliankah md5sum /etc/apparmor.d/usr.lib.snapd.snap-confine is just hardcoded in an upgrade check w/o checking if the file exists14:54
Chipaca<Chipaca> mborzecki: there should be a git: depth: false in the CLA section14:54
Chipacazyga: ^14:54
juliankthough there is a 2>/dev/null redirect14:54
juliankbut at the wrong part of the pipe :D14:54
juliankmd5sum /etc/apparmor.d/usr.lib.snapd.snap-confine | cut -f1 -d' ' 2>/dev/null14:54
zygajuliank: the redirect is on cut, I think14:55
juliankshould be14:55
zygayeah14:55
juliankmd5sum /etc/apparmor.d/usr.lib.snapd.snap-confine 2>/dev/null | cut -f1 -d' '14:55
zyga-        if test "$(md5sum /etc/apparmor.d/usr.lib.snapd.snap-confine | cut -f1 -d' ' 2>/dev/null)" = "2a38d40fe662f46fedd0aefbe78f23e9"; then14:55
zyga+        if test -f /etc/apparmor.d/usr.lib.snapd.snap-confine && test "$(md5sum /etc/apparmor.d/usr.lib.snapd.snap-confine | cut -f1 -d' ')" = "2a38d40fe662f46fedd0aefbe78f23e9"; then14:55
zygaor like this14:55
zygaa bit more verbose but perhaps more to the point14:55
zygaright?14:56
juliankyeah14:56
zygaI'll send a PR14:56
zygathanks for reporting this14:56
zygamvo: https://github.com/snapcore/snapd/pull/718114:59
zygabefore you leave please14:59
mupPR #7181: packaging/debian: don't md5sum absent files <Created by zyga> <https://github.com/snapcore/snapd/pull/7181>14:59
zygajuliank: ^14:59
juliankthanks zyga14:59
mupPR snapd#7181 opened: packaging/debian: don't md5sum absent files <Created by zyga> <https://github.com/snapcore/snapd/pull/7181>14:59
zygacore16 main is clean, running all suite now14:59
* cachio lunch15:00
zygacore18 looks ok after 50% of the pass15:00
zygaI think that's all of them :)15:00
mupBug #1838040 opened: delete user data thunderbird <Snappy:New> <https://launchpad.net/bugs/1838040>15:05
mupBug #1838040 changed: delete user data thunderbird <Snappy:Invalid> <https://launchpad.net/bugs/1838040>15:14
zygasome unit tests are hanging in travis15:20
zyga10 minute timeout reached15:20
juliank$ snap info mojo15:23
juliankerror: no snap found for "mojo/"15:23
juliank^ what's that?15:23
zygais there a mojo directory?15:23
juliankOh now it works, this was happening while snap install mojo --classic was running15:23
zygasnap info can be used to look at unpacked snaps on disk15:23
juliankah but yes, there is a mojo dir too15:23
zygaright, that's why15:24
Chipacazyga: re https://answers.launchpad.net/snappy/+question/682352 if they removed the snap, the data is gone from disk15:30
zygaChipaca: oh, no snapshot?15:30
zygabut right15:30
Chipacazyga: (if new enough they'll have snapshots)15:30
zygacan you comment about the snapshot aspect15:30
zygabut if they removed snapd the snapshot data is gone as well15:31
zygaall core16 tests are mountinfo clean15:31
zygathat's all folks :)15:31
Chipacazyga: huzzah15:31
Chipacazyga: happy weekend15:31
zyganah, I'm rewriting a helper tool from shell into python15:32
zygait will be healthier for what it will do next15:32
zygaI want to fix more test bugs15:32
ChipacaI'm off to the gym, then I'll review ijohnson's PR when I get back while dinner cooks15:32
zygatest bugs drive me crazy15:32
* Chipaca hugs zyga 15:32
zygaChipaca: have fun, :)15:32
Chipacazyga: you were crazy before we had anything to do with it15:32
zygahahaha15:32
ijohnsonthanks Chipaca15:32
zygaI'll take that as a compliment :)15:32
Chipacazyga: :-)15:32
mvozyga: thank you16:16
mupPR snapd#7176 closed: tests: correctly escape mount unit path <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7176>16:18
zygalxd leakes more state on fedora16:18
zygabut I'll fix that later, need to run an errand now16:18
zygatwo more failures from fedora: lxd cgroup state and binfmt_misc being mounted by something traversing the automount point16:19
popey_aaargh16:33
popey_I have a snap in a wedged state16:33
popey_installed:                               (11381)   0B disabled,broken16:33
popey_i can't refresh, install, enable it16:33
popey_- Setup snap "lxd" (11381) security profiles (cannot find installed snap "lxd" at revision 11381: missing file /snap/lxd/11381/meta/snap.yaml)16:33
popey_it's right /snap/lxd is empty16:34
* popey_ starts https://discuss.linuxcontainers.org/t/lxc-snap-wedged-unable-to-refresh-install-enable/534316:51
* diddledan points at popey's lxd and laughs :-p17:02
diddledanhttps://media.giphy.com/media/Q8OOs80Hb5Bj1qNA1d/giphy.gif17:02
diddledanthis one's better https://media.giphy.com/media/cO39srN2EUIRaVqaVq/giphy.gif17:03
mupPR snapd#7179 closed: tests: remove installed test snap <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7179>17:03
Chipacapopey_: are you running 5.2?17:25
* ijohnson lunches back in hour or two17:50
* cachio afk18:01
mupPR snapd#7180 closed: tests: remove installed snap in the restore section <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7180>18:23
Chipacaijohnson: you mind if i push a patch to your PR?18:42
diddledanhow rude18:42
Chipacaijohnson: otherwise I'll pastebin a diff18:42
diddledan:-p18:42
Chipacaijohnson: even if I push the patch it's still a suggestion :-)18:42
Chipacait's just that it's easier to explain in code18:43
Chipacaanyway, i'm going to carry on ignoring diddledan and go make dinner18:43
diddledangithub totally needs the ability to file a PR against someone's PR18:43
ograah, and i thought the ability to make dinner for you18:45
Chipacadiddledan: you can file a PR against someone's branch that's PR'ed though18:50
diddledantrue, tho it's more complex by being a repo that you didn't "fork" from on the github ui18:50
ijohnsonChipaca: go for it19:06
Chipacaijohnson: did I understand pedronis right that the values are always strings?19:08
Chipacaijohnson: meaning that the list in the verbose test is bogus?19:08
Chipacai could check the code myself but i'd have to stop stuffing my face19:13
mupPR snapd#7177 closed: tests: remove test-snapd-curl <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7177>19:17
mupPR snapd#7178 closed: tests: remove test-snapd-snapctl-core18 in restore <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7178>19:17
Chipacaijohnson: i pushed, but i know it breaks a test19:28
Chipacaijohnson: but the tests were broken before so i'm feeling only 90% sorry19:28
Chipacanow i need to go walk the dog (otherwise i would've spent more time on this)19:28
Chipaca(dog has almost given up in a huff :-( )19:28
Chipacaijohnson: the test that was failing before is about the command not being categorised. Put it under 'other', beside 'known', at least for now19:31
Chipacawe're still under 80 chars so it's ok19:31
* Chipaca hitches the dog up to the air con19:31
mupPR snapd#7181 closed: packaging/debian: don't md5sum absent files <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/7181>19:32
mupPR snapd#7182 opened: tests: remove core18 if installed by tests <Created by zyga> <https://github.com/snapcore/snapd/pull/7182>19:35
ijohnsonI think that's correct Chipaca, that's what I understood pedronis to mean19:38
ijohnsonthanks for the patch, will review it, and no worries about the tests I'll clean those up19:39
mupPR snapcraft#2645 opened: file utils: better error for NotADirectory <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2645>19:53
sergiusenszyga: you are quick19:55

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