Skip to content

bitbucketcloud: after push it takes up to a minute to start a pipelinerun #2336

@gerrnot

Description

@gerrnot

We noticed quite a poor performance of incoming webhook events in OpenShift PAC when using bitbucketcloud repositories.

The logs (and user experience) reveals that it takes up to a minute till a PipelineRun ist started.

Here are the relevant logs of the pod openshift-pipelines/pipelines-as-code-controller-*:

2025-11-26T14:13:15.339449497Z {"level":"info","ts":1764166395.3393254,"caller":"bitbucketcloud/bitbucket.go:208","msg":"bitbucket-cloud: initialized client with provided token for user=***masked***"}
2025-11-26T14:14:04.588745629Z {"level":"info","ts":"2025-11-26T14:14:04.588Z","logger":"pipelinesascode","caller":"bitbucketcloud/bitbucket.go:174","msg":"Using PipelineRun definition from source push commit SHA: 07c070e52111edf563407c4f58420965627c6c65","commit":"10dee4fce84b750d7597e61d78a420101ab36d78","provider":"bitbucket-cloud","event-id":"","event-sha":"07c070e52111edf563407c4f58420965627c6c65","event-type":"push","source-repo-url":"https://bitbucket.org/***masked***/***masked***","target-branch":"master","namespace":"***masked***"}

Notice the time delta between the first log line and the second (49 seconds). I assume that internally a clone or pull operation needs to happen in between, but even that terminates locally in about 7 seconds for the given repo.

Exerimenting futher, it seems that the commit count is the one thing that makes this slow.

Squashing that same repo commits I came to the following numbers:

commit count delay (seconds)
1 1
2333 49

Since we are about to onboard a larger number of business applications where we do not want to lose a large part of the commit history and and the same time guarantee a responsive user experience, this is a significant issue for us, which does not appear in similar CI/CD products.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions