Logs for a Matrixed PipelineTask does not include logs for all Fanned Out TaskRuns
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 461
- Forks
- 277
- Avg merge
- 16h 48m
- Merged PRs (30d)
- 95
Description
Versions and Operating System
-
Kubernetes version:
Output of
kubectl version:
Client Version: v1.25.4
Kustomize Version: v4.5.7
Server Version: v1.26.3
-
Tekton Pipeline version:
Output of
tkn versionorkubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'
Client version: 0.31.1
Pipeline version: devel
- Operating System:
Mac OS 13.5
Expected Behavior
When fanning out a Matrixed PipelineTask I expect to see the logs for all of the TaskRuns created - for example, below we are echoing platform and browser for 9 combinations that are fanned out into 9 TaskRuns from the Matrixed PipelineRun - I expect when I get the pr logs, it would show the logs for all 9 TaskRuns:
[platforms-and-browsers : echo] linux and chrome
[platforms-and-browsers : echo] mac and chrome
[platforms-and-browsers : echo] windows and chrome
[platforms-and-browsers : echo] linux and safari
[platforms-and-browsers : echo] mac and safari
[platforms-and-browsers : echo] windows and safari
[platforms-and-browsers : echo] linux and firefox
[platforms-and-browsers : echo] mac and firefox
[platforms-and-browsers : echo] windows and firefox
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: platform-browsers
annotations:
description: |
A task that does something cool with platforms and browsers
spec:
params:
- name: platform
- name: browser
steps:
- name: echo
image: alpine
script: |
echo "$(params.platform) and $(params.browser)"
---
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: matrixed-pr-
spec:
serviceAccountName: "default"
pipelineSpec:
tasks:
- name: platforms-and-browsers
matrix:
params:
- name: platform
value:
- linux
- mac
- windows
- name: browser
value:
- chrome
- safari
- firefox
taskRef:
name: platform-browsers
Actual Behavior
tkn pr logs output
[platforms-and-browsers : echo] linux and safari
Steps to Reproduce the Problem
- Run the example yaml
- View the logs
Additional Info
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the provided Matrixed PipelineRun YAML, then start from the tkn pr logs handling for matrixed PipelineTasks and their generated TaskRuns. Done means the command displays logs for all nine platform-and-browser combinations instead of only one; add or update coverage if the relevant test location is found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100