-
Notifications
You must be signed in to change notification settings - Fork 134
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
fix mapping between Status.Steps and Status.TaskSpec.Steps #1188
Conversation
The following is the coverage report on the affected files.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Thank you!
[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
Needs 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 <vdemeest@redhat.com> * .github/workflows: update some action versions Signed-off-by: Vincent Demeester <vdemeest@redhat.com> --------- Signed-off-by: Vincent Demeester <vdemeest@redhat.com> --------- Signed-off-by: Vincent Demeester <vdemeest@redhat.com> Co-authored-by: Vincent Demeester <vdemeest@redhat.com>
/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"} In 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":
In 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