--- title: "ADR 0036: Step breakdown in the task status is optional and bounded" --- * Status: accepted * Code: [`pkg/sort/task_status.go`](https://github.com/tektoncd/pipelines-as-code/blob/main/pkg/sort/task_status.go), [`pkg/sort/task_step_status.go`](https://github.com/tektoncd/pipelines-as-code/blob/main/pkg/sort/task_step_status.go) ## Context `TaskStatusTmpl` renders the status of every TaskRun of a PipelineRun for the providers' templates. When `PacOpts.StatusShowSteps` is on, each task also lists its steps. The status is only one part of the message sent to a provider, and providers cap the size of what they accept. ## Decision * `collectSteps` returns no steps when the TaskRun status has fewer than two steps. The count is taken on all steps of the status, before skipped ones are filtered out, so a task where every step but one was skipped after a failure still shows the failing step. * Steps whose `TerminationReason` is `Skipped` (set by Tekton on steps not run because an earlier step failed) are left out. * `specForStep` matches a step status to its spec by name and falls back to the position in the task, because unnamed steps get a generated name in the status. * `stepStatus.Title` prefers the display name, then the name without a `step-` prefix; links keep the real step name. * `maxTaskStatusTextSize` is 55000 bytes. If the output with steps exceeds it, the status is rendered again with steps disabled. The previous comment gave GitHub's check run text limit of 65535 bytes as the reason for the margin; that figure was not checked against GitHub here. ## Consequences * Changing the step-count check to run after the skipped filter hides the failing step of a mostly skipped task. * Rendering twice is accepted in exchange for never dropping the task rows themselves.