Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

fix: Fix event handling for duplicated subscriptions in go-sdk remote execution plane use case #542

Merged
merged 3 commits into from
Oct 6, 2022

Conversation

warber
Copy link
Contributor

@warber warber commented Sep 21, 2022

fixes keptn/keptn#8875

Additionally, this PR contains logging improvements of the go-sdk, meaning that it will output a log message containing the currently subscribed events. at INFO level only if the current subscriptions have been changed.

Signed-off-by: warber <bernd.warmuth@dynatrace.com>
Signed-off-by: warber <bernd.warmuth@dynatrace.com>
},
}
ctx, cancel := context.WithCancel(context.TODO())
go controlPlane.Register(ctx, integration)

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
Error return value of controlPlane.Register is not checked (errcheck)

@codecov
Copy link

codecov bot commented Sep 21, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@cf4bfd8). Click here to learn what that means.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #542   +/-   ##
=========================================
  Coverage          ?   50.87%           
=========================================
  Files             ?      105           
  Lines             ?     5844           
  Branches          ?        0           
=========================================
  Hits              ?     2973           
  Misses            ?     2737           
  Partials          ?      134           

@warber warber changed the title Fix event handling for duplicated subscriptions in go-sdk remote execution plane use case fix: Fix event handling for duplicated subscriptions in go-sdk remote execution plane use case Sep 22, 2022
@warber warber marked this pull request as ready for review September 22, 2022 07:08
Signed-off-by: warber <bernd.warmuth@dynatrace.com>
@sonarcloud
Copy link

sonarcloud bot commented Sep 30, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@warber warber merged commit 8655d73 into master Oct 6, 2022
@warber warber mentioned this pull request Oct 12, 2022
4 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

go-utils: go-sdk handles duplicated event subscriptions incorrectly
2 participants