Friday, 2018-01-19

*** caphrim007_ has joined #openstack-jjb00:26
*** caphrim00_ has joined #openstack-jjb00:28
*** caphrim00_ has quit IRC00:30
*** caphrim007 has quit IRC00:30
*** caphrim007 has joined #openstack-jjb00:30
*** caphrim007_ has quit IRC00:31
*** caphrim007 has quit IRC00:34
*** caphrim007 has joined #openstack-jjb01:55
*** caphrim007 has quit IRC01:57
*** mnencia has quit IRC03:04
*** mnencia has joined #openstack-jjb03:22
*** caphrim007 has joined #openstack-jjb03:45
*** caphrim007_ has joined #openstack-jjb03:50
*** caphrim007 has quit IRC03:53
*** caphrim007_ has quit IRC04:26
*** caphrim007 has joined #openstack-jjb04:27
*** caphrim007_ has joined #openstack-jjb04:28
*** caphrim007 has quit IRC04:32
*** Odd_Bloke has quit IRC08:24
*** daniel has joined #openstack-jjb08:26
*** daniel is now known as Guest861108:27
*** Guest8611 is now known as Odd_Bloke08:27
*** Odd_Bloke has joined #openstack-jjb08:27
*** hashar has joined #openstack-jjb14:49
*** caphrim007_ has quit IRC15:34
zxiiroI think we should look into the variable precedence in defaults for the next release. It's a pain point for us right now because the order doesn't make sense imo.15:36
zxiirojob-group > project -> job-template > defaults15:37
zxiiroI think it should be project > job-group >  defaults > job-template15:37
zxiirothose are the 4 I use but I suspect there's probably other places variables can appear that I'm not aware of.15:37
zxiiroAlso it would be nice if we can allow macros to set their own defaults too.15:38
electrofelixzxiiro: on https://review.openstack.org/#/c/533844, originally had this set to True only if a configuration file was found, but that caused issues with the change in the Jenkins permissions model from V2 onwards and therefore switched it to be false by default. Do you think it's ok to go back to that behaviour? I'm a little dubious15:48
electrofelixzxiiro: on the params there are a few combinations depending on what works best:15:50
electrofelixproject > job-group >  defaults > job-template15:50
electrofelixproject > job-group >  job-template > defaults15:50
electrofelixproject > job-group >  named defaults > job-template > global defaults15:50
electrofelixcustom15:50
zxiiroelectrofelix: actually I'd be totally cool with a custom option too.15:50
zxiirobut yeah I think job-template should definitely be the lowest priority15:51
zxiiroso that if you configure a defaults file it can override it15:51
zxiiroproject should always be highest priority imo15:51
zxiirothe middle after that is a little fuzzy for me as I don't use the rest to often.15:51
electrofelixif job-template is the lowest, it means that you cannot override defaults from a template?15:52
zxiiroelectrofelix: I think the change 533844 is fine. If there is no configuration that likely means there's no jenkins server url defined so querying would never work in the first place. I think in the past we had query True by default which is fine for me. This is mostly used by tests anyway right?15:52
electrofelixso I'm not following: 'so that if you configure a defaults file it can override it'15:52
electrofelixzxiiro: if you run a dev jenkins instance, the default url it will appear on is http://localhost:8080/15:53
electrofelixwhich is in the defaults15:53
zxiiroelectrofelix: so we have a defaults.yaml file containing "- defaults:"  in our project we use that to set what variables should be the default if no project specified one. We'd like to use it to override what's defined in a job-template because we see defaults.yaml files as system configuration for specific projects. so that's a way for them to globally override job-templates defaults that they don't like.15:54
electrofelixhmm, I think this is why I was starting to lean towards a user definable preference order :P15:55
zxiiroelectrofelix: maybe this will make more sense. So we have a shared global-jjb repo containing only job-templates and job-groups that we load as a submodule in all of our different project jenkins instances, we see it kind of like a docker hub for sharing job-templates. For specific instances we use defaults.yaml to set what the local instance defaults should be so needs to override the "common" defaults defined15:56
zxiiroin job-templates. then specific sub-projects can again override that in their local project.yaml files.15:56
electrofelixI would normally like to be able to temporarily override the values within a single template without needing to define a new set of defaults, so that I can continue to use the global defaults, hence my distinction about whether named defaults and global defaults might well be treated separately15:56
zxiiroso global defaults is the defaults named global.... named defaults are the ones you specify in a job-template?15:57
electrofelixzxiiro: think I got it, I suspect people have different use cases so the desired for a different precedence order may be preferred, and yes that's the difference15:58
zxiiroelectrofelix: got it. yeah sounds like we both have different use cases that are not compatible. I think the best solution here then would be to allow configuration to set our own custom order.15:58
electrofelixbut I can see how that doesn't work well for your suggested setup15:58
zxiiroback to patch 533844. I think setting it False is probably the right default considering Jenkins 2.x issues. What do we need to do to fix that though, as I understand it the other patch we merged to set it to false broke something.16:01
electrofelixI could work with True being the default if we had a graceful handle and continue unless someone provided a setting value that absolutely required the plugins query to work?16:08
zxiiroI see jjb as a non-interactive tool so I don't see any graceful way to handle that.16:10
zxiirounless we allow true but if it fails continue with false?16:10
zxiiromaybe it can spit out a warning that true failed and it's continuing as false.16:10
electrofelixthat's what I was thinking, and optionally have a 'strict' option that disables graceful failure?16:11
zxiiroyeah that would be good for production environments16:12
zxiirowhere we don't want ot risk xml changing on us16:12
zxiiroelectrofelix: do you know if a job-group can contain another job-group?16:13
electrofelixOr we go with a three-value setting True/False/None, True => require querying, False => disable querying, None (default) => try but don't error on failure?16:13
electrofelixzxiiro: yes, I'm pretty sure it can, and that was one of the issues with the current precedence16:14
zxiiroelectrofelix: I like that. no new config and it handles all the caes.16:15
zxiiroelectrofelix: hmm nested job-groups does not appear to work for me.16:21
electrofelixzxiiro: I'll have a check, I thought it did work, but maybe that was me thinking about what would be possible to do with nested job groups and param precedence16:26
electrofelixzxiiro: I've had a read of the code, nested job groups won't work with the existing code, but conceptually there is nothing preventing it from being added16:39
zxiirook16:40
zxiiroI can work around it so it's not urgent but good to know16:41
*** caphrim007 has joined #openstack-jjb17:08
*** caphrim007 has quit IRC17:09
*** caphrim007 has joined #openstack-jjb17:10
*** caphrim007 has quit IRC17:11
*** caphrim007 has joined #openstack-jjb17:11
*** caphrim007 has quit IRC17:12
*** caphrim007 has joined #openstack-jjb17:15
*** caphrim007_ has joined #openstack-jjb17:52
*** caphrim007 has quit IRC17:55
*** electrofelix has quit IRC19:09
*** hashar has quit IRC19:38
*** caphrim007_ has quit IRC19:42
*** caphrim007 has joined #openstack-jjb19:42
*** larainema has quit IRC22:32

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