/srv/irclogs.ubuntu.com/2016/03/29/#snappy.txt

sergiusenspopey, I'd log them against snappy00:21
sergiusenskyrofa, so when you rebased you missed a fetch ;-)01:02
sergiusensno worries :-)01:02
sergiusenscherry-picking ftw01:03
sergiusenselopio, you around?01:56
stgraberjdstrand: lxd 2.0 rc7 is awaiting review in the store (maybe the last rc before final 2.0, one can hope :))04:59
dholbachgood morning06:42
didrocksgood morning dholbach!06:52
dholbachsalut didrocks06:53
dholbachhey davidcalle07:31
davidcalledholbach: hey o/ Good weekend?07:42
dholbachdavidcalle, yep, very much so - how was yours?07:44
davidcalledholbach: great :)07:45
davidcalledholbach: finishing my upgrade and trying to reproduce the issue with the snap07:47
dholbachok cool07:48
zygagood morning08:08
davidcalledholbach: resolved by making the launcher executable :)08:20
dholbachhaha08:20
dholbachnice one08:20
* dholbach hugs davidcalle 08:20
popeyhttps://bugs.launchpad.net/snappy/+bug/156322308:33
ubottuLaunchpad bug 1563223 in Snappy "Some standard updates break on classic, breaking snapcraft" [Undecided,New]08:33
popeydholbach: ^ this kinda blocks me using snapcraft in classic on my pi08:33
dholbachmvo, ^ have you seen anything like this before?08:34
mvodholbach: I have not seen this, no, sorry, need to debug (trying to reproduce first)08:51
=== Marin is now known as Guest38540
Guest38540Hey guys. Anybody using snappy with Beaglebone Black09:10
Guest38540??09:11
=== chihchun_afk is now known as chihchun
dholbachdavidcalle, shall we catch up in a bit?10:46
davidcalledholbach: sure, but we can do a quick one now if you want/have time10:46
dholbachyep. let's do it10:47
davidcalle+110:47
ogra_ppisati, could you take a look at bug 1561920 ... that seems to actually be a kernel issue10:51
ubottubug 1561920 in Snappy "Seccomp error on recent builds of snappy" [Critical,Confirmed] https://launchpad.net/bugs/156192010:51
ogra_ppisati, i also see permission denied errors when simply running dmesg as a normal user10:52
ogra_(probably related)10:52
ppisatiogra_: me looking10:58
ogra_thanks :)10:58
stevebiscuitwin 1211:09
stevebiscuitoops11:09
ogra_lose 3, keep 911:10
popeymvo: a dist-upgrade of the snappy classic install should be enough to reproduce it11:20
noizerHello everyone11:25
noizerJust a short question is it necessary to do first a snapcraft clean and then snapcraft snap or is it good enough to do only the snapcraft snap?11:27
ogra_apw, any idea whats holding back https://launchpad.net/ubuntu/+source/linux-raspi2/4.4.0-1005.6 ?11:41
davidcallenoizer: from my experience, it depends which changes you have made. I've found it quite useful (and faster) to clean a specific part I've changed (eg. snapcraft clean <part>;snapcraft snap)11:41
noizeroooh ok nicee11:43
noizerdavidcalle:  didn't knew that  you can clean only one part :p11:43
davidcallenoizer: discovered it this morning ;)11:44
noizerdavidcalle: heheh xD11:44
=== chihchun is now known as chihchun_afk
ogra_hrm12:05
ogra_ubuntu@localhost:~$ ls -l /etc/network/interfaces.d/12:05
ogra_total 812:05
ogra_-rw-r--r-- 1 root root 64 Mar 28 09:23 50-cloud-init.cfg12:05
ogra_-rw-r--r-- 1 root root 40 Mar 28 09:19 eth012:05
ogra_so thats why i have no more network at all then12:08
jdstrandstgraber: done12:12
popeydholbach: when using snapcraft, I have an app which has pre-requisites which need pulling and building. I can use after:, and it pulls and builds them fine, but I need to set --prefix to where the main package is being built. Is there some env var for the build dir in snapcraft, so i can install them there?12:13
zygapopey: use DESTDIR12:14
zygapopey: prefix is irrelevant12:14
zygapopey: but snapcrat will give you a DESTDIR to instal to12:14
mvopopey: thanks, I have not managed to find time yet but I put it on my list of things to look at12:14
jdstrandzyga: hey, so, a few of my PRs for the security interfaces landed, but most didn't. says there were failures witn 'integration tests', but when I click on the link to see the test result, it just spins and never shows me anything12:15
zygajdstrand: that's VPN for you, you have to be connected to see jenkins12:15
zygajdstrand: (hi btw)12:15
jdstrandah12:15
jdstrandzyga: ok, well, now I get a 404 :)12:16
jdstrandhttps://github.com/ubuntu-core/snappy/pull/72312:16
zygajdstrand: I reviewed a few of your branches, my suggestion would be to keep a few open and merge/rebase the rest so that it's easier to land them12:18
zygajdstrand: or try to not make them co-depend on each other12:18
zygajdstrand: well, jenkins ... reliable as usual12:18
popeyzyga: got an example?12:18
jdstrandzyga: they have to co-depend on each other the way all* are written12:19
zygajdstrand: yeah, I know12:19
zygajdstrand: example of ... ?12:19
jdstrandI mean, I guess I can have them all be separate and add all at the end, but that is not what you said you wanted12:19
popeyzyga: i need to install the libs so the subsequent build finds them12:19
zygajdstrand: right, I know, perhaps it'd be easier if we didn't12:19
* jdstrand redoes all the PRs12:20
zygapopey: in the sname part?12:20
zygajdstrand: hmm, perhaps ask gustavo on telegram12:20
popeyoh, these should be separate parts12:20
zygajdstrand: he said he'll look at your branches12:20
popeyoh, they are...12:20
zygajdstrand: and we can always review individual patches12:20
zygapopey: separate parts can use typical stuff, e..g. pkg-config12:20
zygapopey: I don't think snapcraft gives you a way to do cross-part directory inspection easily12:21
popeyzyga: http://paste.ubuntu.com/15551251 this is what I have so far12:21
zygabut don't quote me on that12:21
zygapopey: that looks sane, I suspect you may want to ask sergiusens how to make it work while still looking pretty12:21
popeyzyga: is there some way to specify the build dependencies in the snapcraft yaml?12:26
zygapopey: yes, sure12:26
jdstrandoh my gosh12:26
zygapopey: build-packages or something like that (on each part)12:26
* popey googles12:26
popeyta12:27
zygapopey: I don't remember, I always check the source12:27
popeyheh12:27
zygapopey: googling is not useful IMHO12:27
zygapopey: docs are old or useless12:27
jdstrandtg is saying over and over 'Error: one of the params is missing or invalid'12:27
jdstrandwhat param? /me is just trying to send a message12:27
zygajdstrand: https://github.com/ubuntu-core/snappy/pull/744 (for later)12:28
zygajdstrand: I'm iterating over feedback that gustavo left earlier today12:28
sergiusenszyga, popey jdstrand `snapcraft help plugins` (and the reason I'm doing a pseudo rtfm is because I want feedback :-) )12:34
zygasergiusens: I know about that but it's always insufficient (could have been improved since I last looked)12:35
zygasergiusens: I'd personally prefer a man page that mentions that12:35
zygasergiusens: or other well-known way to discover this12:35
popeysergiusens: thanks12:35
zygasergiusens: but I'm skewed already and I always read the source for up-to-date knowledge about each plugin12:35
popeysergiusens: is qmake on your list of plugins to make sometime?12:35
popeyor some other way I can inject a "qmake" call before "make" using the make plugin?12:36
sergiusenspopey, yeah, we will make a qmake one; but we are working on foundation stuff right now12:36
popeyno workaround for now?12:36
* zyga recalls qmake sucking for not having standardized DESTDIR12:37
sergiusenspopey, in your project dir cp cmake.py -> parts/plugins/x-qmake.py12:37
sergiusensand edit x-qmake.py to your liking (changing the cmake calls for qmake ones)12:37
jdstrandsergiusens: imho, strip feels like a weird name for that step. I understand why-- you are taking away stuff from staging, but you are also adding meta. 2 cents12:37
sergiusensand in snapcraft.yaml specify 'plugin: qmake'12:38
popeyproject dir?12:38
sergiusenspopey, your project dir == where snapcraft.yaml is12:38
popeyah12:39
jdstrandsergiusens: I think this is quite handy. I would be even more so if there was an example that used each that you then tersely explained12:41
sergiusensjdstrand, thanks for the tip; I think we can add individual topics for each of the keywords12:46
jdstrandsergiusens: you could go that way, which would be handy, or(/and?) add a 'Putting it all together' section that has a larger example and how they all relate to each other, the timing of things, etc12:47
sergiusenssounds good12:49
popeysergiusens: the nodejs plugin seems to assume the thing I want is in npm.. what if it's something that's on github? the nodejs plugin doesn't support source:  ?12:49
sergiusenspopey, it does support source12:49
=== inaddy_ is now known as inaddy
popey"no handler to manage source" is what i guet12:49
sergiusenspopey, https://github.com/ubuntu-core/snapcraft/tree/master/examples/webchat12:50
popey*get12:50
* popey looks12:50
sergiusenspopey, really?12:50
popeyah, your source is in current dir12:51
popeyI'm trying to get it to grab from github for me, I'll do your way12:51
sergiusenspopey, you can do it your way too12:52
popeywonder why it fails here12:52
sergiusenspopey, use source and "source-type: git"12:52
popeyahhh12:52
popeydoh12:52
popeyta12:52
sergiusensor use the git uri instead of https12:53
popeybuilding \o/12:53
popeythanks sergiusens12:53
popeysorry for the newb questions :)12:53
sergiusens\o/12:53
popeythis is all a new adventure for me ㋛12:53
ogra_and dont use any left padding ;)12:53
sergiusenspopey, all good, if anything feels confusing a bug report is always welcome :-)12:53
popeyholy freole, it built12:54
sergiusenspopey, making it work is the hard part ;-)12:55
sergiusenspopey, node projects use the source dir as the place to land config12:56
sergiusenspopey, shout irc was sort of sane and had a flag to tell it where to store config12:57
ogra_mvo, where do we stand with the release, it would be really helpful to finally have an all-snaps beta image at some point12:58
ogra_(o5r even alpha)12:58
jdstrandolli: fyi, bug #1562989 is fixed. upgrade to ubuntu-core-launcher 1.0.22 and ubuntu-clock-app.clock starts again12:59
ubottubug 1562989 in ubuntu-core-launcher (Ubuntu) "'aa_change_onexec failed with -1. errmsg: Permission denied'" [Critical,Fix released] https://launchpad.net/bugs/156298912:59
popeysergiusens: yeah, this is gonna be tricky I imagine.13:00
ollijdstrand, most awesome!13:00
sergiusenspopey, just patches upstream :-)13:00
sergiusenskyrofa, btw, did you see my comments, we need to sync13:01
ogra_sigh13:11
ogra_ubuntu@localhost:~$ snap find13:11
ogra_error: cannot list snaps: cannot communicate with server: Get http://localhost/2.0/snaps?sources=store: dial unix /run/snapd.socket: connect: no such file or directory13:11
ogra_aha ... a manual "sudo systemctl start ubuntu-snappy.snapd" fixes it13:13
kyrofaGood morning13:30
sergiusenskyrofa, hey!13:32
kyrofasergiusens, sorry, family is sick, just got in. You're right, looks like I was still out of date on that branch :P13:33
kyrofasergiusens, fixing now13:33
didrocksgood morning kyrofa, sergiusens :)13:38
kyrofadidrocks, good afternoon!13:38
sergiusenskyrofa, I squashed everything already; look at my comments in the PR though ;-)13:41
sergiusenskyrofa, unpacking stage-packages into a different dir than installdir taxes python again13:42
kyrofasergiusens, ah, that explains the issues I'm having rebasing :P13:42
kyrofaAlright I haven't caught up on email yet-- going to the PR now13:43
sergiusenskyrofa, and no worries, my kid has some sort of a fever as well; I had a sleepless night again; it seems he is toothing13:48
kyrofasergiusens, oh yes, that's a fun stage. The molars are the worst13:48
sergiusenskyrofa, for a minute I thought you were talking stage-packages and got all confused :-P13:49
kyrofaApparently I don't get good wifi in that room. sergiusens you're right, the unpackdir isn't going to work. So I'm going to simply make the build cleaning smarter and unpack the debs again. Not ideal, but I think it's the only way to make this work correctly14:10
sergiusenskyrofa, yeah, that's what I wanted to sync on; so yeah, all good as I was thinking about double unpack14:12
kyrofasergiusens, easy, I'll get back to you14:12
kyrofaI'm going to add a good integration test for this as well, make sure this continues to work14:13
=== kickinz1|eod is now known as kickinz1
elopiokyrofa: answering your ping from yesterday, I see no way of showing that the branch is not merged with master without making it required.14:23
kyrofaelopio, alright, thanks for getting back to me!14:24
elopiokyrofa: if we handle the merge on jenkins, we could do anything we want. But without nice buttons, just comments with the bot back and forth on the PR.14:24
sergiusensogra_, mind looking at Jian LUO's email?14:24
ogra_sergiusens, was there a new one (is my mailserver slow again ?)14:28
ogra_i answered one on wednesday14:28
sergiusensogra_, no did not see any reply from you, there is a new one from an hour or go or so14:29
ogra_https://lists.ubuntu.com/archives/snappy-devel/2016-March/001645.html14:30
ogra_just me whining though ...14:31
ogra_here is the proper answer: https://lists.ubuntu.com/archives/snappy-devel/2016-March/001642.html14:31
ogra_ricmm, mvo i filed bug 1563358 for one of you :)14:38
ubottubug 1563358 in Snappy "snappy can only handle one bootloader (if grub is installed, uboot is completely ignored)" [Undecided,New] https://launchpad.net/bugs/156335814:38
ogra_(there was also the snappy list issue that falls apart if grub is installed on uboot systems, i sadly lost the logs for that one)14:39
elopiomvo: sergiusens: following your discussion about snapcraft build... Shouldn't we move all the snappy build unittests to snapcraft?14:54
elopioWe can leave the build integration tests in snappy if snapcraft is installed in the os.14:55
sergiusenselopio, oh, certainly14:58
sergiusensit makes sense14:58
sergiusensbut what weird build unit tests are there in snappy?14:58
sergiusensis there anything worth porting over?14:58
elopiosergiusens: both have great coverage, so most tests should overlap. But I am not sure, we should compare them.15:00
sergiusenselopio, want to take care of that? Not really do the work, just see if we are missing anything and add it to our suite15:02
sergiusenserr, kyrofa or me can add it to our suite that is15:02
kyrofaYeah, that makes sense15:03
josephtsergiusens, kyrofa: would it be worthwhile for me to add support for configflags for the make plugin?15:10
kyrofajosepht, just to add to the `make` invocation?15:13
sergiusensjosepht,  I would call the entry `make-parameters`; not a fan of the generic configflags name15:15
sergiusensjosepht, and what kyrofa asked15:15
Iot_developerHi, I'm new here :)15:20
kyrofaWelcome Iot_developer15:21
Iot_developerthanks15:21
Iot_developeri'm developing IOT on BBB15:21
Iot_developerand we have some problems wiht snappy15:22
Iot_developerwe build our app as a snapp15:22
Iot_developerbut we are not able to get bonescript working15:22
ogra_doesnt that just need a working nodejs setup ?15:23
ogra_snapcraft has a plugin for nodejs iirc15:23
elopiosergiusens: sure15:24
Iot_developerwe done that15:24
Iot_developernode is working fine15:25
awesergiusens, is there a way to list the files that a specific snap has installed?15:25
Iot_developerwhen we build app with bonescript our service is dead15:25
awe( ie. the equivelent to running dpkg -L )?15:26
kyrofasergiusens, this is a separate bug I'll need to file, but cleaning the build step for python plugins doesn't work since it clears out the installdir which is written to in the pull step. Think it would work to do the pip stuff into another folder that can be copied into installdir on build?15:26
Iot_developerwhen we build snap without bonescript module everything is working fine15:26
elopiofgimenez: can we skip la media hora de la calidad today?15:27
ogra_WOAH !15:27
fgimenezelopio, sure, no problem15:27
* ogra_ just booted with "cloud-init=disabled" .... thats unbelivable fast !!!15:27
fgimenezelopio, i have a couple of prs for you to review, other than that i've been preparing the connection to practitest, it'll be ready tomorrow15:30
elopiofgimenez: I'll take a look at your profile and review them.15:30
ogra_Iot_developer, theer should be info in the logfiles telling you why that happens15:31
fgimenezelopio, thx, i've been also debugging the integration test coverage generation error, something's wrong with the current production server, it works fine in an older one15:31
sergiusensogra_, did you take care of password, ssh and all that mumbo jumbo?15:34
ogra_sergiusens, i did set it after i had a firestboot done15:34
ogra_so cloud-init still did set this up but doesnt run on subsequent boots15:35
ogra_sergiusens, the cloud-init from the weekend completely broke outr boots15:35
Iot_developerthe logfile says that ( is missing, and we don't know what to do15:36
ogra_looks like a syntax error in one of your files then15:36
Iot_developerthat is the problem, beacuse we run that program on ubuntu debian and everything works fine15:37
noizerrpi 3 installation is just installing the image on a sd card?15:46
ogra_noizer, just dd it to the card, yeah15:51
ogra_there migth still be issues and glitches, thats a very first shot15:51
noizerogra_: Thx15:52
=== shuduo-afk is now known as shuduo
elopiosergiusens: kyrofa: there is no good way to rebase the branch before merging, because the plugin uses the github API and we only have the equivalent of the green merge button.16:07
elopiowe could do it without the plugin all in bash, but it wouldn't be as nice. Anyway, it's ready if you want to try it. I can unprotect the branch now and you comment "merge this please" when you are happy.16:07
zygajdstrand: hey16:08
zygajdstrand: I think this is ready for another review https://github.com/ubuntu-core/snappy/pull/74416:09
sergiusenselopio, kyrofa but without rebasing it feels weird16:09
kyrofaAnd it doesn't really chance anything, right?16:09
kyrofachange*16:09
jdstrandack. it'll be a little bit16:12
elopiosergiusens: kyrofa:16:16
elopiosorry.16:16
elopiosergiusens: kyrofa: no, we still have to ask the author for a manual rebase.16:16
elopioand when he rebases, the tests will be triggered. So this will just slow down the merge by re-running the tests again.16:17
elopioI've asked the plugin author about adding rebase. I'll make a quick job with all manual, to see how it goes.16:18
kyrofaelopio, alright so using this can we leave the rebase requirement in place to merge with github but allow merging via jenkins in case there's something we know doesn't need a rebase?16:18
kyrofaIf we remove the requirement there's no way to know if a rebase is needed without manual work16:18
elopiokyrofa: that would work only if the github protection is not at the API level, just on the GUI. Which I doubt, but have to try.16:19
kyrofaelopio, ahh, I see16:20
kyrofaYeah I'm not sure it's worth it just yet, then16:20
elopiokyrofa: oh wait, I'm stupid. I can allow admins to ignore the required status checks.16:22
kyrofaelopio, ah! And not being up-to-date is a status check?16:23
elopiokyrofa: done. You can now click a red merge pull request button.16:23
kyrofaelopio, I don't see it-- though I'm not actually sure I'm an admin16:24
elopiokyrofa: right, you are not ^_^16:25
kyrofaBut that's exactly the kind of functionality I wanted! Good find :)16:25
elopiokyrofa: take a look now.16:25
kyrofaelopio, peeeerfect!16:25
elopioso I guess that if I make snappy-m-o admin, the jenkins plugin merge would work. Now I think it's not useful, but good to know.16:27
kyrofaelopio, yeah this is what I was hoping for :) . Thank you!16:33
AnInstanceOfMeFollowing snappy tutorial on ubuntu dev site, but just get "Issues while validating snapcraft.yaml: The 'parts' property does not match the required schema: None is not of type 'object'" when running 'snapcraft stage'.  Any idea where I'm going wrong?16:33
kyrofaAnInstanceOfMe, mind pasting your snapcraft.yaml on http://pastebin.ubuntu.com/ ?16:35
kyrofaAnInstanceOfMe, also, what version of Snapcraft are you using?16:35
AnInstanceOfMekyrofa: It's version 2.6.1 and I'm running on Ubuntu Mate 16.04 beta. The snapcraft.yaml is just the example on the Ubuntu dev site.16:37
kyrofaAnInstanceOfMe, okay, which tutorial then?16:38
AnInstanceOfMehttps://developer.ubuntu.com/en/snappy/build-apps/your-first-snap/16:38
josephtkyrofa: yes16:40
josephtsergiusens: make-parameters sounds fine to me :)16:40
kyrofajosepht, sure. And I agree, the name "configflags" makes sense for autotools and cmake, but not make.16:43
kyrofaAnInstanceOfMe, the tutorial works for me. So please paste your yaml16:44
=== kickinz1 is now known as kickinz1|eod
AnInstanceOfMekyrofa: Rebooted the machine and that issue is no more. Sorry for the bother.17:00
kyrofaAnInstanceOfMe, not a problem :)17:01
ogra_popey, your system looks really odd17:03
ogra_(snaps not removed on upgrade ... snaps that arent actually published installed etc)17:03
=== chihchunl is now known as chihchun
=== ubott2 is now known as ubottu
=== FourDollars_ is now known as FourDollars
=== attente_ is now known as attente
plarsogra_: do you know if there are known problems with the dragonboard image? I am getting an error trying to boot it:17:25
plarshttps://www.irccloud.com/pastebin/ptzM39TI/17:25
popeyogra_: it's edge17:37
=== nessita__ is now known as nessita
sergiusenselopio, what is this about ERROR: No artifacts found that match the file pattern "adt-run-output/binaries/*.deb". Configuration error?17:45
sergiusenselopio, in http://162.213.35.179:8080/job/github-snapcraft-autopkgtest-cloud/296/console17:45
sergiusensmakes adt tests fail17:45
elopiosergiusens: let me fix that17:50
sergiusenselopio, I think I made a mistake in that process as well :-/17:51
sergiusenselopio, you will see17:51
elopiosergiusens: I don't see it.17:54
elopioIt's fixed, but I'm running the job to confirm. I forgot to add the -o parameter.17:55
joc_elopio: will that make my branch pass again? :)17:56
elopiojoc_: yes, that's the same error you got on your last run.17:57
elopiohowever...17:57
elopiowe have a new one:17:57
elopioThe following packages have unmet dependencies:17:57
elopio linux-generic : Depends: linux-image-generic (= 4.4.0.16.17) but it is not going to be installed17:57
elopio                 Depends: linux-headers-generic (= 4.4.0.16.17) but 4.4.0.15.16 is to be installed17:57
joc_:/17:58
elopiolet me see how to fix that.17:58
sergiusenselopio, you don't see it; I'll share it privately17:58
elopiothat error is on the cloud image that autopkgtest uses. Not much I can do for it.18:02
elopioI suppose it needs to be refreshed, somehow.18:02
kyrofasergiusens, alright I remember the insidious problem with simply unpacking again in build(), but I think I have a rather elegant solution18:06
ogra_elopio, smells like you are enabling proposed18:07
ogra_(thats a typical out-of-sync breakage of a half migrated package)18:08
ogra_(you will see tha every now and then in -propoased, pretty normal)18:09
kyrofasergiusens, I just pushed up a new commit to my branch, which is up-to-date with yours18:10
sergiusenskyrofa, \o/18:12
kyrofasergiusens, agh, wait I broke a few tests. Hold on a sec18:13
kyrofa(just log messages)18:14
elopioogra_: not me. Maybe the image has proposed enabled. But we are just copying what they do on the distro, so everything should be failing now.18:17
ogra_elopio, well, linux-generic just migrated18:17
elopioright, just bad timing18:20
elopioit's running now.18:20
ogra_thats why i'm so critical about using -proposed ... it simply isnt reliable18:21
ogra_you will have failures every now and then18:21
elopioogra_: please help me going again through the snappy release process.18:28
elopioso, we put every day a deb build from the branch into xenial-proposed.18:28
elopiowe generate a ubuntu-core snap using proposed as the source and put it into edge.18:28
elopiowe test, test, test, and when we are happy to get it into stable, we move snappy and all it's dependencies from proposed to the archive.18:28
elopiothen we regenerate the snap without using proposed, and put it into stable.18:28
kyrofasergiusens, NOW it's all good18:28
elopiois that right or am I missing something important?18:28
ogra_elopio, we generate all kernel and os snaps on cdimage18:28
ogra_elopio, i'm still working on auto-submission to the sotre for these daily builds18:28
ogra_(just got disctracted by researching all the newly introduced cloud-init breakage today)18:29
elopioogra_: we can submit the snaps to the store on jenkins. I'm not sure if that would make your life easier.18:29
ogra_elopio, i cant tell yet how tht will look in the store, but i was hoping that we can auto-publish the auto-uploaded snaps to edge18:29
ogra_so you could roll edge images and teste them ... if they are good you can promote the snaps to the stable channel in the store18:30
ogra_elopio, well, can you watch http://cdimage.ubuntu.com/ubuntu-core/daily-preinstalled/current/ (for changed MD5SUM file or some such) and pull from there with jenkins ?18:31
ogra_as soon as there are updated snaps showing up ...18:31
elopioogra_: yes. We put a listener on that url and any changes will trigger a job.18:31
ogra_that way would indeed work too18:31
ogra_and save me from hacking snap uploading into our 12.04 cdimage server :)18:32
elopioon the job I can put a snapcraft upload command with the credentials that we are storing in vault behind the vpn.18:32
ogra_perfect18:32
elopiowhat we would be missing is the publish command, but vila told me he'll be working on that.18:32
ogra_you will need some name mapping i guess though18:32
ogra_i.e. xenial-preinstalled-core-armhf.raspi2.kernel.snap   is in reality canonical-pi2-linux18:33
elopiothat's easy. We make one job per snap, and hardcode the name change.18:34
ogra_and xenial-preinstalled-core-arm64.dragonboard.kernel.snap ... canonical-snapdragon-linux18:34
ogra_you could grab the name from inside the snap ... but i think thats overkill (the true name is in the snap.yaml indeed)18:34
elopioogra_: I wonder if snapcraft is not doing that already.18:35
kyrofaelopio, for the name of the upload?18:35
ogra_when uploading ?  not sure ... it would either need to bind-mount the snap or extract the squashfs18:35
elopioanyway, I'll get to it tonight, give it a try uploading to my account and give you the code for the job to review.18:36
ogra_i guess thats quite time and space consuming18:36
kyrofaelopio, it's parsing the in-tree yaml18:36
ogra_yeah18:36
ogra_there is no tree18:36
ogra_its a binary snap ... the tree is long gone (an didnt exist on a machine that has outside world access)18:37
kyrofaogra_, yeah snapcraft's upload is pretty tied into the build steps (e.g. if the snap doesn't exist it'll try to build it, etc)18:37
ogra_but you can upload an existing snap ?18:37
elopiokyrofa: but if the snap exists, it will just upload it. I think.18:37
elopioif not, I can write the code for that.18:38
ogra_(worst case we could loop/bind mount the snap and extract the snap.yaml from it though)18:38
ogra_(assuming jenkins can mount stuff)18:38
kyrofaelopio, indeed, but it has to be named correctly (and it still needs the in-tree yaml). If we bind-mounted it and parsed the in-snap yaml, we could add a parameter for uploading any old snap18:38
sergiusenselopio, kyrofa here's a reading one in the meantime https://github.com/ubuntu-core/snapcraft/pull/40918:38
ogra_the naming wouldnt be the prob ... but the version would18:39
ogra_so one way or the other we need to extract the snap.yaml18:39
ogra_to get that info18:39
elopiothe version is not important. The store assigns an increasing revision for each new version.18:39
ogra_the version is part of the name18:40
ogra_so to have the file named correcly you need to know the version that was used in the snap.yaml afaik18:40
sergiusensogra_, unsquashfs -l18:41
ogra_yeah, or loop mounting18:41
sergiusens`unsquashfs  squashfs-root/meta/snap.yaml` to only get yaml18:42
elopiowell, bottom line is that on jenkins can do anything. I will make a first version with the least ugly thing.18:42
elopioI think it would be nice for snapcraft upload to take an optional .snap argument.18:43
elopioand if there's no tree, unsquash.18:43
ogra_yeah, especially since you only need the snap.yaml after all18:43
kyrofaelopio, agreed, and if we get the code to get the yaml out of the snap, don't use the in-tree yaml (since it could theoretically change)18:45
ogra_sergiusens, btw, it would b nice if you could name your announcements a bit more careful in the future :)18:46
ogra_"- support for building the os snap (from a directory)."18:46
* ogra_ waits for all these people that create random busybox rootfses and throw them into the store now 18:46
ogra_(and file tons of bugs because snappy doesnt work :P )18:47
ogra_s/name/phrase/18:50
plarsogra_: so the dragonboard is known to be broken now?18:50
sergiusenskyrofa, I created a PR for easier review; added one comment18:50
ogra_plars, mine works ... why do you think that ?18:50
sergiusensogra_, oh; what happened?18:51
plarsogra_: won't boot for me - elopio said it was broken for him when he tried it last too18:51
plarsogra_: https://www.irccloud.com/pastebin/ptzM39TI/18:51
ogra_sergiusens, nothing, but "- support for building the os snap (from a directory)." soinds liek we are encouragin these rootstock users to roll their own rootfses18:51
ogra_plars, using the right kernel ?18:52
ogra_canonical-snapdragon-linux is the one you want18:52
sergiusensogra_, oh, we allow that apparently; but it will never make it into the store ;-)18:52
ogra_(we sadly cant delete old packages fromthe store)18:52
sergiusensogra_, ask beuno to do it for you18:52
plarsogra_: I'm using core rolling --kernel=canonical-dragon-linux.canonical --gadget=canonical-dragon.canonical --os=ubuntu-core.canonical --developer-mode --channel edge18:53
ogra_plars, yeah, thats the old kernel .. i told elopio last week that he needs to use the new one ;)18:53
plarsogra_: ah, ok what's the new magic? :)18:53
ogra_i guess that drowned in a lot of other conversation about the new snaps18:53
ogra_canonical-snapdragon-linux.canonical18:53
plarsogra_: I'll give it a try, thanks!18:54
ogra_as kernel18:54
elopiowe have to update zyga's script.18:54
ogra_or yu can just grab the snaps from http://cdimage.ubuntu.com/ubuntu-core/daily-preinstalled/current/18:54
ogra_(though the naming isnt matching)18:54
elopioogra_: is the gadget still canonical-dragon.canonical?18:56
ogra_yeah, that didnt change18:56
ogra_someone uploaded a 4.4 package for canonical-dragon-linux though, i wonder where that comes from18:56
elopiohttps://github.com/zyga/devtools/pull/118:56
* ogra_ really hates that we are all using the same account for uploading ... no way to figure out wwho did that upload now 18:57
ogra_anyway, off to the TV to watch germany lose vs italy18:58
sergiusenskyrofa, replied to all the comments; wrt stage-pkg you said tests were in order?19:04
sergiusensor is that not really needed19:05
sergiusens?19:05
sergiusensogra_, I've been complaining about the account issue for a while; but to be fair, we have the same problem with cdimage ;-)19:05
kyrofasergiusens, it's less magical now, I actually don't think the integration test is needed19:06
ogra_sergiusens, well, depends if you use cdimage the right way (for code changes there ar proper trees that keep your name)19:06
ogra_but yeah, it is hard to tell who tiggered an image build19:07
sergiusensogra_, true; so I bet whoever updated the gadget snap in the store did not update the bzr branch?19:07
ogra_sergiusens, which gadget snap ?19:07
sergiusensogra_, the dragonboard one, but now I see you mention a kernel snap ;-)19:08
ogra_(pi2 might by my fault, i'm holding back the branch til ppisati and i found out whats the issue with the console)19:08
ogra_yeah, dragonboard gadget hasnt changed in a while19:08
ogra_i'll do a final upload before 16.04 (with a final checkout of the dragon uboot tree) ... but didnt plan to touch it til then19:09
ogra_yay ... goal19:09
elopioogra_: change the credentials, and start sharing the snap.19:09
elopioyay!19:09
ogra_elopio, and it will then still be a .canonical one ?19:10
elopioogra_: that's what I understood.19:10
ogra_oh, neat !19:11
* ogra_ will look at that toorrow19:11
elopioI will give it a try, because now I'm not so sure it's not only for installing.19:12
elopiosergiusens: kyrofa: do you want to keep that comment by coveralls, or should I disable it?19:12
kyrofaelopio, yeah it doesn't add much since we can see it in the checks19:20
kyrofasergiusens, done on the should_step_run refactor19:22
sergiusenskyrofa, \o/19:28
sergiusenselopio, kyrofa I don't mind the email telling me everything is good though; but I won't miss it if it is gone either19:29
joc_sergiusens: i'd like to ask you about some snapcraft behaviour i've noticed recently when testing the plugin i'm trying to land for plainbox19:32
sergiusenskyrofa, you inspired me to a small refactor (but different branch)19:33
kyrofasergiusens, hahaha19:33
joc_sergiusens: i've noticed that if my part has some stage-packages the sys.path in which my manage.py script is run is different19:33
joc_sergiusens: if there are stage-packages defined sys.path seems to search for modules in parts/part-name/install/..19:35
joc_otherwise the sys.path is looking in locations in stage/..19:35
joc_sergiusens: whats the reason for this?19:36
sergiusensjoc_, I'd have to look, maybe kyrofa know right off the bat19:42
sergiusensa small snapcraft.yaml would be easier to follow19:43
joc_ok, will try and come up with something19:44
kyrofajoc_, only the python plugins touch the PYTHONPATH19:50
joc_kyrofa: none of the parts in my yaml are using python plugins19:51
joc_kyrofa: just this plugin https://github.com/jocave/snapcraft/blob/plainbox-provider-plugin/snapcraft/plugins/plainbox_provider.py19:52
joc_kyrofa: i have been printing sys.path in manage.py (called in build function) to debug some failures of that script19:53
joc_it seems to change depending on presence of stage-packages on the part19:54
attentehi, could someone explain to me the difference between /usr/bin/snap and /usr/bin/snappy?20:09
pedronisattente: /usr/bin/snap will be the main command in 16.04, /usr/bin/snappy is going away but the move isn't quite complete, they have somewhat different syntax for some things, and snap  does most things through the snappy daemon (snapd), while snappy was doing them directly20:22
attentepedronis: great, thanks for the clear explanation20:23
sergiusenselopio, mind testing this on armhf now https://github.com/ubuntu-core/snapcraft/pull/335 ?20:24
sergiusensjoc_, kyrofa it changes becase if you add stage-packages that have a hint of python in it, it will be the prefered interpreter20:25
kyrofasergiusens, how?20:26
sergiusensthe one that ends up in `stage` (or soon in `install` for the part if in the same part)20:26
sergiusenskyrofa, say you use this plugin https://github.com/jocave/snapcraft/blob/plainbox-provider-plugin/snapcraft/plugins/plainbox_provider.py20:26
sergiusenskyrofa, no stage-packages at all; that plugin will use the system plugin just fine20:27
sergiusenskyrofa, now add a stage-package that depends on python3 you end up getting `stage/usr/bin/python3`20:27
sergiusenskyrofa, I guess sys.path is dynamically set20:28
kyrofasergiusens, but what part of the code changes... ah20:28
kyrofasergiusens, because I didn't see anything in snapcraft itself that changes sys.path or PYTHONPATH to look in the stage directory20:28
sergiusenskyrofa, we change sys.path iirc but to run from source20:29
kyrofasergiusens, indeed20:29
kyrofasergiusens, and to find local plugins. That's it20:30

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