Friday, 2017-09-29

*** hashar has joined #openstack-jjb06:12
*** hashar is now known as hasharAway13:25
*** mnencia has joined #openstack-jjb15:22
zxiiromnencia: thanks for joining. Just an FYI our main focus right now is to try to get the much needed JJB 2.0 released soon.15:27
zxiiroelectrofelix: speaking of that the YAML parser patch seems to have broken macro parsing inside of plugins. You might want to take a look at discussions from Tuesday above.15:30
zxiiroI think we cannot release until we have a solution to this since it breaks a core feature that we're using heavily15:30
mnenciaHi, I'm looking at https://blueprints.launchpad.net/openstack-ci/+spec/jenkins-job-builder-folders because I've a lot of jobs to generate and I'd like to organize them in folders.? I see there are two patch attached to that blueprint, and one is abandoned. I could work a bit to make this advancing, but I don't want to waste time trying to fix something that is obsolete and cannot be merged.15:37
electrofelixhmm, fun, I guess we were essentially doing a recursive lookup as we dispatched to each in turn15:37
electrofelixmnencia: I expect that just needs the conflict resolved and it should be ok, the other missing piece was something to create folders and I believe there is a patch floating around to handle that as well that needs updating15:39
electrofelixsorry forgot to reference the patch15:39
electrofelixmnencia: https://review.openstack.org/134307 just needs rebasing for the recent conflict due to changes to the parser.py15:40
electrofelixI've just not been able to devote enough time to jjb for a while to get it over the line15:40
mnenciathere is there are two plugin that can create folders jenkins-job-builder-addons (but it breaks generation of other thinks, not sure why) and https://github.com/jagardaniel/jenkins-job-builder-folder (tat is very embrional)15:41
electrofelixhttps://review.openstack.org/189697 comprises of part of the work for creation, but it needs something to ensure that the folder is created/updated before jobs are uploaded to it and ensure that is true for when using the parallel workers (probably by processing all folders first)15:42
electrofelixbut even if you process all folders first, you need to make sure that any nested folders are done in the correct order as well so with parallel workers there is a little bit of work to solve this15:43
electrofelixzxiiro: you know that one is an unusual case, it's not that nested macros were supported, but that we were using registry.dispatch from the postbuildscript plugin code15:45
electrofelixSo in removing the macro resolving from the dispatch it means we need to change the call in the postbuildscript plugin call to either expand first or find a way to spot at the top level15:47
electrofelixand perform the expansion first15:47
electrofelixbtw, you know that postbuildscript plugin is no longer available online to install?15:48
zxiiroelectrofelix: ah really ok. But it does seem like other plugins need updating too. like the Maven Project plugin or seems like any plugins that need to call another macro of the same module.15:48
zxiiroelectrofelix: yes we are aware. in fact we're trying to find a replacement but haven't gotten one we like yet. So we're side loading that plugin for now.15:49
zxiirothere's some concern that we might have to develop our own plugin that does what we need.15:49
electrofelixzxiiro: posttask does something similar, we just have it search for the first line when we want a task to always run at the end in case of failure/success ;-)15:51
mnenciaelectrofelix there is also an issue deleting old jobs: if they reside in a folder they get ignored. Also delete-all doesn't work for me. Not sure why15:52
electrofelixI'm pretty certain the security issue was to do with the groovy code, so if it was refactored slightly to reuse the groovy plugin instead the problem should go away15:52
electrofelixmnencia: that should be solved by the first patch, as to delete jobs you need to delete based on the full name rather than the short name of the job15:53
mnenciaok, I will take a look in the weekend15:53
electrofelixzxiiro: "grep -Ir dispatch jenkins_jobs/modules/" shows all the problem ones, once we have one solution, it's just a case of applying wherever else we call dispatch to hand off to the correct module15:53
electrofelixIt does mean that there is a limitation that needs to be discussed with waynr about expansion works15:54
zxiiroelectrofelix: ah that makes sense15:55
electrofelixwhich means we might need to reconsider the approach and pass down some objects to do expansion at the last possible moment instead of upfront in order to get consistent behaviour at all points15:55
zxiiroelectrofelix: yeah we don't need groovy at all. we just need a thing that let's us run builders15:56
electrofelixmnencia: have a look at the changes in https://review.openstack.org/#/c/134307/12/jenkins_jobs/builder.py, the changes to the delete_old_managed should handle deleting from inside folders15:57
electrofelixmnencia: would be good to have that confirmed though15:57
*** electrofelix has quit IRC16:47
*** hasharAway has quit IRC18:51
*** hashar has joined #openstack-jjb18:52
*** hashar has quit IRC21:54

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