-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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-0090: Check for non-nil TaskRun
in GetTaskRunsResults
#5015
Conversation
In this change, we handle scenarios where a matrixed `PipelineTask` is successful - so `rprt` is successful but its `TaskRun` field is nil because it has `TaskRuns` instead. We need to add a check that `rprt.TaskRun` is non-nil before attempting to access its field: `rprt.TaskRun.Status.TaskRunResults`.
The following is the coverage report on the affected files.
|
/test tekton-pipeline-unit-tests |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester 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 |
is it a flake? /test pull-tekton-pipeline-build-tests |
Looks like ghcr issues, I'd assume. |
/lgtm |
/test pull-tekton-pipeline-alpha-integration-tests |
/retest |
/kind cleanup |
TaskRun
in GetTaskRunsResults
TaskRun
in GetTaskRunsResults
Changes
In this change, we handle scenarios where a matrixed
PipelineTask
is successful - sorprt
is successful but itsTaskRun
field is nil because it hasTaskRuns
instead. We need to add a check thatrprt.TaskRun
is non-nil before attempting to access its field:rprt.TaskRun.Status.TaskRunResults
.Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes