-
Notifications
You must be signed in to change notification settings - Fork 659
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
Add a new AgentError field in the agent protos #5916
base: master
Are you sure you want to change the base?
Add a new AgentError field in the agent protos #5916
Conversation
Signed-off-by: Rafael Raposo <[email protected]>
73bf769
to
45b2f7c
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5916 +/- ##
==========================================
- Coverage 37.03% 37.02% -0.02%
==========================================
Files 1313 1313
Lines 131622 131691 +69
==========================================
+ Hits 48742 48753 +11
- Misses 78652 78710 +58
Partials 4228 4228
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Rafael Raposo <[email protected]>
Signed-off-by: Rafael Raposo <[email protected]>
Signed-off-by: Rafael Raposo <[email protected]>
logger.Errorf(ctx, "failed to receive from server %s", err.Error()) | ||
return nil, nil, err |
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.
this is great, even if this IDL change is not accepted, we should still accept 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.
It overall looks super great, just need @EngHabu for approving this.
Signed-off-by: Rafael Raposo <[email protected]>
Signed-off-by: Rafael Raposo <[email protected]>
Why are the changes needed?
This aligns Agent Errors with all other Flyte Errors, meaning that similarly to
ContainerError
we now haveAgentError
. It was decided to use a newAgentError
due to being calls to an Agent Service and not necessarily containers running so it's better to keep it clean.What changes were proposed in this pull request?
Adding a new
AgentError
Implement the usage of
AgentError
Little tweaks and error message improvements
How was this patch tested?
Unit tests added.
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link