[01:11] <_28Kb> i wonder why snapcraft is only available as apt and not as snap too [01:19] _28Kb: IIRC it is available as a snap too. [01:27] <_28Kb> snap find snapcraft finds nothing [01:42] for some reason it isn't in the store. Maybe it is not stable. There are snaps here: https://launchpad.net/~sergiusens/+snap/snapcraft It was announced here: https://lists.ubuntu.com/archives/snapcraft/2017-March/003711.html [01:42] Probably best to stick to using it from xenial-updates as it says here: https://snapcraft.io/create/ [01:43] <_28Kb> it's ok.. I'm trying this apt version.. result should be the same > make my own snap :) === chihchun_afk is now known as chihchun === JanC is now known as Guest52949 === JanC_ is now known as JanC [06:02] PR snapd#3144 closed: overlord,release: disable classic snap support when not possible [06:04] PR snapd#2982 closed: daemon: add desktop file location for app to the API [06:08] mvo: thanks! [06:08] mvo: I have one other PR in a bit which would be nice to get into 2.24 [06:09] morphis_: sure, happy to review [06:10] need to make snap-confine building fine on i386 on other distros [06:10] mvo: btw. does QA do any testing of snapd on debian when we do releases? [06:15] morphis_: thats up to the debian maintainers [06:15] I see [06:15] morphis_: we as a team don't do any currently, but I would love to fix that [06:15] morphis_: i.e. having a spread debian machine [06:15] right, that is what I think I will look into next as debian is the next natural target for this after Ubuntu [06:23] mvo: https://github.com/snapcore/snapd/pull/3146 [06:23] PR snapd#3146: cmd: explicitly set _GNU_SOURCE and _FILE_OFFSET_BITS for xfs support [06:24] PR snapd#3146 opened: cmd: explicitly set _GNU_SOURCE and _FILE_OFFSET_BITS for xfs support [06:28] Son_Goku: ^^ [06:34] morphis_, I've jenkins jobs running spread tests on debian sid for releases [06:35] morphis_, but it is not really useful right now since lot of tests are failing due to confinement [06:36] morphis_, it's pretty straightforward to run on debian with autopkgtest [06:37] PR snapcraft#1236 closed: snap: use the gpg tarball instead of git:// [06:37] jibel: nice! [06:38] jibel: do you have some instructions? [06:39] morphis_, yeah, I can show you the code [06:40] morphis_, school run, back in 15min and I'll show you [06:41] jibel: ok, just ping me [07:49] hi, is there a guide for setting up a caching proxy for snapstore like apt-cacher for debs? === sergiusens_ is now known as sergiusens [08:13] good morning [08:13] oops: hey, not yet but it should be doable [08:14] oops: I was pretty interested in that actually but I didn't get to try anything [08:14] oops: snapd respects proxy settings so it might be possible to build a specialized proxy that just caches snaps / assertions [08:14] * zyga looks at PRs [08:17] mvo: thank you for updating the /snap sharing PR, looking at it now [08:19] mvo: let me see if I can help with locking [08:21] morphis_, re-spread on debian, for lack of better documentation, the code to create the VM, run the tests are there http://bazaar.launchpad.net/~canonical-platform-qa/snapcore-qa-tests/trunk/files/head:/cross-distro/Debian/ [08:21] morphis_, and the job definition to deploy in Jenkins is there http://bazaar.launchpad.net/~canonical-platform-qa-jenkins/qa-jenkins-jobs/trunk/files/head:/jobs/snapcore-qa-tests/ [08:21] morphis_, basically, there is a script called create_debian to create the testbeds [08:22] morphis_, then an wrapper around autopkgtest to run the tests from git or the deb package [08:23] hi mvo we got the same errors in the latest 2.21 -> edge reexec scenario https://travis-ci.org/snapcore/spread-cron/builds/219142686 if you could take a look when you have a minute that would be great (no rush at all), this execution was triggered after the last core snap was published to edge this morning (uses that snap for the test) [08:26] jibel, morphis_: I'd love to get some debian love here: https://github.com/zyga/spread-qemu-images [08:27] fgimenez: hm, I have a look - strange [08:28] jibel: thanks! [08:28] zyga: will have a look [08:29] jibel: just a FYI, zesty needs a 2.23.6ubuntu1 upload with a tiny diff for cloud stuff, I am preparing this now. should not afffect anything else but zesty [08:32] fgimenez: aha, we have snapd FTBFS currently in the PPA, this is why the tests fail [08:35] mvo: great thank you! we can retrigger the test when snapd builds correctly, or just wait for the next core publication to edge [08:36] fgimenez: its slightly mysterious why it fails, given that it builds fine in spread (regular spread) [08:36] fgimenez: I'm still looking at this (sort of, next, some more stuff is pending right now :/) [08:37] mvo: ok thanks let me know if i can be of any help [08:58] zyga: re locking> adding it is fine with me, maybe extracting the lock code from the ns_initialize thing as a helper and put it around the /snap bind mount code? [09:00] i.e.: re [09:01] mvo: yes, I think that is desirable, I was thinking about host_support module where we have a function that initializes the host [09:01] mvo: (with a way to pass a set of functions to call) [09:01] zyga: have you started working on the other Prune test ? otherwise I can work on that [09:01] zyga: lets keep it simple for now [09:01] pedronis: yes but I didn't finish, if you can wait I could try to finish and let you review it [09:02] ok [09:02] mvo: very simple, just one varadic function that grabs the lock and processes a NULL terminated argument list of functions to call [09:02] mvo: then it doesn't have to live in one module [09:02] mvo: and it should be easy to adjust the existing code [09:02] mvo: what do you think? [09:03] zyga: that will work. I was thinking about lock_for_snap(snapname); ensure_snap_shared_mount(); unlock_for_snap(snapname); but maybe thats too simplistic [09:04] zyga: and extract the locking into that lock_for_snap() (or whatever name) [09:04] ogra_— you around? [09:04] zyga: but again, you know that part way better so feel free to adjust [09:05] mvo: let me make something quickly and share that with you [09:05] Chipaca, sure [09:05] ogra_— sorry to bother you :-) but, did you see the email about gpio pins on the rpi? [09:05] zyga: sure [09:05] zyga: thank you! [09:06] ogra_— it's a reply to an email from the prehistoric past (~january) [09:07] Chyeah, i see it ... nothing changed, we cant upgrade the gadget on the pi yet ... only edge works [09:07] ogra_— it being in edge is a change over your last email though (where you say you'll put it in edge) [09:08] right [09:08] ogra_— want to reply, or would you rather i did? [09:08] ogra@pi3:~$ snap interfaces | grep -c gpio [09:08] 27 [09:08] (on edge) [09:08] :-) cool [09:10] maybe we could use tracks as a workaround until we let gadgets upgrade? [09:10] anyway, was just worried that email would get lost in the deluge [09:11] (if your inbox is as busy as mine is todya, it's very busy) [09:11] yeah, same here but well enough structured that i dont miss mails ;) [09:12] my filters are usually quite good, but failed me on this :-) [09:12] and it's all so interesting /o\ [09:12] oh, wait ... he says debian armhf [09:12] sounds like he runs a classic debian install with snapd on it [09:13] there you wont have these interfaces indeed ... only what snapd delivers [09:13] unless they've gone and built a debian-based core + gadget? [09:13] doubt it though [09:13] yeah, highly [09:14] they would have to mix in the PPA packages to even have it booting [09:14] that would be a messy image i guess [09:20] since canonical is killing unity/convergence, does that mean ubuntu core and snappy will die too? [09:21] zyga: you have time to give the fedora packages another spin today? [09:21] nanodrone: no [09:21] why do yall have an '_' next to your names right now? [09:21] nanodrone— the opposite if anything [09:22] nanodrone: read the announcement https://insights.ubuntu.com/2017/04/05/growing-ubuntu-for-cloud-and-iot-rather-than-phone-and-convergence/ [09:22] nanodrone— snappy and ubuntu core are the IoT in “growing Ubuntu for cloud and IoT” [09:22] OH! [09:22] that's awesome. [09:22] nanodrone— :-) [09:23] what DE do you guys use? [09:23] hey Chipaca, i have this wip branch https://github.com/snapcore/snapd/compare/master...fgimenez:expect-snap?expand=1 for using the expect snap in snapd's suite and enable a bunch of tests on ubuntu-core systems, currently there are 3 failing tests http://paste.ubuntu.com/24326565/ could you please have a look when you have a moment? [09:24] fgimenez— sure! [09:24] right now i need to take a break because the washing machine just finished :-) [09:24] Chipaca: thx np! :) [09:24] morphis_: yes [09:24] zyga: thanks [09:24] nanodrone— I use unity 7. I have a couple of fallbacks (I'd have to dig into backups to find my xmonad config, but it's there), but I'm really used to the super+N for switching :-) [09:25] what super+N switching !! [09:25] nanodrone— "windows key" + a number, to switch to that number app? [09:25] the windows key is called "super" [09:25] (because of the space cadet keyboard) [09:25] no i know that but is it on unity? [09:26] nanodrone— if you're in unity 7 now, press and hold super [09:26] i switched to ubuntu-gnome-desktop like yesterday. [09:26] hah [09:27] it does have an extension that lets you switch like that. between windows and workspaces. [09:27] nanodrone— you dock the apps on the launcher, and then super+ switches to that app [09:27] fgimenez: where is the script that does the auto-importing/creating for the vendor branch? [09:27] anyway. that washing crumpling as i sit here and chat [09:27] * Chipaca runs [09:28] i'm gonna miss the unity touch handles :( :( [09:28] PR snapcraft#1237 opened: repo: enable elementary [09:31] mvo: it's this spread task https://github.com/snapcore/spread-cron/blob/snapd-vendor-sync/target/tasks/snapd-vendor-sync/task.yaml it is executed by spread-cron after every merge to snapd's master + green build [09:31] fgimenez: it looks like for some reason the makefile in data/systemd is missing [09:32] fgimenez: and I know why [09:32] fgimenez: I will let you know, thanks for the file [09:34] mvo: np, thank you, plz ping me if the sync task needs any tweaking [09:34] fgimenez: PR is on the way, its our silly .gitignore it seems [09:35] PR snapd#3147 opened: git: ignore only the cmd/Makefile{,.in} [09:39] fgimenez: -^ [09:46] PR snapcraft#1233 closed: docs: update contribution guide [09:48] “cannot open mount namespace of the init process: Permission denied” [09:48] zyga— does that mean anything in any language I may speak? :-) [09:49] Chipaca: it says that you ran into the kernel bug and we are running reassociate fix somehow [09:49] Chipaca: I think this got disabled, maybe the branch is still unmerged [09:49] Chipaca: looking [09:49] fgimenez— how is the expect snap getting installed? I don't remember if it's classic or devmode or what [09:51] Chipaca: it's installed with --devmode in the tests, this is the snapcraft.yaml file http://bazaar.launchpad.net/~snappy-dev/snappy-hub/expect/view/head:/snapcraft.yaml [09:51] mvo: can you fetch my remote and look at the locking brnach please [09:51] Chipaca: it's merged [09:51] Chipaca: so if you see that this is old snap-confine [09:51] zyga— how old? [09:51] Chipaca: aha, and we maaaay be just affected by lack of run-from-core on snap-confine [09:51] zyga— fgimenez is getting it a lot in http://paste.ubuntu.com/24326565/ [09:51] Chipaca: current :/ [09:51] * zyga looks [09:52] when using expect form a snap to run things from other snaps [09:53] Chipaca: I think we're lucky actually, it seems that 2.23.6 did not have any re-associate code ye [09:53] Chipaca: aaah [09:53] Chipaca: yes [09:53] Chipaca: that will happen then [09:54] Chipaca: that's what I was fixing but then we ran into kernel woes [09:54] Chipaca: you need to put that on hold until we get a new kernel in 6 weeks [09:54] fgimenez— ^ :-/ [09:54] mvo: have a look [09:54] mvo: if you agree with the direction I can work on the TODOs and propose this [09:55] zyga: where should I look? [09:55] mvo: in my remote, in the 'locking' branch please [09:55] mvo: or here https://github.com/snapcore/snapd/compare/master...zyga:locking?expand=1 [09:55] Chipaca: zyga ok thanks a lot, will wait then, i was getting also a kernel dump on syslog but it is not showing up anymore [09:55] zyga: ta [09:55] mvo: have a look at snap-confine.c changes [09:56] fgimenez— sad panda [09:56] Chipaca: me too :/ [09:59] Chipaca: np :) i'm realizing now that tests/main/completion, which was also failing, is calling "snap create-key", which gets stuck on ubuntu-core systems, i'll skip it too and wait for the new kernel to be out [10:00] zyga: I'm too simple for this, it looks nice and yet I would still prefer sc_lock(), sc_unlock() over this. sorry, maybe someone who enjoys C more should have a look and give feedback [10:00] mvo: if you do that you need to pass state to unlock [10:00] mvo: it's harder [10:00] mvo: why do you want that? [10:01] zyga: the state would be the lock_fd? [10:01] mvo: yes [10:02] zyga: I want it mostly because it feels simpler and I like simple. but again, I may just be the wrong person for this [10:02] mvo: you also have the "scope" which lets us use one function for everything [10:03] mvo: whatever we do, I'll -1 the share code without locking [10:03] zyga: sure, I understand that. but sc_lock(); sc_initialize_ns_groups();sc_unlock(); also is in a single scope and feels simpler. [10:03] mvo: so feel free to modify this or suggest changes [10:04] zyga: sure, thats totally fine [10:04] zyga: I will ponder a bit over the locking [10:04] mvo: locking is two-fold [10:04] mvo: we have gobal locking [10:04] mvo: and per-snap locking [10:04] zyga: yes, for this we need the global lock, right? [10:04] mvo: yes [10:04] zyga: and do we have global locks already? [10:04] mvo: though the way I coded it it is holding the global lock longer, I think I could release it separately [10:05] mvo: only the one in namespace initialization code [10:05] mvo: if we carry on with my proposal all those locks get removed [10:05] zyga: ok, so that would have to be extracted into a helper? [10:06] mvo: hmm? no [10:06] mvo: the helper is the new function [10:06] mvo: everything else just gets simplified, remove all the other locks [10:07] mvo: I pushed a small simplification so that locking is clearer [10:07] mvo: I can show you what I mean [10:08] mvo: e.g. on the sc_initialize_ns_groups [10:08] mvo: do you want that? [10:08] zyga: one question first - is it always acquiring a global lock? [10:08] mvo: yes [10:09] zyga: hm, I think I need to read this carefully then, I think I don't understand it [10:09] mvo: with global_lock(): do_global_init; with snap_lock(snap_name): do_snap_init(snap_name); [10:09] mvo: note that this is true both now (as is) and with this proposal [10:10] mvo: we always grab the global lock to unshare /run/snapd/ns [10:10] mvo: that python-ish example missed one important point [10:10] zyga: aha, so NULL in sc_call_while_locked() means global lock? [10:10] mvo: with global_lock(): \t do_global_init; \n with snap_lock(snap_name): \t do_snap_init(snap_name); [10:10] mvo: yes [10:11] mvo: (we can hold the global lock for a shorter amount of time) [10:13] zyga: thanks, I understand the code now, I'm just not liking it, again, don't get me wrong, nothing is "wrong". its just does not feel right to me, but I get back to the branch and look at it with fresh eyes in a little bit [10:14] mvo: if you want I can split the helper to lock/unlock [10:14] mvo: just ensuring it is used correctly gets slightly harder [10:14] mvo: but I can quickly do that if you prefer [10:15] zyga: for my PR I would love to have that, yes. there could be a followup that uses the context manager and people who enjoy C more could then weight in and give their opinion [10:22] PR snapd#3148 opened: errtracker: never send errtracker reports when running under SNAPPY_TESTING [10:24] mvo: look again please [10:25] mvo: I can now look at removing the redundant locking [10:25] mvo: I should also port the sanity timer code to locking.[ch] [10:25] mvo: so that we never hang while holding the lock [10:26] mvo: er, not holdin, trying to grab it [10:26] fg [10:28] zyga: can you approve https://github.com/snapcore/snapd/pull/3146 too? [10:28] PR snapd#3146: cmd: explicitly set _GNU_SOURCE and _FILE_OFFSET_BITS for xfs support [10:29] morphis_: done [10:29] zyga: thanks [10:29] PR snapd#3146 closed: cmd: explicitly set _GNU_SOURCE and _FILE_OFFSET_BITS for xfs support [10:30] o/ [10:30] has anyone got any pointers for snapping Qt guis? [10:30] I get seg faults in strict and no fonts in classic [10:37] mvo: any feedback? [10:37] joedborg: nope, sorry :/ [10:40] zyga: let me check [10:41] Chipaca, https://extensions.gnome.org/extension/413/dash-hotkeys/ [10:41] I think it's this bug https://bugs.launchpad.net/snappy/+bug/1621568 [10:41] Bug #1621568: Unable to access system fonts [10:43] zyga: yes, I like it, I would also remove the bits that are not needed yet (and you can reintroduce later), i.e. sc_call_while_locked() is not yet used afaict and also the typedef for sc_locked_fn. but I can also do that if you want, the lock helper is what I wanted :) [10:46] mvo: I'm on it [10:46] mvo: I'll remove locking elsewhere [10:46] zyga: thank you! [10:46] mvo: just finishing tests [10:48] nanodrone— hope springs eternal, etc [10:49] so... for this branch, I need the changes in the branch to be "inside" the core [10:49] currently running tests with --debug, and bind-mounting inside there, works [10:49] no idea what you mean Chipaca [10:50] nanodrone— the two sentences after 'hope springs eternal' weren't about unity vs gnome :-) [10:50] nanodrone— if your question is about 'hope springs eternal', https://en.wikipedia.org/wiki/Hope_Springs_Eternal [10:50] thanks [10:50] np [10:51] as I was saying :-) [10:51] thanks for being patient with my englisch [10:51] i need to have the stuff from this branch in-core [10:51] is there already a helper for this, or do i bind-mount in prepare/umount on restore? [10:58] mvo: ok look again please [11:01] mvo: https://github.com/snapcore/snapd/pull/3149 [11:01] PR snapd#3149: cmd: make locking around namespaces explicit [11:01] PR snapd#3149 opened: cmd: make locking around namespaces explicit [11:04] Chipaca: for whom is that question? [11:04] pedronis: I can now go back to the 2nd test [11:04] Chipaca: we do build a core in our tests and stick some stuff in it [11:05] Chipaca: do you need a pointer? [11:05] I mean spread tests [11:05] zyga: this line https://github.com/snapcore/snapd/compare/master...zyga:locking?expand=1#diff-5819ab7ed3c9b218d0b74c369e621862R114 looks a bit odd, why the "void " in front? [11:05] mvo: ah, copy paste error [11:05] mvo: (that's the function definition actually) [11:05] PR snapd#3147 closed: git: ignore only the cmd/Makefile{,.in} [11:05] good catch :) [11:06] zyga: thanks [11:06] pedronis— I'll take a look [11:07] pedronis— i'm not sure they were for anybody in particular :-) [11:07] sometimes i just need to ask for the brain to kick in [11:07] zyga: I suspected that. can I also have a #define SC_LOCK_GLOBAL NULL or ideally without #define? so that I can write sc_lock(GLOBAL) instead of sc_lock(NULL) :) ? [11:08] mvo: trivial review on https://github.com/snapcore/snapd/pull/3148 [11:08] PR snapd#3148: errtracker: never send errtracker reports when running under SNAPPY_TESTING [11:08] zyga: ta [11:08] zyga: yeah, thank you! I will fix the typo [11:08] mvo: maybe a trivial function sc_lock_global() instead? [11:08] zyga: sure, works as well [11:08] mvo: I'll add one [11:09] ta [11:10] Chipaca: see update_core_snap_for_classic_reexec and setup_reflash_magic in tests/lib/prepare.sh [11:12] mvo: done [11:12] Chipaca: this could be a forum topicy I suppose, "How do we ensure we use the branch bits in spread tests" [11:12] pedronis— good idea. i'll do that. [11:13] pedronis— also i think i'll change update_core_snap_for_classic_reexec to copy all of /usr/lib/snapd, not just bits of it [11:17] http://i.imgur.com/QMMtsAt.gif === hikiko is now known as hikiko|ln [11:19] Chipaca: can I get a 2nd review on https://github.com/snapcore/snapd/pull/3135 [11:19] PR snapd#3135: interfaces/mount: add high-level Profile functions [11:20] Chipaca: gustavo already +1d it [11:24] pedronis— comme çi? https://forum.snapcraft.io/t/you-add-files-to-snapd-how-do-you-run-tests-against-them-if-theyre-needed-inside/181 [11:26] zyga, hey, do you have any PRs I should re-review? [11:26] pstolowski: I was just looking [11:26] pstolowski: give me a sec [11:27] zyga— lovely pr, good one. [11:30] Chipaca: thanks! [11:30] Chipaca: I don't get your comment there [11:30] zyga— I mean, osutil.osutil.AtomicWriteFlags(0) is about as descriptive as just '0' [11:31] zyga— maybe we want an const AtomicWriteDefault AtomicWriteFlags = 0 [11:32] zyga— hopefully that made sense despite me mangling it :-) [11:33] aaah [11:33] yes now I get it [11:33] yeah, +1, [11:33] I'll merge the branch but we can do a follow up with this [11:34] PR snapd#3135 closed: interfaces/mount: add high-level Profile functions [11:34] Chipaca, pstolowski, mvo: I could use feedback on tiny RFC branch: https://github.com/snapcore/snapd/pull/3138 [11:34] PR snapd#3138: interfaces/mount: add Change.Perform [11:35] Change.DanceForMe [11:35] zyga— you get my attention in two minute chunks, which is the time the 'prepare' stage of tests take [11:36] chunky [11:36] Chipaca: you can also +1 a structure here: https://github.com/snapcore/snapd/pull/3129 [11:36] PR snapd#3129: interfaces/mount: add InfoEntry type [11:36] Chipaca: feel free to suggest different names (those match the C code) [11:36] * zyga runs for lunch, see you at the standup [11:50] re [11:56] ah, standup is not in 5 minutes but an hour and five minutes [11:56] mvo: will you review the locking branch? [12:01] zyga: yes [12:02] great, thank you :) [12:03] * Chipaca ~> lunch [12:03] also, whee, so close to passing tests [12:13] mvo: updaed [12:13] updated* [12:13] Chipaca: yes, stuff is much greener lately :) [12:17] zyga— I was being selfish and talking about my own WIP branch [12:17] but not so selfish i'd actually have lunch [12:17] darnit [12:17] got pulled into something else as leaving [12:17] now *really* lunch [12:27] niemeyer: replied to https://github.com/snapcore/snapd/pull/3095 -- have another look please [12:27] PR snapd#3095: cmd/snap-update-ns: add C preamble for setns [12:30] fgimenez: can you re-review https://github.com/snapcore/snapd/pull/3145 please [12:30] PR snapd#3145: overlord/ifacestate: fix auto-connect during core snap transition [12:31] mvo: one more on https://github.com/snapcore/snapd/pull/3148 -- sorry, I should have noticed earlier [12:31] PR snapd#3148: errtracker: never send errtracker reports when running under SNAPPY_TESTING [12:32] zyga: i've done it already, dropped a comment about the last changes, we are loosing the network interface check with them === hikiko|ln is now known as hikiko [12:33] pstolowski: did your first branch that adds attributes to all the methods finally land? [12:33] fgimenez: loosing the check? [12:34] zyga: yes, with your changes we no longer check that the network plug of the test snap is connected after the transition [12:35] aha, let me check [12:35] :) [12:35] fgimenez: so, test-snapd-python-webserver, right? [12:36] aha [12:36] I see what you mean now [12:36] sorry :) [12:37] fgimenez: can I do it explicitly for network rather than network.*? [12:38] zyga: np! :) sure, i think ":network +test-snapd-python-webserver" should do it, wdyt? [12:40] yep, added [12:40] thanks, your initial diff confused me [12:40] and I didn't understand that both network and network-bind are tested [12:43] zyga: yep sorry, now all looks fine, thanks! [12:43] I'm still having trouble with fonts (or lack of) when snapping a Qt GUI - has anyone got any pointers? [12:44] zyga: I made a comment in snapd#3095 , not clear why it cannot use a global flag to decide about bootstrap/no boostrap [12:44] PR snapd#3095: cmd/snap-update-ns: add C preamble for setns [12:56] zyga, no, i didn't [12:56] mvo: Hello, I went thorugh the list of config.txt options which we actually change in production for RPIs. The list you exposed almost 100% matches what we had to modify actually. Except those 3 parameters - could they be added to rpi-config? sdtv_aspect config_hdmi_boost hdmi_force_hotplug [12:56] sborovkov: yes, let me add those [12:56] mvo, ^^^ these sound all sane [12:57] pstolowski: aha, I'm working on that extra test I told you about [12:57] pedronis: looking [12:58] pedronis: replied [12:59] mvo: thanks! [13:00] thanks ogra_ [13:02] zyga: we can use a build tag though [13:04] zyga, cool === bruno is now known as Guest94845 [13:20] jdstrand, a security team comment on bug 1674509 would be appreciated [13:20] Bug #1674509: Unable to find bluetooth device on RPi3 running Ubuntu Core 16 [13:22] joedborg: the first pointer usually is https://developer.ubuntu.com/en/blog/2016/11/16/snapping-qt-apps/ - basically if you're fine with Qt you get from Ubuntu archives, use after: [desktop-qt5] and stage a few packages to go with your UI [13:24] joedborg: fyi, there is a tutorial coming up on the topic next week at tutorials.ubuntu.com [13:24] hey Mirv, thanks for the heads up. I've already been through that :). I've also just tried to snap an Electron based app with exactly the same issue. I've tried adding a raft of font packages to stage-packages and copying the font dir on my box into prime, but no luck [13:25] joedborg: right, I thought you might have been there already, it was just the first guess [13:26] hmm [13:26] Mirv: yeah, no problem :) [13:27] I wonder then what's the difference for example between one of the examples and yours [13:29] Mirv: the only difference I can see is that I'm just snapping a binary that's already been compiled [13:29] joedborg: FYI I just tried the first example and the three staged packages there are enough to pull in the following font related packages: http://pastebin.ubuntu.com/24327638/ - which sound pretty much enough from packages point of view [13:29] Mirv: whereas that's bulding QML [13:30] joedborg: right, it's then probably related to that binary not understanding living inside a snap far enough. do you use desktop-qt5 part and desktop-launch to launch it? [13:31] those set a whole lot of env vars, although it's not enough if the binary is hardcoding some more [13:32] *gasp* [13:33] 2017-04-06 14:32:27 Executing qemu:ubuntu-16.04-64:tests/completion/indirect:plain (1/1)... <- passed \o/ [13:33] woooo [13:33] something must be broken! [13:33] Mirv: I don't, I just call the bin [13:33] ogra_— "plain" is the trivialest one; it means stuff is where it needs to be mostly [13:33] yeah, i was kidding indeed :) [13:33] ogra_— i know you were :-) [13:33] :) [13:34] but it also was worth mentioning :-) [13:34] yep, for that guy reading it via a google search in the logs [13:34] * ogra_ waves to that guy [13:34] niemeyer: your opinion on https://forum.snapcraft.io/t/use-python-for-the-core-snap-configure-hook/168 would be much appreciated [13:34] i expect all the file-based ones to fail still (they're running now), as i need to run those as the 'test' user for access [13:35] mvo— as opposed to his opinion elsewhere, right? [13:35] * Chipaca grins evily [13:35] joedborg: right, you'd probably want to use some launcher, either the cloud one or a custom one where you first set env vars and then launch the binary. the desktop-qt5 sets these: https://github.com/ubuntu/snapcraft-desktop-helpers/blob/master/common/desktop-exports + https://github.com/ubuntu/snapcraft-desktop-helpers/blob/master/qt/launcher-specific [13:36] zyga: this is what I played with locally: http://pastebin.ubuntu.com/24327653/ [13:36] zyga: Replied to all points in #3095 [13:36] zyga: notice it needs -tags test when running tests [13:37] mvo: Thanks, let me re-read it [13:37] Chipaca: *cough* [13:37] mvo, oh, thanks for collecting the data there (not sure why that edit didnt put it on top of the list for me in the UI( [13:39] * zyga finished eating peanuts and drinking orange juice, now back to coding [13:41] sorry for doing that during the call [13:41] once you start it's hard to stop :D [13:41] zyga: nobody noticed [13:41] you hid it very well from us [13:42] ogra_: commented [13:42] thanks ! [13:43] Mirv: thanks! is there any example of how I used these within the yaml? [13:48] Chipaca: I added some more example to the forum entry with grouping by track (but not a new hirarchy) and without the `^` [13:49] joedborg: well if you want to use the cloud part, just use the example from blog. if you want to define custom launcher, you could do something like this old example https://github.com/tjyrinki/timostestapp2/blob/master/snapcraft.yaml (see also launcher in the same dir that has a small portion of the possible env vars) [13:50] just define a launcher part you then use as a command for the app [13:55] zyga: if we can't use a build tag (too anoying) we can use a testing subpackage (bit overkill but might be easier for debian/rules) === chihchun is now known as chihchun_afk [13:56] PR snapd#3115 closed: interfaces/unity7: support unity messaging menu [13:57] mvo: replied [14:01] PR snapcraft#1237 closed: repo: enable elementary === Trevinho_ is now known as Trevinho === icey_ is now known as icey [14:13] um [14:13] all tests passed [14:13] and now what? [14:13] i've been working on this so long i forgot how to move forward now :-) [14:14] niemeyer_: \o/ thank you [14:15] mvo: hmm, we should have unique plug/slot names on core [14:15] Chipaca: take a holiday? :) [14:15] mvo: and now we seem to consume network-bind and core-support [14:15] Chipaca: shave! [14:15] mvo: those should be unique [14:15] niemeyer_: ^6 [14:15] no! no shaving for me [14:15] zyga: yeah [14:15] did that a couple of years ago. Under my beard, I (a) look like my mum, and (b) am way older than i think i am [14:16] the beard stays [14:16] mvo: I'll have the fix in a moment [14:16] mvo: just writing test, sorry I got side-tracked on that other test I was working on [14:17] zyga— https://goo.gl/photos/ceE95TpmBa7DDsEN7 [14:17] Chipaca: xmas! [14:17] zyga: no worries === daker_ is now known as daker [14:27] JamieBennett— #3150 [14:27] PR snapd#3150 opened: In-snap bash tab completion [14:28] \o/ [14:28] jdstrand— ^ tab completion; it includes changes to apparmor/template.go [14:28] jdstrand— some but not all of which i discussed with you [14:28] jdstrand— (sorry for the 'not all' :-( ) [14:28] so it is about time we finally remove the tab key from the keymap on our images, right ? [14:28] Chipaca: ok [14:29] * Chipaca *looks* at ogra_ [14:29] ogra_— yeah, map it to caps lock [14:29] ogra_— who uses that thing anyway [14:29] * ogra_ commits "reduce size of the keymap by 1 byte to save space on IoT images" [14:30] it's the small things :) [14:31] PR core#31 opened: Fix pi config and add new options [14:31] ogra_: review of -^ would be great, should be trivial [14:31] already on it :) [14:32] mvo, shouldnt we just ship gawk ? so you can use sandbox ? [14:32] PR core#24 closed: Rewrite meta/hooks/configure into python3 [14:33] ogra_: that would be the other option, yes [14:34] and of course having pushed the branch i notice bugs i thought fixed [14:34] * Chipaca pushes a little followup [14:36] ogra_: if you could do that I will update the PR, then we can just revert that again once the hook moves to golang [14:36] seeding ... [14:37] ta [14:43] mvo: I found one more bug [14:44] mvo: because plug and slot name are the same [14:44] mvo: interfaces/Repository.Connected returns wrong data [14:46] oh boy :/ [14:46] mvo: can you think about an action plan where we rename the clashing plug/slots on core [14:47] mvo: and add tests so that it doesn't happen [14:47] mvo: I suspect that we added in the core snap directly [14:47] mvo: right? [14:47] mvo: I think this is the missing validation that pstolowski found [14:48] mvo: namely this: https://github.com/snapcore/snapd/pull/2932 [14:48] PR snapd#2932: interfaces/repo: validate slot/plug names [14:48] niemeyer_: FYI ^ [14:49] zyga: Ouch [14:50] niemeyer_: I marked https://github.com/snapcore/snapd/pull/2932 as blocked [14:50] PR snapd#2932: interfaces/repo: validate slot/plug names === Guest94845 is now known as brunorf [14:59] hello everybody [15:00] I would like to expose many commands on an snap package [15:00] brunorf: you already can [15:00] Do I need to create one by one? [15:00] brunorf: if you want to explose multiple top-level commands (not prefixed by your snap name) [15:00] brunorf: you want to look at the new aliases v2 specification on the forum [15:01] ok [15:01] I will check it [15:01] I just like to have myapp.mycommands [15:01] but there are more than 50 commands [15:01] brunorf: https://forum.snapcraft.io/t/improving-the-aliases-implementation/18 [15:02] brunorf: in that case just spell them out one by one [15:02] ok [15:02] thank you very much [15:05] mvo: ok, fix is ready, pushing [15:06] zyga: nice, thank you [15:06] Lunch, biab [15:07] mvo: but we need a plan to fix this [15:08] zyga: we added the network-client to the core snap directly. another option would be to add network-bind directly to core-support [15:08] zyga: because core-support already is uniq and only used in core [15:08] zyga: then the core snap only has a single interface and that is uniq to core [15:08] mvo: can you please have a look [15:09] mvo: I think we just need to rename the plugs on core [15:09] mvo: e.g. core:network-bind core:internal-network-bind [15:09] mvo: core:core-support core:internal-core-support [15:10] mvo: anyway, please review the code at https://github.com/snapcore/snapd/pull/3145 (maybe patch-by-patcH) [15:10] PR snapd#3145: overlord/ifacestate: fix auto-connect during core snap transition [15:13] zyga: so core even without the transition has duplicated slot/plug names? is that what you are saying? [15:14] brunorf— is that a problem? [15:15] brunorf— at 50+ i'd expect you have some sort of a makefile, and you can generate the yaml from there [15:15] mvo, niemeyer_: https://forum.snapcraft.io/t/duplicate-plug-slot-names-inside-the-core-snap/184 [15:15] mvo: yes [15:15] mvo: there are separare issues here [15:16] mvo: the core transition is *not* related to duplicated plug/slot names in core [15:19] zyga: aha, ok. sorry, that confused me for a sec [15:19] mvo: tha's all right, I tried to summarize it at the forum [15:19] (on the forum?) [15:20] zyga, mvo, fgimenez: can I skip the repack step for spread somehow? seems to take ages [15:20] zyga: heh, a good question - I guess historally "on the forum" as it was a physical place. but *shrug* :) [15:20] morphis_: repack? [15:20] mvo: hehe, yes, quite curious evolution here :) [15:21] morphis_: repacking the core snap? we have something that should make it quicker by not using xz but gzip in the tests [15:21] zyga, forumwards! [15:21] ogra_: you should look at that post too [15:21] zyga, mvo: there is a repack step in spread.yaml [15:21] ogra_: it's the core snap [15:21] which generates some kind of delta of the project path [15:21] zyga, yes, read it already [15:22] zyga, but you are doing evil things like mangling snap.yaml [15:22] ogra_: I'm open to removing that mangling [15:22] ogra_: but it would introduce another hop between adding an interface and being able to do testing on it [15:22] ogra_: so that's why we have it [15:22] ogra_: but I agree it is tricky [15:22] PR core#31 closed: Fix pi config and add new options [15:24] PR snapd#3142 closed: daemon: Give the snap directories via GET /v2/system-info [15:25] morphis_: it shouldn't take too long, maybe you have large files in the project's directory? [15:25] fgimenez: right, I have some in there .. [15:25] my bad [15:26] pstolowski: 3070 is failing tests, could you have a look please? [15:26] morphis_: np :) [15:26] mvo, sure [15:27] fgimenez: typpical user error :-) [15:28] PR snapcraft#1238 opened: beta [15:29] mvo, unit/gccgo and unit/go fail, doesn't look related to changes in the PR [15:30] morphis_: yup i've hit that one more than once :) [15:30] mvo, let me merge master and see what happens [15:30] hehe [15:31] pstolowski: ta, master should be in good shape currently so fingers crossed [15:34] i was needing this the other day: https://making.pusher.com/go-tool-trace/ [15:34] mvo: I'll take a break afther the current call, ping me if you need me for anything for 2.24 [15:35] zyga: I think your branch just needs a second review. its the last critical one for 2.24 [15:36] zyga: but I will have dinner soon too [16:04] Hi. I'm using python-daemon package to daemonize a python command. I'm trying to use it as an app: in snapcraft with a daemon type of forking. When I install the snap, I see the daemon running, but the installation of the snap never finishes - it looks like it's blocked waiting for something from the daemon. What else do I need to do in my daemon? [16:09] mikeb_: aha [16:09] mikeb_: can you report that, add a trivial example if you can [16:09] mikeb_: may be an interesting interaction with snap-confine, not sure [16:10] mikeb_: open a new topic on the forum.snapcraft.io please [16:10] Sure - by report - do you mean launchpad bug or just a forum post? [16:11] mikeb_: a forum post first [16:11] mikeb_: it has better interactivity features [16:11] Will do. Thanks! [16:11] mikeb_: my quick theory is that snap-confine forks to setup the mount namspeace (just once per reboot per snap) and this confuses systemd [16:11] mikeb_: thanks [16:12] mikeb_: I'll check that out tomorrow, please add this discussion there (quote it please) [16:14] mvo: I think we will do 2.24 tomorrow [16:14] mvo: there's a few more things that we need to fix [16:14] mvo: check out gustavo's post https://forum.snapcraft.io/t/duplicate-plug-slot-names-inside-the-core-snap/184/5 [16:14] mvo: I can pick that up first thing tomorrow but I must leave now === niemeyer_ is now known as niemeyer [16:26] mvo: I'm afraid 2.24 is something for next week [16:26] mvo: These plug/slot issues need some careful investigation [16:26] mvo: I have commented in the forum and also reviewed the related PRs [16:31] PR snapd#2932 closed: interfaces/repo: validate slot/plug names [16:31] ty niemeyer [16:34] pstolowski: np, thanks for the fix! [16:34] This was sitting there for a bit too long [16:55] niemeyer, mvo: updated https://github.com/snapcore/snapd/pull/3145 [16:55] PR snapd#3145: overlord/ifacestate: fix auto-connect during core snap transition [17:35] PR snapcraft#1239 opened: catkin plugin: create completely valid environment [18:05] niemeyer, zyga thanks for this update, I will update the release page [18:13] huh [18:13] how did this ever work [18:15] jdstrand: hey, mind looking at telegram-sergiusens from edge and tell me why I can't see /usr/local/bin ? [18:16] zyga: or if you have some time? ^ [18:16] sergiusens: what release? [18:18] sergiusens: 16.04 classic? zesty? something else? [18:21] jdstrand: I am on zesty [18:21] sergiusens: ok, let me see [18:22] jdstrand: I get permission denied for anything out of that path, but other snaps have xdg-open working (which means they can access /usr/local/bin I guess) [18:24] thanks! [18:38] sergiusens: I guess you are concerned about a snapd-xdg-open scenario? [18:39] sergiusens: if I launch it, click Get Started and then click Settings and 'Telegram FAQ' it is reaching out to dbus but dying before any access is tried [18:40] sergiusens: dbus-send: /snap/telegram-sergiusens/28/lib/x86_64-linux-gnu/libdbus-1.so.3: version `LIBDBUS_PRIVATE_1.10.6' not found (required by dbus-send) [18:42] sergiusens: is there something else I should try? [18:47] PR snapcraft#1240 opened: cli: improve push output [18:51] Chipaca: ? [18:51] pedronis— ? <- ? [18:51] ah! [18:51] Chipaca: cp problems? [18:52] we were setting up the for-testing core by doing “cp /usr/lib/snapd/snap-confine squashfs-root/usr/lib/snapd” [18:52] which drops the setuid bit [18:52] Chipaca: --preserve=mode should be the default and we run as root [18:52] Chipaca: pretty sure one of my branches fixes that [18:52] mvo— heh [18:53] iirc the 3027 [18:53] mvo— fixed it in my branch too :-) (because i also changed that bit) [18:53] how did it ever work then? [18:54] the cp docs are lying? [18:54] pedronis: its only done this way in the classic prepare [18:54] ah [18:54] pedronis: the ubuntu core tests use dpkg-deb -x which preserves all the attributes [18:54] pedronis: and because we don't (yet) run snap-confine from the core snap we did not notice [18:54] so it wasn't an issue because we weren't using snap-confine from core [18:55] correct [18:57] ok, so cp docs a re a bit misleading :/ [18:57] fwiw [18:58] mvo or ogra_ (if you are still there), do you know how these images are updated? http://cdimage.ubuntu.com/ubuntu-core/16/stable/current/ I flashed the pi3 image today and it was not on the latest stable core rev [18:58] davidcalle: cdimage is handled by steve nowdays [18:59] slangasek: hey ^ [18:59] Thanks mvo [18:59] Chipaca: anyway I would go with -a as mvo branch does [18:59] -a ftw! [19:00] (what was Chipaca using?) [19:00] just --preserve=mode [19:00] which confused me [19:00] because in theory that's part of the default [19:00] as I said man cp doesn't say a lot about setuid [19:01] davidcalle, mvo: hi, which rev are we expecting here? We spin the images when I know that there's a new rev of core to update to [19:01] ah, maybe I'm reading it wrong [19:01] slangasek: I don't know, I'm just the proxy here :) [19:02] mvo: sure - has there been a new core snap published since Mar 16? [19:02] slangasek: I don't have the rev at hand (was wondering about the process mostly) but I'll come back with it :) [19:02] ok [19:02] mvo: Chipaca: I was reading the doc wrongs, what they mean is that cp --preserve === cp --preserve=mode,ownership,timestamps [19:02] I don't have any tooling here to detect that there's been a new rev of the core snap, so I'm at this point still dependent on someone giving me a heads up that one is published to stable [19:04] I know that in principle we want to build these every two weeks, but without a trigger I'm at risk of building them before the new snap is available on the channel, so.. [19:04] slangasek: yeah, makes sense [19:04] davidcalle: rev of the pi2 for stable is 1580 - is that the one you are looking for? [19:05] slangasek: there was a handoff in the process, the stable promotion is now done by JamieBennett, I guess we need to add "notify steve to build new images for cdimage" to the stable release checklist he is using :) [19:05] mvo: aha :) [19:06] slangasek: mvo: Oh, I thought they were automatically built on new revisions? [19:06] JamieBennett: no, I have no tooling to detect new revisions [19:06] JamieBennett: so for the moment, if you can let me know when there are publications to either candidate or stable, that would be a big help [19:06] slangasek: OK, maybe something to investigate for the future then. Will prod you on new versions. [19:07] thanks [19:07] I guess currently I should be spinning updates to both candidate and stable, then? [19:08] slangasek: mbo: the pi3 (fresh image from above) started on 1443, then refreshed to 1580 [19:08] slangasek: stable now, candidate when 2.24 has been validated in beta by fginther [19:08] mvo* [19:08] ok [19:08] sorry fginther meant Federico [19:08] davidcalle: correct [19:10] Since I have the pi3 booted, is there anything odd in these changes ? changes 1 and 3 are missing [19:11] https://www.irccloud.com/pastebin/e4lFhjVJ/ === foli_ is now known as foli [19:12] jdstrand: interesting, if I `snap run --shell telegram-sergiusens.telegram` I cannot ls or cd to /usr/local/bin; is that the way it is supposed to be? [19:12] (refresh of core to 1580 happened in 1 or 3, i still see it in list --all) [19:16] sergiusens: the ls is correct, the cd is not (ie, you can't ls but can cd) [19:17] sergiusens: confirmed locally. I suspect with the cd you are maybe trying to do tab completion? [19:18] sergiusens: (and by confirmed, I mean it is operating how I described, which is intentional) [19:22] jdstrand: ah, thanks for the help, that lib error is going to help me sort it out [19:24] sergiusens, for that python import issue you couldn't recreate, are you using the daily snapcraft ppa by any chance? [19:27] coreycb: no, I am using the snapcraft snap, why? The daily ppa is not meant for users, not even built daily [19:27] coreycb: that said, the snapcraft snap is almost identical to the deb [19:28] hmm, but I did build on zesty, maybe there's something to that [19:28] sergiusens, ok i'm using the 2.28+17.04 deb on zesty [19:33] niemeyer: I think 3027 is ready for a re-review - but not urgent if we need to delay 2.24 anyway [19:34] mvo: Looking [19:34] mvo, pedronis: How're doing in terms of test timing? [19:34] Are we blowing the limit regularly due to the move of unit tests in still> [19:34] ? [19:47] sergiusens, is the snapcraft snap in the store? i can give that a try. [19:50] coreycb: snap install snapcraft --edge --classic [19:50] only on edge as you can see [19:52] sergiusens, ok thanks [20:15] niemeyer: my current PRs in the end passed their tests, haven't been looking a lot about that for PRs I have been reviewing [20:18] pedronis: Ok, let me know if you see news about this please [20:35] PR snapcraft#1241 opened: help: replace dashes with underscores when printing plugins help