-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[utils.py] gathering/refactoring into a "utils/" folder #6095
Conversation
dd72b3f
to
d2f3b4f
Compare
Codecov Report
@@ Coverage Diff @@
## master #6095 +/- ##
==========================================
- Coverage 77.23% 76.91% -0.33%
==========================================
Files 47 47
Lines 9349 9362 +13
==========================================
- Hits 7221 7201 -20
- Misses 2128 2161 +33
Continue to review full report at Codecov.
|
c955690
to
9f384b9
Compare
tests/base_tests.py
Outdated
@@ -23,22 +20,12 @@ class SupersetTestCase(unittest.TestCase): | |||
examples_loaded = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can remove this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call
Moving current utils.py into utils/core.py and moving other *util* modules under this new "utils/" as well. Following steps include eroding at "utils/core.py" and breaking it down into smaller modules.
4e0cfec
to
0bc0b13
Compare
* [utils] gathering/refactoring into a "utils/" folder Moving current utils.py into utils/core.py and moving other *util* modules under this new "utils/" as well. Following steps include eroding at "utils/core.py" and breaking it down into smaller modules. * Improve tests * Make loading examples in scope for tests * Remove test class attrs examples_loaded and requires_examples
Moving current utils.py into utils/core.py and moving other util
modules under this new "utils/" as well.
Following steps include eroding at "utils/core.py" and breaking it down
into smaller modules.
Unit tests speed up
I did a bunch of unrelated changes that lead to shaving a lot of time off the Python unit test suite. It went for 15-ish minutes to 5-ish minutes. Somehow the examples were getting loaded over and over for each class that was getting triggered in parallel.
On the down side,load_examples
now falls off of coverage accounting, meaning we loose 6% of coverage for the piece of code that loads the example. Somehow it's not easy to getnosetests
to force a certain order. Personally I think it's worth the tradeoff.