Thursday, 2017-12-28

*** openstackgerrit has joined #openstack-jjb10:40
openstackgerritSorin Sbarnea proposed openstack-infra/jenkins-job-builder master: Change file inclusion level from info to debug  https://review.openstack.org/53033910:40
ssbarneaany jjb expert around here? I try to find a way to disable the scheduler on the staging instance.11:41
ssbarneai want to configure jobs the same on production and staging masters but avoid running job on scheduler on staging.11:41
ssbarneai only want to run them on manual triggers.11:41
ssbarneafor gerrit it was simple to disable gerrit trigger on staging, but there is no "scheduler" that I can disable.11:42
ssbarneawho can make a new release of jjb? the beta2 was released back in march and there are lots of changes since then, how about getting a b3 release on pypi?12:42
ssbarneawaynr: any idea about ^^ ?12:43
waynrhey ssbarnea the way i used to handle that was to just disable "staging" jobs by default13:01
ssbarneawaynr: yep, i am now trying to change includes folders between staging and production in order to allow me to produce all jobs disables or all jobs without "disabled: true" in them.13:02
waynrso for example setting the `disabled` flag on job templates using a variable and only set it to "false" when i'm ready for the job to go live13:02
ssbarneai hope it will work, is tricky especially because I cannot do "disabled: false" on production, I need it undefined in order to allow users to disabled jobs there.13:03
ssbarneai hope it will work in the end.13:03
waynralso we are waiting on a critical bug fix for the jjb 2 release13:03
waynri've actually got a five day weekend so i should be able to take a closer look at that bug finally today or tomorrow13:03
ssbarneawaynr: any hints on which bug we are waiting for? i miss an important feature which is not releases yet "-s section" option.13:04
ssbarneathe code is in trunk but I cannot use git version of jjb on production, i was lucky enough to be able upgrade to beta2 :)13:05
ssbarneawaynr: CC me on the bug, so I can help with it.13:05
ssbarneawaynr: just found one critical bug with trunk (b2 is ok): jenkins_jobs.errors.JenkinsJobsException: Unknown entry point or macro 'foo' for component type: 'scm'.14:23
ssbarneawaynr: not sure if this is related to the bug you mentioned, but clearly is a blocker regression, not clear to me exactly from where. i will try to replicate it with a simple test, now it happened with the entire set of jobs (>1000)14:25
zxiirono way to disable the scheduler. we also have a sandbox system and we just tell developers to disable or delete their jobs when they are done using them. Our sandbox also auto deletes everything on the weekend in case someone forgets.15:18
openstackgerritMerged openstack-infra/jenkins-job-builder master: Add messages and categories ignores to warnings publisher  https://review.openstack.org/52809215:34
ssbarneazxiiro: in my case I cannot afford the weekly cleanup (which I already have). This is because we have ~1200 jobs all generated from a single jjb based repo. People create jobs there in subsets (1-50 on average). So the only way to avoid that is to find a way to compile/update jobs diffrently for staging and production.15:39
ssbarneazxiiro: i am surprised that nobody found a decent way to do it yet, having a staging instance is so uncommon?15:40
zxiirossbarnea: in our case it's a sandbox system we only push jobs people are actively testing up to it rather than all jobs in the repo as we only have a single repo containing all of our jjb code.15:41
zxiiroimo maintaining 2 jjb code repos is a lot more work and requires folks to copy code back and forth15:41
ssbarneazxiiro: i agree, I don't even want to think about two code repos.15:42
zxiirowe even have a production job that pushes jobs to the sandbox using a Gerrit keyword.15:42
zxiiroif you leave a comment like "jjb-deploy: some-job-1" it pushes the specific job in the Gerrit repo over to our sandbox so our developers don't even have to have jjb installed15:43
ssbarneazxiiro: cool feature, thanks for mentioning it, could be useful to implement.15:43
zxiirossbarnea: This might interest you too. We maintain a jjb template repo containing the most common templates our major projects use here https://gerrit.linuxfoundation.org/infra/#/admin/projects/releng/global-jjb  which we load as submodules in all of our downstream projects.15:44
ssbarneazxiiro: here is what I attempt to to get now: use two templates one with "disabled: true" and alter the include dir for production and staging.15:44
zxiiroit contains all of our ci maintenance jobs as well including that jjb-deploy job15:44
ssbarneazxiiro: I have defaults/ and I add defaults.(staging|production)/  ones. in theory it should work.15:45
zxiiroand this is the jjb-deploy job definition we use https://gerrit.linuxfoundation.org/infra/gitweb?p=releng/global-jjb.git;a=blob;f=jjb/lf-ci-jobs.yaml;h=c931f771ec401ffeac945bf40d00c34c2e942d00;hb=HEAD#l25015:46
zxiiroah interesting idea. We only have a single defaults for all of our systems.15:46
ssbarneazxiiro: this is what we have now too, but I think that's the way to inject the alternative. I hope it will work, i will find out soon.15:47
*** waynr has quit IRC21:39
*** waynr has joined #openstack-jjb21:46
openstackgerritThanh Ha proposed openstack-infra/jenkins-job-builder master: Add support for PostBuildScript 2.x  https://review.openstack.org/53041323:47

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