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

chore: minor refactoring of the evaluation controller #1356

Merged
merged 6 commits into from
May 4, 2023

Conversation

bacherfl
Copy link
Member

@bacherfl bacherfl commented May 3, 2023

This PR cleans up the function responsible for evaluating an objective by making sure it returns after encountering an error, rather than continuing under the assumption that values that are received together with an error can be used

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

netlify bot commented May 3, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit e11f8de
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/645345c8a497f90007675164
😎 Deploy Preview https://deploy-preview-1356--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 settings.

@codecov
Copy link

codecov bot commented May 3, 2023

Codecov Report

Merging #1356 (c1faac9) into main (d5ddf26) will decrease coverage by 0.11%.
The diff coverage is 84.61%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1356      +/-   ##
==========================================
- Coverage   61.33%   61.22%   -0.11%     
==========================================
  Files         138      138              
  Lines       10474    10478       +4     
==========================================
- Hits         6424     6415       -9     
- Misses       3801     3810       +9     
- Partials      249      253       +4     
Impacted Files Coverage Δ
...ontrollers/lifecycle/keptnevaluation/controller.go 76.43% <84.61%> (-2.00%) ⬇️

... and 3 files with indirect coverage changes

Flag Coverage Δ
certificate-operator 64.28% <ø> (ø)
component-tests 59.22% <76.92%> (-1.08%) ⬇️
lifecycle-operator 82.48% <69.23%> (-0.04%) ⬇️
metrics-operator 77.80% <ø> (ø)
scheduler 21.75% <ø> (ø)

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>
@sonarcloud
Copy link

sonarcloud bot commented May 4, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

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
42.4% 42.4% Duplication

@bacherfl bacherfl marked this pull request as ready for review May 4, 2023 06:58
@bacherfl bacherfl requested a review from a team as a code owner May 4, 2023 06:58
@bacherfl bacherfl merged commit 4398e96 into keptn:main May 4, 2023
@bacherfl bacherfl deleted the chore/refactor-evaluation-controller branch May 4, 2023 11:20
@keptn-bot keptn-bot mentioned this pull request May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants