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

pac controller panic when tag pushed to GitLab

XMLWordPrintable

    • Pipelines Sprint Crookshank 14

      Description of problem:

      Observed below error on the konflux prod env

      {"level":"warn","ts":"2024-09-30T18:10:47.499Z","logger":"pipelinesascode","caller":"events/emit.go:50","msg":"cannot match the event to any pipelineruns in the .tekton/ directory, source branch TEAMNADO-7471 and target branch master. available annotations of the PipelineRuns annotations in .tekton/ dir: [PipelineRun: rhsm-api-on-pull-request, annotations: on-cel-expression: celexpression], [PipelineRun: rhsm-api-on-push, annotations: on-cel-expression: celexpression]","provider":"gitlab","event-id":"","event-sha":"06d02660605e1692021915d140f811d96b0c393a","event-type":"no-ops-comment","namespace":"teamnado-tenant"}{"level":"warn","ts":"2024-09-30T18:11:30.084Z","logger":"pipelinesascode","caller":"events/emit.go:50","msg":"cannot find a repository match for https://github.com/edewata/pki","provider":"github","event-id":"6a089c38-7f57-11ef-820e-e12e0d3a3246","event-sha":"c9981a4c26ed8e1eb23587171d44b7b89d2cd651","event-type":"push"}panic: runtime error: index out of range [-1]
      goroutine 27138 [running]:github.com/openshift-pipelines/pipelines-as-code/pkg/provider/gitlab.(*Provider).ParsePayload(0xc001334380, {0xc00149e000?, 0x636?}, 0x0?, 0x283f748?, {0xc000f01c00, 0x636})	/go/src/github.com/openshift-pipelines/pipelines-as-code/pkg/provider/gitlab/parse_payload.go:68 +0x120fgithub.com/openshift-pipelines/pipelines-as-code/pkg/adapter.(*sinker).processEventPayload(0xc000cbc180, {0x283f748, 0xc0006e1680}, 0xc0012c6b40)	/go/src/github.com/openshift-pipelines/pipelines-as-code/pkg/adapter/sinker.go:30 +0x97github.com/openshift-pipelines/pipelines-as-code/pkg/adapter.(*sinker).processEvent(0xc000cbc180, {0x283f748, 0xc0006e1680}, 0xc0012c66c0?)	/go/src/github.com/openshift-pipelines/pipelines-as-code/pkg/adapter/sinker.go:54 +0x137github.com/openshift-pipelines/pipelines-as-code/pkg/adapter.(*listener).Start.listener.handleEvent.func2.1()	/go/src/github.com/openshift-pipelines/pipelines-as-code/pkg/adapter/adapter.go:194 +0x2ccreated by github.com/openshift-pipelines/pipelines-as-code/pkg/adapter.(*listener).Start.listener.handleEvent.func2 in goroutine 27023	/go/src/github.com/openshift-pipelines/pipelines-as-code/pkg/adapter/adapter.go:193 +0x9d7 

      slack thread: https://redhat-internal.slack.com/archives/C04PZ7H0VA8/p1727708590297089

       

      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):

       

       *

              rh-ee-zashaikh Zaki Shaikh
              sashture Savita .
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: