-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix: no warning for metas in executor #3219
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 #3219 +/- ##
==========================================
- Coverage 90.48% 90.47% -0.01%
==========================================
Files 148 148
Lines 10324 10324
==========================================
- Hits 9342 9341 -1
- Misses 982 983 +1
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. |
Can I get some opinions here, if that makes sense. So the point is:
|
926a2c3
to
8265b9a
Compare
I am not sure what's the strategy. I think having the metas defined in the |
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 need time to figure out why this is necessary, will come back later
Following line of thought: The general target of I am not sure, if I 100% agree with this line of thought above, but users complained, that they did not got any warning, when specifying deprecated arguments. So this was my idea of solving it: Get more rigid with arg parsing. |
the test is incorrect, that YAML in the test is not a valid Flow anyway. so the warning is correct, there is nothing called I'm guessing you wanted to test against the below instead, which gives a valid Flow with one executor and executor has metas name as yaml = '''jtype: Flow
version: 1
executors:
- uses:
jtype: BaseExecutor
metas:
name: hello
'''
with Flow().load_config(yaml):
pass which gives no warning on current master |
d8702d2
to
35cce1c
Compare
If you use
metas
inside an Executor definition, there was a warning, that it is an unknown argument beforehands. Even thought it is not really used inside the argparse, this is the correct way in my opinion.