-
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
fix: taskrun still fails even with onerror set to continue #6675
fix: taskrun still fails even with onerror set to continue #6675
Conversation
Hi @l-qing. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
The following is the coverage report on the affected files.
|
/auto-cc |
/ok-to-test |
The following is the coverage report on the affected files.
|
9f14a9a
to
db93d47
Compare
/auto-cc |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
[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 |
db93d47
to
ca36639
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/test pull-tekton-pipeline-go-coverage-df |
@l-qing: The specified target(s) for
The following commands are available to trigger optional jobs:
Use 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. |
The following is the coverage report on the affected files.
|
ca36639
to
f8596e1
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/retest |
f8596e1
to
a5c9e99
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
Hi, thanks for the fix and detailed analysis, that's very impressive!! |
Yes. I analyzed step by step and finally located it here. I also used the same test case to compare the effects before and after the modification. After the modification, I did not encounter this error again. Before the modification, I would inevitably encounter this error once after running a few times.
The
{"severity":"info","timestamp":"2023-05-17T11:22:48.727Z","logger":"tekton-pipelines-controller","caller":"taskrun/taskrun.go:537","message":"TEST: MakeTaskRunStatus","commit":"e38d112-dirty","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.taskrun.Reconciler","knative.dev/kind":"tekton.dev.TaskRun","knative.dev/traceid":"e420e3df-72f4-43b6-a32d-a393399e35ec","knative.dev/key":"devops/build-c8gtb-task-21","pod":[{"name":"step-deprecated-tips","state":{"terminated":{"exitCode":0,"reason":"Completed","message":"[{\"key\":\"StartedAt\",\"value\":\"2023-05-17T11:22:45.316Z\",\"type\":3},{\"key\":\"ExitCode\",\"value\":\"1\",\"type\":3}]","startedAt":"2023-05-17T11:22:38Z","finishedAt":"2023-05-17T11:22:46Z","containerID":"containerd://f8081dc2c9f07d3e40023e8fbe3528a985d1959663635a7bb162445d212cf12a"}},"lastState":{},"ready":false,"restartCount":0,"image":"alpine","imageID":"alpine@sha256:3abbd87666664e68097ecb2482f54b65f0c6a533bb107ecd62011abbb2701ae7","containerID":"containerd://f8081dc2c9f07d3e40023e8fbe3528a985d1959663635a7bb162445d212cf12a","started":false},{"name":"step-deprecated-tips1","state":{"running":{"startedAt":"2023-05-17T11:22:41Z"}},"lastState":{},"ready":true,"restartCount":0,"image":"alpine","imageID":"alpine@sha256:3abbd87666664e68097ecb2482f54b65f0c6a533bb107ecd62011abbb2701ae7","containerID":"containerd://b3d98cc4e284b2c19d063f0c3eb01b9c92e401c55dae7de64002b2b8057bcf14","started":true}]}
{"severity":"info","timestamp":"2023-05-17T11:22:48.727Z","logger":"tekton-pipelines-controller","caller":"pod/status.go:201","message":"TEST: Test update pod terminated exitcode","commit":"e38d112-dirty","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.taskrun.Reconciler","knative.dev/kind":"tekton.dev.TaskRun","knative.dev/traceid":"e420e3df-72f4-43b6-a32d-a393399e35ec","knative.dev/key":"devops/build-c8gtb-task-21"}
{"severity":"info","timestamp":"2023-05-17T11:22:48.808Z","logger":"tekton-pipelines-controller","caller":"taskrun/taskrun.go:537","message":"TEST: MakeTaskRunStatus","commit":"e38d112-dirty","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.taskrun.Reconciler","knative.dev/kind":"tekton.dev.TaskRun","knative.dev/traceid":"580a66d3-0575-444d-be00-8d23b6410159","knative.dev/key":"devops/build-c8gtb-task-21","pod":[{"name":"step-deprecated-tips","state":{"terminated":{"exitCode":1,"reason":"Completed","startedAt":"2023-05-17T11:22:45Z","finishedAt":"2023-05-17T11:22:46Z","containerID":"containerd://f8081dc2c9f07d3e40023e8fbe3528a985d1959663635a7bb162445d212cf12a"}},"lastState":{},"ready":false,"restartCount":0,"image":"alpine","imageID":"alpine@sha256:3abbd87666664e68097ecb2482f54b65f0c6a533bb107ecd62011abbb2701ae7","containerID":"containerd://f8081dc2c9f07d3e40023e8fbe3528a985d1959663635a7bb162445d212cf12a","started":false},{"name":"step-deprecated-tips1","state":{"running":{"startedAt":"2023-05-17T11:22:41Z"}},"lastState":{},"ready":true,"restartCount":0,"image":"alpine","imageID":"alpine@sha256:3abbd87666664e68097ecb2482f54b65f0c6a533bb107ecd62011abbb2701ae7","containerID":"containerd://b3d98cc4e284b2c19d063f0c3eb01b9c92e401c55dae7de64002b2b8057bcf14","started":true}]}
{"severity":"info","timestamp":"2023-05-17T11:22:48.888Z","logger":"tekton-pipelines-controller","caller":"taskrun/taskrun.go:537","message":"TEST: MakeTaskRunStatus","commit":"e38d112-dirty","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.taskrun.Reconciler","knative.dev/kind":"tekton.dev.TaskRun","knative.dev/traceid":"b17f1462-a137-4135-867c-8bfb0d36f15a","knative.dev/key":"devops/build-c8gtb-task-21","pod":[{"name":"step-deprecated-tips","state":{"terminated":{"exitCode":1,"reason":"Completed","startedAt":"2023-05-17T11:22:45Z","finishedAt":"2023-05-17T11:22:46Z","containerID":"containerd://f8081dc2c9f07d3e40023e8fbe3528a985d1959663635a7bb162445d212cf12a"}},"lastState":{},"ready":false,"restartCount":0,"image":"alpine","imageID":"alpine@sha256:3abbd87666664e68097ecb2482f54b65f0c6a533bb107ecd62011abbb2701ae7","containerID":"containerd://f8081dc2c9f07d3e40023e8fbe3528a985d1959663635a7bb162445d212cf12a","started":false},{"name":"step-deprecated-tips1","state":{"running":{"startedAt":"2023-05-17T11:22:41Z"}},"lastState":{},"ready":true,"restartCount":0,"image":"alpine","imageID":"alpine@sha256:3abbd87666664e68097ecb2482f54b65f0c6a533bb107ecd62011abbb2701ae7","containerID":"containerd://b3d98cc4e284b2c19d063f0c3eb01b9c92e401c55dae7de64002b2b8057bcf14","started":true}]}
{"severity":"info","timestamp":"2023-05-17T11:22:50.810Z","logger":"tekton-pipelines-controller","caller":"taskrun/taskrun.go:537","message":"TEST: MakeTaskRunStatus","commit":"e38d112-dirty","knative.dev/controller":"github.com.tektoncd.pipeline.pkg.reconciler.taskrun.Reconciler","knative.dev/kind":"tekton.dev.TaskRun","knative.dev/traceid":"f08c6e03-561f-495d-a025-5f1df3079058","knative.dev/key":"devops/build-c8gtb-task-21","pod":[{"name":"step-deprecated-tips","state":{"terminated":{"exitCode":0,"reason":"Completed","message":"[{\"key\":\"StartedAt\",\"value\":\"2023-05-17T11:22:45.316Z\",\"type\":3},{\"key\":\"ExitCode\",\"value\":\"1\",\"type\":3}]","startedAt":"2023-05-17T11:22:38Z","finishedAt":"2023-05-17T11:22:46Z","containerID":"containerd://f8081dc2c9f07d3e40023e8fbe3528a985d1959663635a7bb162445d212cf12a"}},"lastState":{},"ready":false,"restartCount":0,"image":"alpine","imageID":"alpine@sha256:3abbd87666664e68097ecb2482f54b65f0c6a533bb107ecd62011abbb2701ae7","containerID":"containerd://f8081dc2c9f07d3e40023e8fbe3528a985d1959663635a7bb162445d212cf12a","started":false},{"name":"step-deprecated-tips1","state":{"terminated":{"exitCode":0,"reason":"Completed","message":"[{\"key\":\"StartedAt\",\"value\":\"2023-05-17T11:22:46.108Z\",\"type\":3},{\"key\":\"ExitCode\",\"value\":\"1\",\"type\":3}]","startedAt":"2023-05-17T11:22:41Z","finishedAt":"2023-05-17T11:22:46Z","containerID":"containerd://b3d98cc4e284b2c19d063f0c3eb01b9c92e401c55dae7de64002b2b8057bcf14"}},"lastState":{},"ready":false,"restartCount":0,"image":"alpine","imageID":"alpine@sha256:3abbd87666664e68097ecb2482f54b65f0c6a533bb107ecd62011abbb2701ae7","containerID":"containerd://b3d98cc4e284b2c19d063f0c3eb01b9c92e401c55dae7de64002b2b8057bcf14","started":false}]} |
fix tektoncd#6664 directly modifying the value returned by Lister may affect the evaluation during the next reconciliation.
a5c9e99
to
5f9350b
Compare
The following is the coverage report on the affected files.
|
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.
/lgtm
fix #6664
directly modifying the value returned by Lister may affect the evaluation during the next reconciliation.
Detailed analysis can be found in the comments:
Changes
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes
/kind bug