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

fix(shipyard-controller): Consider parallel stages when trying to set overall sequence state to finished #7250

Merged
merged 9 commits into from Mar 25, 2022

Conversation

bacherfl
Copy link
Member

@bacherfl bacherfl commented Mar 23, 2022

Forward port of #7237

This PR fixes an issue where the overall state of a sequence was set to finished, even though the sequence might not have been finished in all stages. That error appears when there are parallel sequences executed in multiple stages, the completion of one of those sequences, whose completion should not trigger any further sequences leads to the overall state being set to finished

Integration test run: https://github.com/keptn/keptn/runs/5675950423?check_suite_focus=true

The failing test on GKE seems to be a known error with the BackupRestoreConfigurationService integration test that's currently under investigation

… overall sequence state to finished

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@bacherfl bacherfl added the CI:trigger-build-everything Trigger CI Build: Set BUILD_EVERYTHING=TRUE label Mar 23, 2022
@codecov
Copy link

codecov bot commented Mar 23, 2022

Codecov Report

Merging #7250 (43cfab3) into master (594c89e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #7250   +/-   ##
=======================================
  Coverage   58.56%   58.57%           
=======================================
  Files         528      528           
  Lines       30784    30790    +6     
  Branches     1508     1508           
=======================================
+ Hits        18030    18034    +4     
- Misses      11488    11490    +2     
  Partials     1266     1266           
Impacted Files Coverage Δ
...-controller/handler/sequencehooks/sequencestate.go 66.78% <100.00%> (+0.71%) ⬆️
distributor/pkg/uniform/log/uniformlog.go 71.87% <0.00%> (-4.69%) ⬇️
shipyard-controller/handler/sequencedispatcher.go 71.54% <0.00%> (-1.63%) ⬇️
...-service/event_handler/start_evaluation_handler.go 72.10% <0.00%> (+1.57%) ⬆️
Flag Coverage Δ
api 71.61% <ø> (ø)
approval-service 71.92% <ø> (ø)
bridge-server 66.66% <ø> (ø)
bridge2 73.48% <ø> (ø)
cli 43.83% <ø> (ø)
configuration-service 8.38% <ø> (ø)
distributor 70.52% <ø> (-0.28%) ⬇️
helm-service 49.23% <ø> (ø)
jmeter-service 13.88% <ø> (ø)
lighthouse-service 73.35% <ø> (+0.30%) ⬆️
mongodb-datastore 59.86% <ø> (ø)
remediation-service 79.77% <ø> (ø)
resource-service 80.53% <ø> (ø)
secret-service 81.23% <ø> (ø)
shipyard-controller 58.07% <100.00%> (+<0.01%) ⬆️
statistics-service 59.96% <ø> (ø)
webhook-service 80.41% <ø> (ø)

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>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@sonarcloud
Copy link

sonarcloud bot commented Mar 24, 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

@bacherfl bacherfl merged commit 9550f59 into master Mar 25, 2022
@bacherfl bacherfl deleted the fix/overall-sequence-state-master branch March 25, 2022 07:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CI:trigger-build-everything Trigger CI Build: Set BUILD_EVERYTHING=TRUE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants