-
Notifications
You must be signed in to change notification settings - Fork 157
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
Implement Livestate SDK #5626
Implement Livestate SDK #5626
Conversation
…gs in a single method Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
…Model Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
…l conversions Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5626 +/- ##
==========================================
- Coverage 26.54% 25.56% -0.99%
==========================================
Files 477 477
Lines 50666 50945 +279
==========================================
- Hits 13450 13022 -428
- Misses 36153 36918 +765
+ Partials 1063 1005 -58 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
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.
Almost LGTM!
Please check one nit
} | ||
|
||
func TestLivestatePluginServer_GetLivestate(t *testing.T) { | ||
tests := []struct { |
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.
nit: add t.Parallel()
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. Fixed on this commit.
cc8fb17
deployTargets := make([]*DeployTarget[DeployTargetConfig], 0, len(request.GetDeployTargets())) | ||
for _, name := range request.GetDeployTargets() { | ||
dt, ok := s.deployTargets[name] | ||
if !ok { | ||
return nil, status.Errorf(codes.Internal, "the deploy target %s is not found in the piped plugin config", name) | ||
} | ||
|
||
deployTargets = append(deployTargets, dt) | ||
} |
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.
[refactor] Let's convert this block into a function in another PR since the same logic appears in ExecuteStage(), etc.
Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
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 try!
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.
Almost LGTM
just add one nit commit
Co-authored-by: Yoshiki Fujikane <[email protected]> Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
@t-kikuc |
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.
Sorry, forgot to approve 🙏
LGTM
What this PR does:
as title
Why we need it:
To implement the livestate feature with this SDK
Which issue(s) this PR fixes:
Part of #5530
Does this PR introduce a user-facing change?: No