Skip to content
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

fix(metrics-operator): fix panic due to write attempt on closed channel #2119

Merged
merged 8 commits into from
Sep 19, 2023

Conversation

bacherfl
Copy link
Member

Closes #2104

This PR also adds a timeout of 10s to the worker pool responsible for gathering the analysis values, and changes the behavior of the pool to let all workers finish their job (or time out), in case there was an error during the retrieval of one value.

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
…nish or time out in case of provider error

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@netlify
Copy link

netlify bot commented Sep 18, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit 9b0afbb
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/6507f3bfa7f091000835613d
😎 Deploy Preview https://deploy-preview-2119--keptn-lifecycle-toolkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@codecov
Copy link

codecov bot commented Sep 18, 2023

Codecov Report

Merging #2119 (8bb507d) into main (276b609) will increase coverage by 0.87%.
The diff coverage is 90.90%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2119      +/-   ##
==========================================
+ Coverage   83.55%   84.42%   +0.87%     
==========================================
  Files         108      151      +43     
  Lines        7071     9592    +2521     
==========================================
+ Hits         5908     8098    +2190     
- Misses        956     1210     +254     
- Partials      207      284      +77     
Files Changed Coverage Δ
...perator/controllers/common/analysis/types/types.go 100.00% <ø> (ø)
...operator/controllers/analysis/provider_selector.go 85.91% <75.00%> (ø)
...trics-operator/controllers/analysis/worker_pool.go 90.00% <100.00%> (ø)

... and 42 files with indirect coverage changes

Flag Coverage Δ
certificate-operator 68.55% <ø> (ø)
component-tests 58.34% <ø> (-0.56%) ⬇️
lifecycle-operator 84.94% <ø> (ø)
metrics-operator 86.87% <90.90%> (?)
scheduler 32.12% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@bacherfl bacherfl marked this pull request as ready for review September 18, 2023 09:54
@bacherfl bacherfl requested a review from a team as a code owner September 18, 2023 09:54
odubajDT
odubajDT previously approved these changes Sep 18, 2023
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@sonarcloud
Copy link

sonarcloud bot commented Sep 19, 2023

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

Copy link
Contributor

@RealAnna RealAnna left a comment

Choose a reason for hiding this comment

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

😻

@bacherfl bacherfl merged commit 33eb9d7 into keptn:main Sep 19, 2023
37 of 38 checks passed
@bacherfl bacherfl deleted the fix/2104/fix-panic branch September 19, 2023 11:17
@bacherfl bacherfl mentioned this pull request Sep 19, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Analysis Controller: Encountered panic during collection of values
3 participants