Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-3543

Runtime error in PaC controller after creating a PipelineRun

XMLWordPrintable

    • Pipelines Sprint 247, Pipelines Sprint 249

      Description of problem:

      After pushing a change to a PR, the PR check wasn't updated and got stuck on "waiting for status to be reported"

      There was a runtime error in PaC controller logs:

      {"level":"info","ts":"2023-09-27T01:39:32.112Z","logger":"pipelinesascode","caller":"pipelineascode/pipelineascode.go:169","msg":"pipelinerun build-definitions-pull-request-kllr4 has been created in namespace tekton-ci for SHA: 374755ac0053f201c77373724ae06361b2ab200d Target Branch: main","provider":"github","event-id":"b1edc310-5cd6-11ee-898d-a3361378514d","event-sha":"374755ac0053f201c77373724ae06361b2ab200d","event-type":"pull_request","namespace":"tekton-ci"}
      panic: assignment to entry in nil map
      goroutine 5054 [running]:
      github.com/openshift-pipelines/pipelines-as-code/pkg/consoleui.(*CustomConsole).DetailURL(0xc000b93870, 0xc0010c5d40)
      /go/src/github.com/openshift-pipelines/pipelines-as-code/pkg/consoleui/custom.go:63 +0x6f
      github.com/openshift-pipelines/pipelines-as-code/pkg/pipelineascode.(*PacRun).startPR(0xc001c389b0, {0x26fa590, 0xc000642c30}, {0xc0023e5200?, 0xc0018da840?, 0xc0026c63c0?})
      /go/src/github.com/openshift-pipelines/pipelines-as-code/pkg/pipelineascode/pipelineascode.go:171 +0x562
      github.com/openshift-pipelines/pipelines-as-code/pkg/pipelineascode.(*PacRun).Run.func1({0xc0023e5200?, 0xc0018da840?, 0xc0026c63c0?})
      /go/src/github.com/openshift-pipelines/pipelines-as-code/pkg/pipelineascode/pipelineascode.go:86 +0xe5
      created by github.com/openshift-pipelines/pipelines-as-code/pkg/pipelineascode.(*PacRun).Run
      /go/src/github.com/openshift-pipelines/pipelines-as-code/pkg/pipelineascode/pipelineascode.go:84 +0x733
      

      Workaround

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

       # <steps>

       

      Actual results:

      Expected results:

      Reproducibility (Always/Intermittent/Only Once):

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

       

       *

              cboudjna@redhat.com Chmouel Boudjnah
              psturc@redhat.com Pavel Sturc
              Savita . Savita .
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: