/srv/irclogs.ubuntu.com/2015/10/01/#snappy.txt

=== chihchun_afk is now known as chihchun
fgimenezgood morning07:09
davidcalleGood morning o/07:25
clobranomorning :)07:56
elopiofgimenez: hello. I did this: https://github.com/elopio/go-subunit/pull/707:57
elopiowhich was a little hard and confusing for me. Could you please review it with extra care?07:57
fgimenezelopio, hey, sure i'll take a look. now get some rest! :)07:59
elopioyup, bed time \o/07:59
elopiosee you later.07:59
clobranoChipaca: if you have time, I'd like to hear your opinion about a change to hw-assign08:02
guest56723is it possible to "install"  wily-preinstalled-desktop-next-amd64.tar.gz   on a spare partition?08:23
vmayoral|pcsergiusens, ricmm: can you guys look at https://bugs.launchpad.net/snapcraft/+bug/1501651. We can't go that path to generate the snaps. Any ideas?08:37
ubottuLaunchpad bug 1501651 in Snapcraft "ARM chroot issues: fatal error: rt_sigaction failure" [Undecided,New]08:37
vmayoral|pcwe'll try getting snapcraft working in a native way on the RPi2 images but that seems a hack. Let us know if you come up with something else08:38
Chipacaclobrano: i don't have time right now, but if you write it out i can read it when i do have time08:48
Chipacaclobrano: OTOH this might be mailing-list fodder08:48
clobranoChipaca: sure, no problem08:49
sergiusensvmayoral|pc, yeah, I thought you were using python and c08:49
sergiusensvmayoral|pc, qemu arm static doesn't play well with go08:49
sergiusenswe should push ogra to fix it ;-)08:49
vmayoral|pcsergiusens: i'm using python08:50
sergiusensah Chipaca already replied08:50
sergiusensvmayoral|pc, oh, I see08:50
sergiusensvmayoral|pc, so while you can't snapcraft all the way, you have reached the snap stage for everything08:50
sergiusensvmayoral|pc, you can run 'snappy build' from your host targetting the ./snap dir, it should just work (TM)08:51
Chipacaanything that tries to catch signal NSIG-1 breaks in qemu08:51
sergiusensvmayoral|pc, we will be moving 'snappy build' to 'snapcraft' as we mentioned yesterday08:51
Chipacaincluding, apparently, an unnamed threading implementation? dunno08:51
* vmayoral|pc trying out "snappy build"08:52
vmayoral|pcsergiusens: similar result with "snappy build" https://gist.github.com/vmayoral/c248de02f8cc79c5354808:53
* Chipaca afk for a while08:53
Chipacavmayoral|pc: if it's just python, why are you building it in a qemu?08:53
* Chipaca leaves with that08:53
vmayoral|pcChipaca: trying to get a .snap for the demo08:53
vmayoral|pcnot sure, but, would i be able to intall a .snap generated in x86? (even if it's just python?08:54
vmayoral|pcthat's why08:54
sergiusensvmayoral|pc, from OUTSIDE the chrrot I said ;-)08:55
sergiusensChipaca, he is using snapcraft; he needs to get the right python runtime!08:56
vmayoral|pcsergiusens: that did it, thanks08:57
sergiusens\o/08:57
sergiusens:-)08:57
=== bigcat_ is now known as bigcat
sergiusensasac, http://paste.ubuntu.com/12630697/09:03
longsleepvmayoral|pc: did you see my https://code.launchpad.net/~longsleep/snapcraft/snapcraft-debs-plugin - i use that to generate armhf snaps on x86_64 by using rebuilt debian packages - the branch is outdated now, but i will continue working on it soon09:06
dholbachsergiusens, do we have a good example for a scons project we could add to snapcraft's source?09:37
sergiusensdholbach, yeah, coming soon ;-) sabdfl is playing with it09:38
dholbachcool!09:39
JamesTaitGood morning all; happy Thursday, and happy International Coffee Day! 😃  🍵10:21
sergiusenstedg, are you up yet?10:28
zygaogra: hey11:27
zygaogra: how do you feel?11:27
zygaogra: I have a thing you could help me with11:30
zygaogra: let's say I have a raspberry pi11:30
zygaogra: and I'd like to build the image with my magic sauce inside11:31
zygaogra: I'd like to build a patched version of snappy itself (snapd)11:31
zygaogra: patched CLI11:31
zygaogra: some extra systemd units that start11:31
zygaogra: how would I go about this?11:31
zygaogra: I would really love to have a call with you and try to get to a point where I can make my own image (or iterate in some way)11:32
asacmvo: https://sigquit.wordpress.com/2009/03/13/the-core-pattern/11:39
sergiusenstedg, you around? can you get your catkin branch code polished for an MP?11:41
sergiusenstedg, would be great to use os.walk instead of 'find' or shutil.rmtree and so on and so forth11:41
sergiusenshmm, I'll create an MP and add comments11:43
sergiusenstedg, code looks good11:47
sergiusensasac, http://paste.ubuntu.com/12630697/12:14
=== chihchun is now known as chihchun_afk
tedgsergiusens: Awake :-)12:35
tedgsergiusens: Cool, I was waiting to see if you guys needed stuff from it.12:35
sergiusenstedg, \o/12:38
sergiusenstedg, I'll send an email :-)12:38
* tedg is glad to know he was missed :-)12:38
sergiusenstedg, done, two emails12:41
tedgHaha, on the Erle Spider: https://twitter.com/pierredewet/status/64954904978015846512:57
jdstrandogra2: hey, couple questions I have a feeling you might know the answer to: a) if I set a static ip address via snappy config ubuntu-core (easy enough), how do I setup the resolver? b) what is the recommended way to setup remote logging (ie, a snappy system sending to remote 514/udp)?12:58
DexterFgreetings13:02
DexterFhow "vanilla" is the Snappy Ubuntu 4.2 kernel? 4.2 has spanking new code for a certain DVB receiver I'd like to run on a Pi2, but will it be just like vanilla? are dev files like headers just like on x64, i.e., can I install build-essential and build fancy kernel modules against it like linuxtv?13:03
vmayoral|pcsergiusens: we can use your help for the camera snap13:19
sergiusensvmayoral|pc, is that also ros?13:22
vmayoral|pcno, it's not13:22
sergiusensvmayoral|pc, I'm down stairs13:23
sergiusensvmayoral|pc, want to come13:23
sergiusens?13:23
vmayoral|pcyeap, thanks13:23
=== chihchun_afk is now known as chihchun
tomconteHi everyone! Playing with snapcraft here and having strange Permission issues13:59
tomconteI suspect some kind of AppArmor problem but not sure how to troubleshoot it13:59
=== chihchun is now known as chihchun_afk
elopioplars: I need your help with the agent test script. Please ping me when you have time.14:47
plarselopio: sure, what's up?14:48
elopioplars: first, the deb that we are using needs to be updated daily to keep track of the changes in trunk.14:49
plarselopio: which deb?14:50
elopiocould we somehow install it from the ppa? Or do you have an alternative way to make sure that we always get the daily deb?14:50
elopiocurrently it is just a hardcoded link.14:50
elopioplars: http://people.ubuntu.com/~elopio/spi_scripts/snappy-tests-job.sh14:50
elopiohttps://code.launchpad.net/~snappy-dev/+archive/ubuntu/tools-proposed/+files/snappy-tests-job_1.0.0ubuntu1-0%7E64%2B201510010310%7Eubuntu15.10.1_amd64.deb14:51
plarselopio: why died this need to be a deb? This would potentially destabilize the host for that test device14:52
plarselopio: couldn't this be an artifact that gets downloaded and runs binaries from a local extracted path?14:52
elopioplars: the alternative was to set up the GOPATH in the agent and get it from trunk. But you didn't like it that way, so we went for the deb.14:52
elopioplars: it is an artifact that gets downloaded and runs binaries. The problem is that the artifact changes the path every day.14:53
plarselopio: I installed all the go dependencies you asked for so that you could do that, remember?14:54
elopioyes, but then you told me to downlod, extract and run.14:55
elopioplars: if it's ok for you, I'll switch to source code and go run.14:55
plarselopio: I thought that was the plan all along, and I think you have golang and the other deps you need there to do it. You just need a script that sets the path, pulls your branch, and does the build14:56
elopiogood. I'm on it.14:57
elopioplars: second problem. If you look at the script, now I'm pushing the results summary to the json.14:57
plarselopio: let me know if you need anything from me, happy to help however I can14:58
elopiothe tests should currently fail because there's a bug. And attach the error.14:58
elopiobut they all pass, and the payload is empty.14:58
elopioI'm not sure what's going on here.14:58
plarsOne minute, let me look14:58
plarselopio: '/bin/sh: 1: ./snappy-tests-job.sh: Permission denied\n'15:00
plarselopio: it doesn't seem to be getting very far15:01
elopiooh, ok. And what should I do for it to fail instead of pass if I have that error?15:01
elopioev: ^ here's a case where I need to deactivate the test and create a new one.15:02
evelopio: noted; and huh, we seem to have slightly screwed up and never documented that15:04
evgetting that on the board15:04
plarselopio: what does your spec look like?15:05
plarselopio: I would think that the spi agent should pick up that failed run of the script, and call it a fail, unless you have it running some other command after that15:05
elopioplars: wget ...; ./script...15:05
plarsand the later command passes15:05
elopioIt's missing the chmod +x15:05
plarselopio: right, but that should exit non-015:06
plarselopio: if that's the last command in your spec, then I would think it should get called a fail, but perhaps I'm doing something that eats it15:06
plarslet me look15:06
vmayoral|pctedg: http://wiki.ros.org/cmake_modules15:08
tedgCool, I'll use that then15:08
plarselopio: ah yeah, I think the spi agent would depend on the provisioning kit to pass that exit value along, but we don't want to end abruptly15:08
evelopio: I stand corrected - we just need to generate a new PDF15:09
plarselopio: I could probably set a flag somewhere that if any command in your test_cmds list fails, we should exit non-zero, does that make sense to you?15:09
evincoming15:09
elopioev: great, thanks.15:10
vmayoral|pctedg: awesome!15:10
elopioplars: makes sense.15:10
=== vmayoral|pc is now known as vmayoral
elopiothe other problem would be how to collect that error.15:10
sergiusenstedg, also meet ahcorde15:10
tedgHowdy ahcorde !15:10
ahcordeHi tedg ;)15:11
elopioev: and I have a feature request. Not sure how to send it. When I create a new test opportunity, it gives me an id. But then I can't use that id to query for the results.15:11
sergiusensahcorde, http://paste.ubuntu.com/12632171/15:11
sergiusenstedg, so ahcorde is going to try and save you time checking if you have all the deps15:11
evelopio: all feature requests to me (or Ursinha when I'm away)15:12
sergiusenstedg, you can remove demos, spider_imu_dev from the list15:12
tedgThis is my new favorite command: find . -name package.xml -exec grep _depend {} \; | grep -v \<\!-- | cut -d \> -f 2 | cut -d \< -f 1 | sort -u15:12
tedg:-)15:12
Ursinhame15:12
sergiusensUrsinha, you!15:12
Ursinhasergiusens: happy belated birthday!15:13
elopioev: by mail?15:13
* Ursinha hugs sergiusens15:13
evelopio: is there anything more to your request than that? If we just made it so that you could use the ID returned in a test opportunity to retrieve results for just that opportunity, would that be enough, or is there more to it?15:13
* sergiusens hugs Ursinha 15:13
evelopio: generally, yes :)15:13
Ursinha\o/15:13
elopioev: that's just what I want, thanks.15:13
evgetting it on the board15:13
tedgvmayoral: ahcorde: cppunit? libcppunit?15:13
vmayoraltedg: not needed (i believe)15:14
Ursinhaelopio: email is generally a good idea, makes it harder to miss the request :)15:14
evUrsinha: hm, I wonder if elopio's request is a facet of this https://trello.com/c/EIgSVwFy/65-story-search-test-results-data15:14
elopioev: Ursinha: that seems to involve a lot more. I just need another key to be allowed when querying for results.15:16
Ursinhalet me see15:16
elopioand not urgent. I added a UUID to the image_unique_id, and I'm querying that.15:16
elopioworks ok.15:16
evI remember we discussed this with noise ages ago and had a card on such filtering15:16
evI've added https://trello.com/c/jbxyvqec/188-story-filter-test-results-by-test-opportunity-id until we can otherwise prove we don't need it15:16
vmayoralsergiusens: https://github.com/ament15:17
plarselopio: I'll have a patch up for that later after I get through some other stuff, but in the meantime, just ignore the pass/fail status and chmod +x your script and I think you'll get a lot farther :)15:21
tedgvmayoral: ahcorde: eigen? eigen-containers?15:21
elopioplars: yes, I'll add the +x and change the script to run from source.15:22
elopioI'll probably mess it up and have to ask you again to copy the error for me :)15:22
plarselopio: and great idea on the results query by test id, I think that would be useful as well - you can kind of hack around it by giving your image a unique id every time, but more options for query would always be better15:22
plarselopio: no problem, I have a much easier way of looking at the trace now15:22
elopioplars: specially now that my client that requests stuff is in python.15:23
elopioit's really easy to capture the result from the previous call.15:23
plarscool15:23
ahcordetedg: libeigen3-dev15:23
Ursinhaev: I've tagged the story accordingly, and moved to the "progress and result reporting" lane -- feel free to reorder the priority15:24
evthanks Ursinha15:25
Ursinhaev: thanks for creating the card15:26
evelopio: the latest PDF now has the instructions for deactivating15:31
sergiusensogra, hey, mind testing the latest snapcraft in tools-proposed with your snapcraft.yaml's?15:42
longsleepi just switched to latest snapcraft trunk to work on my plugins, seems it now requires jsonschema which i do not have yet, is trunk supposed to work?16:01
plarselopio: oh, another dirty trick you might want to consider (I find it helpful) is to save off all your output during your test script, pastebin it at the end of the job, and post the pastebin link in the results json for spi to pick up, then you can easily see a few more details16:02
elopioplars: smart smart.16:03
tedglongsleep: You'll need to grab python3-jsonschema16:03
tedglongsleep: It validates the YAML now using that16:03
elopiofgimenez: you have one ExecCommand in the config-test that needs to be udpated for the cli branch.16:04
longsleeptedg: sure, but i thought i have the daily ppa - shouldnt it just give me the dependencies16:04
* longsleep checks apt sources16:04
tedglongsleep: I'm not sure if the PPA has moved to version 0.2 yet.16:04
tedgsergiusens: ^16:04
tedgIt was "not daily" there for a while to avoid breaking people.16:04
longsleeptedg: yes - the ppa seems to have 0.2.1 or 0.2.2 but for some reason my system has 0.1-0~135~ubuntu14.04.116:04
tedgYou should upgrade, it's better now ;-)16:05
longsleepthe ppa i use is http://ppa.launchpad.net/snappy-dev/snapcraft-daily/ubuntu16:05
sergiusenslongsleep, trunk works as long as you install what is in debian/control16:05
fgimenezelopio, ok thanks, i'll merge from trunk once it's landed16:05
sergiusenslongsleep, daily ppa is dead, ppa:snappy-dev/tools is what we use16:06
longsleepah there is indeed an update - you folks pushed that recently?16:06
sergiusenslongsleep, 0.2, a long while ago16:06
sergiusenslongsleep, 0.2.2 I just staged in the daily ppa16:06
sergiusenslongsleep, if you want the next tentative thing, use ppa:snappy-dev/tools-proposed16:06
sergiusenslongsleep, don't use http://ppa.launchpad.net/snappy-dev/snapcraft-daily/ubuntu16:07
longsleepsergiusens: ah ok thanks - i will remove the daily and add the proposed then. I got the spappy-dev/tools ppa already.16:07
elopiofgimenez: do you have any idea why the prints of my python script in jenkins appear only when the script finishes?16:08
sergiusenslongsleep, hmm, if you have /tools you should of at least gotten 0.2.116:08
longsleepsergiusens: yeah, seems like have not updated for a while16:09
longsleepi get python3-jsonschema now when doing an upgrade so i think i am good thanks16:09
fgimenezelopio, nope, didn't notice that, i thought it was due to the connection with spi16:09
elopiofgimenez: no, it should print: results not found, trying again...16:10
elopiothere's a plugin for python scripts in the build which might do it better.16:10
longsleepsergiusens: another question, do you have plans to make it possible for snapcraft to use local plugins?16:11
sergiusenslongsleep, it already can16:14
sergiusenslongsleep, just x- it16:14
longsleepsergiusens: oh thats great16:14
sergiusenslongsleep, there's a test inside integration_tests, which implements a nothing plugin16:15
longsleepsergiusens: found it - that is local to a snap though. What if i need the same plugin for multiple snaps?16:19
sergiusenslongsleep, ah, upstream submission16:20
sergiusenslongsleep, are you asking about the deb one?16:20
longsleepsergiusens: yes that one16:20
sergiusenslongsleep, else I need to still work on some path overriding bug/task still open somewhere16:21
longsleepsergiusens: i will sync it to the latest tree16:21
sergiusenslongsleep, sounds good, also if you can, unit tests and / or integration tests16:21
longsleepsergiusens: Yeah sure, it worked well for me so far - i am building 20 snaps or so with it.16:22
fgimeneznice evening all o/16:22
tedgvmayoral:16:23
tedgvmayoral: Looking at catkin_make vs. catkin_make_isolated16:23
tedgvmayoral: It seems I have to use isolated because of orocos?16:23
longsleepMhm seems like snapcraft needs meta-data now in snapcraft.yaml16:26
vmayoralyes16:26
* longsleep has some snaps to upgrade16:26
vmayoraltedg: yes16:26
tedgvmayoral: Is there a reason I wouldn't want to use isolated all the time?16:28
vmayoralwe use isolated all the time16:30
vmayoraltedg: i can't come up with a reason not to use it16:30
tedgK16:32
tedgI will too :-)16:32
elopioplars: this time the run took more than 15 minutes, but I still get no result_payload.16:51
plarselopio: looking16:52
plarselopio: https://pastebin.canonical.com/140981/ sorry for the poor formatting, I just get the full string out in a log16:54
plarselopio: from a quick glance, it looks like it might want hg installed?16:55
* plars wonders who uses hg still16:55
elopioplars: yes. code.google.com. Can you please install it?16:55
plarselopio: will do16:55
elopioI will make the script smarter so it doesn't fail if summary is not there. And send this to pastebin.16:56
plarselopio: and I'll add it to the extra packages to get installed in the environment too16:56
elopioplars: you have pastebinit installed, right?16:56
plarselopio: yes16:57
plarselopio: the bbb ones have mercurial now at least17:08
plarselopio: you aren't doing anything on rpi at the moment right? There's something wrong with that one that I'm trying to sort out, possibly a bad usb stick again17:08
elopioplars: no rpi yet.17:13
longsleepwhats the latest syntax in snap yaml? architecture or architectures?17:23
tedglongsleep: architectures, and it's an array of architectures18:55
DexterFheya20:15
DexterFput 15.04 on a pi2. so.. does core have the same packages as standard ubuntu? can I just snappy install build-essential and compile fancy kernel modules?20:16
DexterFhmm, obviously not20:16
=== retrack is now known as Guest70088
=== retrack is now known as Guest83203
elopioplars: is the CWD on the agent is new every time I run it?23:31

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