Correct notification routing for DEPLOYMENT_STARTED#5523
Merged
t-kikuc merged 2 commits intopipe-cd:masterfrom Jan 31, 2025
Merged
Correct notification routing for DEPLOYMENT_STARTED#5523t-kikuc merged 2 commits intopipe-cd:masterfrom
DEPLOYMENT_STARTED#5523t-kikuc merged 2 commits intopipe-cd:masterfrom
Conversation
bfdb901 to
fd6ce23
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5523 +/- ##
==========================================
- Coverage 26.43% 26.43% -0.01%
==========================================
Files 464 464
Lines 49786 49790 +4
==========================================
Hits 13163 13163
- Misses 35569 35573 +4
Partials 1054 1054 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Yuki Okushi <okushi@canary-inc.jp>
fd6ce23 to
2296b0c
Compare
t-kikuc
previously approved these changes
Jan 31, 2025
Warashi
reviewed
Jan 31, 2025
Member
Warashi
left a comment
There was a problem hiding this comment.
Thank you for your contribution!
I commented on missing test cases; please check them.
Comment on lines
+151
to
+158
| { | ||
| Type: model.NotificationEventType_EVENT_DEPLOYMENT_STARTED, | ||
| Metadata: &model.NotificationEventDeploymentStarted{ | ||
| Deployment: &model.Deployment{ | ||
| ApplicationName: "canary", | ||
| }, | ||
| }, | ||
| }: true, |
Member
There was a problem hiding this comment.
Could you please add a test case to return false?
Suggested change
| { | |
| Type: model.NotificationEventType_EVENT_DEPLOYMENT_STARTED, | |
| Metadata: &model.NotificationEventDeploymentStarted{ | |
| Deployment: &model.Deployment{ | |
| ApplicationName: "canary", | |
| }, | |
| }, | |
| }: true, | |
| { | |
| Type: model.NotificationEventType_EVENT_DEPLOYMENT_STARTED, | |
| Metadata: &model.NotificationEventDeploymentStarted{ | |
| Deployment: &model.Deployment{ | |
| ApplicationName: "canary", | |
| }, | |
| }, | |
| }: true, | |
| { | |
| Type: model.NotificationEventType_EVENT_DEPLOYMENT_STARTED, | |
| Metadata: &model.NotificationEventDeploymentStarted{ | |
| Deployment: &model.Deployment{ | |
| ApplicationName: "bluegreen", | |
| }, | |
| }, | |
| }: false, |
auto-merge was automatically disabled
January 31, 2025 05:21
Head branch was pushed to by a user without write access
Signed-off-by: Yuki Okushi <okushi@canary-inc.jp>
1ebc304 to
edfb792
Compare
Warashi
approved these changes
Jan 31, 2025
Member
Warashi
left a comment
There was a problem hiding this comment.
LGTM!
Thank you for a great contribution!
t-kikuc
approved these changes
Jan 31, 2025
github-actions bot
pushed a commit
that referenced
this pull request
Feb 17, 2025
* Correct notification routing for `DEPLOYMENT_STARTED` Signed-off-by: Yuki Okushi <okushi@canary-inc.jp> * Harden test case Signed-off-by: Yuki Okushi <okushi@canary-inc.jp> --------- Signed-off-by: Yuki Okushi <okushi@canary-inc.jp> Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>
github-actions bot
pushed a commit
that referenced
this pull request
Feb 17, 2025
* Correct notification routing for `DEPLOYMENT_STARTED` Signed-off-by: Yuki Okushi <okushi@canary-inc.jp> * Harden test case Signed-off-by: Yuki Okushi <okushi@canary-inc.jp> --------- Signed-off-by: Yuki Okushi <okushi@canary-inc.jp> Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>
t-kikuc
added a commit
that referenced
this pull request
Feb 17, 2025
* Correct notification routing for `DEPLOYMENT_STARTED` (#5523) * Correct notification routing for `DEPLOYMENT_STARTED` Signed-off-by: Yuki Okushi <okushi@canary-inc.jp> * Harden test case Signed-off-by: Yuki Okushi <okushi@canary-inc.jp> --------- Signed-off-by: Yuki Okushi <okushi@canary-inc.jp> Signed-off-by: pipecd-bot <pipecd.dev@gmail.com> * Sort results of plan-preview (#5540) * Sort results of plan-preview Signed-off-by: kj455 <kaji.ibuki45@gmail.com> * Ensure the order of list piped Signed-off-by: kj455 <kaji.ibuki45@gmail.com> * fix: lint Signed-off-by: kj455 <kaji.ibuki45@gmail.com> * fix: move sorting to pipectl Signed-off-by: kj455 <kaji.ibuki45@gmail.com> * fix: add testcase Signed-off-by: kj455 <kaji.ibuki45@gmail.com> * fix: dev docs Signed-off-by: kj455 <kaji.ibuki45@gmail.com> * add docs Signed-off-by: kj455 <kaji.ibuki45@gmail.com> --------- Signed-off-by: kj455 <kaji.ibuki45@gmail.com> Signed-off-by: pipecd-bot <pipecd.dev@gmail.com> * Enhanced EventWatcher logs (#5558) * Show push error log earlier than reporting Signed-off-by: t-kikuc <tkikuchi07f@gmail.com> * Use WarnLog in retry Signed-off-by: t-kikuc <tkikuchi07f@gmail.com> * clarify log messages Signed-off-by: t-kikuc <tkikuchi07f@gmail.com> * clarify log messages Signed-off-by: t-kikuc <tkikuchi07f@gmail.com> * add TestDoCalls for asserting counts Signed-off-by: t-kikuc <tkikuchi07f@gmail.com> * add eventIDs in log Signed-off-by: t-kikuc <tkikuchi07f@gmail.com> * enrich logs in updateValues Signed-off-by: t-kikuc <tkikuchi07f@gmail.com> * nits Signed-off-by: t-kikuc <tkikuchi07f@gmail.com> * Revert "add TestDoCalls for asserting counts" This reverts commit de3f112. Signed-off-by: t-kikuc <tkikuchi07f@gmail.com> --------- Signed-off-by: t-kikuc <tkikuchi07f@gmail.com> Signed-off-by: pipecd-bot <pipecd.dev@gmail.com> * update RELEASE to v0.50.2 with doc update (#5571) Signed-off-by: t-kikuc <tkikuchi07f@gmail.com> Signed-off-by: pipecd-bot <pipecd.dev@gmail.com> --------- Signed-off-by: Yuki Okushi <okushi@canary-inc.jp> Signed-off-by: pipecd-bot <pipecd.dev@gmail.com> Signed-off-by: kj455 <kaji.ibuki45@gmail.com> Signed-off-by: t-kikuc <tkikuchi07f@gmail.com> Co-authored-by: Yuki Okushi <okushi@canary-inc.jp> Co-authored-by: Ibuki Kaji <38521709+kj455@users.noreply.github.com> Co-authored-by: Tetsuya KIKUCHI <97105818+t-kikuc@users.noreply.github.com>
Member
|
Hi, we released your PR in v0.50.2 last week! Thank you so much! |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does:
This fixes the issue the
DEPLOYMENT_STARTEDevent notification is routed unconditionally.Why we need it:
Without this, users would receive that event notification even if they don't want.
Which issue(s) this PR fixes:
None
Does this PR introduce a user-facing change?: Yes