*** JAHoagie has joined #openstack-zaqar | 00:22 | |
*** JAHoagie has quit IRC | 00:37 | |
*** achanda has quit IRC | 00:59 | |
*** achanda has joined #openstack-zaqar | 01:05 | |
*** akanksha_ has quit IRC | 01:18 | |
*** achanda has quit IRC | 01:23 | |
*** achanda has joined #openstack-zaqar | 01:43 | |
openstackgerrit | MD NADEEM proposed openstack/zaqar: Create api should throw PoolNameConflict exception for duplicate pool name https://review.openstack.org/238006 | 01:54 |
---|---|---|
*** Qiming has joined #openstack-zaqar | 02:21 | |
*** Qiming has quit IRC | 02:21 | |
*** Qiming has joined #openstack-zaqar | 02:22 | |
openstackgerrit | MD NADEEM proposed openstack/zaqar: Flavor create api should throw FlavorNameExist exception for duplicate Flavor name https://review.openstack.org/238396 | 03:00 |
*** Qiming has quit IRC | 03:32 | |
*** csoukup has joined #openstack-zaqar | 03:41 | |
openstackgerrit | MD NADEEM proposed openstack/zaqar: Flavor create api should throw FlavorNameConflict exception for duplicate Flavor name https://review.openstack.org/238396 | 03:45 |
*** csoukup has quit IRC | 03:48 | |
openstackgerrit | MD NADEEM proposed openstack/zaqar: Flavor create api should throw FlavorNameConflict exception for duplicate Flavor name https://review.openstack.org/238396 | 03:48 |
openstackgerrit | MD NADEEM proposed openstack/zaqar: Create api should throw PoolNameConflict exception for duplicate pool name https://review.openstack.org/238006 | 03:49 |
*** csoukup has joined #openstack-zaqar | 04:06 | |
openstackgerrit | MD NADEEM proposed openstack/zaqar: Flavor create api should throw FlavorNameConflict exception for duplicate Flavor name https://review.openstack.org/238396 | 04:23 |
*** c_soukup has joined #openstack-zaqar | 04:27 | |
*** csoukup has quit IRC | 04:27 | |
*** c_soukup has quit IRC | 04:37 | |
*** csoukup has joined #openstack-zaqar | 04:44 | |
*** achanda has quit IRC | 04:45 | |
*** achanda has joined #openstack-zaqar | 04:50 | |
*** khushbu has joined #openstack-zaqar | 04:51 | |
*** csoukup has quit IRC | 04:53 | |
*** Qiming has joined #openstack-zaqar | 05:01 | |
*** boris-42 has joined #openstack-zaqar | 05:28 | |
*** khushbu has quit IRC | 06:07 | |
*** pt_15 has quit IRC | 07:08 | |
*** itisha has quit IRC | 07:11 | |
*** flaper87 has quit IRC | 07:35 | |
*** achanda has quit IRC | 07:36 | |
*** flaper87 has joined #openstack-zaqar | 07:37 | |
*** yfujioka has joined #openstack-zaqar | 07:58 | |
*** achanda has joined #openstack-zaqar | 08:05 | |
*** achanda has quit IRC | 08:15 | |
*** davideagnello has quit IRC | 08:27 | |
*** davideagnello has joined #openstack-zaqar | 08:27 | |
*** achanda has joined #openstack-zaqar | 08:37 | |
*** achanda has quit IRC | 09:44 | |
*** Qiming has quit IRC | 10:14 | |
*** flwang has joined #openstack-zaqar | 10:25 | |
*** achanda has joined #openstack-zaqar | 10:29 | |
flwang | flaper87: ping | 10:30 |
*** achanda has quit IRC | 10:50 | |
*** Qiming has joined #openstack-zaqar | 11:08 | |
*** flaper87 has quit IRC | 11:41 | |
*** flaper87 has joined #openstack-zaqar | 11:41 | |
*** AAzza has quit IRC | 12:01 | |
*** AAzza has joined #openstack-zaqar | 12:05 | |
*** Qiming has quit IRC | 12:22 | |
*** Qiming has joined #openstack-zaqar | 12:22 | |
openstackgerrit | Fei Long Wang proposed openstack/python-zaqarclient: Added support to v2 https://review.openstack.org/209238 | 13:02 |
*** khushbu_ has joined #openstack-zaqar | 13:33 | |
*** khushbu_ has quit IRC | 13:33 | |
*** khushbu has joined #openstack-zaqar | 13:40 | |
*** khushbu has quit IRC | 13:41 | |
*** khushbu has joined #openstack-zaqar | 14:05 | |
*** khushbu has quit IRC | 14:05 | |
*** malini has joined #openstack-zaqar | 14:11 | |
*** sriram has joined #openstack-zaqar | 14:31 | |
*** sriram has quit IRC | 14:32 | |
*** sriram has joined #openstack-zaqar | 14:35 | |
*** akanksha_ has joined #openstack-zaqar | 14:40 | |
*** dynarro has joined #openstack-zaqar | 14:44 | |
Eva-i | Hello. What is the most convenient way to debug tests in zaqar? Can you tell me please how do you do it? | 14:46 |
Eva-i | Is there a way to debug tests directly in IDE? | 14:46 |
ryansb | Eva-i: I find the way to get the smallest feedback loop is to run individual test files | 14:53 |
ryansb | using the "tox -- zaqar.tests.some.test_file" | 14:53 |
Eva-i | ryansb: yes, I know now how to run individual tests | 14:54 |
Eva-i | ryansb: but how to know for example what's happening inside a particular test? | 14:55 |
Eva-i | ryansb: can I pick an object and get a list of it's attributes? Is there a way to print some useful information to a person running "tox ..." command? | 14:56 |
ryansb | yeah, the easiest way is to "raise Exception("the message you want to send")" | 14:58 |
*** kgriffs|afk is now known as kgriffs | 14:58 | |
Eva-i | ryansb: oh, okay =) | 14:58 |
ryansb | that way the test will fail immediately (so you can inspect the data store) and show you whatever values you asked for | 14:59 |
ryansb | Do we have a meeting right now? | 15:00 |
Eva-i | ryansb: is it how you debug tests? | 15:00 |
* ryansb is all confused with daylight savings | 15:00 | |
*** mpanetta has joined #openstack-zaqar | 15:01 | |
Eva-i | ryansb: as I know the previous meeting and current meeting were cancelled | 15:01 |
ryansb | oh, oops. I thought we only cancelled the week before summit and the week of | 15:01 |
ryansb | about debugging: it depends, usually what I'll do is I figure out what the cause of the failure is and replicate it in an IPython shell | 15:01 |
*** ametts has joined #openstack-zaqar | 15:02 | |
*** amitgandhinz has joined #openstack-zaqar | 15:04 | |
Eva-i | ryansb: the last meeting was 19 october, so two next canceled meetings are: october 26 and november 2 | 15:08 |
*** csoukup has joined #openstack-zaqar | 15:10 | |
openstackgerrit | Akanksha Srivastava proposed openstack/zaqar: DRY up usage of url_prefix in wsgi unit test https://review.openstack.org/234769 | 15:11 |
ryansb | Eva-i: thanks :) | 15:14 |
Eva-i | ryansb: by IPython do you mean this thing https://ipython.org/ ? | 15:16 |
ryansb | yeah, they have a python shell | 15:17 |
ryansb | (they also have a web-based "notebook" that is neat, but not that handy for debugging) | 15:17 |
Eva-i | ryansb: okay. So if I understand you properly, you activate one of the tox environments, start IPython shell inside of it, execute some_test.py in the shell and see the how it goes? | 15:19 |
ryansb | it's two steps | 15:19 |
ryansb | so first I figure out what's wrong in some_test.py from the stacktraces | 15:20 |
ryansb | then I use the IPython shell to reproduce the failure and figure out why it fails | 15:20 |
ryansb | then I use what I learned in the shell to fix the test (or fix the zaqar server, as the case may be) | 15:20 |
*** davideag_ has joined #openstack-zaqar | 15:26 | |
Eva-i | ryansb: how exactly do you use IPython shell to reproduce the failure in a particular test? Do you make use of tox environments, do you directly use of a file where the particular test is located? | 15:26 |
Eva-i | *use file | 15:26 |
ryansb | I `source` into the tox environment, then more or less copy in the code from the test | 15:27 |
*** kragniz_ has joined #openstack-zaqar | 15:32 | |
*** therve` has joined #openstack-zaqar | 15:34 | |
*** davideagnello has quit IRC | 15:35 | |
*** flaper87 has quit IRC | 15:35 | |
*** therve has quit IRC | 15:35 | |
*** kragniz has quit IRC | 15:35 | |
*** flaper87 has joined #openstack-zaqar | 15:36 | |
*** flaper87 has quit IRC | 15:36 | |
*** flaper87 has joined #openstack-zaqar | 15:36 | |
Eva-i | ryansb: you reproduce code line by line in python interpreter? | 16:02 |
*** Qiming has quit IRC | 16:02 | |
ryansb | no, you can use the %edit command to open a real editor (vim for me) | 16:02 |
ryansb | them grab the test file from the buffer | 16:03 |
Eva-i | ryansb: after you have test file contents in your buffer, what do you do? As I know you just can't paste it into python interpreter, it will not automatically execute methods like "setUp()" and "tearDown()" etc, right? | 16:07 |
ryansb | Yeah, that's right | 16:07 |
ryansb | I'll grab a zaqar client & strip out the setup/teardown | 16:08 |
ryansb | it's not a very automatic process, basically | 16:08 |
ryansb | but I only really need to do it for the very annoying/finicky test failures | 16:08 |
*** khushbu_ has joined #openstack-zaqar | 16:17 | |
*** kgriffs is now known as kgriffs|afk | 16:29 | |
*** malini has quit IRC | 16:29 | |
*** malini has joined #openstack-zaqar | 16:31 | |
*** malini1 has joined #openstack-zaqar | 16:33 | |
*** malini has quit IRC | 16:36 | |
*** kgriffs|afk is now known as kgriffs | 16:40 | |
Eva-i | ryansb: thanks for you answers, but I think I'm not currently at the level to understand this method. With each your answer I feel like I'm more far from understanding this method than I thought before. I'll just use to "throwing exception" method. | 16:47 |
Eva-i | *use "throwing exception" method | 16:48 |
*** khushbu_ has quit IRC | 16:53 | |
*** khushbu_ has joined #openstack-zaqar | 16:55 | |
*** malini1 has quit IRC | 16:55 | |
*** dynarro has quit IRC | 16:57 | |
*** achanda has joined #openstack-zaqar | 16:59 | |
*** kragniz_ is now known as kragniz | 17:16 | |
*** khushbu_ has quit IRC | 17:24 | |
*** khushbu has joined #openstack-zaqar | 17:26 | |
*** khushbu has quit IRC | 17:26 | |
*** khushbu has joined #openstack-zaqar | 17:32 | |
*** khushbu has quit IRC | 17:32 | |
*** sriram has quit IRC | 17:59 | |
*** stanchan has joined #openstack-zaqar | 18:01 | |
*** khushbu has joined #openstack-zaqar | 18:06 | |
*** khushbu has quit IRC | 18:09 | |
*** sriram has joined #openstack-zaqar | 18:17 | |
*** achanda has quit IRC | 18:18 | |
*** achanda has joined #openstack-zaqar | 18:21 | |
*** achanda has quit IRC | 18:25 | |
*** nate_gone is now known as njohnston | 18:27 | |
*** achanda has joined #openstack-zaqar | 18:30 | |
*** njohnston is now known as nate_gone | 18:36 | |
*** flwang has quit IRC | 18:51 | |
*** flwang has joined #openstack-zaqar | 18:52 | |
*** flwang has quit IRC | 18:57 | |
*** flwang has joined #openstack-zaqar | 18:58 | |
*** malini has joined #openstack-zaqar | 19:08 | |
*** malini1 has joined #openstack-zaqar | 19:10 | |
*** flwang has quit IRC | 19:12 | |
*** achanda has quit IRC | 19:13 | |
*** malini has quit IRC | 19:13 | |
*** kgriffs is now known as kgriffs|afk | 19:18 | |
*** flwang has joined #openstack-zaqar | 19:20 | |
*** flwang has quit IRC | 19:24 | |
*** achanda has joined #openstack-zaqar | 19:24 | |
*** kgriffs|afk is now known as kgriffs | 19:30 | |
*** flwang has joined #openstack-zaqar | 19:38 | |
*** pt_15 has joined #openstack-zaqar | 19:40 | |
*** itisha has joined #openstack-zaqar | 19:40 | |
*** achanda has quit IRC | 19:50 | |
*** achanda has joined #openstack-zaqar | 20:06 | |
*** achanda has quit IRC | 20:20 | |
*** achanda has joined #openstack-zaqar | 20:27 | |
*** akanksha_ has quit IRC | 20:28 | |
*** mpanetta has quit IRC | 20:39 | |
*** amitgandhinz has quit IRC | 20:41 | |
*** amitgandhinz has joined #openstack-zaqar | 20:42 | |
*** amitgandhinz has quit IRC | 20:42 | |
*** amitgandhinz has joined #openstack-zaqar | 20:42 | |
*** amitgandhinz has quit IRC | 20:47 | |
*** kgriffs is now known as kgriffs|afk | 20:48 | |
*** mpanetta has joined #openstack-zaqar | 21:17 | |
*** kgriffs|afk is now known as kgriffs | 21:31 | |
*** davideag_ has quit IRC | 21:35 | |
*** nate_gone is now known as njohnston | 21:35 | |
*** davideagnello has joined #openstack-zaqar | 21:36 | |
*** njohnston is now known as nate_gone | 21:38 | |
*** malini1 has quit IRC | 21:47 | |
*** akanksha_ has joined #openstack-zaqar | 21:47 | |
*** amitgandhinz has joined #openstack-zaqar | 21:58 | |
*** amitgandhinz has quit IRC | 22:40 | |
*** sriram has quit IRC | 22:52 | |
*** mpanetta has quit IRC | 22:55 | |
*** mpanetta has joined #openstack-zaqar | 22:58 | |
*** stanchan has quit IRC | 23:06 | |
*** ametts has quit IRC | 23:13 | |
*** mpanetta has quit IRC | 23:20 | |
*** mpanetta has joined #openstack-zaqar | 23:20 | |
*** csoukup has quit IRC | 23:33 | |
*** kgriffs is now known as kgriffs|afk | 23:55 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!