cli icon indicating copy to clipboard operation
cli copied to clipboard

`tkn p start <pipeline-name> --showlog` shows logs of only one taskrun

Open VeereshAradhya opened this issue 2 years ago • 11 comments

Versions and Operating System

Operating system: Fedora tkn version: 0.30.1

  • Kubernetes version:

    Output of kubectl version:

    Client Version: v1.25.7
    Kustomize Version: v4.5.7
    Server Version: v1.24.12+ceaf338
    
  • 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.30.1
    Pipeline version: v0.44.2
    Triggers version: v0.23.1
    Operator version: v0.65.1
    
  • Operating System:

    All
    

Expected Behavior

  1. tkn p start <pipeline-name> --showlog should start the pipelinerun and should show the logs of all the taskruns
  2. tkn pr logs <running-pipelinerun-name -f should show the logs of running pipelinerun and should stop once the pipelinerun finishes

Actual Behavior

  1. tkn p start <pipeline-name> --showlog starts the pipelinerun but shows log of only the first taskrun
  2. tkn pr logs <running-pipelinerun> -f -L shows the logs of the pipelinerun but hangs even after the pipelinerun is completed

Steps to Reproduce the Problem

  1. Create a pipeline with serial tasks

  2. Start the pipelinerun using tkn p start <pipeline-name> --showlog and observe the logs

  3. Create a pipeline with serial tasks

  4. Start the pipeline

  5. Run tkn pr logs -f -L and observe the logs

Additional Info

VeereshAradhya avatar May 02 '23 11:05 VeereshAradhya

/assign

pratap0007 avatar May 07 '23 09:05 pratap0007

It's not reproducible, so can we close it? cc: @piyush-garg @vinamra28

pratap0007 avatar May 16 '23 10:05 pratap0007

lets close it

piyush-garg avatar May 23 '23 10:05 piyush-garg

/reopen

concaf avatar Aug 28 '23 11:08 concaf

@concaf: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

tekton-robot avatar Aug 28 '23 11:08 tekton-robot

/reopen

savitaashture avatar Aug 28 '23 11:08 savitaashture

@savitaashture: Reopened this issue.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

tekton-robot avatar Aug 28 '23 11:08 tekton-robot

Reopening this issue because its not reproduced all the time but 5% of the time its reproduced so to address this ffirst step would be to add test to make sure the scenario

savitaashture avatar Aug 28 '23 11:08 savitaashture

/assign

vinamra28 avatar Sep 07 '23 16:09 vinamra28

/assign

RohanGlitched avatar Oct 28 '23 08:10 RohanGlitched

@RohanGlitched are you planning to take this up? If so, do let us know if you need some help.

vinamra28 avatar Jan 09 '24 12:01 vinamra28

@VeereshAradhya I think this should be working fine after https://github.com/tektoncd/cli/pull/2251 Please try to see if you still face this

piyush-garg avatar May 21 '24 11:05 piyush-garg