-
Notifications
You must be signed in to change notification settings - Fork 264
Show TaskRun logs from child PipelineRuns (Pipelines-in-Pipelines) #2886
Copy link
Copy link
Labels
good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Metadata
Metadata
Assignees
Labels
good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Type
Fields
Give feedbackNo fields configured for Feature.
Feature request
tkn pipelinerun logsdoes not follow child PipelineRuns created by the Pipelines-in-Pipelines (PinP) feature. When a PipelineTask usespipelineSpecorpipelineRef, the parent PipelineRun owns a child PipelineRun, not a TaskRun.tkn pipelinerun logsonly discovers TaskRuns, so TaskRuns inside child PipelineRuns are invisible.Inline
pipelineSpecis already functional today, and tektoncd/pipeline#9432 addspipelineRefsupport, making PinP a fully functional alpha feature (TEP-0056). In both cases,tkncannot surface the child PipelineRun TaskRun logs.Use case
Apply the following resources (
enable-api-fieldsmust be set toalpha):Wait for it to complete, then try to view logs:
This applies recursively. Nested pipelines (parent, child, grandchild) require one manual command per level. The same issue affects
pipelineRef-based PinP.UI Example
tkn pipelinerun logsshould recursively follow child PipelineRuns and show their TaskRun logs inline:The
>notation indicates nesting:call-child > greetmeans taskgreetinside child PipelineRuncall-child.tkn pipelinerun describeshould similarly surface child PipelineRuns in its output./kind feature