Thursday, 2018-04-12

openstackgerritMerged openstack/python-jenkins master: Adding pypy to bindep test profile  https://review.openstack.org/56047500:57
*** openstackgerrit has quit IRC05:48
*** caphrim007 has quit IRC06:43
*** caphrim007 has joined #openstack-jjb06:44
*** hashar has joined #openstack-jjb06:51
*** electrofelix has joined #openstack-jjb07:24
*** openstackgerrit has joined #openstack-jjb09:27
openstackgerritSorin Sbarnea proposed openstack/python-jenkins master: avoid multiple ssl warnings on each request  https://review.openstack.org/56084209:27
openstackgerritSorin Sbarnea proposed openstack/python-jenkins master: avoid multiple ssl warnings on each request  https://review.openstack.org/56084209:43
openstackgerritSorin Sbarnea proposed openstack/python-jenkins master: Improve SSL support with requests lib  https://review.openstack.org/56084210:26
ssbarneaelectrofelix: ^^ that one would be critical before any new release. I was wondering why REQUESTS_CA_BUNDLE was working on other projects but not with python-jenkins.10:39
ssbarneathe python-jenkins will need further refactoring to simplify the http code in the future. our own wrapper caused this.10:40
openstackgerritAkshat Tandon proposed openstack/python-jenkins master: Adds support for multi-select build parameters  https://review.openstack.org/51736110:43
electrofelixPresumably the issue is caused by us explicitly setting 'verify' on the request? would have thought it would be better if we can avoid needing to inspect variables used by requests and instead work out a way to allow the default behaviour to occur unless explicitly overridden, I'd like to have a dig into the requests code to see why we need to set the verify explicitly on each 'send()' call instead of only needing to set it on the session as neede11:01
*** caphrim007 has quit IRC13:45
*** caphrim007 has joined #openstack-jjb15:38
*** caphrim007 has quit IRC15:42
*** caphrim007 has joined #openstack-jjb15:42
*** caphrim007 has quit IRC15:42
openstackgerritAndrew Mellen proposed openstack-infra/jenkins-job-builder master: Sort views list jobs  https://review.openstack.org/56094515:42
*** caphrim007 has joined #openstack-jjb15:43
ssbarneaelectrofelix: yep, you pointed the same thing I was thinking about. Mainly to do this I would have to add extra code to the library in order to decide if it should perform calls with verify param or without it because there is no value that we can use that would tell requests to "use default behavior".16:29
ssbarneaelectrofelix: if you think is important i will try to fix it now. one way or another we need to cover for the custom SSL case.16:30
electrofelixssbarnea: https://github.com/requests/requests/blob/d2e1130603c67d278eb49980205a3797e9e8b4a3/requests/sessions.py#L602 suggests that if we only set self._session.verify when we need to, it should be supplied to the send request16:44
ssbarneaelectrofelix: true, but there are some bugs, i am rewriting the code anyway. see https://github.com/requests/requests/issues/382916:51
ssbarneaclearly it can be done much better than now.16:52
electrofelixhmm, guess that means it has to be explicitly set, so the solution might be to add a dict args = {'verify': <value>} in the case that self._session.verify is not 'True' and use the splat operator to add it to the send() call so it only gets added when explicitly set?16:56
electrofelixthat would ensure it forces it to False for all requests when set explicitly and otherwise defaults to relying on requests behaviour?16:58
*** electrofelix has quit IRC17:06
*** hashar is now known as hasharAway17:11
*** frayedknot has joined #openstack-jjb18:17
frayedknotIs there a way to override a build parameter that is specified in a job-template?18:18
frayedknotI'm referring to the parameters module18:18
*** openstackgerrit has quit IRC18:19
*** openstackgerrit has joined #openstack-jjb18:22
openstackgerritSorin Sbarnea proposed openstack/python-jenkins master: Improve SSL support with requests lib  https://review.openstack.org/56084218:22
ssbarneazxiiro: ^^ please have a look at the SSL fix. It became a little bit ugly but this is due to bugs/undocumented behaviours in request library.18:25
openstackgerritSorin Sbarnea proposed openstack-infra/jenkins-job-builder master: Add support for view-templates  https://review.openstack.org/39571618:54
*** frayedknot has quit IRC18:59
openstackgerritMerged openstack-infra/jenkins-job-builder master: Delete old managed folders when calling update subcommand with --delete-old option  https://review.openstack.org/51940419:08
openstackgerritSorin Sbarnea proposed openstack-infra/jenkins-job-builder master: Add helper tag to join arbitrary lists into strings  https://review.openstack.org/26592619:10
zxiirossbarnea: I'm really swamped with stuff right now. I'll try to look at it later tonight.19:12
ssbarneazxiiro: perfect.19:13
*** frayedknot has joined #openstack-jjb19:14
zxiirofrayedknot: yes, you define a variable in the template. and then override that variable in the project section.19:15
frayedknotand then use that variable for the parameter's default value?19:16
zxiirofrayedknot: here's an example. https://github.com/lfit/releng-global-jjb/blob/master/jjb/lf-maven-jobs.yaml#L154-L17219:16
frayedknotI'm talking about these guys: https://docs.openstack.org/infra/jenkins-job-builder/parameters.html19:16
zxiirofrayedknot: yep. even those guys can follow this pattern.19:17
zxiirofrayedknot: so if you look at my example. Things under "Job Configuration" create variables. Things in "Default Parameters" are defaults if no one configures them in their local project setting.19:17
frayedknothmm...ok. I tried redefining a parameter's default in the project and it ended up just using the template's value and not the project's value19:17
zxiirofrayedknot: what's your template look like?19:18
zxiirofrayedknot: here's a minimal example: https://pastebin.com/52zpxv7V19:20
frayedknotzxiiro: https://pastebin.com/jU0M58Tx19:22
zxiirofrayedknot: so instead of default: false you need to turn default into a variable19:22
zxiirofrayedknot: default: '{bool-var}'19:22
frayedknotahh! I get it now, that makes sense19:23
frayedknotthanks much19:23
zxiirofrayedknot: and then if you want it to have a default in the job template define 'bool-var: false' above that.19:23
zxiirofrayedknot: np :)19:23
zxiirofrayedknot: also something that might throw you off, variable priority is as follows. job-group > project > job-template > defaults19:24
zxiirofrayedknot: so if you're using a "defaults" file it has the absolute lowest priority so a definition in job-templates also overrides it.19:24
zxiiropersonally I don't agree with that behaviour but apparently some folks use it.19:24
openstackgerritSorin Sbarnea proposed openstack-infra/jenkins-job-builder master: gitlab trigger: add support for different MR events  https://review.openstack.org/51371219:42
openstackgerritSorin Sbarnea proposed openstack-infra/jenkins-job-builder master: Add helper tag to join arbitrary lists into strings  https://review.openstack.org/26592619:46
openstackgerritMerged openstack-infra/jenkins-job-builder master: Add 'existing-only' argument for update subcommand  https://review.openstack.org/49162119:59
openstackgerritSorin Sbarnea proposed openstack-infra/jenkins-job-builder master: Add support for jira-changelog trigger  https://review.openstack.org/49333620:00
openstackgerritSorin Sbarnea proposed openstack-infra/jenkins-job-builder master: Fix default expansion in macros  https://review.openstack.org/23061320:04
*** frayedknot has quit IRC20:05
*** frayedknot has joined #openstack-jjb20:19
openstackgerritMerged openstack-infra/jenkins-job-builder master: Sort views list jobs  https://review.openstack.org/56094520:45
*** frayedknot has quit IRC20:51
*** openstack has joined #openstack-jjb21:31
*** ChanServ sets mode: +o openstack21:31
*** hasharAway has quit IRC21:33
openstackgerritThanh Ha proposed openstack-infra/jenkins-job-builder master: Add support for jira-changelog trigger  https://review.openstack.org/49333622:42
*** caphrim007_ has joined #openstack-jjb23:04
openstackgerritMerged openstack-infra/jenkins-job-builder master: Add support for jira-changelog trigger  https://review.openstack.org/49333623:04
*** caphrim007 has quit IRC23:08
*** caphrim007_ has quit IRC23:08
openstackgerritThanh Ha proposed openstack-infra/jenkins-job-builder master: wrappers: fix XML node name for scrip-env's only-run-on-parent  https://review.openstack.org/56068423:11
zxiirossbarnea: thanks for the awesome effort on the code reviews. much appreciated!23:26
*** vrroger_rabbit has joined #openstack-jjb23:48
*** vrroger_rabbit has quit IRC23:50

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