Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEP-0059: Skipping Strategies #4085

Merged
merged 1 commit into from
Aug 11, 2021
Merged

Commits on Aug 11, 2021

  1. Skipping Strategies

    This change implements skipping strategies to give users the flexibility
    to skip a single guarded Task only and unblock execution of its
    dependent Tasks.
    
    Today, WhenExpressions are specified within Tasks but they guard the
    Task and its dependent Tasks. To provide flexible skipping strategies,
    we want to change the scope of WhenExpressions from guarding a Task and
    its dependent Tasks to guarding the Task only. If a user wants to guard
    a Task and its dependent Tasks, they can:
    - cascade the WhenExpressions to the dependent Tasks
    - compose the Task and its dependent Tasks as a sub-Pipeline that's
    guarded and executed together using Pipelines in Pipelines (but this is
    still an experimental feature)
    
    Changing the scope of WhenExpressions to guard the Task only is
    backwards-incompatible, so to make the transition smooth:
    - we'll provide a feature flag, scope-when-expressions-to-task, which:
      - will default to false to guard a Task and its dependent Tasks
      - can be set to true to guard a Task only
    - after migration, we'll change the global default for the feature flag
    to true to guard a Task only by default
    - eventually, we'll remove the feature flag and guard a Task only going
    forward
    
    Implements [TEP-0059: Skipping Strategies](https://github.com/tektoncd/community/blob/main/teps/0059-skipping-strategies.md)
    Closes tektoncd#2127
    jerop committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    e8299ca View commit details
    Browse the repository at this point in the history