Fix Error/Success Conditions not evaluated case. Fix 'Cancel' final s…#3110
Open
vasilchev wants to merge 2 commits into
Open
Fix Error/Success Conditions not evaluated case. Fix 'Cancel' final s…#3110vasilchev wants to merge 2 commits into
vasilchev wants to merge 2 commits into
Conversation
…tatus not mapped - now mapped to Error. Fix Delete Action does not update properly group count and percentage evaluation. Signed-off-by: vasilchev <vasil.ilchev@bosch.com>
Signed-off-by: vasilchev <vasil.ilchev@bosch.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Error/Success Conditions skipped if no match, still group marked as finish and nextGroup is triggered
There is a bug in our Rollout handling whenever Error/Success conditions are not met - and thus not executed, but All Actions have finished - group is marked as finished which leads to.
Error/Success Condition is not executed
Next scheduler run just starts nextGroup
Proposal:
If neither Error nor Success Condition/Action triggered but all Actions finished - execute success Action (no change in behavior, only fixes the issue when Success Action is PAUSE) - Only if Error Condition is met then mark group in ERROR state - otherwise consider it success (success action is triggered whenever either Success Condition or Group has finished)
If Action is deleted group percentage is not updated correctly -
we count assigned Targets
we count finished Actions
if we delete Actions, but target remain - percentage calculations is broken and could never be met in some cases (i.e. 100% success, on 5 targets, 5 Actions - but delete an Action -> 5 Targets with, 4 Success Actions -> this in theory is 100%, but not handled)
Proposal:
Option 1: Do nothing - this seems a corner case - Usually if user wants should "force-quit" the Action, not delete it.
Option 2: Count Actions not target (i.e. like Dynamic groups - else condition below)
Current impl:
Cancel result is not mapped to Error nor Success
Same percentage break whenever we have Cancelled Action. It is not considered neither as Error nor Success. This could also break Error/Success evaluation - i.e. skip Actions, triggerNext group
In case we have 5 Targets, 4 Actions Success, 1 Action Cancelled. on
Success condition 100%, with PAUSE Success ACTION -> Success action is never executed as condition is not met, but yet triggerNextGroup
Proposal:
Map Cancelled status to Error.
Success - means assignment successfully finished - i.e. DS Installed
Error - means assignment not installed - regardless of reason (Error / Cancelled)