/srv/irclogs.ubuntu.com/2015/09/17/#snappy.txt

sergiusenscare to do some code reviews? https://code.launchpad.net/~dholbach/snapcraft/1496392/+merge/27131902:55
sergiusenselopio, ^02:55
sergiusenselopio, and maybe this https://code.launchpad.net/~ted/snapcraft/python-pip/+merge/27095902:55
sergiusenselopio, and not sure you know how, but tedg (and I scarcely tried as well) is trying to get rid of the shebang replacement.02:56
sergiusensthat setuptools does on 'scripts'02:56
sergiusenswell, not replacement, generation (we want the env python3 magic)02:56
dholbachgood morning06:51
fgimenezgood morning07:07
elopiohello fgimenez07:23
elopiofgimenez: I haven't found any blockers. Here's what I've been doing: http://pad.ubuntu.com/snappy-testing-2015-09-1607:23
elopioI couldn't find the right data to send to package POST and config PUT. Could you please ask Chipaca when he wakes up and test those two methods?07:24
fgimenezhey elopio, ok thanks a lot, let me send you the link to the rest api doc07:25
elopioah, that would have been useful.07:25
fgimenezelopio, sorry, i didn't recall yesterday you would need it. i'll continue from here07:32
dholbachelopio, I merged your dep8 branch into https://code.launchpad.net/~dholbach/snapcraft/1496392/+merge/271319 so it can benefit from both our work - one test is still failing - this is just a headsup - I know you're busy with testing right now07:32
elopiofgimenez: well, looking at the doc I still don't fully get how the config works :p07:33
elopioI'm not sure it would have been different.07:33
elopiodholbach: hey, I saw your branch.07:33
elopioactually, branches. Thanks a lot for your help. I hope I'll be fully on snapcraft tomorrow.07:33
elopiodholbach: on my branch I also had one or two failures. This is a good time to dig on that. Thanks for merging them too.07:34
dholbachI'll add you as a branch reviewer :)07:34
dholbachah, you already are :)07:34
elopiofgimenez: your snapcraft branch will be affected by that too ^07:35
fgimenezelopio, ok thanks i'll take a look07:35
elopiouggh, I've just tried to roll back from #9 to #11 on the bbb, and it ended back on #11.07:36
elopionow it worked. I should have gone to bed like 2 minutes ago :D07:38
fgimenezelopio, go to bed anyway! i'll take care of that07:39
elopioyes, the issue seems to have disappeared after closer inspection 8-)07:42
elopioI'm leaving now. See you again soon o/07:42
dholbachgood night elopio!07:54
mvogood night elopio and thanks for the testing08:12
Chipacaelopio: fgimenez: ehlo. config works fine =)08:32
Chipacaelopio: fgimenez: but if you could elaborate your question a little bit more, i might be able to give you a more helpful answer08:33
Chipacaelopio: fgimenez: method 1 of 2 for POST to packages: POST -H "X-Allow-Unsigned: 1" http://localhost:8080/1.0/packages < /tmp/x.snap08:35
fgimenezChipaca, great thanks :) i'll try manually the put and post methods, will ping you if needed08:36
Chipacaelopio: fgimenez: method 2 of 2 for POST to packages: POST -H "Content-Type: multipart/form-data" http://localhost:8080/1.0/packages < /tmp/mime-multipart-form-data-file08:36
Chipacaelopio: fgimenez: alternative to method 2 of 2 for POST to packages: http://pastebin.ubuntu.com/12412149/08:38
Chipacaelopio: fgimenez: make yer browser do the work ;)08:38
Chipacaelopio: fgimenez: or you can have netcat listening on that port and copy the document body from the request08:38
Chipacaelopio: fgimenez: PUT to config: echo -e "config:\n ubuntu-core:\n  autopilot: false\n" | PUT http://localhost:8080/1.0/packages/ubuntu-core.ubuntu/config08:39
JamesTaitGood morning all; happy Thursday, and happy Apple Dumpling Day! 😃09:10
fgimenezChipaca, i'm getting this from the post to packages http://paste.ubuntu.com/12436434/ with the X-Allow-Unsigned: 1 header09:17
fgimenezChipaca, i've built the package from config-example in snappy-examples, let me try with another one09:18
ricmmfgimenez: could you try with an html based multi-part upload as well instead09:19
* ricmm finds it09:19
Chipacaricmm: linked him to it already09:19
ricmmoh ok09:19
* ricmm too slow09:19
ricmmhttp://paste.ubuntu.com/12436497/ anyways...09:19
fgimenezricmm, yep, i'll try that now09:19
Chipacafgimenez: just tried it here and it worked09:20
* Chipaca tries something else09:20
Chipacaso, yes it worked here09:21
Chipacalet me try with curl09:21
Chipacacurl gives me the same error as you get fgimenez09:22
Chipacaoh09:26
Chipacafgimenez: curl doesn't read post data from stdin09:26
Chipacafgimenez: try --data-binary @filename09:26
Chipacafgimenez: or @- for stdin09:27
fgimenezChipaca, ok let me check09:27
fgimenezChipaca, yes, {"result":{"created_at":"1442482081293797","may_cancel":false,"output":"go-example-webserver","resource":"/1.0/operations/09cf305f-1a0d-19ea-a98d-7e7331e1e46a","status":"succeeded","updated_at":"1442482081729617"},"status":"OK","status_code":200,"type":"sync"}09:28
Chipacasilly curl :)09:29
fgimenezChipaca, yep :)09:29
Chipacafgimenez: also this might come in handy for your testing:09:48
Chipacafgimenez: r=$( echo -e '{"action": "enable"}' | PUT http://localhost:8080/1.0/packages/hello-dbus-fwk/services   | jq -r .metadata.resource ); while ! (GET http://localhost:8080$r | jq .metadata.status | egrep 'succeeded|failed'); do echo .; sleep 1; done; GET http://localhost:8080$r | jq .09:48
Chipacafgimenez: snippet from my bash_history; adjust as needed :)09:49
fgimenezChipaca, ok thanks a lot. not only for today, it can also be adapted to the automated integration tests as well09:51
Chipacafgimenez: well.. perhaps. When the above fails during interactive testing it's not a big deal :)09:52
Chipacae.g. if the server crashes, it'll get stuck09:52
Chipacaif it's for automated testing you need to guard against that09:52
fgimenezChipaca, yes that'll be covered, i mean the way to test a put to the services resource and how to check the status after that09:56
Chipacaah. ok :)09:56
=== bigcat is now known as kengyu
atXyc0_fdisk displays 4 partitions on the RPi2 image14:39
atXyc0_but they don't add up to the total size of my sdcard, 8gb14:39
atXyc0_how do I expand mmcvlk0p4 ?14:40
sergiusensogra_, did your writable expansion virus land in 15.04?14:46
ogra_sergiusens, yes14:46
ogra_but the RPi image is still one version behind14:47
atXyc0_is there a listing of snappy packages that can be installed?15:01
dholbachhttps://code.launchpad.net/~dholbach/snapcraft/1496392/+merge/27131915:09
dholbachhttps://code.launchpad.net/~dholbach/snapcraft/1496789/+merge/27144415:09
ogra_atXyc0_, point your browser to http://webdm.local:4200/15:16
ogra_the store UI is running on the Pi15:16
elopiofgimenez: fginther wanted to talk about the jenkins launchpad plugin.15:25
elopiofgimenez: what you changed on your branch where only some branches that haven't landed yet, right?15:25
fgintherelopio, fgimenez, right. I'd just like to know what problems you ran into while setting it up15:25
fgintherso that we can determine if this can be utilized for future jenkins deployments15:25
fgimenezelopio, fginther yes, i needed to make some changes, let me check15:26
fgintherfgimenez, thanks!15:26
fgintherfgimenez, I already found a couple, including the need to add the build token MP15:26
elopiofgimenez: we have one big problem, but we can easily change it. Currently we have only one job that runs the test, not downstream jobs. So the comment that gets to launchpad is not too acurate.15:27
fgintherelopio, could you point me to an example?15:27
elopiofginther: umm, maybe? Let me try to find it.15:28
elopiofginther: and the other big problem I can see in our future is that we will have git branches.15:28
elopiofginther: https://code.launchpad.net/~chipaca/snappy/schmideload/+merge/268498/comments/67526715:30
fgimenezelopio, yes, but if we are going to split job for parallel execution we are going to have these downstream jobs anyway, what do you think?15:31
fgintherelopio, when it comes to git branches, there is likely some better support via jenkins plugins and jenkins-launchpad-plugin may no longer be necessary (but that's a bit of speculation)15:31
elopiothe $BUILD_URL issue is https://github.com/jenkinsci/docker/issues/13815:31
fgimenezelopio, if we want to have a single complete execution it seems that we need to do some tweaking with the job definition for having that info in the messages with the current code15:32
fgintherelopio, have you tried setting the public url in jenkins?15:32
fginther(it's on the main configuration page if you don't know where to look)15:33
fgintherfgimenez, were there any other setup and installation issues you encountered?15:36
elopiofgimenez: yes to all you said. :)15:38
elopiofginther: and yes, the url issue is that we need to manually save the config from the web. No way to do a clean deploy and get everything ready to go.15:39
elopiostill no big issue.15:39
elopiofginther: we got it working, which is good. If we are going to stick with it, we can do some tweaks and upstream them.15:40
elopiobut I saw some branches ready to land that were never approved.15:40
elopioare you maintaining this project?15:40
fgimenezfginther, take a look at the branch history http://bazaar.launchpad.net/~fgimenez/+junk/jenkins-launchpad-plugin/changes/130?start_revid=13015:40
elopiofgimenez: something left to test on snappy, or should I switch asap to snapcraft?15:40
asachttps://lists.ubuntu.com/archives/snappy-devel/2015-September/001041.html15:40
fgintherelopio, we're maintaining it for now, trying to get it in better shape to use it with the jenkins-as-a-service deployments15:41
fgimenezelopio, i think we are done, didn't have time to reproduce tutorials/guides, but all seems to be fine15:41
fgintherelopio, the current effort is to fix any install and compatibility issues encountered15:41
fgintherfginther, thanks for that branch15:42
fginthererrrr!15:42
fgintherfgimenez, thanks for that branch15:42
ogra_\o/15:45
fgimenezfginther, yw :) let me know if there's anything unclear, that's all the changes i needed to make it work in our deployment (which includes a separate tarmac)15:56
fgintherfgimenez, thanks again. I'll look through those changes in detail and let you know if I have any questions15:59
=== JamesTai1 is now known as JamesTait
sergiusenselopio, mind looking at https://code.launchpad.net/~sergiusens/snapcraft/clean/+merge/27148717:03
elopiosergiusens: ok.17:03
sergiusensJohn reviewed on irc with me, but I guess he left already :-)17:03
elopiosergiusens: what about adding it to the integration tests?17:04
sergiusenselopio, like for every test possible?17:07
elopiosergiusens: no, just one execution of clean.17:07
sergiusenselopio, as in, for every test run in there?17:07
sergiusenselopio, ok, I don't mind that :-)17:07
elopiosergiusens: the parts directory is not removed.17:14
elopiois that on purpose?17:14
sergiusenselopio, yes; inside parts you can also have local plugins17:15
sergiusenselopio, it's sort of a safe haven for things17:15
elopiosergiusens: what about removing it if it's empty?17:15
sergiusenselopio, so instead of removing everything I thought it be safer this way17:15
sergiusenselopio, yeah, that can be arranged17:15
elopiojust feels weird to leave behind only one empty dir.17:16
sergiusenstedg, found a small issue, which brings me to think an integration test for setup.py pypy would be good :-)17:23
sergiusenselopio, clean branch up to date18:08
atXyc0I fixed my issue18:52
atXyc0it was OSX18:52
atXyc0either dd, the userland filesystem driver, or the sdcard port on my MBP18:52
atXyc0either way, ubuntu saved ubuntu18:52
sergiusenshah, nice18:54
sergiusenselopio, https://code.launchpad.net/~sergiusens/snapcraft/pypy-config-test/+merge/27152819:10
sergiusenselopio, btw, do we have adt enabled for our snappy-dev ppas?19:10
sergiusenselopio, scratch that, here you go https://code.launchpad.net/~sergiusens/snapcraft/pypy-config-test/+merge/27152919:11
elopiosergiusens: I'm not sure how it works for ppas, don't they just run the test if they are present?19:17
elopioor mabye we need something on the recipe.19:17
sergiusenselopio, the feature is there, we just need to activate it19:18
sergiusensfor the PPA19:18
sergiusenselopio, I'll be back in a bit; I hope you get to review by then ;-)19:18
sergiusens:-)19:18
=== ahayzen_ is now known as ahayzen
elopiosergiusens: I don't get where are you using pypy in this branch.20:11
sergiusenselopio, the pyyaml dep goes t pypy to fetch it20:14
sergiusensoh20:14
elopiosergiusens: to pypi?20:14
sergiusenselopio, yeah :-P20:14
* sergiusens renames20:14
elopioI felt stupid looking at the config code trying to understand that part :D20:15
elopiosergiusens: maybe you can use the yaml summary and description to explain what's the purpose of the package.20:16
elopioor a comment in jobs.pxu. Just pypi-config might not be clear enough to understand the intention.20:17
sergiusenselopio, ok done, running tests and uploading20:18
sergiusensChipaca, btw ^20:19
sergiusenselopio, btw, we won't find the same line as in the yaml; it is wrapped :-)20:20
elopiosergiusens: yeah, just check for what you expect.20:24
elopiothat's good because we check also the wrapping.20:24
elopiomaybe all the env vars are not necessary to check.20:24
tedgsergiusens: I think we might need to add something like config helpers. Map the snappy yaml into native formats, ini, xml, gsettings, etc.20:27
elopiosergiusens: + description='config for webcam-webui',20:28
elopiothat's from the other example.20:28
sergiusenselopio, yeha, but it is indeed a config for that and only that used here20:31
sergiusenstedg, I agree and I want to be smart about it and do it in wiki parts20:31
sergiusenselopio, branch pushed20:34
tedgsergiusens: I think they're gonna have to be plugins, eh?20:34
tedgsergiusens: Have to be able to override the config key in the meta directory20:35
sergiusenstedg, I think they will, yeah; which is what demotivates me20:35
sergiusenstedg, I don't want a swarm of plugins ;-)20:36
tedgsergiusens: Good luck, the goals are only to snap all the software in the world. I'm sure it's fairly consistent :-)20:36
sergiusenstedg, I can dream, can't I20:36
sergiusenstedg, the world will be written in go soon  and this will be a non issue ;-)20:37
* tedg hands sergiusens a newborn so he can't sleep and therefore dream ;-)20:37
sergiusenstedg, too late, already happened ;-)20:37
sergiusenstedg, btw, did you see my pip branch comment?20:38
tedgsergiusens: Yeah, not sure what is going on, it is odd to me that is complaining that the directory isn't in the path, and it is.20:39
sergiusenstedg, this is the suspect, right? http://bazaar.launchpad.net/~ted/snapcraft/python-pip/revision/151 ?20:42
sergiusenstedg, I'll hack in an 'env' inside that self.run to see how the env looks like20:43
tedgsergiusens: I don't think so, since it would have gotten the variable anyway through the env=env part.20:43
tedgsergiusens: I think it probably broke with the setuptools branch.20:43
sergiusenstedg, hmm, but that webcam-webui is based on the setuptools branch20:44
tedgLet me check trunk.20:45
tedgIt runs in trunk but seems to have the same environment.20:52
tedgThat was just an attempt to clean things up a bit. Nothing critical.20:53
tedgI'm surprised it would have any effect.20:53
sergiusenstedg, well now there is a simpler tests run during the integration tests20:54
tedgK, werid though.20:55
sergiusenstedg, PYTHONPATH is setup correctly21:17
tedgsergiusens: Your test fails in the same way.21:27
tedgGood I guess.21:27
tedgelopio: Is there a way I can run one of the integration tests without running all of them?21:29
sergiusenstedg, it is rather complicated with plainbox; you need to create a test suite :-/21:31
* tedg deletes all the other tests21:34
sergiusenstedg, removing def env from python3.py makes it all work21:47
tedgsergiusens: Adding it to the self.run() command?21:47
sergiusenstedg, yeah, like it was before21:48
sergiusenstedg, I guess it means we have a broken env story21:48
tedgErr, that's fine to get things working. But it doesn't quite explain it. They should be identical.21:49
sergiusenstedg, well none of your changes made sense of breaking per se ;-)21:49
tedgWonder if there's some other env var that gets lots.21:49
tedglst21:49
tedglost21:49
tedgsergiusens: Are we doing the os.envir.copy() to start out?21:53
sergiusensyeah21:54
sergiusenstedg, but that alone isn't enough21:54
sergiusenstedg, the env gets setup twice and is overriden22:10
sergiusenstedg, export PYTHONPATH=/home/sergiusens/source/launchpad.net/snapcraft/integration-tests/data/pypi-config/parts/python3/install/usr/lib/python3/dist-packages22:11
sergiusensexport PYTHONPATH=/home/sergiusens/source/launchpad.net/snapcraft/integration-tests/data/pypi-config/parts/python3/install/usr/lib/python3/dist-packages22:11
sergiusenstedg, http://paste.ubuntu.com/12441978/ (simple hack)22:13
tedgsergiusens: But why would assemble_env() return different things each time?22:14
sergiusenstedg, dunno, it's a global var22:15
tedgThat's not good...22:15
tedgBoth that it's a global and returning different things.22:15
sergiusenstedg, in snapcraft.common22:15
tedgsergiusens: Okay, I'm gonna have to come back to this, need to go start dinner.22:16
tedgsergiusens: I'll get a revision up later.22:16
sergiusenstedg, sounds good22:16
sergiusenstedg, in any case, this resolves it http://paste.ubuntu.com/12442059/22:22
sergiusenstedg, ensuring the local part can override any setting done by its dependencies22:23
sergiusenstedg, but we need a better architecture for setting up the environment22:23
psanchez_problem trying snappy and docker: The command "docker build -t my-container . " gives me the following error "Error checking context is accessible: 'can't stat '.''. Please check permissions and try again."23:46
psanchez_https://bugs.launchpad.net/snappy/+bug/1412343  ... I tried building the docker image in $HOME/apps/docker but it also failed.23:47
ubottuLaunchpad bug 1412343 in Snappy "Command `docker build` is broken" [Medium,Fix released]23:47
psanchez_So, how do I get the fix?23:48
psanchez_I used "sudo snappy install docker"23:49
psanchez_Launchpad ticket 1412343 says "status: Confirmed → Fix Released" I assume the fix went into ubuntu-core, since it seems to be appmor-related. Now:23:56
sergiusenspsanchez_, have you seen the last comment https://bugs.launchpad.net/snappy/+bug/1412343/comments/523:56
ubottuLaunchpad bug 1412343 in Snappy "Command `docker build` is broken" [Medium,Fix released]23:56
psanchez_$ snappy list23:56
psanchez_Name          Date       Version   Developer23:56
psanchez_ubuntu-core   2015-09-17 5         ubuntu23:56
psanchez_docker        2015-09-17 1.6.2.003 canonical23:56
psanchez_webdm         2015-09-17 0.9       canonical23:56
psanchez_generic-amd64 2015-09-17 1.4       canonical23:56
psanchez_Yes, the laucnhpad ticket says "Fix Released," but where is it? I believe I am running the latest ubuntu-core, where I thought the fix is located.23:59

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