/srv/irclogs.ubuntu.com/2015/12/23/#snappy.txt

=== shadeslayer_ is now known as shadeslayer
=== beowulf is now known as Guest75286
kyrofaGood morning everyone12:55
kyrofashuduo_, I'd like to discuss your ROS problems today if you're around12:57
asacutlemming: do you have all-snap builds already for gce?13:05
asachmm... latest ubuntu-core all-snap breaks my etherpad :(14:08
asacgood news is rollback ubuntu-core resurrected it14:08
asachmm. who broke stuff?14:09
* asac updates again14:10
asacjdstrand: tyhicks: ok latest core bails my ethpad because it restricts syscall=49 which seem to not have caused issues before14:12
* asac reboots and tries to find where the security pol info now lives14:14
asachmm. what was the script againthat spits out syscall names?14:16
asackyrofa: snapcraft generated something odd for caps for me: http://paste.ubuntu.com/14164111/14:26
asacany idea?14:26
asacmy input was not having caps as a list item:14:26
kyrofaasac, eww14:26
asaccat snapcraft.yaml  | pastebinit14:26
asachttp://paste.ubuntu.com/14164118/14:26
asacanything that strikes you?14:27
kyrofaHmmmmm14:27
asacwow :)14:27
asacinterestingly this worked though14:27
asacit gave my pad the network-servbices permission14:27
kyrofaWait, what?14:27
kyrofaHahaha14:27
asacand now the node process does not go defunct with bind syscall bailing anymore14:27
asacweird14:27
asaclet me double check14:28
asacthat i am on the ubuntu-core that has that problem with that that caps entry14:28
asackyrofa: do you see in code whats going on with the caps transform?14:28
kyrofaThere's got to be a bug here. Two I'd say, if that actually runs :P14:28
asacyeah14:29
asac:)14:29
kyrofaasac, I'm looking now14:29
asaclet me commit this so you can run it yoursel;f14:29
asacgive me one sec14:29
asacso confirmed that without that odd caps it bails on bind14:30
asacnow adding it again and committing14:30
kyrofaasac, which snapcraft are you using?14:31
asackyrofa: master HEAD ... https://github.com/asac/etherpad-lite/tree/snap-support14:34
asacget that branch, cd bin/snappy14:34
asacrun snapcraft snap14:34
asacfrom master HEAD14:34
kyrofaAlright, let me play with it for a minute14:35
asachttps://github.com/asac/etherpad-lite/tree/snap-support/bin/snappy14:35
asacalso works with 1.x14:35
asacwhich is coolie :)14:35
asacbut i suspect that we never really prevented bind etc. because it stopped working on all snaps from -2 to -4 when i didnt have that caps14:36
asac(in case you care about ubuntu-core runtime as well)14:36
asacok stepping out for 5 min14:36
asacbbiab14:36
asackyrofa: oh one more thing... i rfind it odd that we dont run "snap" as default on master... it just bails if i dont pass any target14:37
asacanyway... bbi514:37
kyrofaasac, yeah it surprised me as well14:37
kyrofaasac, we'll pass that by sergio when he gets back, see how he feels about a default target again14:38
asackyrofa: i get the same caps syntax on 1.x14:49
kyrofaasac, alright. We were just about to release, so I'll hold off14:50
asaclets see if 15.04 also eats this fine at least14:50
kyrofaasac, and yeah, I can reproduce so I'm working on this now14:51
asackyrofa: release without sergio around or might he pop in today?14:51
asacasking bc i had two pulls i think woudl be nice to have included14:52
asachttps://github.com/ubuntu-core/snapcraft/pulls14:52
asactopmost14:52
asacnot needed for the variant above, but for my other build from outside recipe its needed14:52
kyrofaasac, I was hoping he might pop in long enough to make sure I didn't blow it to kingdom come, though that may not have happened anyway (in which case I wouldn't release, of course)14:52
asace.g. for https://github.com/asac/etherpad-lite-snap14:53
asacok... well, since i made this inline approach now the pull above could wait if it feels risky14:53
asacbut have it for 1.x and master in case14:53
asacanyway, the caps is probably more interesting :)14:54
kyrofaasac, ah okay. I'll make sure I take a look at those :)14:54
asacok so seems 15.04 also eats the - caps14:54
asacODDDD14:54
asac:)14:54
kyrofaasac, yeah that's quite an impressive screwup14:54
=== shuduo_ is now known as shuduo
kyrofaasac, you should be proud14:54
shuduokyrofa, hi14:54
kyrofashuduo, hey!14:54
shuduokyrofa, let me post ROS build log14:55
kyrofashuduo, please do. If you can post the ROS code, that would be great as well14:56
shuduokyrofa, http://pastebin.com/RHbPTeWv actually i am trying to build ros example code of snapcraft I git clone from github.com14:57
kyrofashuduo, ah that makes it easy14:58
asacok filed bug for odd runtime beahviour here: https://bugs.launchpad.net/snappy/+bug/152887115:02
ubottuLaunchpad bug 1528871 in Snappy "snappy accepts "wrong?" caps syntax in package.yaml (both on 16.04 and 15.04)" [Undecided,New]15:02
asackyrofa: https://bugs.launchpad.net/snapcraft/+bug/1528873 is the other side15:03
ubottuLaunchpad bug 1528873 in Snapcraft "snapcraft produces supposely bad caps formatting in package.yaml" [Undecided,New]15:03
kyrofaasac, excellent, thank you :)15:05
kyrofashuduo, wow, probably the most helpful error ever, huh?15:05
kyrofashuduo, I'm particularly sorry that happened while you were trying to show it to someone15:06
kyrofashuduo, that error, while being insanely unhelpful, I believe indicates that you're trying to launch a binary that can't be found, so it can't be wrapped15:06
kyrofashuduo, I only know this because it happened to me just a bit ago (an error message I plan on fixing)15:07
kyrofashuduo, can you give me a link to what you're trying to build?15:07
kyrofaasac, give me a sanity check?15:08
shuduokyrofa, that's fine if you are already aware. I'm trying to build https://github.com/ubuntu-core/snapcraft/tree/master/examples/ros15:09
kyrofaasac, http://pastebin.ubuntu.com/14164908/ == good yaml?15:10
kyrofa(in python form)15:10
asackyrofa: which one?15:10
asacahh15:10
asacthougth pull etc.15:10
asackyrofa: give me a patch and i try the real snap15:11
asacbut the first looks ok now15:11
asacthe binaries list15:11
kyrofaasac, I'm not to that point just yet. To me, that paste looks good. It's handed off to yaml.write, then if I read the write that's written, it looks terrible (as you've seen)15:11
kyrofaI think yaml.write is a third-party lib15:12
asacoddd15:12
kyrofaasac, excuse me-- yaml.dump15:12
kyrofaStill investigating15:12
kyrofaasac, have you tried making your caps lists regular lists (i.e. not inline [item1, item2] but:15:13
kyrofa-item115:13
kyrofa- item2)15:13
asacso yeah i think it might be correct actually :(15:13
* asac looks again15:13
asacyeah its correct15:13
asacjust super unfortunate ordering15:14
* asac marks invalid15:14
kyrofaasac, ohhhh it IS isn't it! the hyphen caps was really throwing me15:15
asacright15:15
kyrofaBut yeah, still a valid map15:15
asaca way to guuide the yaml formatter?15:15
kyrofa /list of maps15:15
kyrofaasac, I doubt it :(15:15
asacthink we would love to see the serializer to produce name first15:15
asacand exec then15:15
asacetc.15:15
asacand caps last :)15:15
asaclol15:15
asacok neat15:15
kyrofaasac, I'll look into it though15:16
kyrofaasac, why did you look at the generated package.yaml? How often do you think devs do that?15:20
asacmany times15:21
asaccaps will be very frequent15:22
asacit hink we should investigate if we can subclass Dumper15:22
asacor something and give some sanity hints somehow15:22
asacso it looks neat15:22
asaclike you would write it15:22
asacstart with name15:22
asacexec/start:15:22
asacdescription:15:22
asacend with caps list15:22
asacmaybe we could use an event parser to remember the order for those elements that are just pass through?15:23
asaclet me file a bug that the formatting looks ugly15:23
asac:)15:23
asacbut nothing important afaics15:23
kyrofaasac, yeah if people look at that very often you're probably right. Do you mind logging a separate bug?15:23
kyrofaHaha, yeah thanks :)15:23
kyrofaYeah I agree-- I'll get back to squashing release-blocking bugs. I'll take a look at your PRs as well :)15:24
asacok filed https://bugs.launchpad.net/snapcraft/+bug/152887815:26
ubottuLaunchpad bug 1528878 in Snapcraft "snapcraft package.yaml generation could be more beautiful and more human friendly" [Undecided,New]15:26
asacoh i think the real thing is that my stuff gets transformed from map style to list style... where the name is in the name: field... maybe we could just keep same style to make things better for now15:28
asacok added comment to bug for this15:29
asacoh seems my pull request adds too long line :)15:30
kyrofaasac, thanks for working out the kinks!15:31
* asac fixes15:31
asackyrofa: i have no idea how the test stuff works. where does it find the test package.json for the node test?15:50
kyrofaasac, the nodejs plugin test?15:50
asackyrofa: yeah15:51
kyrofaasac, master branch?15:51
asacsure15:51
asacguess i dont get the mock15:53
kyrofaasac, after a quick look, there seems to be only one test that would require one, and it makes it itself (test_build_local_sources)15:53
kyrofaasac, the others just mock out the npm install15:53
asacright15:54
asachmm15:54
asaclet me think15:54
asacso i added a new option15:54
asacthat allows to point to a dir other topdir for part to have the package.json15:54
kyrofaasac, well, since npm install is essentially shelled out (using snapcraft.common.run), if one mocks snapcraft.common.run, you can verify that npm install was called correctly without actually calling it15:54
asacfguess we are not testing npm /path/to/where/package.json is right now15:55
kyrofaasac, no, since (I'm assuming) /path/to/where was always the root?15:55
asacin the past it was15:56
asacnow its allows to use a subdir of the part15:56
asacok let me try something15:56
kyrofaasac, okay, so make a new test that sets up that environment, with the subdir etc15:56
asachow do i run those tests though locally?15:56
kyrofaThen assert that the run_mock was called with the right path15:57
kyrofaasac, that's outlined in the readme, but you can run the unit tests with ./runtests.sh unit15:57
asacgit diff | pastebinit15:59
asachttp://paste.ubuntu.com/14166326/15:59
asachow about that?15:59
asacerr bad syntax15:59
asacmoment15:59
asac git diff | pastebinit16:00
asachttp://paste.ubuntu.com/14166382/16:00
asacthat oen16:00
asacok let me in the readme16:00
kyrofaSorry asac uhh... my mouse pointer disappeared :P16:08
kyrofaHaving trouble getting those links. I guess X needs a restart16:09
kyrofaasac, be back in a minute and I'll be happy to help :)16:09
asacok i think i fixed it :)16:10
asaclets see what travis thinks16:11
kyrofaBack16:13
asackyrofa: ok so i think i fixed those i have a clue about16:13
asacthose that are left i dont understand16:13
asachttps://travis-ci.org/ubuntu-core/snapcraft/builds/9854035916:14
asacoh16:14
asacone sec16:14
kyrofaasac, alright so you may have a bug here16:15
kyrofaThe npm install call happens with a working directory of the builddir16:16
kyrofaBut you seem to have modified it to pass an extra parameter which in the case of test_build_local_sources is the same as the working directory16:16
kyrofaThat may work fine, but the test will need to be updated to assert a different call on the mock16:16
kyrofa(i.e. including that extra parameter)16:16
kyrofaasac, the second failure is similar, though it seems like you're actually using subdir there. You need to change the mock assertion to make sure that extra parameter is there16:18
asacright will update test16:18
asacok let me do this after dinner etc.16:19
asacthanks for your help16:19
asacno need to hold back release16:19
kyrofaasac, no problem! And yeah, I don't think the release is happening today. Sergio hasn't gotten back to me (I don't blame him) and I found another bug :(16:21
kyrofaasac, so a) don't work too hard, and b) releases are easy. We can always make another16:22
kyrofaUgh... who ever thought that "Santa Baby" was a decent song18:01
=== devil is now known as Guest96027
=== Guest96027 is now known as devil_
=== Guest75286 is now known as beowulf
=== beowulf is now known as Guest52016
=== Guest52016 is now known as beowulf

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