Thursday, 2018-02-22

openstackgerritDaniel Watkins proposed openstack-infra/jenkins-job-builder master: Always deep format Jinja2 templates  https://review.openstack.org/54683501:28
openstackgerritDaniel Watkins proposed openstack-infra/jenkins-job-builder master: Add support for {% include %} in Jinja2 templates  https://review.openstack.org/49369401:31
openstackgerritDaniel Watkins proposed openstack-infra/jenkins-job-builder master: Add !j2 directive to allow inline Jinja2 templates  https://review.openstack.org/54683801:51
*** kien-ha has joined #openstack-jjb01:58
*** kien-ha has quit IRC02:34
waynrso this is a thing: https://github.com/ktdreyer/jenkins-job-wrecker02:46
zxiiroWhat... Lol02:54
zxiiroThat's a pretty significant effort. Wow02:58
zxiiroI feel like if jjb had a reverse mode it would be easier.02:59
waynryeah03:05
openstackgerritMerged openstack-infra/jenkins-job-builder master: publishers: add Task Scanner Plugin support  https://review.openstack.org/53279703:10
openstackgerritMerged openstack-infra/jenkins-job-builder master: Support version 2.0 and greater of the Priority Sorter Plugin  https://review.openstack.org/54423503:14
*** hashar has joined #openstack-jjb07:16
*** electrofelix has joined #openstack-jjb08:40
openstackgerritSorin Sbarnea proposed openstack-infra/jenkins-job-builder master: Add multibranch project-type  https://review.openstack.org/40394009:26
ssbarneaelectrofelix: waynr ^^ this is probably the most important addition to JJB I contributed too, please have a look at it. I want to make it ready before tomorrow session.10:10
electrofelixssbarnea: is there a reason that the existing scm definitions couldn't be re-used?10:17
ssbarneaelectrofelix: you mean to read scm from root instead of under the "multibranch" branch? i doubt there is anything preventing that, i was considering making this change.10:18
ssbarneaelectrofelix: that's how original author did it, so i kept it. but i am inclined to believe that I can load scm from there.10:19
ssbarneai will give a try now, look for other things meanwhile.10:19
electrofelixmean more that instead of redefining the options for the github/git/bitbucket plugins within the multi branch function, to delegate the calls to the methons in the jenkins_jobs.modules.scm module e.g. git => https://git.openstack.org/cgit/openstack-infra/jenkins-job-builder/tree/jenkins_jobs/modules/scm.py?id=5c08d33daef04c2ee28c422f94c41783a27b6705#n5410:20
electrofelixmy first guess is that the plugin is using the scm plugins in jenkins to handle this and is just hooking into them10:20
electrofelixbut that's just a guess10:21
ssbarneaelectrofelix: in fact, i am looking at my test project definition and I see that I already did it. scm section is directly under job.10:21
ssbarneaelectrofelix: now this is diverging from how the "pipeline-scm" is doing it.10:21
electrofelixyes, is it that method won't work here, or just doesn't look like it was tried?10:24
electrofelixlooking at the code in the scm module, maybe it's because  it didn't appear to line up. git function in scm.py is defining the class as hudson.plugins.git.GitSCM while the multi-branch is using jenkins.plugins.git.GitSCMSource. Looks like they are both the same plugin https://github.com/jenkinsci/git-plugin/tree/master/src/main/java/jenkins/plugins/git, so maybe the definition in the scm.py can be updated to take parts of what's in the workflow_mu10:29
electrofelixbtw, I'm not sure this is your most important contribution, your changes around the logging, avoiding spamming jenkins logs, print job names as urls, are all more important in my view because they help every user of JJB, this change is big and is adding support for other plugins but only a few are likely to benefit10:34
electrofelixsmall changes can have bigger impacts than large ones ;-)10:35
ssbarneaelectrofelix: true. regarding scm support: i have confirmation that it works with "scm" section specified at root level, just like freestyle.10:41
ssbarneaelectrofelix: ok for you? I (personally) prefer having scm at root level.10:42
*** electrofelix has quit IRC13:14
openstackgerritmanut proposed openstack-infra/jenkins-job-builder master:    use AuthorizationMatrixProperty from cloudbees class  https://review.openstack.org/54697913:22
*** zxiiro has quit IRC13:56
*** zxiiro has joined #openstack-jjb13:58
*** caphrim007_ has quit IRC14:39
*** caphrim007 has joined #openstack-jjb14:40
*** caphrim007 has quit IRC14:44
waynrssbarnea: looks good to me, thanks for working on that!15:02
Odd_BlokeHey folks, I'd really appreciate reviews on my Jinja2 changes: https://review.openstack.org/#/c/546835/ https://review.openstack.org/#/c/493694/ https://review.openstack.org/#/c/546838/15:03
Odd_Bloke(That first one fixes a bug that someone pointed out in this channel.)15:03
ssbarneawaynr: in fact is not working yet, just made some late discoveries.15:03
ssbarneawaynr: i am working on it but i struggle to find out where do I get some extra unexpected <source> section in the xml file.15:03
ssbarneawaynr: something that is not defined anywhere in the module.15:04
Odd_Blokessbarnea: Ah, looking back through history, it was your bug that it fixes. :)15:04
zxiiromorning folks15:20
zxiiroI'll try to get some reviews in today. Work's been busy the past couple of weeks so I've been falling behind15:21
*** caphrim007 has joined #openstack-jjb16:06
Odd_Blokezxiiro: Thanks for those reviews. :)16:11
*** openstackgerrit has quit IRC18:33
ssbarneazxiiro: hi! still around here?19:50
zxiirossbarnea: yep19:57
zxiirowhat's up?19:57
ssbarneazxiiro: i was wondering if there is a trick for 79 width limit, on jjb I seem to struggle to wrap lines19:58
ssbarneaespecially those with very long java strings with full class names19:59
ssbarneai have the impression that "# noqa" is going to become the new <CR>.19:59
zxiirossbarnea: use parenthesis ()20:02
zxiirossbarnea: for example20:03
zxiirosome_string = ('a very long string that needs to continue '20:03
zxiiro'continuation of that long string')20:03
ssbarneazxiiro: well, for doc lines is ok, but for class names is recipe for making hard to search inside source code.20:04
zxiiroyou don't need to add + or % or anything to that. Python automatically continues a string on the next line when it's in parenthesis like that.20:04
zxiiroah yeah if you want to search the whole string it does make it hard i dunno how else to do it.20:04
zxiiroalthough the original openstack folks are no longer working on jjb20:04
zxiiroI can forsee us allowing longer max lines if current committers agree to it20:05
zxiiroPersonally I use max of 120 in my own projects.20:05
ssbarneazxiiro: yep, a huge difference from 79 to 120 :D20:06
*** openstackgerrit has joined #openstack-jjb20:07
openstackgerritSorin Sbarnea proposed openstack-infra/jenkins-job-builder master: Add multibranch project-type  https://review.openstack.org/40394020:07
zxiirossbarnea: Submit a patch and we can ask folks to vote on it.20:07
ssbarneazxiiro: back to serious issues, i did something very ugly on ^^ and I want your opinion on it. I added hack to disable use of SCM module on multibranch pipelines.20:08
ssbarneasomehow the SCM module added unwanted garbage when using the the multibranch project type, which does the scm part correctly itself.20:09
ssbarneazxiiro: this is the ugliness: https://review.openstack.org/#/c/403940/13/jenkins_jobs/xml_config.py20:10
zxiirohuh20:10
zxiiroyeah that does seem ugly. I'd get electrofelix's opinion on that.20:11
ssbarneai guess we all agree on that, the question is how to do it nice, or at least better.20:13
ssbarnealook at the rest and add comments, if possible i would like to merge it tomorrow. I already tested it with gerrit scm but now I am also testing the other setups.20:16
zxiirossbarnea: I don't get the gerrit scm part. I don't think there is a gerrit scm? it's just git?20:17
zxiirowhy do we need an alias for git?20:17
ssbarneamaybe we should mark implementation as experimental and not guarantee api compatibility.20:17
ssbarneazxiiro: there is! but is a very new thing.20:17
zxiirohuh really?20:18
zxiirowhat plugin provides it?20:18
ssbarneazxiiro: https://github.com/jenkinsci/gerrit-plugin20:18
ssbarneazxiiro: but there is a catch20:18
Odd_Blokezxiiro: ssbarnea: Not to be that guy, but PEP-8 does allow for up to 100 characters, so I'd suggest that as a first step.20:18
ssbarneazxiiro: this adds Gerrit SCM support but only for multibranch-pipelines.20:19
ssbarneazxiiro: in fact this is the only place where is needed20:19
ssbarneain other places the git one is perfect.20:19
ssbarneazxiiro: but for multibranch-pipelines, there is special code to detect branches+CRs.20:20
ssbarneahave a look at https://j.sbarnea.com/job/test-jjb-multibranch-gerrit-http-ano/20:20
zxiirohuh ok. I don't use multibranch-pipelines so not too familiar with it.20:20
zxiirossbarnea: connection timeout for me20:21
ssbarneazxiiro: me neither because lack of gerrit support was preventing me from using them.20:21
ssbarneano IPv6 support?20:21
zxiiroah yeah my ISP doesn't do IPv6 yet20:21
zxiirooh wait they did roll it out20:21
zxiiromaybe i have to do something on my end to turn it on20:21
zxiiro"IPv6 is not available for our Cable Internet services at this time."20:22
zxiiroah nevermind I'm on cable20:22
zxiiroif i was on DSL i'd have it20:22
ssbarneazxiiro: ahh, let me check the it. i think I should be able to do something about it.20:22
zxiiroheh20:22
ssbarneai updated the DNS but it will take up to one hour to propagate. it was using a private address.20:26
ssbarnea(for IPv4, IPv6 was public)20:26
*** hashar has quit IRC21:07
*** abelur has quit IRC23:45
*** abelur_ is now known as abelur23:45
*** caphrim007_ has joined #openstack-jjb23:54
*** caphrim007 has quit IRC23:57

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