-
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
Taskruns: hard to follow steps
status of a task
#549
Comments
In tektoncd#549 @hrishin pointed out that it's hard to understand from the step status exactly which step did what. While looking at this I realized that we have included a field `logsURL` which we never populate - I thought this was copied over from Build but it was actually from our original prototype API and we have never used it. In #107 we should be revisiting making logs available and we may add in something like this, but since we're not using it and it's not clear if we ever will, let's remove it for now.
Thanks for opening this @hrishin ! That's a good point - I think I usually work around this by going straight to the Looking at StepState it's pretty much just (In the future we might want to consider including more info from the pod status maybe 🤔 ) Note to the implementer: We support unnamed steps as well. |
In #549 @hrishin pointed out that it's hard to understand from the step status exactly which step did what. While looking at this I realized that we have included a field `logsURL` which we never populate - I thought this was copied over from Build but it was actually from our original prototype API and we have never used it. In #107 we should be revisiting making logs available and we may add in something like this, but since we're not using it and it's not clear if we ever will, let's remove it for now.
Yes, it's painful.
@bobcatfish I think we need container name (it may be init-container name) for |
Let me run the |
For status:
conditions:
- lastTransitionTime: "2019-03-06T06:27:41Z"
status: "True"
type: Succeeded
podName: echo-hello-world-task-run-pod-58fa47
taskName: echo-hello-world
startTime: "2019-03-06T06:25:57Z"
steps:
- name: "credential-initializer"
terminated:
containerID: docker://3231c9736b099b57cbac3000b5fa118617af065816a8db9b9783a5ee9d8b5ad3
exitCode: 0
finishedAt: "2019-03-06T06:26:38Z"
reason: Completed
startedAt: "2019-03-06T06:26:38Z"
- name: "echo1"
terminated:
containerID: docker://91f963a2bb984ec85b3355e32c0755c3b75fa1e5ae420b5984d817de9b7188b4
exitCode: 0
finishedAt: "2019-03-06T06:26:51Z"
reason: Completed
startedAt: "2019-03-06T06:26:51Z"
- name: "echo1"
terminated:
containerID: docker://f5e8a13a9a91859dfd6912187f0bf9851213e215d9d75ec22bd132174c9da10e
exitCode: 0
finishedAt: "2019-03-06T06:26:58Z"
reason: Completed
startedAt: "2019-03-06T06:26:58Z" where task definition is spec:
steps:
- name: echo1
image: ubuntu
command:
- echo
args:
- "hello world 1"
- name: echo2
image: ubuntu
command:
- echo
args:
- "hello world 2" So
This could help in exact UI/Visual presentation of a pipeline. This could also be useful for doing benchmarking of steps, task and whole pipeline (i.e. exporting metrics in Prometheus). |
For status:
conditions:
- lastTransitionTime: "2019-03-06T13:04:21Z"
status: "True"
type: Succeeded
podName: test-unnamed-steps-pod-64c75b
startTime: "2019-03-06T13:03:23Z"
steps:
- name: "step 1"
terminated:
containerID: docker://010bb14c157024726a8b2261c8f4ef5d5d4162b37ef8daa7c7ddd76ba60f3b81
exitCode: 0
finishedAt: "2019-03-06T13:03:26Z"
reason: Completed
startedAt: "2019-03-06T13:03:26Z"
- name: "step 2"
terminated:
containerID: docker://d6a59e9fdf236966cb9788cbed45525cdef31b214d7e113d1035d201d9efabe3
exitCode: 0
finishedAt: "2019-03-06T13:03:33Z"
reason: Completed
startedAt: "2019-03-06T13:03:33Z"
- name: "step 3"
terminated:
containerID: docker://cd9de32bf993dcd45492f0768b134e258779fc1eff895658bc578b78587f4841
exitCode: 0
finishedAt: "2019-03-06T13:03:42Z"
reason: Completed
startedAt: "2019-03-06T13:03:42Z" Any reason we are allowing |
@bobcatfish the latest code does not allow user to use
|
I send out a PR to add a step name to |
Hi @skeeey Hi @bobcatfish @vdemeester @imjasonh |
@hrishin not the last release, I used the master code, :-) |
(Stumbled across this going through good-first-issues) Is this still an issue? We still support unnamed steps. If a user doesn't name a step, it's corresponding container name in the Pod will be |
/close |
@vdemeester: Closing this issue. 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. |
Consider the following task
Once the user executes a such
Task
usingTaskrun
the status appears like as followNow as a user I'm not able to determine the status of individual
steps
. This be might be addressed in #146Expected Behavior
It's better to associate
step name
in the individualstep status
.Actual Behavior
Taskrun step status
doesn't have any association/mapping betweenstep information
and itsstatus
.Also wondering 3rd
step
in thestatus
thoughtask
mentions only 2 steps.Steps to Reproduce the Problem
Task
Runtask
The text was updated successfully, but these errors were encountered: