/srv/irclogs.ubuntu.com/2017/06/16/#cloud-init.txt

=== sambetts|afk is now known as sambetts
=== shardy is now known as shardy_afk
nilujethis build fails on jenkins: https://jenkins.ubuntu.com/server/job/cloud-init-ci/4/14:04
nilujebut it works locally14:04
nilujeany idea why anyone?14:04
=== shardy_afk is now known as shardy
nilujeoh, found I guess.14:14
dpb1what did you find14:15
nilujeit was working locally because I was running unittests on a scaleway instance14:17
nilujeok, should be fixed14:22
nilujejust have to wait until the build is retriggered14:22
dpb1niluje: missing a mock?  something like that?14:22
nilujeexactly14:22
dpb1k14:22
nilujeannnd that's actually not good yet, there's still mocking issues :p14:28
dpb1hehe14:29
blackboxswmorning folks14:36
blackboxswpowersj: I'm looking over the proposed changes failing https://jenkins.ubuntu.com/server/job/cloud-init-integration-proposed-x/73/console  it's related to the branch smoser landed last night14:45
blackboxswhe switched bash calls in unit test setup. trying to reproduce the issue here14:45
powersjblackboxsw: so that test uses what is in proposed, which shouldn't change unless he did another upload14:47
blackboxswhmm, ohh right, I just keyed in on the error traceback mentioning bash and made a quick assumption. right. Looking more closely14:50
nilujehttps://jenkins.ubuntu.com/server/job/cloud-init-ci/5/nodes=metal-amd64/console14:51
nilujeany idea why the permission denied here?14:51
nilujethe mock seems ok to me14:51
blackboxswniluje: looking over the changes that landed there. it feels like the unit test is leaking a call .14:52
nilujei'm wondering if it's not because the tests are run as non root14:54
nilujewhen running tox locally I have a RuntimeError: Failed running ['git', 'describe', '--match=[0-9]*'] [rc=128] (, fatal: No names found, cannot describe anything.14:55
nilujelol ok14:55
nilujegit remote add lp https://git.launchpad.net/cloud-init && git fetch lp fixes the issue :p14:55
nilujemy clone doesn't have all the tags14:55
powersjyeah have to have the tags so it can run maketarball which uses the tags to determine the version.14:56
nilujemaybe it could be optional14:56
* niluje found the error -_-15:00
blackboxswniluje: looks like you are mocking 'http://169.254.42.42/user_data/cloud-init but get_data calls just "user_data/cloud-init" is that right?15:22
nilujethat's the not the issue15:27
nilujeI'm mocking the HTTP call correctly15:28
nilujebut I'm using a requests adadpter to bind on a specific source port (required by the Scaleway API)15:28
nilujewhich requires to be root15:28
nilujeso I also need to fake the bind15:28
nilujewill be good in a second15:28
nilujeannnddd it should work now.15:34
nilujesorry for the failing builds :(15:34
blackboxswthanks for the alert & fix15:35
nilujeblackboxsw: is that you who retrigger the build?15:35
nilujeor is it automatic?15:35
nilujeretriggers*15:36
blackboxswniluje: I'll check the builder to see ( I can retrigger if you've already pushed15:36
niluje(I pushed)15:37
powersjif you push again, we check for new reviews every 15mins.15:37
nilujeoh, ok15:37
nilujeA week or two ago I tested jenkins blue ocean15:37
nilujeI see your are using jenkins-job-builder15:37
nilujeusing a Jenkinsfile + blue ocean is really a nice alternative15:38
nilujehttps://s3.amazonaws.com/img0.recordit.co/QRyeaiscAS.mp4?AWSAccessKeyId=AKIAINSRFOQXTN4DT46A&Expires=1497631105&Signature=SipNfzd6Mk1vE5DP8KjcCE1972g%3D15:38
nilujeif you want to see what it looks like :)15:38
niluje(it was just a job to discover the features of the blue ocean interface, it basically does nothing)15:39
powersjwow that is a clean interface15:40
nilujeyep15:41
powersjI do have a new merge review pipeline coming, I was hoping to have it up today, but ran into an issue with jenkins-launchpad-plugin. I'll try to resolve that Monday.15:41
powersjEssentially for every merge we will run this: https://jenkins.ubuntu.com/server/job/cloud-init-ci-nightly/15:42
nilujeand with this setup, you only need to create a job from jenkins and fill a git URL15:42
nilujecontaining the Jenkinsfile15:42
nilujeso since the job configuration is saved on git, you no longer have to use jenkins job builder :)15:42
powersjyeah that would be nice15:42
nilujecan you show me the corresponding jenkinsfile powersj ?15:43
powersjhttp://paste.ubuntu.com/24873098/15:43
blackboxswthx powers for the build kick15:43
nilujeoO15:44
nilujeis it the full jenkinsfile powersj ? or just a part of it15:44
nilujeI thought they had to start with "pipeline {"15:44
powersjThat's what I have inside the pipeline section right now. It isn't checking out from git, so I'm not sure if that affects it.15:45
nilujeok15:45
nilujeI thought the first block inside a "stage" block needed to be a "steps" block15:45
nilujehttp://blackhole.brmzkw.info/2017-06-16/Jenkinsfile <- one of my tests with jenkinsfile15:46
powersjinteresting15:47
powersjit does say "required" on the doc site15:47
nilujepowersj: the "steps" section?15:47
powersjyeah15:47
nilujeyeahh. build is passing. Thanks for your help15:47
nilujeyep, without steps I had an error15:48
nilujehonestly I'm totally blind when working with jenkins15:48
nilujethey have the worst documentation possible15:48
nilujein case you are interested (because I lost some time to search how to do it): it is possible, in a pipeline, to interactively ask for administrator input (like "do you want to approve this build? yes/no" or "can you fill this text input so I can later use the content int he build? <input value>")15:49
nilujeI have Jenkinsfiles doing that15:49
nilujeit is also possible to use the jenkins API to fill these inputs15:49
powersjthat is cool, the thing I would like to figure out is parallel steps15:50
nilujewait for it :p15:50
powersjthat way I can reduce our CI time15:50
powersjhaha15:50
nilujepowersj: http://blackhole.brmzkw.info/2017-06-16/JENKINS.md15:50
niluje(if you see errors feel free to report :))15:51
nilujei wrote this documentation for my coworkers who discover jenkin15:51
nilujes15:51
powersjnice thx!15:51
* powersj look's at proposed failures16:01
powersjblackboxsw: I am 90% certain it is due to me updating the version of pylxd on the system16:16
powersjblackboxsw: it is. we are currently playing games with the version of tox + pylxd + lxd because of some incompatibilities between the versions. The backported code does not work with the latest lxd + pylxd combo, even when running with a tox specified version of lxd.16:23
blackboxswbah16:24
powersjbecause we have two good clean runs of proposed I am going to say we are good, disable the job for now so we don't keep randomly running and failing and re-enable for the next proposed test.16:24
powersjbad timing in we had an upload to proposed + broken pylxd + major update to integration tests16:24
blackboxswpowersj: I was wondering  if this is also impacted by  read-dependencies now attempting to upgrade system-packages each integration test run now as well16:26
powersjIt may, but on an LTS I would hope it would not break16:26
ajorgis it okay to delete a branch in my fork once it's been merged?16:48
blackboxswajorg: should be fine there16:49
=== sambetts is now known as sambetts|afk
blackboxswok 4 SRU bug verifications needed still21:34
* blackboxsw is setting up an azure account21:50
blackboxswfound two other bugs that were part of the SRU, but weren't listed in our trello card. adding them now22:47
=== logan_ is now known as logan-

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