Friday, 2016-08-19

*** baoli has joined #openstack-sprint01:14
*** rfolco has quit IRC02:25
*** baoli has quit IRC03:35
*** hieulq has quit IRC06:30
*** hieulq has joined #openstack-sprint06:33
-openstackstatus- NOTICE: Precise tests on OSIC provider are currently failing, please stop your checks until the issue is resolved.11:17
-openstackstatus- NOTICE: DSVM jobs on OSIC currently failing because of IP collisions, fix is in the gate - https://review.openstack.org/#/c/357764/ - please hold rechecks until merged11:22
*** SotK has quit IRC11:26
*** waynr has quit IRC11:26
*** SotK has joined #openstack-sprint11:27
*** waynr has joined #openstack-sprint11:27
*** cdelatte has joined #openstack-sprint11:42
*** baoli has joined #openstack-sprint11:42
-openstackstatus- NOTICE: OSIC has burned through the problematic IP range with failures, things should be back to normal now.11:50
*** rfolco has joined #openstack-sprint12:10
*** baoli has quit IRC12:51
*** baoli has joined #openstack-sprint13:03
*** baoli has quit IRC13:34
*** baoli has joined #openstack-sprint13:47
waynrzaro zxiiro yo i woke up a bit late today so i probably won't be attentive here for about an hour yet FYI14:02
zxiirowaynr: cool, I rebased a few patches last night that I think we can easily merge. There's still the 2 patches that electrofelix brought up last time that we need to work through his comments on14:04
*** electrofelix has joined #openstack-sprint14:19
electrofelixaloha!14:19
zxiiroelectrofelix: yo!14:20
zxiiroelectrofelix: i rebased a few patches yesterday and added it to the etherpad that i think we can merge today14:20
zxiiroelectrofelix: there's still the 2 ones you had comments about that we should figure out14:20
electrofelixzxiiro: thanks, saw that earlier when sending out the reminder email14:20
zxiiroah i should have checked my email14:21
electrofelixok, today I'm going to focus on "Add static methods to classes to create from config object to retain full __init__ API signature while simplifying default creation" after I've finished reviewing those 5 patches14:33
electrofelixas well as seeing if a test can be added to capture the issue we hit with CLI accidentally deleting jobs, I think it's a CLI issue that we failed to test the options correctly rather than an API issue.14:34
zxiiroI want to rebase the views patch but I suspect we should wait for a few more of these api patches merged first14:38
waynrokay i'm back online14:56
electrofelixwaynr: do you want to give the patches zxiiro rebased the once over, I think they are mostly the same I'm just going through them14:57
waynrelectrofelix: are these all the patches listed under "Patch list for landing"?14:58
electrofelixlooks like the main change is just moving the two patches that change class hierarchy/inheritance model for builder.Jenkins and builder.Builder are moved out to be later so we can delay reviewing them14:58
electrofelixwaynr: yeap14:58
waynroh, cool15:00
zxiiroyeah if we can't land those 2 patches we should rebase them so that they are at the end because I think the next set of patches are pretty trivial too15:00
waynryeah i'm totally down with that, the class hierarchy/inheritance model thing was more of an experiment/afterthought15:01
waynrby the way i used JJB 2 to great effect this past week to automatically generate 150+ JIRA tickets for a mass Jenkins migration effort we are undergoing soon, made a ticket for each job-group, job-template, and !include script matching a particular regular expression (since the migration work will involve making all these things compatible with a new jenkins plugin we are writing)15:06
zxiirowaynr: neat, I've been using what's in master for my daily usage and it been working for what I've been doing too15:07
waynrwhile doing this i had some ideas for improving the traceability of different JJB YAML elements by having the custom yaml.Loader in local_yaml return custom OrderedDict objects that contain metadata references to the files each dict was loaded from15:08
waynr(maybe even line numbers to indicate where each specific job-template, job-group, project, default, etc came from)15:09
zxiirothat would be great, we often have confusion from our users of where a yaml syntax error15:18
zxiirois15:18
*** larainema has quit IRC15:21
*** larainema has joined #openstack-sprint15:23
electrofelixwaynr zxiiro: is there any chance we might see usage of python<3.2 ever? I'm presuming not, can't think of anything that I can recall that would suggest it is used anyway?15:35
electrofelixs/anyway/anywhere/15:35
zxiiroelectrofelix: I don't think so. I think we want to support at least whatever comes with the distros by default. I believe these days it's 3.415:35
electrofelixjust spotted that our PY2/PY3 compat uses read_file for a configparser object which only appears in py3.215:36
electrofelixzxiiro: that was my thought too15:36
waynrwell python 2.7 is the default python on current versions of debian15:36
zxiiroyeah it's usually 2.7 default and 3.4 as an option15:36
electrofelixwaynr: meant that where python 3 is being supported can you recall anything supporting python < 3.2?15:37
waynrnope15:37
electrofelixok, cause that means we can also just switch to using read_string for the DEFAULT_CONF as well ;-)15:42
electrofelixwaynr zxiiro: spotted a few things with https://review.openstack.org/#/c/319624/13, do we want to TODO them or fix the commit?15:42
electrofelixalso looks like we've all missed that __all__ should be at the top of the file with https://review.openstack.org/319625, I'd say we just forgot about it15:46
waynrwhoops, i'll fix that one up15:51
zxiirowaynr: electrofelix: I just noticed, i think the cli doesn't initiate the logger. So a command like "jenkins-jobs delete some_job" won't return any feedback that jobs were removed15:53
zxiiroif we're purposely not starting the console logger how should we handle feedback?15:54
waynri don't know if we're purposely not starting it15:55
electrofelixzxiiro: I suspect it accidentally got removed in some of the refactoring, I recall making a change so that we weren't enabling in the API by default, as it should only be via entry15:55
electrofelixfound it, missed it being removed: https://review.openstack.org/#/c/319610/ should have included adding a corresponding line to call logging.basicConfig(level=logging.INFO) in /jenkins_jobs/cli/entry.py15:57
waynri have to go to a company all-hands (they are bribing us to attend with tasty cold brew coffee)15:59
electrofelixwe should probably add it to the entry.py and replace the line "logger = logging.getLogger()" inside the __init__ method with it, since the file already has that just after the imports15:59
zxiiroelectrofelix: ah ok cool16:10
*** sebian has quit IRC16:14
electrofelixzxiiro: I wonder, add logging.basicConfig() to top of file to get any logged warnings from argparser and JJBConfig, or move JJBConfig below the initial options parsing and start logging from after the initial arg parsing?16:15
electrofelixI'm thinking put it at the start16:15
zxiiroelectrofelix: I always put my logger at the very top16:16
zxiiromore logs is always a good thing16:16
electrofelixzxiiro waynr: https://review.openstack.org/357994 should fix the logging16:18
zxiiroelectrofelix: I also did the for loop in the delete todo you had https://review.openstack.org/#/c/357990/116:18
*** sbadia has joined #openstack-sprint16:18
electrofelixzxiiro: I'll think I might just review the tests for that before I approve based on our last experience :p16:20
zxiirohaha sounds good16:20
zxiiroelectrofelix: I can confirm your patch works16:22
zxiiroelectrofelix: What happens if i workflow+1 before verified+1 returns?16:23
zxiiroelectrofelix: does it still go through the proper tests or skip it?16:23
* waynr works on 31962516:24
waynrelectrofelix zxiiro unless either of you have already begun I'll also address the comments on https://review.openstack.org/#/c/319624/16:38
zxiirowaynr: I haven't touched it16:39
electrofelixneither had I16:40
*** krotscheck is now known as the_other_clarkb16:42
*** the_other_clarkb is now known as krotscheck16:43
waynrholy shit i hate balancing quote marks between multiple lines of the "same" string between parens16:53
clarkbpep8 doesn't require that fwiw16:54
waynralmost enough to make me want to go into farming ;)16:54
clarkbit accepts either balanced or extra indent16:54
waynrokay 319624 and 319625 are updated and ready for re-review16:56
waynrrereview16:56
waynrrearview16:56
waynrclarkb: hmm are we talking about the same thing? I am referring to wrapping long strings using multiple single-quoted strings and python's implied line continuation inside parenthesis16:59
clarkbya, I thought you were saying that balancing indentation of that is a pain. Eg if the functiona name changes everything has to move17:01
waynrthe multiple single-quoted strings inside parenthesis bothers me because it's annoying to change the string contents then have to change all the quote characters to match line length limits, although i imagine there must be an emacs package with a function to automate this so i'm really just complaining uselessly17:03
waynrelectrofelix: so with regard to https://review.openstack.org/#/c/319751/ and https://review.openstack.org/#/c/319754/, I agree that we probably shouldn't inhereit from the python-jenkins module's Jenkins class but it's not clear to me if you are in favor of merging builder.Jenkins and builder.Builder...?17:08
waynroh wait, actually I think I see comments indicating you are in favor of it but naming the combined class "JenkinsManager" instead, does that sound right?17:08
waynrif so I will start working on that now17:08
electrofelixI'm happy enough about merging them, if you think some of the methods from builder.Jenkins should be really be part of the jenkins api I think we should look at getting them added17:08
electrofelixyeap, thought a rename of the class might help distinguish that it's not the same ;)17:09
waynri'll rethink whether i think stuff from builder.Jenkins should be part of the upstream jenkins API while working on it17:10
waynrargh...gerrit/git-review seems to make it easy to get lost in a large series of patchs like what we're working on17:11
electrofelixzxiiro waynr: I've done an initial stab a having both the explicit and simple API available for the Builder class https://review.openstack.org/358019 set it -1 WIP for now17:11
electrofelixwaynr: in reusing the topic name for the local branch?17:12
electrofelixthat's definitely one thing I'd like to look at turning off17:12
waynrwell i'm lost right now because in this patch [https://review.openstack.org/#/c/319755/11] I moved CacheStorage out of the builder module but in this patch [https://review.openstack.org/#/c/333780/10..11] it seems to have been added back in and I can no longer see the relationship between these two in the "Related Changes" pane on the latter commit17:13
electrofelixwaynr: I think it's an ordering thing, the rename parallelize is no longer directly in line from the CacheStorage patch17:15
electrofelixI think it's in order to allow it to be merged without needing to wait on the Jenkins/Builder classes changes, I guess that's going to cause some conflicts somewhere though17:16
waynr...oh yeah17:16
electrofelixperhaps we can get zxiiro to help complete the remaining reviews and then straighten up the patch series?17:17
electrofelixI've +2'ed the next three patches listed in the etherpad, and the next one after that is my own so can't review it ;-)17:17
zxiiroI can look soon. Just finishing up some unexpected work17:17
waynrI +2'd your patch electrofelix ... zxiiro did you change your mind on the workflow +1 for https://review.openstack.org/#/c/357994/ for a specific reason?17:18
electrofelixwaiting for CI to get back first?17:18
waynroh yeah17:19
zxiiroyeah i was waiting for jenkins17:19
zxiiroi'm not entirely sure what happens when you workflow+1 before jenkins returns17:20
electrofelixok, I need to head, I'll check again in about 2 hours, as I've a class to go to in about 40 minutes17:20
waynrelectrofelix: cool, thanks again for leading this sprint!17:20
zxiiroelectrofelix: cool thanks17:21
electrofelixzxiiro: I think it just moves it into the gate automatically, but since we also might want to check any warning on the larger set of jobs17:21
electrofelixit's generally better to wait until it gets back, since the warning won't stop a change from landing17:21
clarkbzxiiro: if the jenkins run fails its a noop, if the jenkins run passes it will enqueue into the gate and potentially merge17:21
electrofelixhowever in this case it shouldn't affect the job config comparison check17:21
zxiiroelectrofelix: waynr ok all patches reviewed, Just waiting for Jenkisn to return on them before we merge17:23
waynrcool17:23
electrofelixok, chat to you later or on Monday, enjoy the weekend17:24
*** electrofelix has quit IRC17:24
*** baoli has quit IRC17:29
*** baoli has joined #openstack-sprint17:30
*** baoli has quit IRC17:40
*** baoli has joined #openstack-sprint17:46
*** baoli has quit IRC17:56
*** baoli has joined #openstack-sprint17:56
*** baoli has quit IRC18:21
*** baoli has joined #openstack-sprint18:26
*** baoli has quit IRC18:33
*** baoli has joined #openstack-sprint18:36
waynrgerrit--18:44
waynror maybe i'm just stupid18:44
waynrtwo related sets of patchsets diverged in a yellow wood18:48
waynrand sorry i could not understand both18:48
waynrand be one developer, long i stood18:49
waynrand looked down one as far as I could18:49
waynrto where it bent in the undergrowth18:49
waynrthen gave up and worked on something else18:49
waynr(ref: http://www.bartleby.com/119/1.html)18:51
clarkbgertty can really help with that because it is one of the lacking bits of the gerrit ui. It got worse in yhe new change screen too :(18:52
clarkbbut people are working to make it better so thats nice18:52
waynrcool18:52
*** rfolco has quit IRC19:57
*** baoli has quit IRC20:17
*** cdelatte has quit IRC20:24
*** zxiiro is now known as zxiiro-away20:48
*** baoli has joined #openstack-sprint21:48
*** baoli has quit IRC21:54

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