cli
cli copied to clipboard
Logs for a Matrixed PipelineTask does not include logs for all Fanned Out TaskRuns
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
Duplicate of https://github.com/tektoncd/cli/issues/1661 ?
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale with a justification.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.
/lifecycle stale
Send feedback to tektoncd/plumbing.