tektoncd / cli

A CLI for interacting with Tekton!
Apache License 2.0
423 stars 242 forks source link

Logs for a Matrixed PipelineTask does not include logs for all Fanned Out TaskRuns #2089

Open EmmaMunley opened 11 months ago

EmmaMunley commented 11 months ago

Versions and Operating System

Client version: 0.31.1
Pipeline version: devel
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

  1. Run the example yaml
  2. View the logs

Additional Info

AlanGreene commented 11 months ago

Duplicate of https://github.com/tektoncd/cli/issues/1661 ?

tekton-robot commented 8 months ago

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.