=== chihchun_afk is now known as chihchun [06:06] morning [07:57] zyga: pushed some fixes to #6264 [07:57] PR #6264: spread, tests: add Fedora 29 [07:57] that was one annoying distro upgrade, hopefully the changes make the whole test suite better === pstolowski|afk is now known as pstolowski [08:07] mornings [08:13] Hey ho [08:14] Just woke up [08:14] I’ll be around shortly [08:15] pstolowski: zyga: hey [08:25] Hi :-) [08:25] Feels like winter [08:27] zyga: thanks for the help with that test snap yesterday. It build successfully, but I'm guessing it got trapped by automated review. I'm not sure who other than mvo has access to that snap. [08:29] I think jdstrand can check the status [08:29] I will ping mvo about the snap too just in case he has some time [08:31] Running review-tools manually, it seems to be complaining about the new attribute on the dbus interface, and the fact I used "daemon: dbus" for one of the apps [08:31] something snapd supports but snapcraft and review-tools don't seem to like [08:33] Hmmmm [08:33] mborzecki: this may affect snapd in arch: https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/filesystem&id=6fa932aa685da87e78e0f845bd890645607d302e , https://bugs.archlinux.org/task/58499 [08:33] Maybe that is something for roadmr as well [08:34] Can you write a forum post about it please? It will be easier to as for help this way [08:35] vidal72[m]: thanks, i'm subscribed already, they actually changed it to ID=archlinux https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/filesystem&id=6fa932aa685da87e78e0f845bd890645607d302e [08:36] wonder if snapd is the only project that checks that at all [08:38] breaking something is the best way to know is someone used it :) [08:43] updated golang got pushed to EPEL stable, hopefully we'll be able to switch centos image to 7.6 tomorrow [08:59] :-) [09:01] hm hm actually switched the image temporarily and was able to build snapd package [09:03] a unit test failed failed in fedora 29 pr https://paste.ubuntu.com/p/r8WGW9DHNW/ a race of sorts? [09:12] looking [09:13] mborzecki: hmm close to the area of system key computation that was touched recently [09:14] zyga: ^ [09:27] running this test in a loop locally, works fine, i suspect it's because system key is in place (do we miss mocking in the test?) [09:31] mmm [09:31] looking [09:31] feels unrelated [09:31] like missing mocking [09:31] "foo failed" was expectef [09:32] but logs had something else [09:34] PR snapd#6232 closed: overlord/snapstate: support for pre-remove hook <⛔ Blocked> [09:34] zyga, mborzecki #6268 is green now and needs reviews [09:34] PR #6268: overlord/ifacestate: helpers for serializing hotplug changes [09:34] looking [09:39] zyga, mborzecki do you have anything that needs a review? [09:40] I mainly have https://github.com/snapcore/snapd/pull/6190 [09:40] PR #6190: overlord/configstate,features: expose features to snapd tools <⛔ Blocked> [09:40] pstolowski: #6264 [09:40] PR #6264: spread, tests: add Fedora 29 [09:40] ok [09:42] mborzecki: oh wow... that looks like whack-a-mole (not your fault) [09:44] pstolowski: yeah, loads of fun [09:57] mborzecki: did you get to the bottom of why those tests with swapped su username passed before? [10:10] zyga: yes, the project path created by spread is subject to default umask, that has changed in fedora 29, but was 022 before, so the directories along the path got 755, then the snapd source tree is owned by test:test, even though /home/gopath/src/github.com/snapcore/snapd is owned by root:root [10:10] mborzecki: would it be possible to set umask anywhere in prepare.sh to have sane defaults for all tests (if not already there)? [10:10] (i suppose it's not that easy, but curious) [10:12] pstolowski: idk whether spread makes a single huge script of each prepare, prepare-each, execute block, but it'd probably need to be set by spread to be effective [10:12] maybe it makes sense to extend spread to support umask: 022 in spread.yaml [10:12] mborzecki: uhm, right, i see [10:13] zyga: oh, and some of the tests that i fixed never executed on fedora (because of systems: [..]), or only ran for strict confinement [10:18] mborzecki: spread uses shell, cat to write files and execute them [10:18] mborzecki: I spent some time looking at it [10:19] zyga: hm so spread level thing probably makes most sense [10:19] mborzecki: I have some patches to use sftp to send files back and forth [10:19] but probably unlikely to land them [10:20] anyways, the fixes are imo useful either way :) [10:26] damn, hate travis ui [10:27] open travis job, 'raw log' button appears only once the log was downloaded a chopped into folds by js [10:29] maybe we should kill the folds [10:29] they are -1 useful [10:30] travis is slow like hell anyway [10:30] I only ever use the raw log [10:30] and often it is too long [10:30] folds don't help in the raw log [10:46] PR snapd#6269 opened: cmd, dirs, interfaces/apparmor: update distro identification to support ID="archlinux" [10:47] zyga: pstolowski: ^^ simple one [10:47] I will probably do only reviews in the morning [10:47] k [10:47] thanks maciek! [10:48] we'll need to cherry-pick that to 2.36 [10:48] and in the meantime, i'll ship a patch with the package [10:49] mborzecki: commented inline but +1 [10:49] thx [10:49] I think we should do 2.37 next week [10:50] backporting sucks [10:56] zyga: btw. i think there was a subtle bug in the code you pointed [10:56] oh? where? [10:57] defers are executed LIFO, so the defer dirs.SetRootDir() would execute before restore of mocking os release [10:58] mmm [11:03] mborzecki: there is one more defer setrootdir in this test [11:04] (in the old code) [11:18] is there a way to do the following with getting a validation error... [11:18] text=$(cat < branch = master [11:18] EOF [11:18] ) [11:18] within override-prime: [11:18] as a scriptlet [11:18] s/with/without [11:26] * zyga is not well [11:27] Xceed: you may want to ask on the forum where more snapcrafters can help [11:36] mborzecki, pstolowski: it's funny how we use go [11:36] but our task/change system is really a bunch of python-like key=value store [11:38] pstolowski: sorry for the lag, I feel really so-so [11:38] reviewed [11:38] true. i think that's common for task-based solutions like ours.. i saw that in other projects [11:38] you end up with flexible datatypes, such as variant to stuff metadata on tasks [11:39] zyga: no worries, get some rest [11:39] I'm happy to do more reviews [11:40] anyone? [11:41] i used separate lines of echos instead, crude, but it works and ive spent too much time on this [11:41] xnox: is the problem with yaml? [11:41] er [11:41] Xceed: ^ [11:41] (sorry xnox, bad tab completion again) [11:42] zyga: https://github.com/snapcore/snapd/pull/6114 is the closes hotplug PR to land, but i think we want mvo's review anyway [11:42] PR #6114: overlord/ifacestate: handler for hotplug-disconnect task [11:42] yes, i copied pasted a multiline cat file < zyga: otherwise nothing immediate from me, thanks for the review of hotplug seq [11:42] Xceed: can you show me the yaml please? [11:42] i did, see above [11:43] I mean a larger fragment [11:43] that shows the key-value in yaml [11:43] unless I missed that, sorry [11:44] my daughter has cold and is sick this week, I guess I'm becoming affected [11:47] mborzecki: do you feel we could review and land the snapd.mk branch? [11:48] zyga, https://vgy.me/OT7tii.png [11:48] aba [11:48] that's not valid yaml [11:48] not the way you expect at least [11:48] parse that with any yaml parser to see what the structure is [11:49] indent lines 69-71 [11:49] to be flush with the indent of cat [11:49] Xceed: indent to match `cat` [11:49] and re-parse [11:49] yep [11:49] its a scriptlet, i expect all inside EOT to be taken as a raw output though [11:49] otherise any identation will be added to the output file [11:50] it's yaml [11:50] not shell script [11:50] all the stuff in this document is yaml [11:50] Xceed: but it must be a valid yaml in the first place, this one is not [11:50] the values may be strings [11:50] the strings may have any content [11:50] but you must make it valid yaml first [11:50] k, thanks guys [11:55] PR snapd#6267 closed: overlord: move Conf interface to configstate/config to avoid cyclic imports [11:57] mborzecki: https://github.com/snapcore/snapd/pull/6264 is green [11:57] PR #6264: spread, tests: add Fedora 29 [11:58] yay [12:00] PR snapd#6264 closed: spread, tests: add Fedora 29 [12:02] jamesh: relayed to mvo [12:03] I'll also chase with jdstrand later today [12:04] mborzecki: looking at https://github.com/kubernetes-sigs/kind [12:04] I like the pkg/ tree [12:04] I mean, putting various source code under pkg/ [12:04] and not in random spots in the top level [12:07] hm can we replace the nice 'crushing failure and despair' or the pony with a useful piece of text? [12:08] ./run-checks --short-unit output is ok locally, but quite useless on travis [12:09] can't figure out why unit tests (the separate job) fail: https://api.travis-ci.org/v3/job/464278797/log.txt [12:09] the log ends with: [12:09] The command "./run-checks --short-unit" exited with 0 [12:09] Done. Your build exited with 1. [12:09] wtf? [12:15] zyga: thanks. I've written up the question over using "daemon: dbus" here: https://forum.snapcraft.io/t/support-for-daemon-dbus/8855 [12:36] jamesh: thank you, I will use this for talking with jdstrand later todat [12:36] *today [12:36] mborzecki: yes [12:36] mborzecki: it sucks [12:36] mborzecki: I had a PR for this, one sec [12:37] https://github.com/snapcore/snapd/pull/6209 [12:37] PR #6209: run-checks: discard test good/bad banner [12:37] PR snapd#6209 opened: run-checks: discard test good/bad banner [12:37] nice [12:38] wonder if mvo prefers to see the banner on his terminal or on travis [12:38] one thing to fix [12:38] the html log shows the banner correctly iirc [12:38] is to fail fastt [12:38] yup [12:38] not go on doing useless extra tests if something failed [12:39] mborzecki: I would honestly prefer a short summary [12:39] saying stuff like: [12:39] unit tests: pass [12:39] format: fail [12:39] vet: pass [12:39] etc [12:39] the banner is childlish [12:40] and I haven't seen it displayed properly in the last year [12:40] heh [12:40] idk maybe some isatty check in the shell would do [12:44] IMO the banner is pointless but that's just me [12:49] +1 [12:49] we could easily find a single utf emoji to replace it ;) [13:02] ${SNAP_COMMON} used in the scope of the apps.name.command: contains i.e. /var/snap//common but in the scope of override-prime does not i.e. /var/snap/snapcraft/common (so 'snapcraft' instead). So, I append '/../..//common' in order to make ${SNAP_COMMON} path in the scope of prime to be consistent with that at the command runtime - a little kludgy but it worked. [13:10] zyga: some comments to #6190 [13:10] PR #6190: overlord/configstate,features: expose features to snapd tools <⛔ Blocked> [13:11] thank you [13:11] zyga: sorry if they are naive [13:11] i'm likely missing a detail or some agreement [13:15] pstolowski: thank you, replied to most [13:16] ask questions about anything you want, I realise some of the choices may be more obscure than usual [13:18] zyga: thanks [13:23] thank you for looking :) [13:33] jamesh, zyga: there is some history with 'daemon: dbus'. I'll have to research but will comment in the forum [13:33] * zyga nods [13:34] mborzecki: i'm still puzzled about multiple dirs.SetRootDir("/") in TestPathsArch in https://github.com/snapcore/snapd/pull/6269 [13:34] PR #6269: cmd, dirs, interfaces/apparmor: update distro identification to support ID="archlinux" [13:35] if you can address that then i'm happy to approve [13:39] pstolowski: we update the paths only when dirs.SetRootDir() is called, that's why it has to be called again after changing the mocked os-reelase info [13:39] pstolowski: does that answer your question? [13:39] mborzecki: ah, i see, yes, thanks! [13:41] zyga, hey [13:41] about this spread: detect "signal: terminated" in journal logs [13:41] it is breaking all the tests on borads [13:41] :( [13:42] can you show some example please? [13:42] I see lines like this one [13:42] Dec 06 05:12:04 localhost.localdomain snapd[1998]: udevmon.go:119: udev enumeration error: cannot read udevadm output: signal: terminated [13:42] which make the test suite fail [13:42] cachio: can you please show systemctl cat snapd.service [13:43] zyga, https://paste.ubuntu.com/p/64hkcch6FT/ [13:43] cachio: can you tell me how those tests are being used [13:44] it seems like tests are out of sync with the running code [13:44] https://github.com/snapcore/snapd/pull/6250 [13:44] PR #6250: data: set KillMode=process for snapd [13:44] this PR introduced the check for "signal: terminated" [13:44] as well as a change to the systemd unit for snapd service [13:44] the ones on edge: I flash stable image, then I refresh to edge [13:44] and run the tests using external backend [13:44] the only way tests would pass is you always tested (whichever channel) with a matching test tree [13:45] so we need to either update snapd/core to match tetsts [13:45] or downgrade tests to match snapd/core [13:46] zyga, on edge tests I am doing that [13:47] using core from edge and using the last commit pushed to snapd-vender and used to build the core snap [13:48] and the failure you saw, was that following the process? [13:48] that you just outlined? [13:50] pstolowski: can i have your +1 on https://github.com/snapcore/snapd/pull/6269 ? :) [13:50] PR #6269: cmd, dirs, interfaces/apparmor: update distro identification to support ID="archlinux" [13:50] cachio: ? [13:51] zyga, I ran the lxd test [13:51] mborzecki: absolutely [13:51] cachio: not sure how that answers my question [13:51] cachio: were the tests and the code in sync when that failure was reported? [13:51] zyga, yes [13:51] pstolowski: ta [13:51] core from edge [13:51] cachio: can you look at the PR I referenced above please [13:51] it adds the new check [13:52] and adds a KillMode=process entry to the systemd service [13:52] right? [13:52] how can we explain that the test was present but the service was not changed? [13:54] zyga, checking logs to see traceability [13:54] cachio: my explanation is that the service is not changed because the test system was out of date with tests [13:54] would be great to figure out if that's true and if so, what needs changing [13:55] zyga, yes, got it, I am trying to see the traceability between the tests we are using and the changes included in edge [13:55] to determine if those are really on sync [13:57] mborzecki, pstolowski: I'm in bed, will skip standup [13:57] zyga: ack [13:57] my update: not feeling well, doing some simpler tasks, [13:58] ack, shall we skipp standup then and do quick one on irc? [13:58] pstolowski: we can do the regular one [13:58] ok [14:34] PR snapd#6269 closed: cmd, dirs, interfaces/apparmor: update distro identification to support ID="archlinux" [14:37] PR snapd#6270 opened: data/selinux, tests: refactor SELinux policy, add minimal tests [14:39] off to pick up the kids [14:57] hi all, my snapcraft has just upgraded to 3 and it tries to build snaps with multipass, but multipass won't work on a build server that is a VM itself - any ideas? [14:58] kravietz: if the VM is throwaway, you can use --destructive-mode [14:58] but it is destructive :) [14:58] in what sense? [14:58] is is the same as in snapcraft 2? [14:58] for now I have just reverted to the latest 2.x [15:02] jdstrand: gentle ping about https://github.com/snapcore/snapd/pull/6244 [15:02] PR #6244: release: detect too old apparmor_parser [15:07] sergiusens: Was just running snapcraft now and got surprised by how slow it is to even start [15:07] sergiusens: Looks like a regression [15:49] * cachio lunch === chihchun is now known as chihchun_afk [16:08] hi snappy people, I have this LP builder that was supposed to push a snap to the store an hour ago, but I do not see it https://launchpad.net/~microk8s-dev/+snap/microk8s-1.13 [16:08] We have already builders for 1.12, 1.11, 1.10 and latest snap tracks and they work with no issues === pstolowski is now known as pstolowski|afk [18:57] * cachio afk [22:57] jdstrand: thank you! [22:57] jdstrand: I pushed the fixes too btw [22:57] woot, that was one spicy branch to land :-) [23:20] zyga: thanks! [23:20] hehe, yes [23:21] I'm happy 2.36 got the "short" version of that branch [23:21] with 0 changes to release/apparmor.go [23:21] but I'm also happy this made it into master, it's much nicer now