-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate dependencies between resolved resources in a PipelineRun
When a PipelineRun is started there are several error conditions that can be hit due to invalid Pipeline configuration. These errors have previously only surfaced halfway through execution of the PipelineRun because validating them requires a number of different resources to be resolved. This commit performs more extensive runtime validation of a PipelineRun before it is allowed to start: - All result variables used in the Pipeline are checked to be pointing at valid Tasks and TaskResults. - Workspaces marked optional by the Pipeline are confirmed to also be Optional in the Tasks they're passed to. This validation required searching for result variables in a PipelineTask in a very similar way we do in several other places in our codebase. I've refactored all of these to use a common func `PipelineTaskResultRefs()`.
- Loading branch information
1 parent
1eca890
commit 08177fa
Showing
10 changed files
with
804 additions
and
77 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.