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

When Expressions Status #3333

Merged
merged 1 commit into from
Oct 7, 2020

Conversation

jerop
Copy link
Member

@jerop jerop commented Oct 5, 2020

Changes

When a Task is skipped because its When Expressions evaluated to false,
its resolved When Expressions are listed alongside the PipelineTaskName
in the SkippedTasks section of the PipelineRunStatus

When a Task is executed because its When Expressions evaluate to true,
its resolved When Expressions are listed in the TaskRuns section of the
PipelineRunStatus

Further details in the TEP

Closes #3139

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes tests (if functionality changed/added)
  • Includes docs (if user facing)
  • Commit messages follow commit message best practices
  • Release notes block has been filled in or deleted (only if no user facing changes)

See the contribution guide for more details.

Double check this list of stuff that's easy to miss:

Reviewer Notes

If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.

Release Notes

Resolved When Expressions are listed in the Skipped Tasks and the Task Runs sections of the Status

@tekton-robot tekton-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Oct 5, 2020
@tekton-robot tekton-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 5, 2020
@jerop jerop force-pushed the when-expressions-in-status branch from e820102 to 04eb12c Compare October 5, 2020 23:06
@tekton-robot tekton-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 5, 2020
@jerop jerop force-pushed the when-expressions-in-status branch from 04eb12c to 80ae859 Compare October 5, 2020 23:07
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/pipelinerun/resources/pipelinerunstate.go 72.1% 71.5% -0.6

When a Task is skipped because its When Expressions evaluated to false,
its resolved When Expressions are listed alongside the PipelineTaskName
in the SkippedTasks section of the PipelineRunStatus.

When a Task is executed because its When Expressions evaluated to true,
its resolved When Expressions are listed in the TaskRuns section of the
PipelineRunStatus.

Further details in https://github.com/tektoncd/community/blob/master/teps/0007-conditions-beta.md#status-1

Closes tektoncd#3139
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/pipelinerun/resources/pipelinerunstate.go 72.1% 71.5% -0.6

@jerop jerop force-pushed the when-expressions-in-status branch from 80ae859 to a068915 Compare October 5, 2020 23:10
@jerop
Copy link
Member Author

jerop commented Oct 5, 2020

/kind feature

@tekton-robot tekton-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Oct 5, 2020
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/pipelinerun/resources/pipelinerunstate.go 72.1% 71.5% -0.6

@jerop jerop marked this pull request as ready for review October 5, 2020 23:28
@tekton-robot tekton-robot added kind/feature Categorizes issue or PR as related to a new feature. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/feature Categorizes issue or PR as related to a new feature. labels Oct 5, 2020
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbwsg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 6, 2020
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 7, 2020
@vdemeester
Copy link
Member

/test pull-tekton-build-tests

@vdemeester
Copy link
Member

/test check-pr-has-kind-label

@jerop
Copy link
Member Author

jerop commented Oct 7, 2020

/test pull-tekton-pipeline-build-tests

@vdemeester
Copy link
Member

/retest

@tekton-robot tekton-robot merged commit fccced4 into tektoncd:master Oct 7, 2020
@jerop jerop deleted the when-expressions-in-status branch June 11, 2022 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When Expressions Status
3 participants