Saturday, 2017-12-30

waynri'm gonna take a swing at that release blocker bug04:39
waynrgonna try to generalize my approach in 503771 by writing a decorator for plugin xml expansion functions that need to expand xml for other plugins04:40
waynri'll use the conditional step builder test cases i wrote in 503771 to validate the approach works and scan over 530419 to see where the YamlParser object being passed to plugin xml expansion functions was used, write test cases for those plugins, then apply the decorator approach to them04:46
waynrhttps://storyboard.openstack.org/#!/story/200139905:26
waynri forgot how to get to our etherpad05:26
waynraha, browser history to the rescue: https://etherpad.openstack.org/p/jjb_api_v2.005:33
waynrderp. i sat down to work on this almost two hours ago and finally am writing that decorator function07:18
openstackgerritWayne Warren proposed openstack-infra/jenkins-job-builder master: Fix macro expansion in conditional step builder.  https://review.openstack.org/50377109:30
openstackgerritWayne Warren proposed openstack-infra/jenkins-job-builder master: Perform inner macro expansion using a decorator.  https://review.openstack.org/53053009:30
waynrsince i consider myself a git incrementalist i went ahead and implemented the decorator approach on top of the existing conditional step builder patch09:31
waynrnow to take a closer look at 530419 to see where support for inner macro expansion was removed and see if i can apply my decorator-based approach in those cases09:33
waynroh hmm i must have removed those in an earlier patch than the one 530419 reverts09:34
waynrgrep -rn registry.dispach jenkins_jobs/modules09:42
waynrgonna continue working on that tomorrow...or today i guess09:43
waynrshouldn't be too difficult to come up with test cases to validate everywhere "registry.dispatch" was being called previously...kind of annoying that there were no such test cases to begin with but i can see how it happened given that most plugin module tests can safely assume they don't need to validate macro expansion09:46
zxiirowaynr: wow that's great thanks for looking into this. Let me know when it's ready for testing and I can check with our repo. We're a very big user of those macro expansion stuff so we touch quite a few plugins that use it.16:04

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