fix mapping between Status.Steps and Status.TaskSpec.Steps#1188
fix mapping between Status.Steps and Status.TaskSpec.Steps#1188tekton-robot merged 1 commit intotektoncd:mainfrom
Conversation
|
The following is the coverage report on the affected files.
|
| if len(tr.Status.TaskSpec.Steps) != len(tr.Status.Steps) { | ||
| logger.Errorf("Mismatch in number of steps for task run %s. TaskSpec steps: %d, Status steps: %d", | ||
| tr.Name, len(tr.Status.TaskSpec.Steps), len(tr.Status.Steps)) | ||
| continue // Skip this task run entirely |
There was a problem hiding this comment.
Shouldn't we mark the TaskRun as "failed to sign" or something ? (so that the controller doesn't pick it up later on).
There was a problem hiding this comment.
I think we dont have a way to do this today, i reference a discussion here about that #979
|
The following is the coverage report on the affected files.
|
|
/test pull-tekton-chains-unit-tests |
1 similar comment
|
/test pull-tekton-chains-unit-tests |
|
@lcarva @vdemeester can you have a look please ? |
|
Hi @lcarva, can you have a look to this please ? |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lcarva, vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…1203) * fix mapping between Status.Steps and Status.TaskSpec.Steps (#1188) * .github: add github-actions to dependabot… (#1194) * .github: add github-actions to dependabot… … so that we also get dependabot actions updates. Today, we seems to be using deprecated actions. Signed-off-by: Vincent Demeester <[email protected]> * .github/workflows: update some action versions Signed-off-by: Vincent Demeester <[email protected]> --------- Signed-off-by: Vincent Demeester <[email protected]> --------- Signed-off-by: Vincent Demeester <[email protected]> Co-authored-by: Vincent Demeester <[email protected]>
|
/cherry-pick release-v0.22.x |
|
/cherry-pick release-v0.21.x |
|
/cherry-pick release-v0.22.x |
|
/cherry-pick release-v0.21.x |
|
@vdemeester: new pull request could not be created: failed to create pull request against tektoncd/chains#release-v0.22.x from head tekton-robot:cherry-pick-1188-to-release-v0.22.x: status code 422 not one of [201], body: {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"No commits between tektoncd:release-v0.22.x and tekton-robot:cherry-pick-1188-to-release-v0.22.x"}],"documentation_url":"https://docs.github.com/rest/pulls/pulls#create-a-pull-request","status":"422"} DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@vdemeester: #1188 failed to apply on top of branch "release-v0.21.x": DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Changes
this PR fixes the mapping between tr.Status.Steps and tr.Status.taskSpec.steps in this way:
fixes Tekton Chains Controller is in "CrashLoopBackOff" due to "index out of range" error #1185
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes