-
Notifications
You must be signed in to change notification settings - Fork 156
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
Support Plan Preview for Lambda #5046
Conversation
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5046 +/- ##
==========================================
+ Coverage 22.43% 22.46% +0.02%
==========================================
Files 520 526 +6
Lines 56852 57251 +399
==========================================
+ Hits 12756 12862 +106
- Misses 43069 43357 +288
- Partials 1027 1032 +5 ☔ View full report in Codecov by Sentry. |
/review |
PR AnalysisMain theme"Introducing Lambda diff functionality to plan-preview" PR summary"This PR adds functionality to generate a diff for AWS Lambda applications during the plan-preview execution within PipeCD. It includes the diff logic, caching, and necessary test cases." Type of PREnhancement PR Feedback:General suggestionsThe PR successfully introduces an enhancement to include the AWS Lambda application kind in the plan-preview mechanism. It follows a consistent design with the existing application kinds and provides necessary testing and caching support. However, there are opportunities for improvement to ensure error handling and code structure best practices are followed. Code feedback
Security concerns:"no" This code introduces no apparent security issues, such as command injection or sensitive data exposure, within the diff functionality. However, it's important to ensure that any external command execution is properly sanitized and handled securely, as seen in the usage of the |
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
d, err := renderByCommand(diffCommand, d.Old, d.New) | ||
if err != nil { |
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] How about remove func renderByCommand
and just call diff.RenderByCommand
directly?
d, err := renderByCommand(diffCommand, d.Old, d.New) | |
if err != nil { | |
d, err := diff.RenderByCommand(diffCommand, d.Old, d.New) | |
if err != nil { |
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.
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
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.
LGTM
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.
🚀
What this PR does / why we need it:
Enabled Plan Preview for Lambda, which compares FunctionManifests.
This is almost the same as ECS's PlanPreview(#4881).
Which issue(s) this PR fixes:
Fixes #5045
Does this PR introduce a user-facing change?: no
How it works:
When calling PlanPreview as GitHub Actions: