-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix(flow): raise error when using grpc data runtime with shards #3364
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
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.
Thank you very much for your contribution!
Can you maybe also add a unit test, which covers this case? It should go somewhere in tests/unit/flow-construct/ I believe
Ok |
@jacobowitz Should I write test in a new file or add into an existing file? For now I have added it to |
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.
Thanks for adding the test :)
Mayebe also add anothe one testing the good case? shards=1
should work (even though shards is specified).
@RaghavPrabhakar66 You can check it with something like this |
@jacobowitz We can add something like |
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.
One minor comment left, lets address it and then we can check if CI runs through.
@RaghavPrabhakar66
https://github.com/jina-ai/jina/pull/3364/checks?check_run_id=3609792590 The rules are defined here: https://github.com/jina-ai/jina/blob/master/CONTRIBUTING.md We probably will need multiple iterations until CI passes, I will run it whenever you update the PR |
Codecov Report
@@ Coverage Diff @@
## master #3364 +/- ##
==========================================
+ Coverage 89.68% 90.32% +0.63%
==========================================
Files 152 152
Lines 10843 10910 +67
==========================================
+ Hits 9725 9854 +129
+ Misses 1118 1056 -62
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
all green and change looks good to me! thx a lot for this PR :)
Fixes Issue: #3197
Expected Behavior:
Flow(grpc_data_requests=True).add(shards=2)
should raise an error.Implemented Behavior: