Monday, 2015-03-30

*** achanda has quit IRC00:00
*** davideagnello has joined #openstack-zaqar00:37
*** davideagnello has quit IRC00:43
*** cpallares has quit IRC00:51
*** achanda has joined #openstack-zaqar01:01
*** achanda has quit IRC01:06
openstackgerritFei Long Wang proposed openstack/zaqar: Implement redis driver for notifications  https://review.openstack.org/16489302:29
*** chandankumar has joined #openstack-zaqar02:58
*** chandankumar has quit IRC03:13
*** AAzza_afk has joined #openstack-zaqar03:53
*** AAzza has quit IRC03:55
*** AAzzal has joined #openstack-zaqar03:55
*** AAzzam has joined #openstack-zaqar03:56
*** AAzzam is now known as AAzza03:56
*** AAzza_afk has quit IRC03:59
*** AAzzal has quit IRC04:00
*** AAzza_afk has joined #openstack-zaqar04:14
*** AAzza has quit IRC04:16
*** AAzza_afk is now known as AAzza04:16
*** AAzza has quit IRC04:21
*** AAzza_afk has joined #openstack-zaqar04:21
*** AAzza_afk is now known as AAzza04:22
*** achanda has joined #openstack-zaqar04:24
*** chandankumar has joined #openstack-zaqar04:27
*** JAHoagie has joined #openstack-zaqar04:33
*** achanda has quit IRC05:22
*** achanda_ has joined #openstack-zaqar05:22
*** achanda has joined #openstack-zaqar05:29
*** achanda_ has quit IRC05:30
*** JAHoagie has quit IRC05:34
*** amalagon has joined #openstack-zaqar05:55
openstackgerritOpenStack Proposal Bot proposed openstack/zaqar: Imported Translations from Transifex  https://review.openstack.org/16878906:03
flaper87flwang: ping06:57
*** vkmc has quit IRC07:00
openstackgerritFlavio Percoco proposed openstack/zaqar: Allow for internal pipelines to be defined  https://review.openstack.org/16828307:01
flaper87flwang: pls pls pls, could you review this? https://review.openstack.org/#/c/168283/07:01
flaper87You need that one for your notifications work07:01
*** vkmc has joined #openstack-zaqar07:03
*** achanda has quit IRC07:08
*** chandankumar has quit IRC07:42
*** chandankumar has joined #openstack-zaqar07:43
*** davideagnello has joined #openstack-zaqar07:53
*** davideagnello has quit IRC07:57
openstackgerritFei Long Wang proposed openstack/zaqar: Add REST API for notification/subscriptions  https://review.openstack.org/14243208:31
*** flwang1 has joined #openstack-zaqar08:33
flwang1flaper87: ping08:33
flaper87flwang1: pong09:31
flwang1flaper87: https://review.openstack.org/16489309:31
flwang1https://review.openstack.org/14243209:32
flaper87flwang1: I need to go afk for a bit again. Could you please review the pipeline patch ?09:32
flwang1flaper87: pls help review the redis driver09:32
flaper87flwang1: awesome, I'll review those today09:32
flaper87highest priority on my list09:32
flwang1flaper87: i did09:32
flwang1i tried to let my patch depends on that, but my patch will still fail09:32
flaper87flwang1: https://review.openstack.org/#/c/168283/ <- this one ?09:32
flwang1but TBH, i haven't dig into the code09:33
flwang1yes09:33
flaper87mmh, I don't see your comments/vote09:33
flaper87did you submit them ?09:33
*** amalagon has quit IRC09:34
flaper87ok, brb, pls, cast your vote on the patch. I'll brb. It's really important to get those in *today*09:34
flwang1https://review.openstack.org/#/c/142432/14//COMMIT_MSG09:34
*** amalagon has joined #openstack-zaqar09:34
flwang1flaper87: ok, sure09:34
flwang1ttyl09:34
*** amalagon has quit IRC09:39
flaper87flwang1: I still don't see your vote on the pipeline patch10:46
flwang1flaper87: it's happening when you're asking :)10:47
flaper87flwang1: awesome, I was freaking out. I was like DON'T GO TO SLEEP WITHOUT VOTING!10:48
flaper87I'm reviewing your patches now10:48
flwang1flaper87: lol10:48
flaper87flwang1: thanks, I'll ask vkmc to review when she'll be around10:48
flwang1flaper87: btw, should I submit an formal FFE request for notification?10:49
flaper87flwang1: mmh, I'd say yes.10:52
flwang1send it out to mail list?10:52
flaper87flwang1: thing is, I think the FFE due date is today, I mean. FFE should land today so, I guess it's quite pointless to send it10:53
flaper87so don't send it, we'll just focus on making this work10:53
flwang1flaper87: ok, cool10:54
flwang1flaper87: i'm working on the test for redis driver11:09
flwang1so do we have to merge the code today?11:10
flwang1or today is just the FFE request last day?11:10
flaper87flwang1: merge :/11:10
flaper87at least the API changes11:10
flaper87The API patch, that is11:10
flwang1flaper87: ah, ok11:10
flaper87I just reviewed it11:10
flwang1i saw that11:10
flaper87if you can't address those comments, I'll do it for you11:10
flaper87if you don't mind11:10
flaper87here to help, heads down on Zaqar11:11
flwang1I'm going to submit a PS soon11:14
flwang1flaper87: is there any other comments?11:15
flaper87flwang1: nope11:15
flaper87O11:15
flaper87I'll +@ after that11:15
flwang1flaper87: cool11:16
flwang1i will let you know when it's ready for next fight11:16
openstackgerritMerged openstack/zaqar: Imported Translations from Transifex  https://review.openstack.org/16878911:23
openstackgerritFei Long Wang proposed openstack/zaqar: Implement redis driver for notifications  https://review.openstack.org/16489311:25
vkmchi hi hi11:43
flwang1vkmc: :)11:48
flaper87vkmc: hey11:52
flaper87:)11:52
vkmco/11:52
flaper87vkmc: how was your weekend ?11:52
vkmcit was quite good :) yours?11:53
flaper87it was great. Lambdacon was really good11:54
vkmcoh I saw some tweets :D11:54
vkmchow was your prez?11:55
flaper87It went good, apparently. People liked it so, I'm happy. :)11:56
flaper87vkmc: could you review the pending patches for zaqar?12:03
flaper87:)12:03
vkmcflaper87, sure12:03
vkmcflaper87, could you review the websockets tests? https://review.openstack.org/#/c/144803/12:05
* flaper87 is doing that12:06
vkmcI'm working in the messages one too12:06
flwang1flaper87:  https://review.openstack.org/#/c/164893/12:07
flwang1vkmc: https://review.openstack.org/#/c/164893/12:07
flaper87flwang1: danke12:07
vkmcwohoo, thanks flwang1!12:08
flwang1vkmc: as for the websocket patch, why do we need a detailed conf file? https://review.openstack.org/#/c/144803/11/tests/etc/websocket_mongodb.conf12:09
vkmcflwang1, that's actually not needed, its enough with the selection of transport and storage12:09
flwang1vkmc: ok, I will leave a comment on that12:09
vkmcthx12:10
vkmcworking on the messages endpoint yesterday, I was wondering how this https://github.com/openstack/zaqar/blob/master/zaqar/transport/wsgi/utils.py#L76-L116 works12:20
vkmcI mean, filter() works with a function and iterator, and at first sight we are passing a dict to it12:20
flwang1vkmc: flaper87: i have to offline now12:22
flwang1it's 1:20AM now12:22
vkmcflwang1, sure, thanks for everything Fei, we will keep reviewing/fixing things :)12:22
vkmcoh too late12:22
flaper87flwang1: iugh, take care buddy12:22
flaper87have some rest12:22
flaper87we'll take it from here12:22
flwang1flaper87: pls review the notification patches, thanks a lot, guys12:22
flaper87thank you12:24
flaper87I will review12:24
vkmcflaper87, whenever you have a moment, could you checkout that function I mentioned? ^12:31
* flaper87 clicks12:32
flaper87vkmc: I'm reviewing your patch (not distracted, I swear)12:32
flaper87who am I kidding...12:32
vkmc¬¬12:33
flaper87vkmc: what's up with that function ?12:34
vkmcflaper87, I want to do something similar with the messages in the websocket driver12:35
vkmcI have a different approach to do it, but I wanted to follow how things are doing in the wsgi one12:35
vkmcand I saw that the filter() function is supposed to have a function as a first parameter12:36
vkmcwe are passing a dict12:36
vkmcor at least, that is what I understood12:36
vkmcI wonder how its even working12:36
flaper87vkmc: wait, you're talking about the built-in filter function, right ?12:37
vkmcyes12:37
flaper87vkmc: that's not the one being called: https://github.com/openstack/zaqar/blob/master/zaqar/transport/wsgi/utils.py#L11912:37
flaper87:)12:37
vkmcOH12:37
vkmcLOL12:37
flaper87We should change the name of that function12:37
vkmcI was missing something12:37
vkmc:x12:37
flaper87overriding the built-in functions is bad practice12:37
flaper87very bad practice12:37
vkmchaha12:38
vkmcI'll open a bug report12:38
*** dynarro has joined #openstack-zaqar12:39
flaper87vkmc: danke12:45
vkmcnp12:46
*** flwang1 has quit IRC12:53
openstackgerritMerged openstack/zaqar: Allow for internal pipelines to be defined  https://review.openstack.org/16828312:57
flaper87vkmc: thanks for the review12:58
flaper87vkmc: is that test actually being executed ?13:24
flaper87What pulls in `websocket` ?13:24
flaper87is that an autoban's dependency ?13:24
vkmcflaper87, nope, is another library13:24
vkmcits websocket-client13:24
flaper87is that part of the requirements already ?13:24
vkmcand its not being executed automatically13:25
vkmcthat I wanted to ask to you :)13:25
vkmcnope13:25
flaper87ah ok, so my guess was correct13:25
flaper87mmh, ok. So, that test, as-is, looks like a functional test13:25
flaper87you're expecting a server to be running13:25
flaper87which is fine, for a functional test13:25
vkmcflaper87, unit testing for wsgi is doing likewise13:26
vkmcs/doing/done13:26
flaper87vkmc: it does not connect to the server13:27
flaper87it just calls the wsgi app object13:27
flaper87(reviewed the patch)13:27
vkmcthx13:28
flaper87vkmc: I can help out with the test if you want13:28
flaper87it's a small change to what you have already13:28
vkmcwhat change should I do? I'm not following13:30
vkmc:|13:30
flaper87vkmc: https://review.openstack.org/#/c/144803/11/zaqar/tests/unit/transport/websocket/v1_1/test_queue_lifecycle.py,cm13:32
flaper87vkmc: that `self.ws` instance is a websocket client that needs to call  a server13:32
flaper87right ?13:32
vkmcflaper87, oh I understand you now13:33
vkmcyes13:33
*** exploreshaifali has joined #openstack-zaqar13:33
vkmcself.ws has an instance of a ws client13:33
vkmcand thorough the test, I use it to send and receive request/responses13:34
flaper87Right, that's a functional test13:34
flaper87it requires a zaqar server running13:34
vkmcyup13:34
flaper87which is fine... for a functional test13:34
flaper87Now, in order to make it a unittest13:34
flaper87We'd need to use an instance of the API server. For example, you could have an instance of the Protocol there13:35
flaper87and call the `onMessage` method directly13:35
flaper87However, I'd prefer doing it a higher level13:35
vkmcin that level you don't have much control over the stream13:35
flaper87For example, would it be possible to use the factory directly?13:36
vkmcautobahn starts an eventloop and you cannot assert anything13:36
flaper87yeah, we don't want to start the event loop there13:36
flaper87not for the unittest13:36
vkmcwhat we discussed, a week ago I think, is that another approach we could have is to test the API13:37
vkmcbut we won't be testing the transport13:37
vkmcand IMO, the code looked too obscure13:37
flaper87mmh, why was it obscure ?13:38
flaper87If you look at our wsgi tests, we call the wsgi app directly without going through the wire13:39
flaper87that's what I would expect in a unittest for the websocket transport13:39
vkmcbut Fla, in the wsgi tests we are using the Falcon framework to communicate with the server13:39
flaper87sure, but falcon *is* the server. We access the wsgi object directly13:39
flaper87We can do the same here13:40
flaper87without requiring a client13:40
* flaper87 checks autoban's tests13:40
flaper87autobahn*13:40
flaper87nice, no tests13:41
vkmchttp://autobahn.ws/testsuite/13:41
flaper87vkmc: thanks13:42
vkmcnp13:42
vkmcshould I move those tests, then, to the functional side and write new unit ones?13:48
*** chandankumar has quit IRC13:50
flaper87vkmc: I'd just tweak them a bit and make them unittests. We'll tackle functional tests later13:50
flaper87what do you say?13:50
vkmcsure13:50
flaper87again, I can help if you want13:51
vkmchonestly I'm not sure how to make it work without the client13:51
flaper87vkmc: lets do this, I'll write a patch on top of yours13:51
flaper87you can merge them together later if you want13:51
vkmcsure13:52
vkmcwe have to change everything there though13:52
*** sriram has joined #openstack-zaqar14:00
*** JAHoagie has joined #openstack-zaqar14:02
*** ametts has joined #openstack-zaqar14:12
*** ametts_ has joined #openstack-zaqar14:13
*** ametts_ has quit IRC14:15
*** achanda has joined #openstack-zaqar14:33
*** kgriffs|afk is now known as kgriffs14:37
*** JAHoagie has quit IRC14:40
*** achanda has quit IRC14:44
*** cpallares has joined #openstack-zaqar14:50
*** reed has joined #openstack-zaqar15:01
vkmc>.<15:03
cpallaresvkmc: <.>15:06
cpallaresMmm... Visually that doesn't make sense.15:07
cpallaresvkmc: ^.^15:07
vkmccpallares, ^_^15:08
* cpallares attempts to make noise15:09
cpallaresHI VKMC!!!!!!!!!15:09
vkmchiiiiii cpallares!15:09
cpallaresvkmc: Funny story, every time I try to log into the vpn I sometimes type vkmc instead of vpnc D:15:10
vkmchaha15:11
vkmcInitialization Sequence Completed15:11
*** chandankumar has joined #openstack-zaqar15:15
*** sriram has quit IRC15:18
flaper87vkmc: why did you write so many tests/15:22
flaper87?15:22
flaper87ah ?15:22
vkmcbecause I know you love to have lots of LOC15:23
vkmcand I care about you15:23
flaper87vkmc: I was this ' ' close to believe you15:24
vkmcflaper87, could you made it work with the app directly?15:25
vkmcgosh this laptop has a spanish keyboard and I'm not used to it15:25
* vkmc is frustrated 15:25
flaper87vkmc: yup, I can submit what I have and you keep going :D15:25
vkmcflaper87, k k15:26
vkmcI'm writting the tests for messages so... I can submit both for later today15:26
vkmcglad to hear you could make it work15:26
openstackgerritFlavio Percoco proposed openstack/zaqar: Adds message processing to WebSockets driver  https://review.openstack.org/14480315:27
flaper87vkmc: ^15:27
vkmc<315:27
vkmcthx15:27
flaper87vkmc: look at the first 3 tests15:27
vkmcoki15:28
flaper87vkmc: does it make sense?15:34
vkmcflaper87, yes15:41
vkmcthanks15:41
flaper87COOL15:47
vkmcMUCH WOW15:48
*** amitgandhinz has joined #openstack-zaqar15:56
*** mpanetta has joined #openstack-zaqar15:56
*** mpanetta has quit IRC15:57
*** mpanetta has joined #openstack-zaqar15:57
*** JAHoagie has joined #openstack-zaqar16:07
vkmcflaper87, why you wrote so many tests?16:09
flaper87vkmc: loool16:11
vkmcflaper87, did you run the tests?16:27
*** amitgandhinz has quit IRC16:35
*** amitgandhinz has joined #openstack-zaqar16:35
flaper87vkmc: yes, the first 316:37
flaper87:)16:37
flaper87the rest of the tests are failing16:37
vkmcflaper87, how do you run those?16:37
flaper87vkmc: tox -epy27 -- glance.tests.unit.v2.test_images_resource.TestImagesController.test_update_add_locations_status16:38
flaper87erm16:38
flaper87wait16:38
vkmcs/glance/zaqar16:38
flaper87nosetests -s zaqar.tests.unit.transport.websocket.v1_1.test_queue_lifecycle:QueueLifecycleBaseTest16:38
flaper87that16:38
flaper87vkmc: ^16:38
flaper87wrong copy :P16:38
flaper87I guess eventually they should be executed automatically16:38
vkmchuh, odd, running nosetests test_queue_lifecycle.py fails16:39
flaper87There should be something in tests/unit/transport/wsgi/test_v1_1.py etc16:39
flaper87vkmc: mmh, from where are you running that?16:40
flaper87I excute the tests from zaqar's root16:40
flaper87you might need to export some variables16:40
vkmcyeah16:40
vkmcthx16:42
*** dynarro has quit IRC16:59
*** JAHoagie has quit IRC17:01
*** davideagnello has joined #openstack-zaqar17:06
*** JAHoagie has joined #openstack-zaqar17:12
vkmcflaper87, can you retrieve a return value from a side effect?17:17
*** achanda has joined #openstack-zaqar17:24
*** amitgandhinz has quit IRC17:25
*** chandankumar has quit IRC17:28
*** ametts has quit IRC17:32
*** amitgandhinz has joined #openstack-zaqar17:39
*** ametts has joined #openstack-zaqar17:43
*** chandankumar has joined #openstack-zaqar17:52
vkmcflaper87, ^17:56
flaper87vkmc: mmh, what do you mean?18:00
flaper87you can use `return_value_ instead18:01
vkmcyeah, but that is used for assertions18:02
vkmcnevermind18:03
vkmcI think this can work18:03
openstackgerritVictoria Martínez de la Cruz proposed openstack/zaqar: Adds message processing to WebSockets driver  https://review.openstack.org/14480318:08
vkmcboom18:08
vkmc800 LOC18:08
vkmcI need to refactor that18:08
*** chandankumar has quit IRC18:10
vkmcflaper87, let me know what you think ^18:22
vkmcbrv18:22
vkmcbrb*18:23
*** exploreshaifali has quit IRC18:33
*** achanda has quit IRC18:38
*** chandankumar has joined #openstack-zaqar18:43
*** achanda has joined #openstack-zaqar18:57
*** achanda has quit IRC18:57
*** achanda has joined #openstack-zaqar18:58
*** exploreshaifali has joined #openstack-zaqar19:29
*** exploreshaifali has quit IRC19:42
*** ametts has quit IRC19:58
kgriffsflaper87: so, I heard Zaqar was migrating from Python to Go?20:05
* kgriffs ducks20:05
flwangflaper87: vkmc: ping20:06
*** mpanetta has quit IRC20:09
* flaper87 back20:10
flaper87flwang: pong20:10
flaper87reviewing20:10
flwang8-)20:11
flaper87kgriffs: LOL20:11
flaper87no no, haskell20:11
flaper87:P20:11
flaper87flwang: u didn't address my comments here: https://review.openstack.org/#/c/142432/20:12
flwangflaper87: ah, I was looking at the redis driver patch since I believe it should be merged firstly20:13
flwangok, looking the comments in the rest api patch20:13
flaper87vkmc: could you please review flwang's redis patch for subscriptions ?20:13
flwangflaper87: i know what happened, seems the rest api patch is overrided20:14
flwangI will upload a new ps soon20:14
*** cpallares has quit IRC20:52
vkmcsure20:53
*** sriram has joined #openstack-zaqar21:05
*** sriram has quit IRC21:09
*** sriram has joined #openstack-zaqar21:09
*** chandankumar has quit IRC21:11
*** boris-42 has quit IRC21:18
*** boris-42 has joined #openstack-zaqar21:30
openstackgerritFei Long Wang proposed openstack/zaqar: Add REST API for notification/subscriptions  https://review.openstack.org/14243221:41
flwangflaper87: vkmc: ^21:43
vkmcthanks flwang21:55
flwangvkmc: i'm waiting for your bless on the redis driver :)21:55
*** mpanetta has joined #openstack-zaqar22:04
*** mpanetta has quit IRC22:05
*** mpanetta has joined #openstack-zaqar22:05
*** amitgandhinz has quit IRC22:18
vkmcflwang, https://review.openstack.org/#/c/164893/3/zaqar/storage/redis/subscriptions.py22:39
vkmca pdb breakpoint went through22:39
vkmcL76-7722:40
flwangvkmc: shit22:40
flwangvkmc: I will upload a new ps soon22:40
flwangsorry for the shit :(22:40
vkmchahaha22:41
vkmcno worries22:41
flwangso you're running it on your local?22:41
flwangany other problem?22:41
vkmcnot that I can recall of22:44
vkmcit looks really good :)22:44
flwangvkmc: cool22:46
openstackgerritFei Long Wang proposed openstack/zaqar: Implement redis driver for notifications  https://review.openstack.org/16489322:46
flwangvkmc: ^22:47
flwangvkmc: as flaper87 said, today is the last day of FFE22:47
vkmcyeah22:47
flwangso we need to merge the websocket and the notification service as much as we can :)22:47
vkmcagree22:47
vkmcI'm addressing the comments in the websockets patch22:48
vkmcand I was working on the impl + tests for messages22:48
flwangvkmc: I will revisit as it's ready22:48
flwangpls ping me22:48
openstackgerritVictoria Martínez de la Cruz proposed openstack/zaqar: Adds message processing to WebSockets driver  https://review.openstack.org/14480322:50
vkmc:D22:50
vkmcflaper87, come baaaaaaaaaaaaaaaack we need a robot to review our things!22:51
*** mpanetta has quit IRC23:11
vkmcflwang, dunno if you see how we wrote the tests for websockets23:12
vkmcflaper87 suggested me to use mock because the way they were written seemed more to be a functional test rather than a unit test23:12
vkmcbut now... I'm a bit constrained on the asserts I can do23:12
vkmcfor instance, in L534 here https://review.openstack.org/#/c/144803/14/zaqar/tests/unit/transport/websocket/v1_1/test_queue_lifecycle.py23:13
vkmcwhat if I would like to retrieve a field in the request to be used in another test?23:14
*** sriram has quit IRC23:33
*** kgriffs is now known as kgriffs|afk23:35
*** mpanetta has joined #openstack-zaqar23:42
*** mpanetta has quit IRC23:46

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