Repository navigation
Description
Feature request
tkn pipelinerun logs does not follow child PipelineRuns created by the Pipelines-in-Pipelines (PinP) feature. When a PipelineTask uses pipelineSpec or pipelineRef, the parent PipelineRun owns a child PipelineRun, not a TaskRun. tkn pipelinerun logs only discovers TaskRuns, so TaskRuns inside child PipelineRuns are invisible.
Inline pipelineSpec is already functional today, and tektoncd/pipeline#9432 adds pipelineRef support, making PinP a fully functional alpha feature (TEP-0056). In both cases, tkn cannot surface the child PipelineRun TaskRun logs.
Use case
Apply the following resources (enable-api-fields must be set to alpha):
apiVersion: tekton.dev/v1
kind: Pipeline
metadata:
name: parent-pipeline
spec:
tasks:
- name: call-child
pipelineSpec:
tasks:
- name: greet
taskSpec:
steps:
- name: echo
image: busybox
script: echo "Hello from child"
---
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
name: parent-run
spec:
pipelineRef:
name: parent-pipelinekubectl apply -f example.yamlWait for it to complete, then try to view logs:
# Shows nothing. The parent has no TaskRuns, only a child PipelineRun.
$ tkn pipelinerun logs parent-run -f
# User must manually discover the child PipelineRun name.
$ kubectl get pipelineruns
NAME SUCCEEDED
parent-run True
parent-run-call-child True
# Then query the child separately to see its TaskRun logs.
$ tkn pipelinerun logs parent-run-call-child -f
[greet : echo] Hello from childThis applies recursively. Nested pipelines (parent, child, grandchild) require one manual command per level. The same issue affects pipelineRef-based PinP.
UI Example
tkn pipelinerun logs should recursively follow child PipelineRuns and show their TaskRun logs inline:
$ tkn pipelinerun logs parent-run -f
[call-child > greet : echo] Hello from childThe > notation indicates nesting: call-child > greet means task greet inside child PipelineRun call-child.
tkn pipelinerun describe should similarly surface child PipelineRuns in its output.
/kind feature
Activity
[-]tkn pipelinerun logs does not show TaskRun logs from child PipelineRuns (Pipelines-in-Pipelines)[/-][+]Show TaskRun logs from child PipelineRuns (Pipelines-in-Pipelines)[/+]twoGiants commentedon May 26, 2026
Hey @danielfbm! 👋 😺
Maybe you're interested to tackle this one once tektoncd/pipeline#9432 is merged.
twoGiants commentedon May 26, 2026
/help
/good-first-issue
tekton-robot commentedon May 26, 2026
@twoGiants:
This request has been marked as suitable for new contributors.
Please ensure the request meets the requirements listed here.
If this request no longer meets these requirements, the label can be removed
by commenting with the
/remove-good-first-issuecommand.Details
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.
kamal2730 commentedon May 26, 2026
/assign
danielfbm commentedon May 27, 2026
Would love to. I see @kamal2730 already assigned himself, so I will wait for his take on this issue. Let me know if any more help is needed.