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(lifecycle-operator): close root spans of failed AppVersions/WorkloadVersions #3174

Merged
merged 3 commits into from
Mar 4, 2024

Conversation

bacherfl
Copy link
Member

@bacherfl bacherfl commented Mar 4, 2024

Closes #3130

This PR ensures the root spans of a KeptnAppVersion or KeptnWorkloadVersion are closed when one of their sub-phases fails, as seen in the following examples:

Failed KeptnAppVersion pre deployment task
Screenshot 2024-03-04 at 10 23 52

Failed KeptnWorkloadVersion pre deployment task - error is propagated up to KeptnAppVersion:
Screenshot 2024-03-04 at 11 01 24

Copy link

codecov bot commented Mar 4, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 86.82%. Comparing base (036a1d4) to head (3c70d8f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3174      +/-   ##
==========================================
- Coverage   86.85%   86.82%   -0.04%     
==========================================
  Files         162      162              
  Lines        8605     8629      +24     
==========================================
+ Hits         7474     7492      +18     
- Misses        841      844       +3     
- Partials      290      293       +3     
Files Coverage Δ
...ontrollers/lifecycle/keptnappversion/controller.go 79.38% <83.33%> (+0.39%) ⬆️
...llers/lifecycle/keptnworkloadversion/controller.go 90.32% <83.33%> (-1.39%) ⬇️
Flag Coverage Δ
certificate-operator 69.23% <ø> (ø)
component-tests 57.65% <83.33%> (-0.25%) ⬇️
lifecycle-operator 86.47% <83.33%> (-0.02%) ⬇️
metrics-operator 88.32% <ø> (ø)
scheduler 34.74% <ø> (ø)

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

Signed-off-by: Florian Bacher <[email protected]>
@bacherfl bacherfl changed the title fix(lifecycle-controller): close root spans of failed AppVersions/WorkloadVersions fix(lifecycle-operator): close root spans of failed AppVersions/WorkloadVersions Mar 4, 2024
Signed-off-by: Florian Bacher <[email protected]>
Copy link

sonarqubecloud bot commented Mar 4, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@bacherfl bacherfl marked this pull request as ready for review March 4, 2024 10:36
@bacherfl bacherfl requested a review from a team as a code owner March 4, 2024 10:36
@odubajDT odubajDT merged commit 120005b into keptn:main Mar 4, 2024
33 of 34 checks passed
@bacherfl bacherfl deleted the fix/3130/fix-failed-span branch March 4, 2024 13:01
Vickysomtee pushed a commit to Vickysomtee/keptn-lifecycle-toolkit that referenced this pull request Apr 23, 2024
…oadVersions (keptn#3174)

Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: vickysomtee <[email protected]>
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.

Missing KeptnAppVersion/KeptnWorkloadVersion span when one of the lifecycle phases fails
3 participants