Wednesday, 2018-07-18

*** tosky has quit IRC00:12
*** threestrands has joined #openstack-oslo00:40
*** zhiguo has joined #openstack-oslo00:41
zhiguoHello, dose someone face this case: https://bugs.launchpad.net/oslo.messaging/+bug/178187600:43
openstackLaunchpad bug 1781876 in oslo.messaging "An strange error in oslo.messaging" [Undecided,New]00:43
*** dave-mccowan has joined #openstack-oslo00:55
*** dave-mccowan has quit IRC01:09
*** harlowja has quit IRC01:13
*** dave-mccowan has joined #openstack-oslo01:17
*** dave-mcc_ has joined #openstack-oslo01:21
*** dave-mccowan has quit IRC01:24
*** mriedem has quit IRC01:24
*** larainema has quit IRC01:46
*** larainema has joined #openstack-oslo02:22
*** gcb has joined #openstack-oslo02:22
openstackgerritMerged openstack/mox3 master: Switch to stestr  https://review.openstack.org/58130202:32
openstackgerritMerged openstack/oslo.utils master: Handle non-string keys appropriately  https://review.openstack.org/58330403:43
openstackgerritMerged openstack/taskflow master: Update various links in docs  https://review.openstack.org/56718103:48
*** lpetrut has joined #openstack-oslo03:51
openstackgerritMerged openstack/debtcollector master: Switch to stestr  https://review.openstack.org/58091503:55
openstackgerritHa Manh Dong proposed openstack/oslo.config master: Switch to use stestr for unit test  https://review.openstack.org/58345304:22
*** lpetrut has quit IRC04:39
*** lpetrut has joined #openstack-oslo04:42
*** lpetrut has quit IRC04:54
*** chhagarw has joined #openstack-oslo04:59
*** openstackgerrit has quit IRC05:10
*** lucasagomes_ has joined #openstack-oslo05:12
*** links has joined #openstack-oslo05:15
*** efried has quit IRC05:16
*** lxkong has quit IRC05:16
*** aspiers has quit IRC05:16
*** mwhahaha has quit IRC05:16
*** johnsom has quit IRC05:16
*** NobodyCam has quit IRC05:16
*** DuncanT has quit IRC05:16
*** lucasagomes has quit IRC05:16
*** sambetts_ has quit IRC05:18
*** toabctl has quit IRC05:18
*** toabctl has joined #openstack-oslo05:21
*** sambetts_ has joined #openstack-oslo05:23
*** zhiguo has quit IRC05:27
*** zhiguo has joined #openstack-oslo05:28
*** efried has joined #openstack-oslo05:35
*** lxkong has joined #openstack-oslo05:35
*** aspiers has joined #openstack-oslo05:35
*** mwhahaha has joined #openstack-oslo05:35
*** johnsom has joined #openstack-oslo05:35
*** NobodyCam has joined #openstack-oslo05:35
*** DuncanT has joined #openstack-oslo05:35
*** njohnston_ has joined #openstack-oslo05:37
*** njohnston has quit IRC05:38
*** ianychoi has joined #openstack-oslo05:43
*** njohnston has joined #openstack-oslo05:57
*** njohnston_ has quit IRC05:58
*** lpetrut has joined #openstack-oslo06:22
*** pcaruana has joined #openstack-oslo06:35
*** peereb has joined #openstack-oslo07:09
*** shardy has joined #openstack-oslo07:12
*** tesseract has joined #openstack-oslo07:18
*** rcernin has quit IRC07:28
*** AlexeyAbashkin has joined #openstack-oslo07:45
*** tobasco_away is now known as tobasco07:54
*** mattgo has joined #openstack-oslo08:05
*** tosky has joined #openstack-oslo08:06
*** e0ne has joined #openstack-oslo08:08
*** lucasagomes_ is now known as lucasagomes08:15
*** threestrands has quit IRC08:51
*** pbourke has quit IRC08:52
*** pbourke has joined #openstack-oslo08:52
*** openstackgerrit has joined #openstack-oslo09:05
openstackgerritStephen Finucane proposed openstack/oslo.config master: sphinxext: Stop emitting lines multiple times  https://review.openstack.org/58352309:05
openstackgerritStephen Finucane proposed openstack/oslo.config master: sphinxext: Print output to logs, not to file  https://review.openstack.org/58352409:05
openstackgerritStephen Finucane proposed openstack/oslo.config master: sphinxext: Resolve FIXME  https://review.openstack.org/58352509:05
stephenfindhellmann, mriedem: That was my bad. I've cleaned up the whole broken feature starting here https://review.openstack.org/58352309:06
stephenfindhellmann: I really need to sit down and write _proper_ Sphinx tests for that. Alas, I think doing so would involve bringing in pytest which I imagine mtreinish, mordred et al are loathe to do09:07
openstackgerritStephen Finucane proposed openstack-dev/pbr master: trivial: Increase integration pip timeout  https://review.openstack.org/58317809:10
openstackgerritStephen Finucane proposed openstack-dev/pbr master: trivial: Remove 'tools/releasenotes_tox.sh'  https://review.openstack.org/58041409:10
openstackgerritStephen Finucane proposed openstack-dev/pbr master: trivial: Fix file permissions  https://review.openstack.org/58041509:10
openstackgerritStephen Finucane proposed openstack-dev/pbr master: Switch to stestr  https://review.openstack.org/58041309:10
openstackgerritStephen Finucane proposed openstack-dev/pbr master: builddoc: Remove support for Sphinx < 1.6  https://review.openstack.org/58041609:10
openstackgerritStephen Finucane proposed openstack-dev/pbr master: packaging: Remove support for pyN requirement files  https://review.openstack.org/58041709:10
openstackgerritStephen Finucane proposed openstack-dev/pbr master: doc: Fix formatting of packagers guide  https://review.openstack.org/58041809:10
openstackgerritStephen Finucane proposed openstack-dev/pbr master: doc: Add documentation for missing '[pbr]' options  https://review.openstack.org/58041909:10
openstackgerritStephen Finucane proposed openstack-dev/pbr master: Add Sphinx extension  https://review.openstack.org/58042009:10
openstackgerritStephen Finucane proposed openstack-dev/pbr master: Deprecate 'build_sphinx' integration  https://review.openstack.org/58042109:10
openstackgerritStephen Finucane proposed openstack-dev/pbr master: Deprecate 'test' integration  https://review.openstack.org/58042209:10
openstackgerritStephen Finucane proposed openstack-dev/pbr master: trivial: Remove 'tools/releasenotes_tox.sh'  https://review.openstack.org/58041409:15
openstackgerritStephen Finucane proposed openstack-dev/pbr master: trivial: Fix file permissions  https://review.openstack.org/58041509:15
openstackgerritStephen Finucane proposed openstack-dev/pbr master: Switch to stestr  https://review.openstack.org/58041309:15
openstackgerritStephen Finucane proposed openstack-dev/pbr master: builddoc: Remove support for Sphinx < 1.6  https://review.openstack.org/58041609:15
openstackgerritStephen Finucane proposed openstack-dev/pbr master: packaging: Remove support for pyN requirement files  https://review.openstack.org/58041709:15
openstackgerritStephen Finucane proposed openstack-dev/pbr master: doc: Fix formatting of packagers guide  https://review.openstack.org/58041809:15
openstackgerritStephen Finucane proposed openstack-dev/pbr master: doc: Add documentation for missing '[pbr]' options  https://review.openstack.org/58041909:15
openstackgerritStephen Finucane proposed openstack-dev/pbr master: Add Sphinx extension  https://review.openstack.org/58042009:15
openstackgerritStephen Finucane proposed openstack-dev/pbr master: Deprecate 'build_sphinx' integration  https://review.openstack.org/58042109:15
openstackgerritStephen Finucane proposed openstack-dev/pbr master: Deprecate 'test' integration  https://review.openstack.org/58042209:15
*** moguimar has joined #openstack-oslo09:21
*** zhiguo has quit IRC09:25
*** sambetts_ is now known as sambetts09:30
*** hoonetorg has quit IRC09:34
*** hoonetorg has joined #openstack-oslo09:48
*** dmellado has quit IRC10:36
*** dmellado has joined #openstack-oslo10:42
*** chhagarw has quit IRC11:10
*** raildo has joined #openstack-oslo11:53
openstackgerritVipin Balachandran proposed openstack/oslo.vmware master: Utility method to check SDRS enabled status  https://review.openstack.org/58355612:01
*** mattgo has quit IRC12:02
*** mattgo has joined #openstack-oslo12:04
*** edmondsw has joined #openstack-oslo12:11
mordredstephenfin: I don't know why writing proper sphinx tests would necessitate pytest12:23
mordredstephenfin: unless upstream sphinx has some test fixtures written that only work with pytest, in which case I'll just be sad and judgemental12:24
mordredstephenfin: but as long as our tests are still _run_ by stestr, I don't think bringing in pytest via a transitive dependency on sphinx's test suite (if that's the issue) would be an issue12:26
*** lbragstad has quit IRC13:19
dhellmannstephenfin : why would adding tests require pytest?13:25
stephenfindhellmann, mordred: Yeah, they've written their test framework with pytest13:26
stephenfinSo we can reinvent the wheel or use their fixtures and drag in pytest13:26
stephenfinmordred: You know full well that as soon as pytest is let in the door, people will use it. Just be prepared :)13:27
dhellmannI wish we had just switched to pytest from testr to begin with, but whatever13:27
stephenfindhellmann: yeah, so do I :(13:28
dhellmannI wonder if stestr can be made to load pytest test suites13:28
dhellmannI guess alternatively we could segregate the 2 types of tests into their own directories so we can use different tools to run each13:29
mordredif pytest wasn't broken, we would have13:29
mordredbut pytest is broken in the same way nose is broken13:29
dhellmannwhich is?13:29
stephenfinnose is dead, testr is dead, pytest is supported by PyPA, PyQA, PyCA etc.13:29
stephenfinmordred: Oh?13:29
mordredit completely violates the python testing protocol, and it conflates test runner with test support library13:29
mordredalso, it's impossible to folow what's going on - but that's just a personal preference13:30
mordredthe python unittest protocol allows people to use whatever test runner they like - and our tests current allow that, because we ahere to it13:30
stephenfinmtreinish: Yup. I was trying to recall what you'd brought up in the stestr session and that was it13:30
dhellmannah13:31
stephenfinWhoops, *mordred:13:31
*** gcb has quit IRC13:31
mordredwe use stestr/testr because they have the ability to support streaming test results in a multi-threaded/multi-process manner13:31
mordredNOW - at some point someone did some initial work on adding subunit output support to pytest, but I think nobody ever really cared13:31
stephenfinThe dependency injection (?) pattern they use is odd too, I'll admit, but the stack inspection they do to allow you to use plain old asserts is awesome13:31
mordredyou can use plain asserts with our current code13:32
stephenfinmordred: This is something more than pytest-xdist would do, I assume?13:32
mordredstephenfin: yes. subunit is a streaming test result format13:32
* stephenfin has little to no understanding of what subunit does for us13:32
mordredpytest-xdist is a pytest plugin that does what testr does - namely spawn subprocesses13:32
stephenfinand there's my answer, heh13:33
mordredsubunit allows for streaming interleaved output from multiple concurrent tests13:33
stephenfinmordred: You can use plain asserts but the assert exceptions have no context, right?13:33
stephenfinhence the hacking checks to ensure assertIsNone, assertTrue etc. are used13:33
mordreddunno. honestly I have never desired to use them myself13:33
mordredyeah - assertIsNone are convenience methods provided by testtools13:34
mordredthey are not related to testr/stestr13:34
stephenfinHmm13:34
mordredstestr is a test runner. testtools is a testing support library13:34
mordredpytest is both combined13:34
stephenfinI need to investigate that so. See what things look like13:34
mordredwhich is how nose was also designed13:34
mordredand one of the reasons we moved off of nose13:34
mordrednose's support library did "interesting" things to help, which wound up modifying the code that was under test13:35
*** bobh has joined #openstack-oslo13:35
mordredall that said- I do not think re-using sphinx's test fixtures would be a violation of anything - I do think that if we are required to use pytest as atest runner in pbr in order to do so that it would be a problem13:36
stephenfinThen that's something I need to investigate. I wrote some tests for one of my extensions and wound up using pytest because it was available anyway13:36
stephenfinBut hopefully it's not necessary here13:37
mordredof course, I *think* pytest test fixtures have an unnatural reliance on pytest as a test runner because they python testing protocol (which controls how discovery is run and tests are loaded) wasn't good enough13:37
stephenfinThings like needing to put everything inside a class, for one?13:38
stephenfinOr other stuff13:38
mordredalso - (sorry, you tickled my rage button this morning) I **LOVE** that py.test completely ignores the PEP-defined and standard library supported python testing protocol but it's popular and everyone loves it, but pbr is different from setuptools having attempted to follow where the peps are going and people point their fingers at us and yell because we're "not doing things right?13:38
mordredstephenfin: things do not need to be in a class for stestr or the python testing protocol to operate13:38
mordredthings being in a class is an organizational choice testtools provides and that we have adopted as a strategy13:39
mordredhowever, things being in a class allows for defining things like shared setUp/tearDown methods13:39
*** bobh has quit IRC13:40
stephenfinmordred: But who listens to the haters, eh?13:40
mordredexactly :)13:40
mordredstephenfin: ranting aside - let's see if we can figure out how to reuse appropriate sphinx testing fixtures without having to follow the fashion trends of popular test runners13:41
mordredI think the idea of using them is certainly the right choice13:41
mordredand maybe if we figure it out we can show people a pattern for doing so if it comes up again13:42
stephenfinindeed13:42
stephenfinThough I honestly think I was the first person outside Sphinx to use these tests, so adopting them elsewhere is definitely going to present bug/documentation issues which I'll have to fix. I always did like a challenge...13:43
*** lbragstad has joined #openstack-oslo13:46
mordredstephenfin: I concur- you and challenges seem to go hand in hand13:46
mordredstephenfin: re-using test suite fixtures in dependent projects seems to be a concept people haven't fully wrapped their head around13:47
stephenfinbnemec: I assume it's too late to get https://review.openstack.org/#/q/topic:the-great-cleanup+status:open in?13:53
*** bobh has joined #openstack-oslo13:57
*** bobh has quit IRC14:01
bnemecstephenfin: Yeah, technically we're in feature freeze for Oslo already, although I haven't done the final releases yet because of the partially merged oslo.config series.14:03
bnemecIt would be nice to get those deprecations in this cycle though. :-/14:03
*** spilla has joined #openstack-oslo14:03
bnemecI suppose there's an argument that pbr as a more standalone tool could observe the non-client libraries freeze instead.14:04
stephenfinbnemec: I'd be eager to deprecate it now and...encourage people to move off the tools. You're the boss though so your call :)14:05
bnemecstephenfin: Is there any way we could move those earlier in the series so we don't have to land the whole thing?  The removals in particular make me a little nervous.14:10
stephenfinWas thinking the same thing myself. Sure, lemme do that14:10
bnemecMost of the rest of it seems like minor fixes and cleanups which don't bother me.14:11
stephenfinMeans this probably doesn't need a major version bump then either14:11
stephenfinNot yet, anyway14:11
bnemecThe sphinx extension is pretty big.  Is that neede for the build_sphinx deprecation?14:11
bnemec*needed14:11
stephenfinIdeally, yes, but not by anyone in OpenStack14:12
stephenfinIt's a duplicate of functionality provided by openstackdocstheme, which all official OpenStack projects should be using14:12
bnemecOkay14:14
openstackgerritStephen Finucane proposed openstack-dev/pbr master: doc: Fix formatting of packagers guide  https://review.openstack.org/58041814:16
openstackgerritStephen Finucane proposed openstack-dev/pbr master: doc: Add documentation for missing '[pbr]' options  https://review.openstack.org/58041914:16
openstackgerritStephen Finucane proposed openstack-dev/pbr master: Add Sphinx extension  https://review.openstack.org/58042014:16
openstackgerritStephen Finucane proposed openstack-dev/pbr master: Deprecate 'build_sphinx' integration  https://review.openstack.org/58042114:16
openstackgerritStephen Finucane proposed openstack-dev/pbr master: Deprecate 'test' integration  https://review.openstack.org/58042214:16
openstackgerritStephen Finucane proposed openstack-dev/pbr master: builddoc: Remove support for Sphinx < 1.6  https://review.openstack.org/58041614:16
openstackgerritStephen Finucane proposed openstack-dev/pbr master: packaging: Remove support for pyN requirement files  https://review.openstack.org/58041714:16
bnemecIt would be good to have mordred sign off on this too, as the resident pbr expert.14:17
stephenfinbnemec: Yup, he's gone though it once before. Would be good to go again14:19
stephenfinbnemec: What's the next version going to be though. I've referenced 5.0 since I was assuming we'd be removing stuff and would need a major bump. Not so now, I guess? https://review.openstack.org/#/c/580420/9/doc/source/user/features.rst14:20
bnemecstephenfin: Yeah, looks like it would be 4.2.0.14:21
openstackgerritStephen Finucane proposed openstack-dev/pbr master: Add Sphinx extension  https://review.openstack.org/58042014:29
openstackgerritStephen Finucane proposed openstack-dev/pbr master: Deprecate 'build_sphinx' integration  https://review.openstack.org/58042114:29
openstackgerritStephen Finucane proposed openstack-dev/pbr master: Deprecate 'test' integration  https://review.openstack.org/58042214:29
openstackgerritStephen Finucane proposed openstack-dev/pbr master: packaging: Remove support for pyN requirement files  https://review.openstack.org/58041714:29
openstackgerritStephen Finucane proposed openstack-dev/pbr master: builddoc: Remove support for Sphinx < 1.6  https://review.openstack.org/58041614:29
stephenfinbnemec: Done and done ^14:29
bnemecstephenfin: Okay, I'm working my way through the series.14:32
*** namnh has joined #openstack-oslo14:45
*** lpetrut has quit IRC14:47
openstackgerritStephen Finucane proposed openstack/oslo.config master: sphinxext: Handle multi-line group descriptions  https://review.openstack.org/58352514:49
*** peereb has quit IRC14:51
*** pcaruana has quit IRC14:56
*** moguimar has quit IRC15:00
raildodhellmann, bnemec hey, can I get an workflow on that again? https://review.openstack.org/#/c/578144/ I rebased this patch yesterday, since we fixed that issue with that test15:06
bnemecraildo: That's the last patch from the series, right?15:10
raildoyep15:10
bnemecCool.  Fingers crossed that ci cooperates. :-)15:11
raildobnemec, ++15:11
*** namnh has quit IRC15:13
*** lpetrut has joined #openstack-oslo15:16
*** rpioso|afk is now known as rpioso15:20
*** lpetrut has quit IRC15:37
*** lpetrut has joined #openstack-oslo15:55
*** links has quit IRC15:55
*** pcaruana has joined #openstack-oslo16:00
*** lbragstad has quit IRC16:02
*** efried is now known as efried_rollin16:13
*** lpetrut has quit IRC16:17
*** AlexeyAbashkin has quit IRC16:36
*** AlexeyAbashkin has joined #openstack-oslo16:39
*** njohnston has quit IRC16:39
*** AlexeyAbashkin has quit IRC16:43
*** mattgo has quit IRC16:44
*** spilla_ has joined #openstack-oslo16:46
*** spilla has quit IRC16:46
*** lbragstad has joined #openstack-oslo16:50
*** e0ne has quit IRC16:51
*** njohnston has joined #openstack-oslo16:57
*** shardy has quit IRC17:15
*** mattgo has joined #openstack-oslo17:20
*** tesseract has quit IRC17:35
*** e0ne has joined #openstack-oslo17:39
*** spilla has joined #openstack-oslo17:42
*** spilla_ has quit IRC17:42
*** e0ne has quit IRC17:44
*** e0ne has joined #openstack-oslo17:48
*** e0ne has quit IRC17:51
*** pcaruana has quit IRC18:08
*** e0ne has joined #openstack-oslo18:10
*** mattgo has quit IRC18:15
openstackgerritMerged openstack/oslo.config master: New cache layer for external sources  https://review.openstack.org/57814418:15
*** e0ne has quit IRC18:17
*** sambetts is now known as sambetts|afk18:21
*** lpetrut has joined #openstack-oslo18:28
*** vivsoni__ has joined #openstack-oslo18:33
vivsoni__hi team18:34
vivsoni__can you please help me to get rid off this error http://paste.openstack.org/show/726221/18:35
vivsoni__UnicodeEncodeError: 'utf-8' codec can't encode character '\\udc82' in position 1365: surrogates not allowed\x1b[00m"18:35
*** harlowja has joined #openstack-oslo18:54
dhellmannvivsoni__ : hmm, that's a new one to me. You might want to post the details to the openstack-dev mailing list18:58
vivsoni__dhellmann: ok18:59
dhellmannvivsoni__ : it would be interesting to see if you could produce the same error using a small python program that doesn't use privsep or msgpack or anything -- just try to encode the string you're working with19:03
vivsoni__dhellmann: sure i will dig into it a bit more to reproduce and will share the details19:04
bnemecFWIW, stackoverflow came up with this: https://stackoverflow.com/questions/27366479/python-3-os-walk-file-paths-unicodeencodeerror-utf-8-codec-cant-encode-s#2736717319:04
dhellmannvivsoni__ : sounds good19:04
bnemecBut I don't understand why it would trigger inside of msgpack since it shouldn't be printing anything.19:04
dhellmannah, interesting19:05
dhellmannno, but I wonder if it is doing something similar where it encodes without the surrogateescape setting19:06
dhellmannI wouldn't expect stdout to use that setting, for example19:07
*** mattgo has joined #openstack-oslo19:13
rookbnemec: hey - just saw your reply to the oslo policy... is there a way to mnkey patch your change in to see if it helps?19:21
* rook hasn't seen the patch19:21
*** vivsoni__ has quit IRC19:21
bnemecrook: The functional part of the patch is like 4 lines, so it shouldn't be too hard.19:22
bnemecIt's just the changes in this file: https://review.openstack.org/#/c/511426/4/oslo_policy/policy.py19:22
rookhm19:23
rookthat doens't seem to be the hot function we are seeing19:23
rookmaybe i am misunderstanding bnemec19:23
rookEnforcer._undefined_check and _cycle_check seem to be the big hitters19:24
*** njohnston has quit IRC19:24
rookmaybe they get called so often due to reloadin the rules19:24
rookmaybe that is the gain here19:24
openstackgerritBen Nemec proposed openstack/oslo.policy master: Avoid redundant policy syntax checks  https://review.openstack.org/51142619:25
bnemecrook: Right, those are called in check_rules, which gets called every single time enforce() is called.19:26
bnemecSee line 566 and 569 of the change in policy.py.19:26
bnemecBy only calling them when necessary it should massively decrease the amount of time spent in those functions.19:27
bnemecIt might be more accurate to say that enforce() always calls load_rules(), which always calls check_rules(), which leads to a lot of calls to those functions.19:30
bnemecI think the assumption is that load_rules is basically a noop if the policy hasn't changed, but that wasn't entirely true.19:31
dhellmannit probably was a noop before the validation was added19:34
dhellmannit would also be interesting to see how big the policy file in question is. some of this stuff was designed before we had such large APIs19:34
*** e0ne has joined #openstack-oslo19:39
openstackgerritBen Nemec proposed openstack/oslo.policy master: Avoid redundant policy syntax checks  https://review.openstack.org/51142619:40
bnemecIt also seems to have more impact when there are a lot of instances or ports or whatever.19:43
bnemecI couldn't reproduce it in a fresh devstack install, but then that had very little to actually check.19:44
bnemecAnd I will say that I find horizon to be painfully slow when you have a lot of instances.19:44
*** efried_rollin is now known as efried19:49
rookbnemec: ack19:51
rookbnemec: I will see if Anil can try your patch19:51
bnemecSounds good19:51
*** e0ne has quit IRC19:52
openstackgerritMerged openstack-dev/pbr master: trivial: Remove 'tools/releasenotes_tox.sh'  https://review.openstack.org/58041420:34
openstackgerritMerged openstack-dev/pbr master: trivial: Fix file permissions  https://review.openstack.org/58041520:48
*** lpetrut has quit IRC20:48
*** raildo has quit IRC21:06
*** njohnston_ has joined #openstack-oslo21:38
*** edmondsw has quit IRC21:54
*** mattgo has quit IRC21:54
*** njohnston_ has quit IRC21:54
*** njohnston_ has joined #openstack-oslo22:17
*** lbragstad has quit IRC22:29
*** rcernin has joined #openstack-oslo22:32
*** njohnston_ has quit IRC22:33
mtreinishmordred, stephenfin: I wrote a blog post about the testing stack we use few months ago: https://blog.kortar.org/?p=370 (it's probably a bit too high level though)22:58
mordredmtreinish: it's a good post and useful for people who don't have all the background I thnk23:02
clarkbheh just catching up on that discussion, I'm too impatient for py.test. Working on pip is soo slooooowwwww23:02
clarkbbut the good news is you can totally run openstack tests under py.test because we use standard compliant libs23:02
clarkbunlike if we went in reverse23:02
mtreinishclarkb: heh, I actually found one case where pytest didn't work with our tests. In tempest we forgot to delete 1 file when we wiped out a dir (which deleted the __init__.py)23:03
mtreinishunittest discovery just skipped the leftover file23:04
mtreinishbut because pytest does a recursive directory scan instead of importing the code it found the file and failed when running those dead tests23:04
clarkbhuh however thats a case of them not following the standard right?23:04
mtreinishyeah23:04
mtreinishit was just a weird edge case because pytest discovery is just basically "ls -R | grep test_*py"23:05
clarkbwow23:05
clarkbI would be curious for someone to compare nova or neutron's test suite runtime between py.test and testr23:06
clarkband wonder if people would want to switch after :)23:06
clarkbin any case we don't stop you from using py.test locally, but we use test runner that allows for throughput in the gate because it helps get work done quicker23:08
clarkbmordred: not to induce further rage but they added setup.cfg support to setuptools which is yay until you realize its sort of intentionally not compatible with our setup.cfg23:09
clarkbwhich was based on pep whatever it was in the first place23:10
*** tosky has quit IRC23:20
mordredclarkb: yeah. don't even get me started on that23:24
*** rpioso is now known as rpioso|afk23:48
*** threestrands has joined #openstack-oslo23:50

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