/srv/irclogs.ubuntu.com/2015/06/25/#cloud-init.txt

=== rangerpb is now known as rangerpbzzzz
=== natorious is now known as zz_natorious
=== rangerpbzzzz is now known as rangerpb
openstackgerritScott Moser proposed stackforge/cloud-init: tox: disable proxies when running nosetests  https://review.openstack.org/19529413:55
smoserclaudiupopa, are you there ?13:55
smosercan you tell me if https://review.openstack.org/#/c/195294/1 works on windows ?13:55
claudiupopayeah, seems to work.14:05
smosercan you +1 ? or +2  if you want.14:07
claudiupopadone.14:07
=== smoser changed the topic of #cloud-init to: cloud-init || cloud-init 2.0 reviews: http://bit.ly/cloudinit-reviews
smoserclaudiupopa, so why did that not merge ?14:44
smoserdoes it need a jenins run, and if so why didnt it run14:45
claudiupopahttp://status.openstack.org/zuul/ seems to be a pretty big merge queue.14:46
openstackgerritMerged stackforge/cloud-init: HACKING.rst: mention signing the contribors agreement  https://review.openstack.org/19434014:59
openstackgerritScott Moser proposed stackforge/cloud-init: tools/tox-venv: support running other than ./tools/tox-venv  https://review.openstack.org/19563115:14
openstackgerritMerged stackforge/cloud-init: tox: disable proxies when running nosetests  https://review.openstack.org/19529415:19
openstackgerritScott Moser proposed stackforge/cloud-init: tools/tox-venv: support running other than ./tools/tox-venv  https://review.openstack.org/19563115:20
openstackgerritScott Moser proposed stackforge/cloud-init: Clean up stale auto-generated autodoc files.  https://review.openstack.org/19113915:22
Odd_Blokesmoser is on a rampage.15:47
smoserharlowja, around ?16:47
openstackgerritScott Moser proposed stackforge/cloud-init: Bring over the 'safeyaml' from bzr  https://review.openstack.org/17025216:54
smoserclaudiupopa, if you want, you requeseted test there, i added some ^16:58
smoseror Odd_Bloke if you want to review that.17:02
openstackgerritMerged stackforge/cloud-init: Clean up stale auto-generated autodoc files.  https://review.openstack.org/19113917:06
harlowjasmoser suppp17:24
smoserharlowja, i was gonna ask about how to add tests to your existing change id17:33
smoserits really wierd.. ijust --amend17:34
smoserand git review17:34
smoserand my patchset rplaced yours17:34
harlowjahmmm, lol17:34
smoserwhich is wierd in my opinion17:34
harlowja:)17:34
harlowjatouching my patchesets, how dare u17:34
harlowjalol17:34
harlowjaso what u did is one way, the other way is to make a dependent review17:35
harlowjawhere u make a new patchset (using the initial one as the base) and then do git-review -R17:35
harlowja*which makes that new review have a dependency on the first17:35
harlowjaotherwise ya, the patchsets sorta just get added ontop17:36
smoseryeah. i think the way i did it makes more sense here.17:40
smoseras the dependent review would then hav both of them in the git log17:40
smoserbut yours wasnt acceptable without the tests17:40
harlowja:-P17:42
smoserhm..17:44
smoserwhat to do here.17:44
smoserlooking at the templeter17:44
smoserand tests for it.17:44
harlowjaup to u, how much of it u want to keep :-P17:45
harlowjasmoser one option, remove the basic_rendering support, leave jinja217:50
harlowjathat might help reduce the amount of stuff to test (and meh, do we need that other way anymore?)17:50
harlowjaotherwise, include a bunch of test-templates.txt, ensure they get expanded to expected-out-test-templates.txt or whatever17:51
harlowjaand blow-up if not17:51
smoseri think just if its not declared, then we use builtin17:51
smoserits fine for some things.17:52
harlowjak17:52
* harlowja doesn't have any attachment to it :-P17:52
harlowjamy precious!17:52
harlowjalol17:52
smoserharlowja, i have this right now:17:54
smoser http://paste.ubuntu.com/11774661/17:54
harlowjaseems fair to me17:54
smoserthe value in it is that we have *some* builtin renderer17:54
harlowjaagreed, which probably suits 90% of the cases anyway17:54
harlowjaexcept for weird i need to have for loops in my tempaltes and such17:55
smoserwell. yeah, i think as we start offering $datasource.hostname17:55
smoserand such, the builtin will probably fall appart17:55
Odd_BlokeWhy do we need a bultin renderer at all?17:56
smoseri'm wondering if you were right though, an djinja should be the default17:56
harlowjaas long as jinja2 doesn't die like cheetah, lol17:56
smoseri dont know, Odd_Bloke17:56
Odd_BlokeIt's more stuff for our users to learn, and more code for us to maintain.17:56
smoserits only really for backwards compat.17:56
Odd_BlokeBackwards compatibility is probably an argument for it though.17:56
Odd_Bloke^_^17:57
smoserso lets say things..17:57
harlowjashould we support cheetah to then :-P17:57
harlowjafor backwards compat ;)17:57
smoserthe thing it comes down to is selecting a default17:57
Odd_Bloke/kick harlowja NO17:57
harlowjalol17:57
harlowjabut but but17:57
harlowjaha17:58
smoserany template can declare what it needs to be rendered with17:58
smoserbut if there is no header ('##template: jinja2')17:58
smoserthen what do we do?17:58
smoserwhat i did just right there was fall back to the builtin17:58
smoserif we say instead "undefined is jinja2"17:58
smoserthen in the far future world of jinja2-is-dead17:58
harlowjajinja3 ftw17:58
smoserthen we are in the position of basically *having* to break someone17:59
smoseras we wont be be able to render their undeclared thing17:59
Odd_BlokeJinja2 is very unlikely to go anywhere.17:59
harlowjajinja3 ftw18:00
harlowjalol18:00
Odd_BlokeAnd if it does, we just vendor it in and warn people that it's deprecated.18:00
smosermeh18:00
smoseri think i like basicaly requiring the declaration18:00
harlowjaya, we can do that to18:01
smoseryou either declare what you want, where we can then definitively render it or not18:01
smoseror you dont18:01
smoserand you get harlowja's crappy builtin renderer18:01
harlowjada best ever!18:01
harlowjalol18:01
smoseri think i'll add a alias for 'basic' from 'harlowja-crap'18:01
Odd_BlokeI think it would be good to warn people against using harlowja's crappy builtin renderer.18:01
harlowjau have to rename it 'crappy_built_in_renderer'18:01
Odd_BlokeSomething in the log or somesuch.18:01
smoserOdd_Bloke, why? we can maintain that.18:01
smoserits not hard.18:01
Odd_BlokeI guess.18:02
* harlowja surely will miss cheetah though, lol18:03
harlowjawe could also default to https://github.com/Yelp/yelp_cheetah18:04
harlowjalol18:04
smoserharlowja, we can bring it back.18:04
smoserjust for old times sake18:04
harlowja:-P18:04
smoserWe really recommend that you don't choose cheetah for new projects, and certainly not this hacked fork18:08
harlowjalol18:09
smoseri think i'm going to add things like that to all my code from now on18:09
harlowjadon't listen to them, jeez18:09
harlowjalol18:09
harlowja:)18:09
smoser"i really recommend you dont use this."18:09
harlowja:)18:09
smoserinstead, maybe go outside and get some exercise!18:09
harlowjaisn't that what all those licenses are for, lol18:09
harlowjathought they did the same thing, use at your own risk, its just opensource mannnn18:10
harlowjalol18:10
harlowja*aka u can't sue me ...18:10
harlowja https://github.com/stackforge/cloud-init/blob/master/LICENSE-Apache2.0#L144 (that section, lol)18:11
=== zz_natorious is now known as natorious
smoseralright. i almost have tests for templter whoo hoo19:32
harlowjawoooo19:33
harlowjau da man19:33
smoserthe key to improving test coverage is reducing lines of code19:43
=== natorious is now known as zz_natorious
openstackgerritScott Moser proposed stackforge/cloud-init: Bring over the 'templater' from bzr  https://review.openstack.org/17025719:44
=== smoser changed the topic of #cloud-init to: cloud-init || cloud-init 2.0 reviews: http://bit.ly/cloudinit-reviews
harlowja:)19:50
harlowjai still see lines of code there19:50
harlowjaits not 019:50
harlowjalol19:50
smoserwhat i didn't say was one of the things i did was join lines.19:56
smoserbecause 2 lines of 30 characters is 2 lines.19:56
harlowja:)19:56
smoserbut one line of 60 chars is only 119:56
smoser:)19:56
openstackgerritScott Moser proposed stackforge/cloud-init: Bring over the 'templater' from bzr  https://review.openstack.org/17025719:58
smoserharlowja, you want to review your code there + my tests ?19:59
harlowja:)19:59
harlowjasureeeee19:59
harlowjaoh man, whoever wrote that code is super19:59
harlowjalol19:59
=== zz_natorious is now known as natorious
=== natorious is now known as zz_natorious
harlowjasmoser ok added a comment20:06
harlowjai think the fixtures test library can replace that custom tempdir20:06
harlowjacommonly used in other parts of openstack (since the author works there)20:07
smoserharlowja, i dont want to just grab dependencies.20:14
smoseri dont like writing code just because either20:14
harlowjathis would only be a test dep20:14
smoseryeah, thats not so bad.20:14
harlowja:-P20:14
smoserharlowja, if you want to add fixtures useage thats ok.20:20
harlowjak20:20
harlowjai can after that goes in20:20
harlowjaok with u20:20
harlowjai'm cool with that20:21
harlowjabb20:21
smoserbut can we make sure it works iwth trusty20:21
harlowjasure,20:24
harlowjaafaik the package exists there20:24
smoserits 0.3 in trusty20:31
harlowjaok, thats pretty old, but should be ok for this i think21:01
=== rangerpb is now known as rangerpbzzzz
=== zz_natorious is now known as natorious
=== natorious is now known as zz_natorious

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