-
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
TaskRun status wrong when unnamed step fails (followed by named step) #2415
Comments
/kind bug |
Checked the code, we sort the Lines 265 to 274 in 6b1579c
Sometimes the Could we sort with |
Sounds like there might be some overlap with #2416 I wonder is there a reason we're sorting on the finish time instead of start time? It looks like we don't have enough precision in the recorded times either way to rely on times for accurate sorting. |
May be we can use |
Same discussion about this problem in #2029 but it ground to a halt looking for a solution. Using resolution of seconds (which is all that k8 api server has for finish time) doesn't work. Tekton is managing its own start times so that might work with a higher resolution. |
@GregDritschler |
Fix issue: tektoncd#2415 Introduce `StartAt` for the sorting when `FinishedAt` are exactly the same. Since the goal is to find the first failed step, the StartAt and FinishedAt are most simple and directly solution. Moreover, adopt a higher resolution format for `StartAt` to make it more accurately.
Fix issue: tektoncd#2415 Introduce `StartAt` for the sorting when `FinishedAt` are exactly the same. Since the goal is to find the first failed step, the StartAt and FinishedAt are most simple and directly solution. Moreover, adopt a higher resolution format for `StartAt` to make it more accurately.
Fix issue: tektoncd#2415 Introduce `StartAt` for the sorting when `FinishedAt` are exactly the same. Since the goal is to find the first failed step, the StartAt and FinishedAt are most simple and directly solution. Moreover, adopt a higher resolution format for `StartAt` to make it more accurately.
Fix issue: #2415 Introduce `StartAt` for the sorting when `FinishedAt` are exactly the same. Since the goal is to find the first failed step, the StartAt and FinishedAt are most simple and directly solution. Moreover, adopt a higher resolution format for `StartAt` to make it more accurately.
This is fixed by #2455, closing |
Expected Behavior
TaskRun status should correctly identify the failed step.
Actual Behavior
When an unnamed step fails and it is followed by a named step, the TaskRun status incorrectly identifies the named step as the reason for the failure.
Steps to Reproduce the Problem
In both cases 'step 1' fails (expected).
The TaskRun status for
test-unnamed-correct-
identifies 'step 1' correctly (unnamed-1
in this case).test-unnamed-wrong-
incorrectly identifies 'step 2' ('named-step') as the culprit.Additional Info
Kubernetes version:
Output of
kubectl version
:Tekton Pipeline version:
Output of
tkn version
orkubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'
v0.11.1
The text was updated successfully, but these errors were encountered: