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

=== sambetts|afk is now known as sambetts
powersjwow all the tests failed yesterday O.o15:07
powersjblackboxsw smoser rharper dpb1 Our open build service project: https://build.opensuse.org/package/show/Cloud:Tools:Next/cloud-init15:14
smoserpowersj, i am now 'smoser' user there.15:34
powersjsmoser: added15:35
rharperpowersj: ok, will join16:32
dpb1powersj: cool16:32
ajorgsmoser: should all things going through subp be disconnected from tty? (disconnecting from tty is easier than I thought - the main trouble was that I was scared to defy the warnings in the subprocess documentation, no need for a cat process)16:33
ajorgit's incompatible with capture=True, so I thought about having it be the behavior for capture=False.16:33
rharperpowersj: ok, I'm raharper there16:43
=== sambetts is now known as sambetts|Afk
=== sambetts|Afk is now known as sambetts|afk
powersjrharper: added16:45
smoserajorg, i'd think generally that we would not want a tty.16:45
rharpertx16:45
smoserbut that seems a scary change.16:45
ajorgsmoser: https://paste.ubuntu.com/24857815/16:49
ajorgagreed, it's a bit scary. easy to get something wrong16:55
ajorgi can drop it for now while working on other patches16:55
smoserdo you have a typo there ?16:56
smoserp.stdout ?16:56
ajorghaha17:01
ajorgyes17:01
ajorgdum de dum17:01
* ajorg runs unit tests like a good boy before re-posting17:02
* ajorg ... and watches tests.unittests.test_util.TestSubp hang because subprocess is hard17:03
ajorgback to the drawing board17:03
smoserajorg, yeah, we really dont want to be "in the middle" if we can avoid it.17:03
ajorgsmoser: there's no way to disconnect from a tty without being in the middle17:04
ajorgbecause if you're not, isatty will find your tty17:04
powersjblackboxsw: looks like the failures of integration tests occurred after your commit was accepted.17:06
powersjthe control file that gets generated looks a little different, before: http://paste.ubuntu.com/24857896/ after: http://paste.ubuntu.com/24857898/17:07
powersjLooking now for actually differences17:07
ajorgoh, 'cause I'm neglecting to write the input...17:09
powersjblackboxsw: to reproduce, checking out master and doing ./package/bddeb -S should be all you need17:14
blackboxswpowersj: yeah I'm on a yakkety lxc right now, found 3 missing deps that need to be pulled in.17:14
blackboxswthanks17:14
blackboxsw.. and sry17:14
powersjno worries, I am hoping our new CI pipeline will fix all of this :)17:15
powersjtox + build + short integration + centos will be nice :D17:15
* powersj goes and review's smoser's branch17:17
smoserpowersj, thanks. i just updated comment.17:19
smoserhttps://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/32567917:20
smoserblackboxsw, ^ you too would be nice.17:20
smoserthat 'fastestmirror' thing is pretty useless17:20
smoseruseless/obnoxious/makes a caching-proxy useless17:20
blackboxswreviewing now17:22
ajorgsmoser: okay, this works: https://paste.ubuntu.com/24857958/17:23
smoserajorg, i guess i'm ok with it if we add an argument 'notty=False'17:26
smoserand then the yum install can set that to True17:26
smoserand toherwise takes old apth17:26
ajorgSure, we can make this optional. I'm okay with that.17:29
* powersj goes and looks at proposed tests17:32
* ajorg waves at ilianaw17:42
* ilianaw waves back17:42
smoserwell, here is a week attempt at disabling mirrors17:51
smoserhttp://paste.ubuntu.com/24858093/17:51
blackboxswsmoser: https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/325679 minor review comment added.18:07
smoserblackboxsw, thanks.18:07
smoserblackboxsw, you want me to drop the 'pairs' ?18:11
blackboxswsmoser: not critical to drop as it shows what you intend if things get complex in the future (cmd != package_name) so it's ok to leave as is as guidance for me if we have to go that route . It's just unneeded logic at the moment so it always gives me a moment's pause as we don't really need that little complexity currently.18:13
blackboxswif it were a lot of complexity/logic that was added for something that we don't currently need I'd say drop it as we are over-engineering the solution, but this is just a couple lines in a script so it's good18:14
blackboxswmostly that comment was just so we could have a discussion.... aaaaaaand ✔18:15
blackboxsw:)18:15
smoserk18:15
smoseri updated mp with your file suggestion18:15
blackboxswthx18:15
smoserbut i think yours had wierd logic18:16
smoserso read mine18:16
smoser http://paste.ubuntu.com/24858229/18:16
smoserthats what you had18:16
smoseryou were looping over each file in the list and building the bad_files sllist18:16
smoserso... lots more work than necessary18:16
smoseri did this18:17
smoser http://paste.ubuntu.com/24858234/18:17
blackboxswumm whoa , bad diff. right18:23
blackboxswshouldn't have nested that inside the loop , just declare bad_files outside.18:23
blackboxswchecking followup18:23
blackboxswyes yes, thanks18:24
blackboxsw+118:24
blackboxswthat was careless18:24
smoserk18:24
smoserclick approve and i'll pull that.18:25
smoserpowersj, youcan then change the jenkins jobs to do the ./tools/run-centos18:31
powersjAwesome! Once we get bddeb going again I can go back to the pipeline and get it going18:32
smoserpowersj, do you knwo why it is failling ?18:37
smoseri just started looking, i'm confused.18:38
powersjI posted this a little bit ago: the control file that gets generated looks a little different, before: http://paste.ubuntu.com/24857896/ after: http://paste.ubuntu.com/24857898/18:38
powersjbut that doesn't make any sense18:38
powersjthe error was "E: Please add apropriate interpreter package to Build-Depends, see pybuild(1) for details at /usr/share/perl5/Debian/Debhelper/Buildsystem/pybuild.pm line 192."18:39
smoserno it does not18:53
blackboxswhmm so diff between deps is the new one has has procps and python-contextlib2 list in Build-depends  now.19:02
blackboxswI pulled procps down from Depends  into Build-Depends. lemme see where contextlib2 comes from19:03
blackboxswfrom test-requirements.txt so it now gets pulled into the control.in template19:03
smosergood: http://paste.ubuntu.com/24858565/19:04
smoserbad: http://paste.ubuntu.com/24858566/19:04
smoserit is a bug somewhere.19:06
smoserbut it doesnt like the python3 at the end.19:07
blackboxswso we need to make sure python dependency is ordered before test-requirements as it was in the original control file maybe?19:19
blackboxsw               ${python},19:19
blackboxsw               ${test_requires},19:19
blackboxsw               ${requires}19:19
smoserwell, moving it in that list fixes it19:20
smoser"fixes"19:20
blackboxswwow strange workaround19:20
smoseri was experimenting with jinja19:21
smoserblackboxsw, http://paste.ubuntu.com/24858833/19:40
smoserthat is working for me now.. hacky still, but got trhough it19:40
blackboxswsmoser: looks fine, so you wanted to make it readable again (with proper indents, one line per dep)19:42
blackboxswI've just pushed ci-deps-fixes branch, wanted to add a --ci-deps optional param to read-dependencies to pull in everything ci wants (make, sudi, tar, devscripts etc) It'll also default the python version to the python binary that's calling us  via sys.version_info.19:44
blackboxswthis way ci can just :   python3 tools/read-dependencies --distro ubuntu --install --ci-deps19:44
blackboxswI'm testing it now to make sure it solves the integration test issues on fresh containers19:45
blackboxswwhat I had also done in that branch was pull "python" package version up to the front of Build-Requires19:45
smoserblackboxsw, --ci-deps ?20:14
rharperwell, bleh.  bonding on rhel7 is frustrating ...   the bonding module loads and creates a bond0 device but ifup on bond0 doesn't configure it;  ifup on the slaves is skipped, so I can't see how the bond is ever going to come online;  further, the docs show the use of networkmanager20:15
blackboxswmaybe just ci or continous-integration? Was trying to take a step toward your "goal" suggestion a bit.20:15
blackboxswgiven that we want to setup all CI  dependencies on a fresh container in order to run any build/test scripts, the --ci-deps parameter would install system packages for all requirements.txt and test-requirements.txt plus the additional base needs make, tar, sudo, devscripts20:16
blackboxswso basically on a fresh container we can now perform the following: http://pastebin.ubuntu.com/24859055/20:17
smoserblackboxsw, i just didn't know the 'ci'20:29
smoserit conflicts . someone chose a bad name for 'continuous-integration'20:29
smoserwhen clearly 'cloud-init' had owned the namespace of 'ci'20:29
smoser:)20:29
naccci-ci20:29
blackboxswheh. I just reread your goals suggestion.... "test" "build" as options20:30
smoserhttps://gist.github.com/smoser/19e65095b342e98fd4d6466e4d4fa1ac20:30
smoserthere i had 'test-distro', 'test-tox', 'build', 'run'20:30
smoserblackboxsw, so in my hack patch above... i couldnt figure out how to pretty indent. i'm lacking jinja foo20:31
blackboxswyeah /me changes it to --test-distro20:33
blackboxswthose names make sense20:33
smoserblackboxsw, do you have something like... really close ?20:36
smosercause i think what i have in that hack is at least enough to get us building again20:36
blackboxswsmoser: the branch it pushed it's tested and runs20:36
blackboxswwas writing up a review request now20:36
smoserah. i didnt see you push a branch20:38
smoserand didnt see at https://code.launchpad.net/%7Ecloud-init-dev/cloud-init/+git/cloud-init/+ref/master/+activereviews20:39
smoserso i assumethat is coming20:39
smoseri'd like to grab all the 'Approved' at that link, but want to have c-i functional before i do20:41
blackboxswwas writing test instructions. will just post as is and work out testing instructions shortly after20:41
smosersure20:42
blackboxswpushed for review.20:45
blackboxswhttps://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/32569320:45
blackboxswadding test instructions for a fresh system.20:46
smoserblackboxsw, tools/run-centos can use --test-distro20:52
smoserright ?20:52
smoseralthough test-distro isn't necessarily build20:52
smoserbut i think that is what we have right now20:52
blackboxswsmoser: yes run-centos can use it.20:56
blackboxswchanging that now20:56
blackboxswin the branch20:56
blackboxsw/paste.ubuntu.com/24859315/20:57
blackboxswhttp:///paste.ubuntu.com/24859315/20:57
blackboxswalmost20:57
blackboxswhttp://paste.ubuntu.com/24859319/20:57
smoserblackboxsw, 2 minor reponses.21:01
blackboxswlooking21:01
smoseri have to run.21:02
smoseri'm ok if you or rharper want to squash that and push it21:02
smoserto get us passing tests again21:02
smoserbut i have to run21:02
smoseri'll check back in in a few hours and get it then if you dont.21:03
smoserthanks!21:03
blackboxswsmoser: pushed21:13
blackboxswthanks21:13
blackboxswtesting again now21:13
blackboxswpowersj: did you install sbuild on the jenkins ci environment?22:09
blackboxswI see we are running it, but it's not available in default yakkety lxcs22:11
powersjYes I installed it but we're not running yakkety22:14
blackboxswfound out what I missed, the initial apt update22:18
blackboxswok merged to master23:24
blackboxswhttps://jenkins.ubuntu.com/server/view/Cloud-init/job/cloud-init-integration-y/227/ is running the test23:24
blackboxswpowersj: I'm also thinking of something along these lines https://jenkins.ubuntu.com/server/view/Cloud-init/job/cloud-init-integration-y/227/ for server-team-ci23:25
blackboxswto ensure all deps are installed prior to build runs23:25
blackboxswmeh I only updated my local maste 227 is bound to fail23:28
blackboxswwell check back in later. dinner calls23:29
smoserblackboxsw, good ?23:53
smoseri see https://jenkins.ubuntu.com/server/view/Cloud-init/job/cloud-init-integration-y/227/23:53
* smoser will check back in in hour or so23:53
powersjgiven it built and is running tests we should be good to go23:56

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