Mistral should not be able to rerun task with on-error branch

Bug #1843902 reported by Oleg Ovcharuk
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
New
High
Oleg Ovcharuk

Bug Description

If the task has either "on-error" branch, we should not be able to rerun it.
Let's consider this example:

{
    "version": "2.0",
    "wf": {
        "tasks": {
            "t1": {
                "action": "some_unstable_action",
                "on-error": "t2",
                "on-success": "t3"
            },
            "t2": {
                "action": "std.fail"
            },
            "t3": {
                "action": "std.fail"
            }
        }
    }
}

If t1 failed, wf will be failed by t2. In this situation we can rerun t1, and there will be 2 similar on-error branches. We can do it multiple times and there will be many equal branches from 1 task.
Let's imagine that one more rerun changed the situation and t1 was completed successfully. So there are multiple on-error branches and one on-success branch from one time on the same time!

This is not OK. Rerunning tasks with already handled errors should be restricted.

Changed in mistral:
milestone: none → ussuri-1
assignee: nobody → Oleg Ovcharuk (vgvoleg)
importance: Undecided → High
Oleg Ovcharuk (vgvoleg)
summary: - Mistral should not be able to rerun task with on-error/on-complete
- branches
+ Mistral should not be able to rerun task with on-error branch
description: updated
Changed in mistral:
milestone: ussuri-1 → ussuri-2
Changed in mistral:
milestone: ussuri-2 → ussuri-3
Changed in mistral:
milestone: ussuri-3 → ussuri-rc1
Changed in mistral:
milestone: ussuri-rc1 → victoria-1
Changed in mistral:
milestone: victoria-1 → wallaby-1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.