Skip to content

[Lambda] Fix unexpected diff of Plan Preview #5308

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

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

t-kikuc
Copy link
Member

@t-kikuc t-kikuc commented Nov 5, 2024

The same issue as #5306 (ECS). See it for details.

What this PR does:

  • Clone manifests in DriftDetection not to modify the original ones in AppManifestsCache.

Why we need it:

PlanPreview for Lambda has the same issue as #5306.

Which issue(s) this PR fixes:

N/A

Does this PR introduce a user-facing change?:

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

Copy link

codecov bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 69.56522% with 7 lines in your changes missing coverage. Please review.

Project coverage is 25.25%. Comparing base (ad3c877) to head (f528641).
Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
pkg/app/piped/driftdetector/lambda/detector.go 69.56% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5308      +/-   ##
==========================================
+ Coverage   25.14%   25.25%   +0.10%     
==========================================
  Files         449      444       -5     
  Lines       47642    47493     -149     
==========================================
+ Hits        11980    11994      +14     
+ Misses      34717    34558     -159     
+ Partials      945      941       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Warashi Warashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@ffjlabo ffjlabo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@t-kikuc t-kikuc merged commit 6b43655 into master Nov 5, 2024
18 checks passed
@t-kikuc t-kikuc deleted the fix-lambda-drift-manifests branch November 5, 2024 06:49
github-actions bot pushed a commit that referenced this pull request Nov 7, 2024
ffjlabo added a commit that referenced this pull request Nov 7, 2024
* Add event context (#5295)

* Add contexts to the RegisterEventRequest

Signed-off-by: Yoshiki Fujikane <[email protected]>

* Add contexts to model.Event

Signed-off-by: Yoshiki Fujikane <[email protected]>

* Store event context in Control Plane

Signed-off-by: Yoshiki Fujikane <[email protected]>

* Add trailers when commiting on event watcher

Signed-off-by: Yoshiki Fujikane <[email protected]>

* Fix for failed build

Signed-off-by: Yoshiki Fujikane <[email protected]>

---------

Signed-off-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* Add docs for pipectl event register --contexts on the event watcher usage page (#5299)

* Add docs for pipectl event register --contexts on the event watcher usage page

Signed-off-by: Yoshiki Fujikane <[email protected]>

* Fix docs

Signed-off-by: Yoshiki Fujikane <[email protected]>

* Fix command

Signed-off-by: Yoshiki Fujikane <[email protected]>

---------

Signed-off-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* Clone manifests not to modify original manifests (#5306)

Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* Lambda: clone manifests not to modify original manifests (#5308)

Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* Skip commit and push when no replacement happens in EventWatcher (#5310)

* fix: skip push if no diff exist

Signed-off-by: t-kikuc <[email protected]>

* modify message

Signed-off-by: t-kikuc <[email protected]>

* refactor: use noChange variable

Signed-off-by: t-kikuc <[email protected]>

---------

Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* Execute git clean partially when drift detection for every app is done (#5312)

* Execute git clean partially when drift detection for every app is done

Signed-off-by: Yoshiki Fujikane <[email protected]>

* Rename to CleanPath

Signed-off-by: Yoshiki Fujikane <[email protected]>

* Add test for the outside dir pattern

Signed-off-by: Yoshiki Fujikane <[email protected]>

---------

Signed-off-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

* Update RELEASE and docs to v0.49.3 (#5315)

Signed-off-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>

---------

Signed-off-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: pipecd-bot <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Co-authored-by: Yoshiki Fujikane <[email protected]>
Co-authored-by: Tetsuya Kikuchi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/go cherry-pick kind/bug Something isn't working as expected v0.49.3
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants