-
Notifications
You must be signed in to change notification settings - Fork 669
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
Return InvalidArgument for workflow compilation failures in CreateWorkflow #4566
Conversation
…kflow Signed-off-by: Katrina Rogan <[email protected]>
Signed-off-by: Katrina Rogan <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4566 +/- ##
==========================================
- Coverage 58.98% 58.92% -0.06%
==========================================
Files 621 620 -1
Lines 52483 52432 -51
==========================================
- Hits 30957 30896 -61
- Misses 19059 19071 +12
+ Partials 2467 2465 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…kflow (#4566) * Return InvalidArgument for workflow compilation failures in CreateWorkflow Signed-off-by: Katrina Rogan <[email protected]> * lint Signed-off-by: Katrina Rogan <[email protected]> --------- Signed-off-by: Katrina Rogan <[email protected]> Co-authored-by: Dan Rammer <[email protected]> Signed-off-by: Paul Dittamo <[email protected]>
Tracking issue
#4565
Why are the changes needed?
Invalid workflow specs passed to CreateWorkflow calls currently return Internal grpc status response codes and are erroneously treated as server rather than user errors.
As far as I could tell, the compiler propagates compiler errors that only surface due to invalid workflow definitions
What changes were proposed in this pull request?
Updates workflow compilation handling to return a more accurate response code.
How was this patch tested?
Added unit tests.
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link