cli icon indicating copy to clipboard operation
cli copied to clipboard

Different log output for `tkn t logs` and `tkn tr logs`

Open Senjuti256 opened this issue 1 year ago • 1 comments

Versions and Operating System

  • Kubernetes version:

Output of tkn version

Client Version: v1.25.0
Kustomize Version: v4.5.7
Server Version: v1.26.1

  • Tekton Pipeline version:

    Output of tkn version or kubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'

     Client version: 0.33.0
     Pipeline version: v0.56.0
     Triggers version: v0.25.3
    
    
  • Operating System:

     Fedora release 37
    

Expected Behavior

Running tkn t log and tkn tr log gives a different representation but they are expected to be the same.

Actual Behavior

$ tkn t ls
NAME         DESCRIPTION   AGE
echo-task                  33 minutes ago
print-task                 33 minutes ago

$ tkn tr ls
NAME                           STARTED          DURATION   STATUS
echo-pipeline-run-echo-task    33 minutes ago   5s         Succeeded
echo-pipeline-run-print-task   33 minutes ago   7s         Succeeded

$ tkn t logs
? Select task: echo-task
Hello, Tekton!

$ tkn tr logs
? Select taskrun: echo-pipeline-run-echo-task started 34 minutes ago
[echo] Hello, Tekton!

Steps to Reproduce the Problem

  1. Create sample Task and Taskrun YAML files.
  2. Run tkn t logs.
  3. Run tkn tr logs
  4. Compare both.

Additional Info

Senjuti256 avatar Feb 01 '24 15:02 Senjuti256

/assign @Senjuti256

vinamra28 avatar May 21 '24 11:05 vinamra28