Skip to content

Conversation

@jerop
Copy link
Member

@jerop jerop commented Jun 13, 2022

Changes

isFailure includes isCancelled, but some functions are calling these isFailure and isCancelled separately.

func (t ResolvedPipelineRunTask) isFailure() bool {
if t.isCancelled() {
return true
}

This change removes the separate calls to isCancelled where isFailure already exists.

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • [n/a] Docs included if any changes are user facing
  • [n/a] Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including functionality, content, code)
  • Release notes block below has been filled in (if there are no user facing changes, use release note "NONE")

Release Notes

NONE

`isFailure` includes `isCancelled`, but some functions are calling
these `isFailure` and `isCancelled` separately. This change removes
the separate calls to `isCancelled` where `isFailure` already exists.
@tekton-robot tekton-robot added release-note-none Denotes a PR that doesnt merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 13, 2022
@tekton-robot tekton-robot requested review from afrittoli and dibyom June 13, 2022 21:39
@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 97.4% 97.3% -0.0

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lbernick

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 Jun 14, 2022
@abayer
Copy link
Contributor

abayer commented Jun 14, 2022

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 14, 2022
@tekton-robot tekton-robot merged commit 72f20dc into tektoncd:main Jun 14, 2022
@jerop jerop deleted the isfailure-iscancelled branch June 15, 2022 14:23
@afrittoli
Copy link
Member

/kind misc

@tekton-robot tekton-robot added the kind/misc Categorizes issue or PR as a miscellaneuous one. label Jun 21, 2022
@jerop jerop changed the title isFailure includes isCancelled TEP-0090: isFailure includes isCancelled Jun 24, 2022
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/misc Categorizes issue or PR as a miscellaneuous one. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants