Friday, 2018-04-13

*** larainema has quit IRC01:58
*** caphrim007 has joined #openstack-jjb02:53
*** caphrim007_ has joined #openstack-jjb03:20
*** caphrim007 has quit IRC03:24
*** hashar has joined #openstack-jjb06:53
*** electrofelix has joined #openstack-jjb07:58
ssbarneazxiiro: is nothing, by monday we should consider this done. I was considering writing a gerritcop that does rebase, asks for refresh and eventually abandons outdated reviews. there are few of them for github but none for gerrit (or i failed to find it)09:19
ssbarneaa project that keeps CRs updated is always better09:20
ssbarneabut as always, there are not enough hours in a day09:20
openstackgerritSorin Sbarnea proposed openstack-infra/jenkins-job-builder master: conditional_publisher: add support for Matrix Aggregation  https://review.openstack.org/46089810:53
openstackgerritMerged openstack-infra/jenkins-job-builder master: wrappers: fix XML node name for scrip-env's only-run-on-parent  https://review.openstack.org/56068410:54
openstackgerritMerged openstack-infra/jenkins-job-builder master: gitlab trigger: add support for different MR events  https://review.openstack.org/51371210:54
ssbarneaelectrofelix: one last eye on https://review.openstack.org/#/c/560842/ please.10:55
openstackgerritMerged openstack-infra/jenkins-job-builder master: Add helper tag to join arbitrary lists into strings  https://review.openstack.org/26592611:00
electrofelixssbarnea: do we need to inspect REQUESTS_CA_BUNDLE or CURL_CA_BUNDLE? or are we able to just leave that entire up to requests? my understand was the problem was setting the session.verify value to False would fail to override env settings11:34
electrofelixso the wrapper just needs to check if the session verify is explicitly set to False, and if so, ensure the passed through value to the merge method is also false, otherwise the default behaviour works as desired?11:35
ssbarneaelectrofelix: sadly no because current version of request is buggy regarding this aspect. In the future, once they solve it, we can bump reqs version and remove our code.11:37
ssbarneaelectrofelix: i did spend most of the yesterday on investigating a fix for that and this was the only solution I got. i had to test with all combinations of: cert(global/present-in-bundle/not-present-or-invalid), env var defined or not, verify defined or not.... a total pleasure.11:40
electrofelixcan you elaborate on what use cases that block is needed?11:40
electrofelixguess I'm trying to work out why the following code in requests doesn't take care of that scenario? https://github.com/requests/requests/blob/master/requests/sessions.py#L683-L68511:40
ssbarneaelectrofelix: mainly they will fix it in request 3.x as they decided not to break current behaviour in current version.11:42
ssbarneai will test one more time with that section removed11:45
electrofelixssbarnea: looking at the code in python-jenkins, if the code to test REQUESTS_CA_BUNDLE and CURL_CA_BUNDLE is dropped, the call to super(WrappedSession, self).merge_environment_settings(...) results in performing the same test on the value of verify being True or None and then inspecting the two env variables at https://github.com/requests/requests/blob/master/requests/sessions.py#L683-L685 so it looks like it just duplicates what would happen any11:45
ssbarneaindeed, but i remember that it didn't work, give me 5mins to check.11:45
electrofelixif not, then we probably need something in the commit message or a comment to remind us of the fact that the behaviour is different and explain why11:46
electrofelixunless we're doing something to unset trust_env on the session?11:47
openstackgerritSorin Sbarnea proposed openstack/python-jenkins master: Improve SSL support with requests lib  https://review.openstack.org/56084211:52
ssbarneaelectrofelix: you were right, those lines were not needed. i guess i added them before implementing the _send workaround.11:53
ssbarneai removed them and also improved the description11:53
ssbarneanow i remember that the merge..() was not working, but it was not working because _send() was not using it, by requests design decisions.11:54
electrofelixgood to get it confirmed11:54
ssbarneaelectrofelix: yep last two days make me learn few new things about requests lib, used to like it a lot before knowing more :D11:55
electrofelixnearly always the case when you have to go deep12:02
openstackgerritAkshat Tandon proposed openstack/python-jenkins master: Adds support for multi-select build parameters  https://review.openstack.org/51736112:40
*** caphrim007_ has quit IRC14:30
*** frayedknot has joined #openstack-jjb14:43
frayedknotI have another question that relates to my parameter question yesterday - it seems like I'm having trouble to get interpolation of parameters within parameters working correctly: https://pastebin.com/qA8WJQ7K14:49
frayedknotRather than getting a default value of 'feature/prj-123-test' I get '{feature-branch}-test'14:49
*** openstackgerrit has quit IRC14:50
zxiirofrayedknot: you cannot nest variables in JJB14:55
frayedknotdang, ok!14:55
frayedknotI misinterpreted this from the documentation: "JJB also supports interpolation of parameters within parameters."14:58
frayedknotvia https://docs.openstack.org/infra/jenkins-job-builder/definition.html?highlight=interpolation14:58
zxiirofrayedknot: yeah so I think what it means is you pass the result parameters from outside of the template into the template15:00
zxiirofrayedknot: you see they do a 'downstream: {var1}_{var2}_bar' thing15:01
zxiirofrayedknot: but inside the template it's just "{downstream}"15:01
zxiirofrayedknot: so if you want to do that then from your Project section you'd pass in "BRANCH: feature/prj-123-test"15:02
zxiirofrayedknot: oh wait, you need it do it from a job-group15:02
frayedknotit appear to work if I do it in the project15:03
zxiiroit wouldn't work from project section because you cannot declare variables in projects15:03
zxiiroreally? ok15:03
*** openstackgerrit has joined #openstack-jjb15:48
openstackgerritMerged openstack/python-jenkins master: Improve SSL support with requests lib  https://review.openstack.org/56084215:48
openstackgerritSorin Sbarnea proposed openstack/python-jenkins master: enable cross testing with jenkins-job-builder  https://review.openstack.org/56126015:49
*** caphrim007 has joined #openstack-jjb16:05
zxiiroelectrofelix: that {OS_USERNAME|my_user} is something I really wish I knew earlier. Seems like it's undocumented? I couldn't find it in docs... I can look into documenting it if it's not already somewhere and I couldn't find it.16:07
electrofelixzxiiro: oops, I guess I forgot to document it at the time it was added16:13
electrofelixshould probably be part of https://docs.openstack.org/infra/jenkins-job-builder/definition.html#variable-references16:13
zxiiroelectrofelix: cool. Yeah let me look into updating that. That made my day, it's something we've been struggling with for our jjb template repo.16:14
*** hashar is now known as hasharAway16:24
openstackgerritMerged openstack/python-jenkins master: enable cross testing with jenkins-job-builder  https://review.openstack.org/56126016:39
openstackgerritSorin Sbarnea proposed openstack/python-jenkins master: Adds support for deleting builds  https://review.openstack.org/28925717:23
zxiiroelectrofelix: So I think there's a bug in that feature. If I define {var|default} in a macro, and then call the macro in a job-temlpate without overriding anything. It results in the literal "{var|default}" in the resultant job rather than the expected "default"17:31
zxiiroI'm gonna document the feature from a job-template perspective but I think we need to figure out why it's not parsing correctly in macros.17:31
electrofelixzxiiro: possibly that relates to the same issue where we're not expanding macros at the same time as templates?17:32
zxiiroelectrofelix: oh yeah possibly, I had forgotten about that one.17:33
*** electrofelix has quit IRC17:38
openstackgerritThanh Ha proposed openstack-infra/jenkins-job-builder master: Document use of | character for variable defaults  https://review.openstack.org/56127817:38
openstackgerritTrevor Bramwell proposed openstack-infra/jenkins-job-builder master: Fix Postbuildscript Plugin Info Lookup  https://review.openstack.org/56127917:40
*** caphrim007_ has joined #openstack-jjb17:48
*** caphrim007 has quit IRC17:52
*** caphrim007_ has quit IRC18:07
*** caphrim007 has joined #openstack-jjb18:07
*** smyers has quit IRC18:30
*** smyers has joined #openstack-jjb18:33
*** caphrim007_ has joined #openstack-jjb20:58
*** caphrim007 has quit IRC21:02
*** frayedknot has quit IRC21:30
*** caphrim007_ has quit IRC21:54
*** caphrim007 has joined #openstack-jjb21:55
*** hasharAway has quit IRC22:58
*** caphrim007_ has joined #openstack-jjb23:18
*** caphrim007 has quit IRC23:21
*** caphrim007 has joined #openstack-jjb23:21
*** caphrim007_ has quit IRC23:21
*** caphrim007 has quit IRC23:26

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