Friday, 2015-03-13

*** achanda has quit IRC00:03
*** reed has joined #openstack-zaqar00:14
*** VeggieMeat has joined #openstack-zaqar00:41
openstackgerritVictoria Martínez de la Cruz proposed openstack/zaqar: Adds message processing to WebSockets driver  https://review.openstack.org/14480300:43
openstackgerritVictoria Martínez de la Cruz proposed openstack/zaqar: Update json schema for API v1_1  https://review.openstack.org/14841400:43
openstackgerritVictoria Martínez de la Cruz proposed openstack/zaqar: Adds a status code field to the Response  https://review.openstack.org/16400700:43
openstackgerritVictoria Martínez de la Cruz proposed openstack/zaqar: Adds a representation for the Request and Response objects  https://review.openstack.org/16400800:43
*** sriram has joined #openstack-zaqar00:47
*** amitgandhinz has joined #openstack-zaqar01:05
*** sriram has quit IRC01:09
openstackgerritMerged openstack/zaqar: Syntax enhancements  https://review.openstack.org/16322301:34
vkmcrsFF, ^01:34
vkmc:)01:34
*** AAzza_afk has joined #openstack-zaqar02:21
*** AAzza has quit IRC02:22
*** AAzza_afk is now known as AAzza02:22
*** reed has quit IRC02:33
*** achanda has joined #openstack-zaqar02:44
*** amitgandhinz has quit IRC03:13
*** amalagon has quit IRC03:52
*** chandankumar has joined #openstack-zaqar04:39
*** exploreshaifali has joined #openstack-zaqar05:14
*** chandankumar has quit IRC05:36
*** exploreshaifali has quit IRC05:38
*** chandankumar has joined #openstack-zaqar05:39
*** exploreshaifali has joined #openstack-zaqar05:47
*** chandankumar has quit IRC05:52
*** exploreshaifali has quit IRC05:55
*** achanda has quit IRC06:10
*** achanda has joined #openstack-zaqar06:13
*** achanda has quit IRC06:28
*** achanda has joined #openstack-zaqar06:34
*** achanda has quit IRC06:38
*** chandankumar has joined #openstack-zaqar06:52
*** exploreshaifali has joined #openstack-zaqar07:48
*** openstackgerrit has quit IRC08:21
*** openstackgerrit has joined #openstack-zaqar08:21
*** exploreshaifali has quit IRC11:03
rsFFvkmc - :)11:41
*** exploreshaifali has joined #openstack-zaqar11:45
*** exploreshaifali has quit IRC12:23
*** chandankumar has quit IRC12:40
*** exploreshaifali has joined #openstack-zaqar13:10
*** sriram has joined #openstack-zaqar13:14
*** dynarro has joined #openstack-zaqar13:35
*** dynarro has quit IRC13:41
*** amitgandhinz has joined #openstack-zaqar14:02
*** csoukup has joined #openstack-zaqar14:16
*** exploreshaifali has quit IRC14:42
vkmchi everyone!14:58
vkmcflaper87, thx for the reviews :)14:59
flaper87vkmc: np :)15:03
flaper87vkmc: and HELLLLOOO!!!15:03
vkmcflaper87, hi hi hi15:03
*** mpanetta has joined #openstack-zaqar15:12
openstackgerritMerged openstack/zaqar: Adds a representation for the Request and Response objects  https://review.openstack.org/16400815:23
*** reed has joined #openstack-zaqar15:40
vkmcflaper87, if you have a moment, I could use some help with the tests15:40
vkmcfor websocket15:41
vkmcI'm not sure if I'm following the right approach15:41
flaper87vkmc: here15:44
*** exploreshaifali has joined #openstack-zaqar15:46
vkmcflaper87, so, basically, I copied the bits for the  WSGI driver tests and added a client protocol in here https://review.openstack.org/#/c/144803/6/zaqar/tests/unit/transport/websocket/base.py15:47
vkmcthat should set up the websocket server and also provide the client protocol for all the tests that we are going to need15:47
* flaper87 clicks15:47
vkmcand for each test, in the setUp, we instantiate the client protocol and...15:48
vkmchttps://review.openstack.org/#/c/144803/6/zaqar/tests/unit/transport/websocket/v1_1/test_queue_lifecycle.py15:48
vkmcthere is when I get doubtful15:48
vkmcthe server is already running and ready to get messages15:48
vkmcbut the client... should I create a different thread for it? because once it sends a message, it has to be ready to listen to the response15:49
flaper87mmh, I don't understand why you need a thread for the client15:50
flaper87ah because it opens a connection and keeps it open15:50
flaper87?15:50
vkmcyep15:50
flaper87does it have an internal loop ?15:50
vkmcwhat do you mean by that?15:50
flaper87vkmc: and internal event loop *15:51
vkmcthe websocket library performs the controls internally15:51
flaper87I mean, if it's a matter of opening a connection and keeping it open, I don't think it needs a separate thread/process15:51
flaper87because it won't lock15:51
flaper87it opens the connection and that's it15:51
flaper87but if it has an event loop that will prevent the test to keep going then it's a problem15:52
vkmcmmh15:52
vkmcI'll try a few things15:53
flaper87vkmc: one question, do we really need that TestBase ?15:53
flaper87it looks a lot like the one we already have15:53
flaper87considering that transports are initialized based on the config, is there a way to re-use the one we have already ?15:54
vkmcflaper87, we don't, I could refactor15:54
vkmcI was thinking on doing so in a follow up :) this was a quick solution15:54
vkmcbut refactoring shouldn't take much15:54
openstackgerritVictoria Martínez de la Cruz proposed openstack/zaqar: Adds a status code field to the Response  https://review.openstack.org/16400715:57
flaper87vkmc: it looks like it does have an event loop https://github.com/tavendo/AutobahnPython/blob/master/examples/asyncio/websocket/echo/client.py#L6815:58
vkmcflaper87, yes, that is what I don't want to do15:59
vkmcflaper87, seems like we don't have another choice though, right?16:00
vkmcif I start the event loop in the setUp, and finish it in the dropDown16:00
vkmcadding an extra param to the onMessage wrapper to pass the payload16:01
flaper87vkmc: unless we don't use the autobhan client16:01
vkmcwell, I did something like that in javascript16:01
flaper87also, I hate that event loop16:02
vkmcbut I wanted to stick with python unit tests16:02
vkmcfor consistency reasons16:02
flaper87there should be other libraries we can use16:02
vkmcfor the client side?16:02
flaper87I think I used w4py in my hack16:02
flaper87vkmc: yup, just client/tests16:02
vkmcok16:02
flaper87if it makes it easier and works, then why not?16:02
vkmcwe could do it16:02
flaper87vkmc: give it a try and let me know16:03
vkmck16:03
vkmcthanks mentor16:03
vkmctalking about libraries16:05
vkmchope I can use this one someday https://cryptography.io/en/latest/fernet/16:05
flaper87LOOOOOOOOOOOOOOOOOOOL16:08
vkmcyou know you want too16:08
* flaper87 pictures vkmc drinking fernet while using fernet in a place called fernet16:08
vkmcoh yes yes16:09
vkmcI was already amused with this user group http://fernetjs.com/16:09
vkmcduring my js's times16:09
* flaper87 will pretend he didn't read that last msg16:10
vkmcahaha16:10
vkmceveryone has a dark past16:10
flaper87vkmc: no, my past is clean and it shines more than 3 suns put together16:11
flaper87>.>16:11
vkmcflaper87, one problem with testing with a different library16:20
vkmcglobal-requirements16:20
flaper87vkmc: mmh, shit16:21
flaper87lest first see if it works and then deal with g-r16:21
vkmck16:22
openstackgerritVictoria Martínez de la Cruz proposed openstack/zaqar: Update json schema for API v1_1  https://review.openstack.org/14841416:24
vkmcflaper87, is there a particular reason you don't want the autobahn event loop in the middle?16:27
flaper87vkmc: mmh, just making testing simpler16:28
flaper87I really don't like the fact the client library requires an eventloop16:29
flaper87if we can make it work easily with the eventloop then we could stick with it16:29
flaper87just trying to be pragmatic w.r.t that16:29
vkmcmakes sense16:29
* flaper87 will dig into this event loop16:29
vkmchttps://docs.python.org/dev/library/asyncio-eventloops.html16:31
vkmcI'll dig more on it too16:31
vkmcI don't like the fact that they mention windows so much16:32
*** akanksha has joined #openstack-zaqar16:34
openstackgerritFlavio Percoco proposed openstack/zaqar: Implements: help strings  https://review.openstack.org/16316817:15
*** achanda has joined #openstack-zaqar17:33
vkmcflaper87, seems like we are going to use another lib17:51
vkmcideas I reached so far are just... eek17:51
flaper87vkmc: mmh, understood17:54
flaper87vkmc: actually, https://github.com/FlaPer87/marconi-websocket/blob/master/examples/test.py#L6-L3117:55
flaper87ws4py has a loop too17:55
flaper87so, lets work together on a solution17:55
vkmcflaper87, the only way to received messages is using the onMessage wrapper17:55
vkmcs/received/receive17:55
vkmcthat is callback function that triggers when a message is received17:56
flaper87vkmc: ws4py works the same way17:56
flaper87apparently17:56
vkmchmm17:56
* flaper87 had forgotten about that17:56
vkmck17:56
vkmcso, those wrappers have to be implemented by extending a clientprotocol class autobahn has17:57
vkmcthe question is, how can I return the server response to the test I'm running?17:57
vkmcto make the required assertions17:57
flaper87vkmc: did you push the latest ?17:58
vkmckind of17:58
flaper87one way would be by writing the assertions in the client itself17:58
flaper87and giving it an instance of the test class17:58
flaper87as in, passing the instance of the test to the client17:58
vkmcI thought about that17:59
vkmcbut hmm17:59
flaper87vkmc: it's not such a rare approach17:59
flaper87I've used it before18:00
vkmcthat is when my knowledge of testing in python falls short18:00
vkmcflaper87, the fact you used if before doesn't make it more natural :P18:00
vkmcbut tell me hahahaha18:00
flaper87vkmc: hahaha, I meant that it's not that weird to do that18:01
vkmcsure :)18:01
flaper87as long as the client instance stays isolated in the test18:01
flaper87and it's created for every test18:01
vkmcdo you have a pointer on where you used that for me to peek?18:01
vkmcI'm dunno where, in the test flow, I should pass the test instance18:02
vkmcflaper87, ^18:05
flaper87mmh, let me try to look it up but for now, push all you have and lets try to take a look at this specific case18:06
vkmcthanks :)18:06
vkmcI'll move forward by adding the rest of the endpoints to for cross-transport-api-spect18:07
vkmcspec*18:07
vkmchow are we with the other changes? capabilities, notifications?18:08
flaper87vkmc: I was looking at that earlier today, capabilities seems to be done, which worries me a bit because I don't remember finishing it18:10
flaper87:P18:10
flaper87the opt-in FIFO thing landed too18:10
flaper87and the capabilities are exposed through the API too18:11
flaper87I'll have to test the API18:11
flaper87re notifications18:11
flaper87flwang1: said he'll have something done by monday, he's been busy lately18:11
vkmcflaper87, maybe your alter ego finished it18:11
vkmcthat are really good news18:11
flaper87vkmc: probably, it's really expensive to keep clones alive18:13
flaper87time-wise and money-wise18:13
vkmcflaper87, I hear ya18:14
vkmcanother thing we have to discuss18:15
vkmcis what is going to happen with osprofiler18:15
openstackgerritVictoria Martínez de la Cruz proposed openstack/zaqar: Adds message processing to WebSockets driver  https://review.openstack.org/14480319:00
openstackgerritVictoria Martínez de la Cruz proposed openstack/zaqar: Update json schema for API v1_1  https://review.openstack.org/14841419:00
openstackgerritVictoria Martínez de la Cruz proposed openstack/zaqar: Adds a status code field to the Response  https://review.openstack.org/16400719:00
flaper87vkmc: re osprofiler, I was going to review that in the next couple of days19:00
vkmcflaper87, k, I'll take a look too19:01
vkmcflaper87, last change for the websockets tests here https://review.openstack.org/#/c/144803/19:02
vkmcwait wait wait wait19:07
vkmcif the idea of passing the test instance for the protocol doesn't work19:09
vkmcwe could ask the protocol for the datareceived... is not the best because we won't be interacting with the interface19:09
vkmcbut it could work19:09
vkmchttps://github.com/tavendo/AutobahnPython/blob/master/autobahn/websocket/protocol.py#L128019:09
*** akanksha has quit IRC19:27
*** achanda has quit IRC20:06
*** kgriffs|afk is now known as kgriffs20:09
*** achanda has joined #openstack-zaqar20:11
*** achanda has quit IRC20:25
*** akanksha has joined #openstack-zaqar20:27
*** kgriffs is now known as kgriffs|afk20:38
*** exploreshaifali has quit IRC20:46
*** exploreshaifali has joined #openstack-zaqar20:56
*** exploreshaifali has quit IRC20:57
*** achanda has joined #openstack-zaqar20:57
*** kgriffs|afk is now known as kgriffs21:09
flaper87vkmc: how's it going?21:10
*** csoukup has quit IRC21:15
*** achanda has quit IRC21:27
*** achanda has joined #openstack-zaqar21:33
vkmcflaper87, with the api or with the tests_21:42
vkmcflaper87, or something else?21:42
flaper87vkmc: tests21:45
vkmcI uploaded all that I had21:47
vkmcbut still now sure how to tackle the approach you said21:47
vkmc(passing the test instance to make assertions)21:47
vkmcI was working on the rest of the api now21:48
flaper87vkmc: ok, lemme download your patch and give it a go21:50
flaper87if you don't mind21:50
vkmcflaper87, I don't21:50
flaper87cool21:50
vkmcin fact, I'd give you gummybears to do it21:50
vkmcnow that I know you are willing to do it without them....21:50
flaper87vkmc: i didn't say it was for free21:51
flaper87I've a notebook where I write all these things21:51
*** sriram has quit IRC21:53
*** echevemaster has joined #openstack-zaqar22:00
*** mpanetta has quit IRC22:07
*** csoukup has joined #openstack-zaqar22:15
*** amitgandhinz has quit IRC22:23
vkmckgriffs, ping22:24
* kgriffs waives22:25
vkmc:D :D :D22:25
vkmchiiii22:25
kgriffshi. :)22:25
vkmchow are ya?22:25
kgriffsdoing OK. Getting ready to drive cross country to Florida tomorrow22:30
kgriffsNext week the kids have spring break, so we're going to go play22:30
kgriffsvkmc: how are you?22:31
vkmckgriffs, that's great! road trip!22:32
vkmckgriffs, I saw in the news that is was really cold and snowy for you guys last couple of days, hope that you have a good weather for spring :)22:33
vkmckgriffs, I just came back to recover my passport, I was waiting to get the visa to Canada :)22:33
vkmcso happy about it22:34
vkmcone less thing22:34
kgriffsawesome22:35
vkmcworking on some changes for the persistent transport driver now :)22:35
kgriffsah, cool22:36
kgriffsI've had my hands full working on some security stuff at Rackspace22:37
vkmcinteresting!22:37
kgriffsguess what I got in the mail today?22:39
kgriffsRaspberry Pi 222:40
vkmc:o you cannot blame your friend again22:40
vkmcI feel this was your call! haha22:40
vkmcthat's really cool, do you have plans for it already? :)22:40
kgriffsI was going to try a few things22:41
kgriffsretropie22:42
kgriffsvolumio22:42
kgriffsI need to do something with blinky lights as well22:42
vkmcuhuh retropie neat!22:43
vkmcI tried it with my raspi v122:43
vkmcits pretty awesome22:43
vkmcI didn't know about volumio22:43
kgriffsre blink lights: http://www.adafruit.com/products/161622:44
kgriffsI'm tempted to pick up another rpi222:45
kgriffssparkfun has them on sale starting at midnight MST while supplies last22:45
kgriffsoooh22:46
kgriffshttps://blog.adafruit.com/category/raspberry-pi/22:46
* kgriffs is becoming seriously distracted22:46
vkmchaha really coool22:46
vkmcdo you build this stuff with your kids or they are too little for that yet?22:47
kgriffsI think Ivy could handle a soldering iron. She's 12. Next-oldest is Thomas, who is 11.22:52
kgriffsoops22:52
kgriffsI mean 1022:52
kgriffsanyway, I'd like to do some things with them22:52
*** ametts has quit IRC22:53
kgriffshard to find time at the moment because they are so busy with school, but maybe in the summer22:53
vkmcsure :)22:54
kgriffsbtw22:54
kgriffshttps://www.sparkfun.com/PiDay201522:54
vkmcpi day!22:54
*** csoukup has quit IRC23:41

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