-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix: fix multiple import problem #3276
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3276 +/- ##
==========================================
+ Coverage 89.13% 90.39% +1.26%
==========================================
Files 148 148
Lines 10468 10489 +21
==========================================
+ Hits 9331 9482 +151
+ Misses 1137 1007 -130
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Latency summaryCurrent PR yields:
Breakdown
Backed by latency-tracking. Further commits will update this comment. |
Still tests to be added |
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 the thing with removing uses_*
does not work well yet. I added this test to your PR
def test_single_import_metas(patched_path_import):
flow = Flow().add(
uses='ExecutorImportedOnce',
uses_metas=dict(py_modules=['executors/executor_fails_import_twice.py']),
)
with flow:
pass
and it fails.
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.
Let's get it merged, but in general I do not have a good feeling about how a single class is trying to be a loader for everything right (with load_config
) now - it leads to configs with no known structure, it's just chaotic
yes it is. We will refactor at some point |
No description provided.