-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.kind/questionIssues or PRs that are questions around the project or a particular featureIssues or PRs that are questions around the project or a particular feature
Description
The (*PipelineRun).IsDone() function returns true when the Success condition is no longer Unknown. However, as soon as the first task in the PipelineRun fails it sets the PipelineRun's Success condition to False, and IsDone() immediately returns true, despite several other tasks still Running.
Instead, IsDone() should check Status.CompletionTime or iterate through all tasks and check whether all tasks have finished executing.
Two new HasSucceeded() and HasFailed() functions can take the place of IsDone() if needed.
I'm happy to submit a PR if this sounds sensible.
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.kind/questionIssues or PRs that are questions around the project or a particular featureIssues or PRs that are questions around the project or a particular feature