Skip to content

Fix logs and describe for Pipelines-in-Pipelines#2889

Open
kamal2730 wants to merge 1 commit into
tektoncd:mainfrom
kamal2730:feat/pip-pipelinerun-logs
Open

Fix logs and describe for Pipelines-in-Pipelines#2889
kamal2730 wants to merge 1 commit into
tektoncd:mainfrom
kamal2730:feat/pip-pipelinerun-logs

Conversation

@kamal2730
Copy link
Copy Markdown

Changes

Resolve child PipelineRun TaskRuns recursively in tkn pipelinerun logs and describe. TaskRuns from child PipelineRuns are now displayed with a ">" prefix (e.g., "call-child > greet") to indicate nesting depth. This works for any level of nesting and supports both available and follow/live modes.

Implementation Details:

  • Logs: recursive getOrderedTasks/getChildOrderedTasks and recursive GetTaskRunsWithStatus tracking.
  • Describe: replaced direct ChildReferences iteration with GetTaskRunsWithStatus for automatic PinP resolution.

Fixes #2886

Screenshot 2026-05-27 at 12 06 06 PM

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes tests (if functionality changed/added)
  • Run the code checkers with make check
  • Regenerate the manpages, docs and go formatting with make generated
  • Commit messages follow commit message best practices

See the contribution guide
for more details.

Release Notes

tkn pipelinerun logs and describe now support Pipelines-in-Pipelines (PinP): TaskRuns inside child PipelineRuns are shown inline with a ">" prefix (e.g. "call-child > greet")

Resolve child PipelineRun TaskRuns recursively in tkn pipelinerun logs and describe. TaskRuns from child PipelineRuns are now displayed with a ">" prefix (e.g., "call-child > greet") to indicate nesting depth. This works for any level of nesting and supports both available and follow/live modes.

Implementation Details:
- Logs: recursive getOrderedTasks/getChildOrderedTasks and recursive GetTaskRunsWithStatus tracking.
- Describe: replaced direct ChildReferences iteration with GetTaskRunsWithStatus for automatic PinP resolution.
@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label May 27, 2026
@tekton-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign divyansh42 after the PR has been reviewed.
You can assign the PR to them by writing /assign @divyansh42 in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented May 27, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: kamal2730 / name: kamal2730 (9db9349)

@tekton-robot tekton-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label May 27, 2026
@kamal2730
Copy link
Copy Markdown
Author

Hi @twoGiants , this PR is ready for review. Kindly review it when you have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show TaskRun logs from child PipelineRuns (Pipelines-in-Pipelines)

2 participants