20:03:18 #startmeeting Horizon 20:03:18 Meeting started Wed Jul 15 20:03:18 2015 UTC and is due to finish in 60 minutes. The chair is david-lyle. Information about MeetBot at http://wiki.debian.org/MeetBot. 20:03:19 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 20:03:21 The meeting name has been set to 'horizon' 20:03:25 %/ 20:03:31 o/ 20:03:32 o/ 20:03:36 hello/ 20:03:48 hi 20:04:26 Hi 20:05:13 the gangs all here 20:05:23 yep 20:06:39 The only general lead in I have is that the midcycle is next week 20:06:59 we are working on a video conf solution for remote participants 20:07:08 and by we, I mean someone else ;) 20:07:16 (= 20:07:46 I've been told that vidyo should support >10 participants 20:08:04 \o/ 20:08:22 There was a question around the weekly meeting next week. It will be at 6am Fort Collins time, so I can still run it if desired 20:08:23 Yeah if there's some type of video, that would be great 20:08:45 getting a camera/mic is up to someone else, as I tried the one I have and it didn't work :) 20:08:54 I think hp myrooms suports 250 20:08:56 Me or Matthias could run it, if thats easier. It was more if it should still be held with all the cores busy? 20:09:09 other than r1chardj0n3s and doug-fish I don't think anyone that usually attends will be here 20:09:20 rather than home 20:09:44 probably asking the wrong group 20:09:48 :) 20:10:10 yeah, maybe 20:10:14 I'll just hold it 20:10:20 Sure 20:10:27 if we quit early, so be it 20:10:59 There is a UX project proposal up, from Piet to add UX to openstack 20:11:08 which may be of interest to some 20:11:27 Terrible idea! -1! 20:11:39 Who even is that piet guy 20:11:46 :) 20:11:47 #link https://review.openstack.org/199768 20:11:50 mouth breather 20:11:57 don't get me started 20:12:17 seemed to be generally supported, some minor concerns from the TC 20:13:11 last general thing, I posted some review criteria, to explicitly spell out expectations 20:13:15 #link https://wiki.openstack.org/wiki/Horizon/Reviews 20:14:05 IMO we've been getting a little lax and I'd like to see that corrected 20:14:26 do we need more rules, or better adoption of those listed? 20:14:29 +1 guidelines 20:14:55 better adoption, I think the rules are clear 20:14:59 ducttape_: in the past the guidelines were tribal knowledge, this just documents them 20:15:18 tribal knowledge doesn't share as easily 20:15:23 should we have listed that each +2 should be from a different company? 20:15:27 One nitpick to tag on, when you approve patches, can you please also make sure the bug is targeted/ prioritised and the patch is attached properly (sometimes auto-infra doesnt work) 20:15:41 listing them in a wiki is a great idea 20:16:02 robcresswell +1 20:16:09 it's a wiki, that should be added 20:16:13 ducttape_: is that true? (each +2 from a different company) I thought as long as the submitter and both approvers were not from the same company all was good 20:16:41 not sure, I have heard different versions of the "lets get broad adoption for merging" rule 20:16:41 I don't see it in the wiki 20:16:57 ducttape_: the rule I've been advocating is of the author, and two core reviewers one of the three needed to be from a different company 20:17:13 david-lyle: maybe you could capture that in the wiki? 20:17:17 sure 20:17:21 thx 20:17:22 I'll add it post meeting 20:17:55 and please add to check, bug is targeted correctly, prioritized 20:18:02 as robcresswell mentioned 20:18:49 Yeah, and listed against the bug, recently infra keeps saying Fix Commited without linking the patch so I end up chasing them down. 20:18:55 if there are concerns that the 1 of 3 rule is causing problems please raise it privately or publicly 20:19:40 I also cleaned up the d-o-a project in launchpad today, will try to tackle horizon in the next few 20:19:50 * david-lyle knows that will go much slower 20:20:13 so you can target bugs in d-o-a to a milestone as well 20:20:36 * ducttape_ looks forward to doa and django 1.8 20:20:52 Today's agenda can be found at: 20:20:55 #link https://wiki.openstack.org/wiki/Meetings/Horizon 20:20:59 if there's a milestone missing, it seems I am able to create tags, versions etc. in launchpad. too 20:21:05 my concern is although 1 of 3 is followed, but all three have the same motive. It kinda work around the rule. 20:21:38 david-lyle: seems like I added the only item to the agenda =) 20:21:52 lhcheng: if that goal of the motive is outside the scope of the project, then we have a problem 20:22:15 if the goal is correct and the means to get there are a problem, we should discuss that 20:22:54 let's table that for just a minute and hear kzaitsev_mb 20:23:00 lhcheng - I think the spirit of the rule is "the change should try to gather broad input, and see reasonable effort made so that anyone interested can review" 20:23:11 #topic Choosing a CPL (https://wiki.openstack.org/wiki/CrossProjectLiaisons) for OSLO 20:23:19 david-lyle: sure 20:23:49 so kzaitsev_mb you're volunteering, is that correct? 20:24:08 well, the topic actually says it all. I've been contacted by dims_ earlier this week, and he asked if I'd like to volounteer for that position 20:24:21 david-lyle: yep, I pretty much would like to ) 20:24:27 there's a lot of competition ;) 20:24:31 if that's ok with everyone ) 20:24:45 I'll try to do my best (= 20:25:03 I have no issue with it, anyone else? 20:25:07 ++ for me 20:25:17 1+ from me 20:25:24 no concern here - thanks for volunterring kzaitsev_mb! 20:25:38 and if he doesn't behave, we'll kick him out again? 20:25:49 thank you for stepping up kzaitsev_mb ! 20:25:49 kzaitsev_mb: please add yourself to the wiki, and thanks for stepping up 20:25:58 ok, will do =) 20:25:59 thanks kzaitsev_mb 20:26:12 agenda complete! 20:26:20 "And now my watch begins" or something (= 20:26:21 #topic Open Discussion 20:26:31 go ahead lhcheng 20:26:41 sorry to cut you off before 20:27:46 no worries, I guess the reason we have the 1 of 3 rule is so that we can control code getting pushed without broader review 20:28:15 lhcheng: are you thinking patches get approved too quickly and there is no chance for review? 20:28:39 *some patches, not all 20:28:39 iirc, that was to prevent code rushed in, which was dominated by just a single company 20:28:40 doug-fish: approved too quickly 20:29:59 lhcheng: maybe we should have some minimum age/time we generally let the patches sit before they get merged? 20:30:11 isn't that the point of having many cores? to get eyes on things. usually it takes a day or two to merge, is that not enough time? 20:30:14 right, what would be reasonable review time? 20:30:54 Ok, the historical reason was when I started 2 companies were the most active contributors and had different motivations, but worked well together. My original concern was getting two major currents going in horizon that wouldn't necessarily line up 20:31:24 it seems we may have those two currents now and the split is no longer at company boundaries 20:31:42 so the rule is too simple 20:31:45 +1 20:32:02 there is a strong push to change and change rapidly 20:32:06 doug-fish: at least get the patch pass gate first even before approving 20:32:19 david-lyle: : just to make those 2 current clear to those of us who lack social sensitivity can you spell out the 2 currents you see? 20:32:24 and there is a strong push by those deploying horizon and actively use it, to do so more sanely 20:32:27 lhcheng: yeah, that's probably a good idea! 20:33:24 and developers in those two camps don't necessarily understand the implications of changes for the other 20:33:38 doug-fish - this is an oversimplification, but new code right away vs the need to be able to have horizon in a good working state 100% 20:33:54 yeah ok, I got it now. 20:34:06 * david-lyle thinks he said something like that 20:34:09 i agree, but isnt majority of new code disabled by default? 20:34:30 tqtran: only the end features of it 20:34:41 I think that's missing the point 20:34:47 yupp 20:34:52 there are a few infra changes that did get through, i agree those should have been more strict 20:35:00 if you can check in whatever you like, so long as it is disabled.... thats not correct 20:35:13 and building iteratively is ok, as long as code is not the only thing being created 20:35:14 hmm even if its disabled code, it should still be working code 20:35:21 with test too 20:35:28 and it should be checked on the gate properly 20:35:44 nothing merges without getting checked at gate? 20:35:52 tests and docs are not a tax, they protect the developer too 20:36:03 if you don't write tests, it's not checked 20:36:16 otherwise the next partial piece comes along and breaks the change you just made 20:36:49 i agree some of the patches didn't include tests, but i would say most of the newer patches do contain them, in fact more so than previously 20:37:44 if you guys took a look at them, you would notice that a majority of the time, the spec files are bigger than the code 20:37:47 the lack of tests is not just a angular vs django thing either 20:37:57 it's not fingerpointing at anyone, we just need to make sure, code is production ready, not ready to be tested by other developers 20:38:00 i agree, some infra stuff did get in w/o proper tests 20:38:15 but theres only one that i can think of off the top of my head 20:38:56 mrunge: understood, i agree that going forward, tests and docs should be prioritize 20:39:12 tqtran: this change was +2 within a 3 min window - https://review.openstack.org/#/c/200324/ 20:39:25 and I didn't see any tests 20:39:27 mrunge: agree, we want to agree to some guideline on quality of code 20:39:54 For the me the goal here is make clear the expectations and do a bit of a reset 20:39:59 ducttape_: how would you test that? 20:40:04 otherwise we will all be paying down the road 20:40:17 sure thats fair 20:40:25 david-lyle: yeah that's a good approach. 20:40:35 tqtran - thats the question a core should be asking ;) 20:40:38 tqtran: load the panel and test that it renders, much like any of the index views 20:40:47 I've been contributing here and there to other projects - they are much more strict about testing that we have been in Horizon 20:40:48 as in manual testing? 20:41:14 tqtran: we have the ability to write selenium tests if need be 20:41:30 doug-fish: true, no tests/doc is immediately -1 20:41:34 so, do we normally tests new panels/dashboards via selenium? 20:41:46 doug-fish: at least for keystone 20:41:49 im just trying to setup a consensus and norm 20:41:52 tqtran: with django we didn't need selenium to do that 20:41:58 even heat requires unit tests! 20:41:59 we usually use django's test runner 20:42:02 tqtran, in the past, we didn't need selenium 20:42:07 because the page was rendered server side 20:42:12 now, we need some rendering engine 20:42:50 so my question is simple, for new panels/dashboards, do we have existing tests for them? and if not, are we expecting programmatic tests for them? 20:42:58 but we did use selenium to validate some Javascript code 20:43:32 that has been the case yes 20:43:36 tqtran, for django based panels: as david said. and yes, we're expecting programmatic tests 20:43:41 i have a feeling that many more panels are going to get angularize going forward, so this is something i would be interested to know 20:44:27 i think david-lyle is referring to just manual testing, so we'd have to come up with a programmatic way to test it then. sounds about right? 20:44:37 tqtran: no programmatic 20:44:42 this would be something to be done with the first commit.... "this is how you test ng stuff" 20:44:51 tqtran, manual testing should be an exception 20:45:10 we need automatic testing 20:45:15 ok, you guys are telling me two different things here 20:45:29 tqtran: I don't think we are 20:45:33 ducttape_: most of the patches include testing messages in the commit body 20:45:53 ok, that is different 20:45:59 but yes that is necessary too 20:46:01 I mean automated tests, not in a commit message 20:46:31 how can we exclude regressions, if features are not tested at each commit? 20:46:32 I mean as you guys blaze that trail, to have a solid example for others to follow 20:46:33 would someone like to volunteer on creating this automated test for new panel/dashboard? 20:46:49 most of the new angular stuff seems to have jasmine tests.. what am I missing? 20:47:27 if that is something you guys want, someone should step up to the plate, i sure got mine full :P 20:47:41 huh 20:47:42 mwhagedorn: that only test the client side, how the data is passed from rest to client is not. 20:48:24 lhcheng: are you talking about integration tests? 20:48:27 like end to end testing/selenium 20:48:29 ? 20:48:41 lhcheng: you mean like integration tests? or https://github.com/openstack/horizon/blob/master/openstack_dashboard/test/api_tests/keystone_rest_tests.py ? 20:48:42 https://i.imgflip.com/o91iz.jpg 20:49:04 tqtran, integration tests would be ideal 20:49:04 doug-fish: not integration test 20:49:11 ducttape_: moce 20:49:15 nice 20:49:17 :) 20:49:19 but, that's probably too much 20:49:22 integration tests means horizon is tested with other services 20:49:42 so just unit rest tests? 20:49:45 we have those.... 20:49:45 most horizon tests to this point have been a hybrid 20:50:02 they're not really unit tests 20:50:11 because we're not testing one method at a time 20:50:26 do we need to set expectations in the docs for what a good test looks like then? 20:50:36 we're testing that methods work in association with the pages that are rendered 20:50:56 david-lyle: for legacy code? or the newer code? 20:51:01 testing get_context_data while mocking the data source is worthless 20:51:22 tqtran: django based code 20:52:44 so the goal of a core reviewer is ultimately a stable and functioning project 20:53:12 change is done with respect to that stability and continued functionality 20:53:28 if something needs to change drastically, it needs to be documented 20:53:35 so that people can consume it 20:53:49 without ripping out their hair for days on end 20:54:04 I'm not saying we've been perfect at that 20:54:08 it is the goal 20:54:29 yes! 20:55:03 I am still a little in the dark then what qualifies as a good test from the core perspective 20:55:07 whats lacking 20:55:18 whats needed to get things more in line with larger goals 20:55:27 mwhagedorn - I think there are patterns for old school horizon changes 20:55:53 and the new stuff is all over the map on how much it does or does not have for tests, and which type 20:56:09 we are struggling to reach consensus on what is correct 20:56:16 ducttape_ : sure but wouldnt you agree that its hard to tell what the legacy tests actually test sometimes? 20:56:43 oh, mwhagedorn that's easy 20:56:44 There is some old stuff that isn't currently being tested at all as well 20:56:46 I'm strange, I understand the old tests very well. you should ask a normal person 20:56:50 do we know what kind of coverage we currently have? 20:56:51 ducttape_: i think thats an unfair statement, most of the angular patches come with spec files (there were exceptions in kilo). 20:56:54 mwhagedorn: depends on if you understand how mox and django work 20:57:32 mox is pretty much user-viscious imho 20:57:32 but test for the patches in kilo have since been added 20:57:39 tqtran: again, to me this is not a clean cut case of angular vs django 20:57:50 tqtran - would you agree we are trying to reach consensus on what is appropriate for ng style testing, when you are adding a new feature? 20:57:53 code coverage can help the reviewer see what has not been tested. It is not bullet proof but better then nothing 20:58:16 right, thats what karma is there for 20:58:41 that's just js thought, right? 20:58:45 though* 20:58:56 correct, just js part 20:58:56 tqtran, for example, new launch instance couldn't create a volume during launching an instance 20:58:58 coverage can be run on any horizon build 20:59:09 that would have been caught very early 20:59:15 you can get coverage on the django stuff hurgleburgler.... 20:59:20 if there was a test for it 21:00:28 looks like time is up. 21:00:43 ok, so what im hearing is, more tests and docs. but going back to mwhagedorn, what are expections/standards for them? 21:00:50 yes 21:00:55 someone help me :) 21:01:06 * robcresswell is following all this, btw, but also eating dinner :) 21:01:14 and popcorn 21:01:17 hahaha 21:01:34 * esp just finished some nachos and a coke 21:01:45 * ducttape_ always brings a cold beverage to these things 21:01:54 The drama here is better than tv :) 21:02:17 Good Times ಠ◡ಠ 21:02:18 you can switch off tv and don't need to care about it any more 21:02:30 I'll have to bring pop corn to the mid cycle 21:02:36 * david-lyle bites tongue 21:02:39 I'm happy to help out with docs stuff. Me and bradjones are working on a formal doc for angular panels/dashboards and adding external plugins etc 21:02:41 #nedmeeting 21:02:48 ned meeting who? 21:02:52 stark?? 21:02:53 * r1chardj0n3s ducks 21:03:06 #action david-lyle document testing 21:03:12 #endmeeting