tektoncd / tektoncd/pipelines-as-code
e2e tests cannot set status with bitbucketcloud
Open
Nobody has claimed this yet.
priority/low
- Dominant language
- Go
- Stars
- 214
- Forks
- 144
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 27
Description
we keep getting this in e2e tests
2026/02/02 09:00:21 started goroutine for watcher
2026/02/02 09:00:21 Readiness and health check server listening on port 8080
2026/02/02 09:00:21 Registering 4 clients
2026/02/02 09:00:21 Registering 3 informer factories
2026/02/02 09:00:21 Registering 3 informers
2026/02/02 09:00:21 Registering 1 controllers
I0202 09:00:21.264756 1 leaderelection.go:257] attempting to acquire leader lease pipelines-as-code/pac-watcher.github.com.openshift-pipelines.pipelines-as-code.pkg.reconciler.reconciler.00-of-01...
I0202 09:00:36.935711 1 leaderelection.go:271] successfully acquired lease pipelines-as-code/pac-watcher.github.com.openshift-pipelines.pipelines-as-code.pkg.reconciler.reconciler.00-of-01
2026/02/02 09:00:20 Registering 2 clients
2026/02/02 09:00:20 Registering 3 informer factories
2026/02/02 09:00:20 Registering 3 informers
2026/02/02 09:00:20 Registering 2 controllers
I0202 09:00:21.161743 1 leaderelection.go:257] attempting to acquire leader lease pipelines-as-code/pipelines-as-code-webhook.validationwebhook.00-of-01...
I0202 09:00:21.161928 1 leaderelection.go:257] attempting to acquire leader lease pipelines-as-code/pipelines-as-code-webhook.webhookcertificates.00-of-01...
I0202 09:00:36.709267 1 leaderelection.go:271] successfully acquired lease pipelines-as-code/pipelines-as-code-webhook.webhookcertificates.00-of-01
I0202 09:00:39.706533 1 leaderelection.go:271] successfully acquired lease pipelines-as-code/pipelines-as-code-webhook.validationwebhook.00-of-01
π¨ 09:02:48 cannot set status with the Bitbucket Cloud token because of: 404 Not Found
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Stacktrace:
github.com/openshift-pipelines/pipelines-as-code/pkg/events.(*EventEmitter).EmitMessage
github.com/openshift-pipelines/pipelines-as-code/pkg/events/emit.go:49
github.com/openshift-pipelines/pipelines-as-code/pkg/provider/bitbucketcloud.(*Provider).CreateStatus
github.com/openshift-pipelines/pipelines-as-code/pkg/provider/bitbucketcloud/bitbucket.go:131
github.com/openshift-pipelines/pipelines-as-code/pkg/pipelineascode.(*PacRun).Run
github.com/openshift-pipelines/pipelines-as-code/pkg/pipelineascode/pipelineascode.go:77
github.com/openshift-pipelines/pipelines-as-code/pkg/adapter.(*sinker).processEvent
github.com/openshift-pipelines/pipelines-as-code/pkg/adapter/sinker.go:120
github.com/openshift-pipelines/pipelines-as-code/pkg/adapter.(*listener).Start.listener.handleEvent.func2.1
github.com/openshift-pipelines/pipelines-as-code/pkg/adapter/adapter.go:210
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π¨ 09:02:48 an error occurred: could not find commit info: 404 Not Found
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Stacktrace:
github.com/openshift-pipelines/pipelines-as-code/pkg/events.(*EventEmitter).EmitMessage
github.com/openshift-pipelines/pipelines-as-code/pkg/events/emit.go:49
github.com/openshift-pipelines/pipelines-as-code/pkg/pipelineascode.(*PacRun).Run
github.com/openshift-pipelines/pipelines-as-code/pkg/pipelineascode/pipelineascode.go:83
github.com/openshift-pipelines/pipelines-as-code/pkg/adapter.(*sinker).processEvent
github.com/openshift-pipelines/pipelines-as-code/pkg/adapter/sinker.go:120
github.com/openshift-pipelines/pipelines-as-code/pkg/adapter.(*listener).Start.listener.handleEvent.func2.1
github.com/openshift-pipelines/pipelines-as-code/pkg/adapter/adapter.go:210
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π¨ 09:02:52 cannot set status with the Bitbucket Cloud token because of: 400 Bad Request
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Stacktrace:
github.com/openshift-pipelines/pipelines-as-code/pkg/events.(*EventEmitter).EmitMessage
github.com/openshift-pipelines/pipelines-as-code/pkg/events/emit.go:49
github.com/openshift-pipelines/pipelines-as-code/pkg/provider/bitbucketcloud.(*Provider).CreateStatus
github.com/openshift-pipelines/pipelines-as-code/pkg/provider/bitbucketcloud/bitbucket.go:131
github.com/openshift-pipelines/pipelines-as-code/pkg/pipelineascode.(*PacRun).startPR
github.com/openshift-pipelines/pipelines-as-code/pkg/pipelineascode/pipelineascode.go:299
github.com/openshift-pipelines/pipelines-as-code/pkg/pipelineascode.(*PacRun).Run.func1
github.com/openshift-pipelines/pipelines-as-code/pkg/pipelineascode/pipelineascode.go:129
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π¨ 09:02:55 cannot set status with the Bitbucket Cloud token because of: 400 Bad Request
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Stacktrace:
github.com/openshift-pipelines/pipelines-as-code/pkg/events.(*EventEmitter).EmitMessage
github.com/openshift-pipelines/pipelines-as-code/pkg/events/emit.go:49
github.com/openshift-pipelines/pipelines-as-code/pkg/provider/bitbucketcloud.(*Provider).CreateStatus
github.com/openshift-pipelines/pipelines-as-code/pkg/provider/bitbucketcloud/bitbucket.go:131
github.com/openshift-pipelines/pipelines-as-code/pkg/reconciler.createStatusWithRetry
github.com/openshift-pipelines/pipelines-as-code/pkg/reconciler/status.go:167
github.com/openshift-pipelines/pipelines-as-code/pkg/reconciler.(*Reconciler).postFinalStatus
github.com/openshift-pipelines/pipelines-as-code/pkg/reconciler/status.go:159
github.com/openshift-pipelines/pipelines-as-code/pkg/reconciler.(*Reconciler).reportFinalStatus
github.com/openshift-pipelines/pipelines-as-code/pkg/reconciler/reconciler.go:235
github.com/openshift-pipelines/pipelines-as-code/pkg/reconciler.(*Reconciler).ReconcileKind
github.com/openshift-pipelines/pipelines-as-code/pkg/reconciler/reconciler.go:178
github.com/tektoncd/pipeline/pkg/client/injection/reconciler/pipeline/v1/pipelinerun.(*reconcilerImpl).Reconcile
github.com/tektoncd/pipeline@v1.7.0/pkg/client/injection/reconciler/pipeline/v1/pipelinerun/reconciler.go:236
knative.dev/pkg/controller.(*Impl).processNextWorkItem
knative.dev/pkg@v0.0.0-20260114161248-8c840449eed2/controller/controller.go:540
knative.dev/pkg/controller.(*Impl).RunContext.func3
knative.dev/pkg@v0.0.0-20260114161248-8c840449eed2/controller/controller.go:489
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up β it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in pkg/provider/bitbucketcloud/bitbucket.go at Provider.CreateStatus, using the e2e failure and its 404/400 responses as the starting point. Read the related flow in pkg/pipelineascode/pipelineascode.go and pkg/reconciler/status.go, then run the affected e2e tests. Done means Bitbucket Cloud status and commit-info operations complete without these errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100