Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Error for bitbucket-chatgpt-codereview

Yuriy Berdnikov April 22, 2024

Hi, I'm trying to app to pipelines bitbucket-chatgpt-codereview pype and did all setup as required, but getting following error:

✖ File pipe.yml not found. Please give correct path to file.

 

Would appreciate any help

1 answer

1 accepted

1 vote
Answer accepted
Yuriy Berdnikov April 22, 2024

@Oleksandr Kyrdan I'd appreciate any help as I can see you're the author of that pipeline.

Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 23, 2024

Hi @Yuriy Berdnikov 

Thanks for your question!

It would be nice if you could share your configuration from the bitbucket-pipelines.yml and extended logs of the pipe execution.

 

Best regards,
Oleksandr

Yuriy Berdnikov April 24, 2024

Sure @Oleksandr Kyrdan , here's bitbucket-pipelines.yml

image: swift

pipelines:
default:
- parallel:
- step:
name: 'AI Code review'
script:
- pipe: atlassian/bitbucket-chatgpt-codereview:0.1.1
variables:
OPENAI_API_KEY: $OPENAI_API_KEY
BITBUCKET_ACCESS_TOKEN: $BITBUCKET_ACCESS_TOKEN
MODEL: "gpt-4"
services:
- docker

 

 and here's logs:

pipeline log

+ umask 000

+ GIT_LFS_SKIP_SMUDGE=1 retry 6 git clone --branch="main" --depth 50 https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/$BITBUCKET_REPO_FULL_NAME.git $BUILD_DIR
Cloning into '/opt/atlassian/pipelines/agent/build'...

+ git reset --hard d8736ea1bab42972bf65d31ae066384791bebb43
HEAD is now at d8736ea Updated pipe path

+ git config user.name bitbucket-pipelines

+ git config user.email commits-noreply@bitbucket.org

+ git config push.default current

+ git config http.${BITBUCKET_GIT_HTTP_ORIGIN}.proxy http://localhost:29418/

+ git remote set-url origin http://bitbucket.org/$BITBUCKET_REPO_FULL_NAME

+ git reflog expire --expire=all --all

+ echo ".bitbucket/pipelines/generated" >> .git/info/exclude

+ chmod 777 $BUILD_DIR


Default variables:
BITBUCKET_BRANCH
BITBUCKET_BUILD_NUMBER
BITBUCKET_CLONE_DIR
BITBUCKET_COMMIT
BITBUCKET_GIT_HTTP_ORIGIN
BITBUCKET_GIT_SSH_ORIGIN
BITBUCKET_PARALLEL_STEP
BITBUCKET_PARALLEL_STEP_COUNT
BITBUCKET_PIPELINE_UUID
BITBUCKET_PROJECT_KEY
BITBUCKET_PROJECT_UUID
BITBUCKET_REPO_FULL_NAME
BITBUCKET_REPO_IS_PRIVATE
BITBUCKET_REPO_OWNER
BITBUCKET_REPO_OWNER_UUID
BITBUCKET_REPO_SLUG
BITBUCKET_REPO_UUID
BITBUCKET_SSH_KEY_FILE
BITBUCKET_STEP_RUN_NUMBER
BITBUCKET_STEP_TRIGGERER_UUID
BITBUCKET_STEP_UUID
BITBUCKET_WORKSPACE
CI
DOCKER_HOST
PIPELINES_JWT_TOKEN

Repository variables:
BITBUCKET_ACCESS_TOKEN
OPENAI_API_KEY

Images used:
build : docker.io/library/swift@sha256:eed64f71ef1e341d3a4cdb8d73684f719c2b2db718c5beec02d47a72cb3c03f2
+ docker container run \
--volume=/opt/atlassian/pipelines/agent/build:/opt/atlassian/pipelines/agent/build \
--volume=/opt/atlassian/pipelines/agent/ssh:/opt/atlassian/pipelines/agent/ssh:ro \
--volume=/opt/atlassian/pipelines/bin/docker:/usr/local/bin/docker:ro \
--volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes \
--volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/bitbucket-chatgpt-codereview:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/bitbucket-chatgpt-codereview \
--workdir=$(pwd) \
--label=org.bitbucket.pipelines.system=true \
--env=BITBUCKET_STEP_TRIGGERER_UUID="$BITBUCKET_STEP_TRIGGERER_UUID" \
--env=BITBUCKET_REPO_FULL_NAME="$BITBUCKET_REPO_FULL_NAME" \
--env=BITBUCKET_GIT_HTTP_ORIGIN="$BITBUCKET_GIT_HTTP_ORIGIN" \
--env=BITBUCKET_PROJECT_UUID="$BITBUCKET_PROJECT_UUID" \
--env=BITBUCKET_REPO_IS_PRIVATE="$BITBUCKET_REPO_IS_PRIVATE" \
--env=BITBUCKET_WORKSPACE="$BITBUCKET_WORKSPACE" \
--env=BITBUCKET_SSH_KEY_FILE="$BITBUCKET_SSH_KEY_FILE" \
--env=BITBUCKET_REPO_OWNER_UUID="$BITBUCKET_REPO_OWNER_UUID" \
--env=BITBUCKET_BRANCH="$BITBUCKET_BRANCH" \
--env=BITBUCKET_REPO_UUID="$BITBUCKET_REPO_UUID" \
--env=BITBUCKET_PROJECT_KEY="$BITBUCKET_PROJECT_KEY" \
--env=BITBUCKET_PARALLEL_STEP_COUNT="$BITBUCKET_PARALLEL_STEP_COUNT" \
--env=BITBUCKET_REPO_SLUG="$BITBUCKET_REPO_SLUG" \
--env=CI="$CI" \
--env=BITBUCKET_REPO_OWNER="$BITBUCKET_REPO_OWNER" \
--env=BITBUCKET_PARALLEL_STEP="$BITBUCKET_PARALLEL_STEP" \
--env=BITBUCKET_STEP_RUN_NUMBER="$BITBUCKET_STEP_RUN_NUMBER" \
--env=BITBUCKET_BUILD_NUMBER="$BITBUCKET_BUILD_NUMBER" \
--env=BITBUCKET_GIT_SSH_ORIGIN="$BITBUCKET_GIT_SSH_ORIGIN" \
--env=BITBUCKET_PIPELINE_UUID="$BITBUCKET_PIPELINE_UUID" \
--env=BITBUCKET_COMMIT="$BITBUCKET_COMMIT" \
--env=BITBUCKET_CLONE_DIR="$BITBUCKET_CLONE_DIR" \
--env=PIPELINES_JWT_TOKEN="$PIPELINES_JWT_TOKEN" \
--env=BITBUCKET_STEP_UUID="$BITBUCKET_STEP_UUID" \
--env=BITBUCKET_DOCKER_HOST_INTERNAL="$BITBUCKET_DOCKER_HOST_INTERNAL" \
--env=DOCKER_HOST="tcp://host.docker.internal:2375" \
--env=BITBUCKET_PIPE_SHARED_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes" \
--env=BITBUCKET_PIPE_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/bitbucket-chatgpt-codereview" \
--env=BITBUCKET_ACCESS_TOKEN="$BITBUCKET_ACCESS_TOKEN" \
--env=MODEL="gpt-4" \
--env=OPENAI_API_KEY="$OPENAI_API_KEY" \
--add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \
bitbucketpipelines/bitbucket-chatgpt-codereview:0.1.1
Unable to find image 'bitbucketpipelines/bitbucket-chatgpt-codereview:0.1.1' locally
0.1.1: Pulling from bitbucketpipelines/bitbucket-chatgpt-codereview
13808c22b207: Pulling fs layer
6c9a484475c1: Pulling fs layer
fb408522af25: Pulling fs layer
54ac57f98245: Pulling fs layer
de5947f22207: Pulling fs layer
c597a79123b2: Pulling fs layer
5812ba1379dd: Pulling fs layer
b8a9afc06d39: Pulling fs layer
66e344f8490c: Pulling fs layer
c597a79123b2: Waiting
5812ba1379dd: Waiting
de5947f22207: Waiting
b8a9afc06d39: Waiting
66e344f8490c: Waiting
54ac57f98245: Waiting
6c9a484475c1: Verifying Checksum
6c9a484475c1: Download complete
fb408522af25: Download complete
13808c22b207: Verifying Checksum
13808c22b207: Download complete
54ac57f98245: Verifying Checksum
54ac57f98245: Download complete
de5947f22207: Verifying Checksum
de5947f22207: Download complete
c597a79123b2: Verifying Checksum
c597a79123b2: Download complete
b8a9afc06d39: Download complete
5812ba1379dd: Verifying Checksum
5812ba1379dd: Download complete
66e344f8490c: Verifying Checksum
66e344f8490c: Download complete
13808c22b207: Pull complete
6c9a484475c1: Pull complete
fb408522af25: Pull complete
54ac57f98245: Pull complete
de5947f22207: Pull complete
c597a79123b2: Pull complete
5812ba1379dd: Pull complete
b8a9afc06d39: Pull complete
66e344f8490c: Pull complete
Digest: sha256:bc6bfa835b9d4782e41fd244a1ced339e82230945d22791ddb980b8cde7d64b3
Status: Downloaded newer image for bitbucketpipelines/bitbucket-chatgpt-codereview:0.1.1
[31m✖ File pipe.yml not found. Please give correct path to file. [0m
Searching for files matching artifact pattern .bitbucket/pipelines/generated/pipeline/pipes/**

Searching for test report files in directories named [test-results, failsafe-reports, test-reports, TestResults, surefire-reports] down to a depth of 4
Finished scanning for test reports. Found 0 test report files.
Merged test suites, total number tests is 0, with 0 failures and 0 errors.

 

and docker log


cat: can't open '/proc/net/arp_tables_names': No such file or directory
iptables v1.8.10 (nf_tables)
time="2024-04-24T06:38:42.853104408Z" level=info msg="Starting up"
time="2024-04-24T06:38:42.853294386Z" level=info msg="User namespaces: ID ranges will be mapped to subuid/subgid ranges of: dockremap"
time="2024-04-24T06:38:42.853824201Z" level=warning msg="Binding to IP address without --tlsverify is insecure and gives root access on this machine to everyone who has access to your network." host="tcp://0.0.0.0:2375"
time="2024-04-24T06:38:42.853839899Z" level=warning msg="Binding to an IP address, even on localhost, can also give access to scripts run in a browser. Be safe out there!" host="tcp://0.0.0.0:2375"
time="2024-04-24T06:38:43.853917172Z" level=warning msg="Binding to an IP address without --tlsverify is deprecated. Startup is intentionally being slowed down to show this message" host="tcp://0.0.0.0:2375"
time="2024-04-24T06:38:43.853947381Z" level=warning msg="Please consider generating tls certificates with client validation to prevent exposing unauthenticated root access to your network" host="tcp://0.0.0.0:2375"
time="2024-04-24T06:38:43.853956826Z" level=warning msg="You can override this by explicitly specifying '--tls=false' or '--tlsverify=false'" host="tcp://0.0.0.0:2375"
time="2024-04-24T06:38:43.853965764Z" level=warning msg="Support for listening on TCP without authentication or explicit intent to run without authentication will be removed in the next release" host="tcp://0.0.0.0:2375"
time="2024-04-24T06:38:58.858590999Z" level=info msg="containerd not running, starting managed containerd"
time="2024-04-24T06:38:58.859488875Z" level=info msg="started new containerd process" address=/var/run/docker/containerd/containerd.sock module=libcontainerd pid=39
time="2024-04-24T06:38:58.875814795Z" level=info msg="starting containerd" revision=7c3aca7a610df76212171d200ca3811ff6096eb8 version=v1.7.13
time="2024-04-24T06:38:58.896101955Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
time="2024-04-24T06:38:58.896141994Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
time="2024-04-24T06:38:58.896201343Z" level=warning msg="failed to load plugin io.containerd.internal.v1.opt" error="mkdir /opt/containerd: read-only file system"
time="2024-04-24T06:38:58.896219647Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1
time="2024-04-24T06:38:58.896243235Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." type=io.containerd.snapshotter.v1
time="2024-04-24T06:38:58.896310105Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." error="no scratch file generator: skip plugin" type=io.containerd.snapshotter.v1
time="2024-04-24T06:38:58.896324343Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1
time="2024-04-24T06:38:58.896340695Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.devmapper" error="devmapper not configured"
time="2024-04-24T06:38:58.896349858Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1
time="2024-04-24T06:38:58.896411999Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1
time="2024-04-24T06:38:58.896608865Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1
time="2024-04-24T06:38:58.902517985Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1
time="2024-04-24T06:38:58.902857233Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /var/lib/docker/165536.165536/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
time="2024-04-24T06:38:58.902885562Z" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1
time="2024-04-24T06:38:58.902976720Z" level=info msg="loading plugin \"io.containerd.metadata.v1.bolt\"..." type=io.containerd.metadata.v1
time="2024-04-24T06:38:58.903038148Z" level=warning msg="could not use snapshotter devmapper in metadata plugin" error="devmapper not configured"
time="2024-04-24T06:38:58.903057266Z" level=info msg="metadata content store policy set" policy=shared
time="2024-04-24T06:38:58.905612355Z" level=info msg="loading plugin \"io.containerd.gc.v1.scheduler\"..." type=io.containerd.gc.v1
time="2024-04-24T06:38:58.905661437Z" level=info msg="loading plugin \"io.containerd.differ.v1.walking\"..." type=io.containerd.differ.v1
time="2024-04-24T06:38:58.905687604Z" level=info msg="loading plugin \"io.containerd.lease.v1.manager\"..." type=io.containerd.lease.v1
time="2024-04-24T06:38:58.905726364Z" level=info msg="loading plugin \"io.containerd.streaming.v1.manager\"..." type=io.containerd.streaming.v1
time="2024-04-24T06:38:58.905750085Z" level=info msg="loading plugin \"io.containerd.runtime.v1.linux\"..." type=io.containerd.runtime.v1
time="2024-04-24T06:38:58.905887456Z" level=info msg="loading plugin \"io.containerd.monitor.v1.cgroups\"..." type=io.containerd.monitor.v1
time="2024-04-24T06:38:58.906318430Z" level=info msg="loading plugin \"io.containerd.runtime.v2.task\"..." type=io.containerd.runtime.v2
time="2024-04-24T06:38:58.906463742Z" level=info msg="loading plugin \"io.containerd.runtime.v2.shim\"..." type=io.containerd.runtime.v2
time="2024-04-24T06:38:58.906488433Z" level=info msg="loading plugin \"io.containerd.sandbox.store.v1.local\"..." type=io.containerd.sandbox.store.v1
time="2024-04-24T06:38:58.906510052Z" level=info msg="loading plugin \"io.containerd.sandbox.controller.v1.local\"..." type=io.containerd.sandbox.controller.v1
time="2024-04-24T06:38:58.906532982Z" level=info msg="loading plugin \"io.containerd.service.v1.containers-service\"..." type=io.containerd.service.v1
time="2024-04-24T06:38:58.906555184Z" level=info msg="loading plugin \"io.containerd.service.v1.content-service\"..." type=io.containerd.service.v1
time="2024-04-24T06:38:58.906575729Z" level=info msg="loading plugin \"io.containerd.service.v1.diff-service\"..." type=io.containerd.service.v1
time="2024-04-24T06:38:58.906599314Z" level=info msg="loading plugin \"io.containerd.service.v1.images-service\"..." type=io.containerd.service.v1
time="2024-04-24T06:38:58.906620331Z" level=info msg="loading plugin \"io.containerd.service.v1.introspection-service\"..." type=io.containerd.service.v1
time="2024-04-24T06:38:58.906644310Z" level=info msg="loading plugin \"io.containerd.service.v1.namespaces-service\"..." type=io.containerd.service.v1
time="2024-04-24T06:38:58.906662502Z" level=info msg="loading plugin \"io.containerd.service.v1.snapshots-service\"..." type=io.containerd.service.v1
time="2024-04-24T06:38:58.906683634Z" level=info msg="loading plugin \"io.containerd.service.v1.tasks-service\"..." type=io.containerd.service.v1
time="2024-04-24T06:38:58.906713187Z" level=info msg="loading plugin \"io.containerd.grpc.v1.containers\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906734738Z" level=info msg="loading plugin \"io.containerd.grpc.v1.content\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906759667Z" level=info msg="loading plugin \"io.containerd.grpc.v1.diff\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906781081Z" level=info msg="loading plugin \"io.containerd.grpc.v1.events\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906802592Z" level=info msg="loading plugin \"io.containerd.grpc.v1.images\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906833901Z" level=info msg="loading plugin \"io.containerd.grpc.v1.introspection\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906853074Z" level=info msg="loading plugin \"io.containerd.grpc.v1.leases\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906875725Z" level=info msg="loading plugin \"io.containerd.grpc.v1.namespaces\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906897937Z" level=info msg="loading plugin \"io.containerd.grpc.v1.sandbox-controllers\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906922577Z" level=info msg="loading plugin \"io.containerd.grpc.v1.sandboxes\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906943894Z" level=info msg="loading plugin \"io.containerd.grpc.v1.snapshots\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906963384Z" level=info msg="loading plugin \"io.containerd.grpc.v1.streaming\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906984967Z" level=info msg="loading plugin \"io.containerd.grpc.v1.tasks\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.907010900Z" level=info msg="loading plugin \"io.containerd.transfer.v1.local\"..." type=io.containerd.transfer.v1
time="2024-04-24T06:38:58.907040124Z" level=info msg="loading plugin \"io.containerd.grpc.v1.transfer\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.907059852Z" level=info msg="loading plugin \"io.containerd.grpc.v1.version\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.907093700Z" level=info msg="loading plugin \"io.containerd.internal.v1.restart\"..." type=io.containerd.internal.v1
time="2024-04-24T06:38:58.907164510Z" level=info msg="loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." type=io.containerd.tracing.processor.v1
time="2024-04-24T06:38:58.907191305Z" level=info msg="skip loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." error="no OpenTelemetry endpoint: skip plugin" type=io.containerd.tracing.processor.v1
time="2024-04-24T06:38:58.907209596Z" level=info msg="loading plugin \"io.containerd.internal.v1.tracing\"..." type=io.containerd.internal.v1
time="2024-04-24T06:38:58.907228084Z" level=info msg="skipping tracing processor initialization (no tracing plugin)" error="no OpenTelemetry endpoint: skip plugin"
time="2024-04-24T06:38:58.907344704Z" level=info msg="loading plugin \"io.containerd.grpc.v1.healthcheck\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.907376226Z" level=info msg="loading plugin \"io.containerd.nri.v1.nri\"..." type=io.containerd.nri.v1
time="2024-04-24T06:38:58.907391529Z" level=info msg="NRI interface is disabled by configuration."
time="2024-04-24T06:38:58.907694362Z" level=info msg=serving... address=/var/run/docker/containerd/containerd-debug.sock
time="2024-04-24T06:38:58.907778580Z" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock.ttrpc
time="2024-04-24T06:38:58.907845263Z" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock
time="2024-04-24T06:38:58.907919554Z" level=info msg="containerd successfully booted in 0.032851s"
time="2024-04-24T06:38:59.862766523Z" level=info msg="User namespaces: ID ranges will be mapped to subuid/subgid ranges of: dockremap"
time="2024-04-24T06:38:59.880498891Z" level=info msg="[graphdriver] trying configured driver: overlay2"
time="2024-04-24T06:38:59.931280455Z" level=info msg="Loading containers: start."
time="2024-04-24T06:39:00.043017171Z" level=info msg="Loading containers: done."
time="2024-04-24T06:39:00.050585877Z" level=warning msg="WARNING: API is accessible on http://0.0.0.0:2375 without encryption.\n Access to the remote API is equivalent to root access on the host. Refer\n to the 'Docker daemon attack surface' section in the documentation for\n more information: https://docs.docker.com/go/attack-surface/"
time="2024-04-24T06:39:00.050629745Z" level=info msg="Docker daemon" commit=fce6e0c containerd-snapshotter=false storage-driver=overlay2 version=25.0.2
time="2024-04-24T06:39:00.051336932Z" level=info msg="Daemon has completed initialization"
time="2024-04-24T06:39:00.075189899Z" level=info msg="API listen on /var/run/docker.sock"
time="2024-04-24T06:39:00.075264958Z" level=info msg="API listen on [::]:2375"
time="2024-04-24T06:39:12Z" level=info msg="Pipelines plugin request authorization." allowed=false method=HEAD plugin=pipelines uri=/_ping
time="2024-04-24T06:39:12.386312800Z" level=error msg="AuthZRequest for HEAD /_ping returned error: authorization denied by plugin pipelines: "
time="2024-04-24T06:39:12Z" level=info msg="Pipelines plugin request authorization." allowed=true method=GET plugin=pipelines uri=/_ping
time="2024-04-24T06:39:12Z" level=info msg="Container create request." ArgsEscaped=false AttachStderr=true AttachStdin=false AttachStdout=true ExposedPorts="map[]" Healthcheck="<nil>" Labels="map[org.bitbucket.pipelines.system:true]" MacAddress= NetworkDisabled=false OnBuild="[]" OpenStdin=false StdinOnce=false StopSignal= StopTimeout="<nil>" Tty=false plugin=pipelines
time="2024-04-24T06:39:12Z" level=info msg="Container create request." AutoRemove=false BlkioDeviceReadBps="[]" BlkioDeviceReadIOps="[]" BlkioDeviceWriteBps="[]" BlkioDeviceWriteIOps="[]" BlkioWeight=0 BlkioWeightDevice="[]" CPUCount=0 CPUPercent=0 CPUPeriod=0 CPUQuota=0 CPURealtimePeriod=0 CPURealtimeRuntime=0 CPUShares=0 CapAdd="[]" CapDrop="[]" Cgroup= CgroupParent= ConsoleSize="[0 0]" ContainerIDFile= CpusetCpus= CpusetMems= DNS="[]" DNSOptions="[]" DNSSearch="[]" DeviceCgroupRules="[]" Devices="[]" ExtraHosts="[host.docker.internal:10.38.245.108]" GroupAdd="[]" IOMaximumBandwidth=0 IOMaximumIOps=0 Init="<nil>" IpcMode= Isolations= KernelMemory=0 Links="[]" LogConfig="{ map[]}" MaskedPaths="[]" Memory=0 MemoryReservation=0 MemorySwap=0 MemorySwappiness=0xc00020f220 Mounts="[]" NanoCPUs=0 NetworkMode=default OomKillDisable=0xc00020f22a OomScoreAdj=0 PidMode= PidsLimit=0xc00020f230 PortBindings="map[]" Privileged=false PublishAllPorts=false ReadOnlyPaths="[]" RestartPolicy="{no 0}" Runtime= SecurityOpt="[]" ShmSize=0 StorageOpt="map[]" Sysctls="map[]" Ulimits="[]" UsernsMode= VolumeDriver= VolumesFrom="[]" plugin=pipelines
time="2024-04-24T06:39:12Z" level=info msg="Container create request." EndpointsConfig="map[]" plugin=pipelines
time="2024-04-24T06:39:12Z" level=info msg="Pipelines plugin request authorization." allowed=true method=POST plugin=pipelines uri=/v1.41/containers/create
time="2024-04-24T06:39:12.400058818Z" level=error msg="Handler for POST /v1.41/containers/create returned error: No such image: bitbucketpipelines/bitbucket-chatgpt-codereview:0.1.1"
time="2024-04-24T06:39:12Z" level=info msg="Pipelines plugin request authorization." allowed=true method=GET plugin=pipelines uri=/v1.41/info
time="2024-04-24T06:39:12Z" level=info msg="Pipelines plugin request authorization." allowed=true method=POST plugin=pipelines uri="/v1.41/images/create?fromImage=bitbucketpipelines%2Fbitbucket-chatgpt-codereview&tag=0.1.1"
time="2024-04-24T06:39:16Z" level=info msg="Container create request." ArgsEscaped=false AttachStderr=true AttachStdin=false AttachStdout=true ExposedPorts="map[]" Healthcheck="<nil>" Labels="map[org.bitbucket.pipelines.system:true]" MacAddress= NetworkDisabled=false OnBuild="[]" OpenStdin=false StdinOnce=false StopSignal= StopTimeout="<nil>" Tty=false plugin=pipelines
time="2024-04-24T06:39:16Z" level=info msg="Container create request." AutoRemove=false BlkioDeviceReadBps="[]" BlkioDeviceReadIOps="[]" BlkioDeviceWriteBps="[]" BlkioDeviceWriteIOps="[]" BlkioWeight=0 BlkioWeightDevice="[]" CPUCount=0 CPUPercent=0 CPUPeriod=0 CPUQuota=0 CPURealtimePeriod=0 CPURealtimeRuntime=0 CPUShares=0 CapAdd="[]" CapDrop="[]" Cgroup= CgroupParent= ConsoleSize="[0 0]" ContainerIDFile= CpusetCpus= CpusetMems= DNS="[]" DNSOptions="[]" DNSSearch="[]" DeviceCgroupRules="[]" Devices="[]" ExtraHosts="[host.docker.internal:10.38.245.108]" GroupAdd="[]" IOMaximumBandwidth=0 IOMaximumIOps=0 Init="<nil>" IpcMode= Isolations= KernelMemory=0 Links="[]" LogConfig="{ map[]}" MaskedPaths="[]" Memory=0 MemoryReservation=0 MemorySwap=0 MemorySwappiness=0xc000272220 Mounts="[]" NanoCPUs=0 NetworkMode=default OomKillDisable=0xc00027222a OomScoreAdj=0 PidMode= PidsLimit=0xc000272230 PortBindings="map[]" Privileged=false PublishAllPorts=false ReadOnlyPaths="[]" RestartPolicy="{no 0}" Runtime= SecurityOpt="[]" ShmSize=0 StorageOpt="map[]" Sysctls="map[]" Ulimits="[]" UsernsMode= VolumeDriver= VolumesFrom="[]" plugin=pipelines
time="2024-04-24T06:39:16Z" level=info msg="Container create request." EndpointsConfig="map[]" plugin=pipelines
time="2024-04-24T06:39:16Z" level=info msg="Pipelines plugin request authorization." allowed=true method=POST plugin=pipelines uri=/v1.41/containers/create
time="2024-04-24T06:39:16Z" level=info msg="Pipelines plugin request authorization." allowed=true method=POST plugin=pipelines uri="/v1.41/containers/5ecdbdc4094383ee770b8ee22be2811153f5dd13bfdcadeb2f35ae174b4689c7/attach?stderr=1&stdout=1&stream=1"
time="2024-04-24T06:39:16Z" level=info msg="Pipelines plugin request authorization." allowed=true method=POST plugin=pipelines uri="/v1.41/containers/5ecdbdc4094383ee770b8ee22be2811153f5dd13bfdcadeb2f35ae174b4689c7/wait?condition=next-exit"
time="2024-04-24T06:39:16Z" level=info msg="Pipelines plugin request authorization." allowed=true method=POST plugin=pipelines uri=/v1.41/containers/5ecdbdc4094383ee770b8ee22be2811153f5dd13bfdcadeb2f35ae174b4689c7/start
time="2024-04-24T06:39:16.266380692Z" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1
time="2024-04-24T06:39:16.266435975Z" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1
time="2024-04-24T06:39:16.266453453Z" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
time="2024-04-24T06:39:16.267052830Z" level=info msg="loading plugin \"io.containerd.ttrpc.v1.pause\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
time="2024-04-24T06:39:16.992248743Z" level=info msg="ignoring event" container=5ecdbdc4094383ee770b8ee22be2811153f5dd13bfdcadeb2f35ae174b4689c7 module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
time="2024-04-24T06:39:16.992271947Z" level=info msg="shim disconnected" id=5ecdbdc4094383ee770b8ee22be2811153f5dd13bfdcadeb2f35ae174b4689c7 namespace=moby
time="2024-04-24T06:39:16.992329994Z" level=warning msg="cleaning up after shim disconnected" id=5ecdbdc4094383ee770b8ee22be2811153f5dd13bfdcadeb2f35ae174b4689c7 namespace=moby
time="2024-04-24T06:39:16.992339607Z" level=info msg="cleaning up dead shim" namespace=moby
Yuriy Berdnikov April 24, 2024

Here's bitbucket-pipelines.yml

 

image: swift

pipelines:

pull-requests:

'**':

- step:

name: 'AI Code review'

script:

- pipe: atlassian/bitbucket-chatgpt-codereview:0.1.1

variables:

OPENAI_API_KEY: $OPENAI_API_KEY

BITBUCKET_ACCESS_TOKEN: $BITBUCKET_ACCESS_TOKEN

MODEL: 'gpt-4-turbo-preview'

default:

- step:

name: All other builds

script:

- pipe: atlassian/bitbucket-chatgpt-codereview:0.1.1

variables:

OPENAI_API_KEY: $OPENAI_API_KEY

BITBUCKET_ACCESS_TOKEN: $BITBUCKET_ACCESS_TOKEN

MODEL: 'gpt-4-turbo-preview'

 

Yuriy Berdnikov April 24, 2024

here's docker logs

 


cat: can't open '/proc/net/arp_tables_names': No such file or directory
iptables v1.8.10 (nf_tables)
time="2024-04-24T06:38:42.853104408Z" level=info msg="Starting up"
time="2024-04-24T06:38:42.853294386Z" level=info msg="User namespaces: ID ranges will be mapped to subuid/subgid ranges of: dockremap"
time="2024-04-24T06:38:42.853824201Z" level=warning msg="Binding to IP address without --tlsverify is insecure and gives root access on this machine to everyone who has access to your network." host="tcp://0.0.0.0:2375"
time="2024-04-24T06:38:42.853839899Z" level=warning msg="Binding to an IP address, even on localhost, can also give access to scripts run in a browser. Be safe out there!" host="tcp://0.0.0.0:2375"
time="2024-04-24T06:38:43.853917172Z" level=warning msg="Binding to an IP address without --tlsverify is deprecated. Startup is intentionally being slowed down to show this message" host="tcp://0.0.0.0:2375"
time="2024-04-24T06:38:43.853947381Z" level=warning msg="Please consider generating tls certificates with client validation to prevent exposing unauthenticated root access to your network" host="tcp://0.0.0.0:2375"
time="2024-04-24T06:38:43.853956826Z" level=warning msg="You can override this by explicitly specifying '--tls=false' or '--tlsverify=false'" host="tcp://0.0.0.0:2375"
time="2024-04-24T06:38:43.853965764Z" level=warning msg="Support for listening on TCP without authentication or explicit intent to run without authentication will be removed in the next release" host="tcp://0.0.0.0:2375"
time="2024-04-24T06:38:58.858590999Z" level=info msg="containerd not running, starting managed containerd"
time="2024-04-24T06:38:58.859488875Z" level=info msg="started new containerd process" address=/var/run/docker/containerd/containerd.sock module=libcontainerd pid=39
time="2024-04-24T06:38:58.875814795Z" level=info msg="starting containerd" revision=7c3aca7a610df76212171d200ca3811ff6096eb8 version=v1.7.13
time="2024-04-24T06:38:58.896101955Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
time="2024-04-24T06:38:58.896141994Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
time="2024-04-24T06:38:58.896201343Z" level=warning msg="failed to load plugin io.containerd.internal.v1.opt" error="mkdir /opt/containerd: read-only file system"
time="2024-04-24T06:38:58.896219647Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1
time="2024-04-24T06:38:58.896243235Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." type=io.containerd.snapshotter.v1
time="2024-04-24T06:38:58.896310105Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." error="no scratch file generator: skip plugin" type=io.containerd.snapshotter.v1
time="2024-04-24T06:38:58.896324343Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1
time="2024-04-24T06:38:58.896340695Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.devmapper" error="devmapper not configured"
time="2024-04-24T06:38:58.896349858Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1
time="2024-04-24T06:38:58.896411999Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1
time="2024-04-24T06:38:58.896608865Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1
time="2024-04-24T06:38:58.902517985Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1
time="2024-04-24T06:38:58.902857233Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /var/lib/docker/165536.165536/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
time="2024-04-24T06:38:58.902885562Z" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1
time="2024-04-24T06:38:58.902976720Z" level=info msg="loading plugin \"io.containerd.metadata.v1.bolt\"..." type=io.containerd.metadata.v1
time="2024-04-24T06:38:58.903038148Z" level=warning msg="could not use snapshotter devmapper in metadata plugin" error="devmapper not configured"
time="2024-04-24T06:38:58.903057266Z" level=info msg="metadata content store policy set" policy=shared
time="2024-04-24T06:38:58.905612355Z" level=info msg="loading plugin \"io.containerd.gc.v1.scheduler\"..." type=io.containerd.gc.v1
time="2024-04-24T06:38:58.905661437Z" level=info msg="loading plugin \"io.containerd.differ.v1.walking\"..." type=io.containerd.differ.v1
time="2024-04-24T06:38:58.905687604Z" level=info msg="loading plugin \"io.containerd.lease.v1.manager\"..." type=io.containerd.lease.v1
time="2024-04-24T06:38:58.905726364Z" level=info msg="loading plugin \"io.containerd.streaming.v1.manager\"..." type=io.containerd.streaming.v1
time="2024-04-24T06:38:58.905750085Z" level=info msg="loading plugin \"io.containerd.runtime.v1.linux\"..." type=io.containerd.runtime.v1
time="2024-04-24T06:38:58.905887456Z" level=info msg="loading plugin \"io.containerd.monitor.v1.cgroups\"..." type=io.containerd.monitor.v1
time="2024-04-24T06:38:58.906318430Z" level=info msg="loading plugin \"io.containerd.runtime.v2.task\"..." type=io.containerd.runtime.v2
time="2024-04-24T06:38:58.906463742Z" level=info msg="loading plugin \"io.containerd.runtime.v2.shim\"..." type=io.containerd.runtime.v2
time="2024-04-24T06:38:58.906488433Z" level=info msg="loading plugin \"io.containerd.sandbox.store.v1.local\"..." type=io.containerd.sandbox.store.v1
time="2024-04-24T06:38:58.906510052Z" level=info msg="loading plugin \"io.containerd.sandbox.controller.v1.local\"..." type=io.containerd.sandbox.controller.v1
time="2024-04-24T06:38:58.906532982Z" level=info msg="loading plugin \"io.containerd.service.v1.containers-service\"..." type=io.containerd.service.v1
time="2024-04-24T06:38:58.906555184Z" level=info msg="loading plugin \"io.containerd.service.v1.content-service\"..." type=io.containerd.service.v1
time="2024-04-24T06:38:58.906575729Z" level=info msg="loading plugin \"io.containerd.service.v1.diff-service\"..." type=io.containerd.service.v1
time="2024-04-24T06:38:58.906599314Z" level=info msg="loading plugin \"io.containerd.service.v1.images-service\"..." type=io.containerd.service.v1
time="2024-04-24T06:38:58.906620331Z" level=info msg="loading plugin \"io.containerd.service.v1.introspection-service\"..." type=io.containerd.service.v1
time="2024-04-24T06:38:58.906644310Z" level=info msg="loading plugin \"io.containerd.service.v1.namespaces-service\"..." type=io.containerd.service.v1
time="2024-04-24T06:38:58.906662502Z" level=info msg="loading plugin \"io.containerd.service.v1.snapshots-service\"..." type=io.containerd.service.v1
time="2024-04-24T06:38:58.906683634Z" level=info msg="loading plugin \"io.containerd.service.v1.tasks-service\"..." type=io.containerd.service.v1
time="2024-04-24T06:38:58.906713187Z" level=info msg="loading plugin \"io.containerd.grpc.v1.containers\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906734738Z" level=info msg="loading plugin \"io.containerd.grpc.v1.content\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906759667Z" level=info msg="loading plugin \"io.containerd.grpc.v1.diff\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906781081Z" level=info msg="loading plugin \"io.containerd.grpc.v1.events\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906802592Z" level=info msg="loading plugin \"io.containerd.grpc.v1.images\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906833901Z" level=info msg="loading plugin \"io.containerd.grpc.v1.introspection\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906853074Z" level=info msg="loading plugin \"io.containerd.grpc.v1.leases\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906875725Z" level=info msg="loading plugin \"io.containerd.grpc.v1.namespaces\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906897937Z" level=info msg="loading plugin \"io.containerd.grpc.v1.sandbox-controllers\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906922577Z" level=info msg="loading plugin \"io.containerd.grpc.v1.sandboxes\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906943894Z" level=info msg="loading plugin \"io.containerd.grpc.v1.snapshots\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906963384Z" level=info msg="loading plugin \"io.containerd.grpc.v1.streaming\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.906984967Z" level=info msg="loading plugin \"io.containerd.grpc.v1.tasks\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.907010900Z" level=info msg="loading plugin \"io.containerd.transfer.v1.local\"..." type=io.containerd.transfer.v1
time="2024-04-24T06:38:58.907040124Z" level=info msg="loading plugin \"io.containerd.grpc.v1.transfer\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.907059852Z" level=info msg="loading plugin \"io.containerd.grpc.v1.version\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.907093700Z" level=info msg="loading plugin \"io.containerd.internal.v1.restart\"..." type=io.containerd.internal.v1
time="2024-04-24T06:38:58.907164510Z" level=info msg="loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." type=io.containerd.tracing.processor.v1
time="2024-04-24T06:38:58.907191305Z" level=info msg="skip loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." error="no OpenTelemetry endpoint: skip plugin" type=io.containerd.tracing.processor.v1
time="2024-04-24T06:38:58.907209596Z" level=info msg="loading plugin \"io.containerd.internal.v1.tracing\"..." type=io.containerd.internal.v1
time="2024-04-24T06:38:58.907228084Z" level=info msg="skipping tracing processor initialization (no tracing plugin)" error="no OpenTelemetry endpoint: skip plugin"
time="2024-04-24T06:38:58.907344704Z" level=info msg="loading plugin \"io.containerd.grpc.v1.healthcheck\"..." type=io.containerd.grpc.v1
time="2024-04-24T06:38:58.907376226Z" level=info msg="loading plugin \"io.containerd.nri.v1.nri\"..." type=io.containerd.nri.v1
time="2024-04-24T06:38:58.907391529Z" level=info msg="NRI interface is disabled by configuration."
time="2024-04-24T06:38:58.907694362Z" level=info msg=serving... address=/var/run/docker/containerd/containerd-debug.sock
time="2024-04-24T06:38:58.907778580Z" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock.ttrpc
time="2024-04-24T06:38:58.907845263Z" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock
time="2024-04-24T06:38:58.907919554Z" level=info msg="containerd successfully booted in 0.032851s"
time="2024-04-24T06:38:59.862766523Z" level=info msg="User namespaces: ID ranges will be mapped to subuid/subgid ranges of: dockremap"
time="2024-04-24T06:38:59.880498891Z" level=info msg="[graphdriver] trying configured driver: overlay2"
time="2024-04-24T06:38:59.931280455Z" level=info msg="Loading containers: start."
time="2024-04-24T06:39:00.043017171Z" level=info msg="Loading containers: done."
time="2024-04-24T06:39:00.050585877Z" level=warning msg="WARNING: API is accessible on http://0.0.0.0:2375 without encryption.\n Access to the remote API is equivalent to root access on the host. Refer\n to the 'Docker daemon attack surface' section in the documentation for\n more information: https://docs.docker.com/go/attack-surface/"
time="2024-04-24T06:39:00.050629745Z" level=info msg="Docker daemon" commit=fce6e0c containerd-snapshotter=false storage-driver=overlay2 version=25.0.2
time="2024-04-24T06:39:00.051336932Z" level=info msg="Daemon has completed initialization"
time="2024-04-24T06:39:00.075189899Z" level=info msg="API listen on /var/run/docker.sock"
time="2024-04-24T06:39:00.075264958Z" level=info msg="API listen on [::]:2375"
time="2024-04-24T06:39:12Z" level=info msg="Pipelines plugin request authorization." allowed=false method=HEAD plugin=pipelines uri=/_ping
time="2024-04-24T06:39:12.386312800Z" level=error msg="AuthZRequest for HEAD /_ping returned error: authorization denied by plugin pipelines: "
time="2024-04-24T06:39:12Z" level=info msg="Pipelines plugin request authorization." allowed=true method=GET plugin=pipelines uri=/_ping
time="2024-04-24T06:39:12Z" level=info msg="Container create request." ArgsEscaped=false AttachStderr=true AttachStdin=false AttachStdout=true ExposedPorts="map[]" Healthcheck="<nil>" Labels="map[org.bitbucket.pipelines.system:true]" MacAddress= NetworkDisabled=false OnBuild="[]" OpenStdin=false StdinOnce=false StopSignal= StopTimeout="<nil>" Tty=false plugin=pipelines
time="2024-04-24T06:39:12Z" level=info msg="Container create request." AutoRemove=false BlkioDeviceReadBps="[]" BlkioDeviceReadIOps="[]" BlkioDeviceWriteBps="[]" BlkioDeviceWriteIOps="[]" BlkioWeight=0 BlkioWeightDevice="[]" CPUCount=0 CPUPercent=0 CPUPeriod=0 CPUQuota=0 CPURealtimePeriod=0 CPURealtimeRuntime=0 CPUShares=0 CapAdd="[]" CapDrop="[]" Cgroup= CgroupParent= ConsoleSize="[0 0]" ContainerIDFile= CpusetCpus= CpusetMems= DNS="[]" DNSOptions="[]" DNSSearch="[]" DeviceCgroupRules="[]" Devices="[]" ExtraHosts="[host.docker.internal:10.38.245.108]" GroupAdd="[]" IOMaximumBandwidth=0 IOMaximumIOps=0 Init="<nil>" IpcMode= Isolations= KernelMemory=0 Links="[]" LogConfig="{ map[]}" MaskedPaths="[]" Memory=0 MemoryReservation=0 MemorySwap=0 MemorySwappiness=0xc00020f220 Mounts="[]" NanoCPUs=0 NetworkMode=default OomKillDisable=0xc00020f22a OomScoreAdj=0 PidMode= PidsLimit=0xc00020f230 PortBindings="map[]" Privileged=false PublishAllPorts=false ReadOnlyPaths="[]" RestartPolicy="{no 0}" Runtime= SecurityOpt="[]" ShmSize=0 StorageOpt="map[]" Sysctls="map[]" Ulimits="[]" UsernsMode= VolumeDriver= VolumesFrom="[]" plugin=pipelines
time="2024-04-24T06:39:12Z" level=info msg="Container create request." EndpointsConfig="map[]" plugin=pipelines
time="2024-04-24T06:39:12Z" level=info msg="Pipelines plugin request authorization." allowed=true method=POST plugin=pipelines uri=/v1.41/containers/create
time="2024-04-24T06:39:12.400058818Z" level=error msg="Handler for POST /v1.41/containers/create returned error: No such image: bitbucketpipelines/bitbucket-chatgpt-codereview:0.1.1"
time="2024-04-24T06:39:12Z" level=info msg="Pipelines plugin request authorization." allowed=true method=GET plugin=pipelines uri=/v1.41/info
time="2024-04-24T06:39:12Z" level=info msg="Pipelines plugin request authorization." allowed=true method=POST plugin=pipelines uri="/v1.41/images/create?fromImage=bitbucketpipelines%2Fbitbucket-chatgpt-codereview&tag=0.1.1"
time="2024-04-24T06:39:16Z" level=info msg="Container create request." ArgsEscaped=false AttachStderr=true AttachStdin=false AttachStdout=true ExposedPorts="map[]" Healthcheck="<nil>" Labels="map[org.bitbucket.pipelines.system:true]" MacAddress= NetworkDisabled=false OnBuild="[]" OpenStdin=false StdinOnce=false StopSignal= StopTimeout="<nil>" Tty=false plugin=pipelines
time="2024-04-24T06:39:16Z" level=info msg="Container create request." AutoRemove=false BlkioDeviceReadBps="[]" BlkioDeviceReadIOps="[]" BlkioDeviceWriteBps="[]" BlkioDeviceWriteIOps="[]" BlkioWeight=0 BlkioWeightDevice="[]" CPUCount=0 CPUPercent=0 CPUPeriod=0 CPUQuota=0 CPURealtimePeriod=0 CPURealtimeRuntime=0 CPUShares=0 CapAdd="[]" CapDrop="[]" Cgroup= CgroupParent= ConsoleSize="[0 0]" ContainerIDFile= CpusetCpus= CpusetMems= DNS="[]" DNSOptions="[]" DNSSearch="[]" DeviceCgroupRules="[]" Devices="[]" ExtraHosts="[host.docker.internal:10.38.245.108]" GroupAdd="[]" IOMaximumBandwidth=0 IOMaximumIOps=0 Init="<nil>" IpcMode= Isolations= KernelMemory=0 Links="[]" LogConfig="{ map[]}" MaskedPaths="[]" Memory=0 MemoryReservation=0 MemorySwap=0 MemorySwappiness=0xc000272220 Mounts="[]" NanoCPUs=0 NetworkMode=default OomKillDisable=0xc00027222a OomScoreAdj=0 PidMode= PidsLimit=0xc000272230 PortBindings="map[]" Privileged=false PublishAllPorts=false ReadOnlyPaths="[]" RestartPolicy="{no 0}" Runtime= SecurityOpt="[]" ShmSize=0 StorageOpt="map[]" Sysctls="map[]" Ulimits="[]" UsernsMode= VolumeDriver= VolumesFrom="[]" plugin=pipelines
time="2024-04-24T06:39:16Z" level=info msg="Container create request." EndpointsConfig="map[]" plugin=pipelines
time="2024-04-24T06:39:16Z" level=info msg="Pipelines plugin request authorization." allowed=true method=POST plugin=pipelines uri=/v1.41/containers/create
time="2024-04-24T06:39:16Z" level=info msg="Pipelines plugin request authorization." allowed=true method=POST plugin=pipelines uri="/v1.41/containers/5ecdbdc4094383ee770b8ee22be2811153f5dd13bfdcadeb2f35ae174b4689c7/attach?stderr=1&stdout=1&stream=1"
time="2024-04-24T06:39:16Z" level=info msg="Pipelines plugin request authorization." allowed=true method=POST plugin=pipelines uri="/v1.41/containers/5ecdbdc4094383ee770b8ee22be2811153f5dd13bfdcadeb2f35ae174b4689c7/wait?condition=next-exit"
time="2024-04-24T06:39:16Z" level=info msg="Pipelines plugin request authorization." allowed=true method=POST plugin=pipelines uri=/v1.41/containers/5ecdbdc4094383ee770b8ee22be2811153f5dd13bfdcadeb2f35ae174b4689c7/start
time="2024-04-24T06:39:16.266380692Z" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1
time="2024-04-24T06:39:16.266435975Z" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1
time="2024-04-24T06:39:16.266453453Z" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
time="2024-04-24T06:39:16.267052830Z" level=info msg="loading plugin \"io.containerd.ttrpc.v1.pause\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
time="2024-04-24T06:39:16.992248743Z" level=info msg="ignoring event" container=5ecdbdc4094383ee770b8ee22be2811153f5dd13bfdcadeb2f35ae174b4689c7 module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
time="2024-04-24T06:39:16.992271947Z" level=info msg="shim disconnected" id=5ecdbdc4094383ee770b8ee22be2811153f5dd13bfdcadeb2f35ae174b4689c7 namespace=moby
time="2024-04-24T06:39:16.992329994Z" level=warning msg="cleaning up after shim disconnected" id=5ecdbdc4094383ee770b8ee22be2811153f5dd13bfdcadeb2f35ae174b4689c7 namespace=moby
time="2024-04-24T06:39:16.992339607Z" level=info msg="cleaning up dead shim" namespace=moby
Yuriy Berdnikov April 24, 2024

here's pipeline logs

 

+ umask 000

+ GIT_LFS_SKIP_SMUDGE=1 retry 6 git clone --branch="main" --depth 50 https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/$BITBUCKET_REPO_FULL_NAME.git $BUILD_DIR
Cloning into '/opt/atlassian/pipelines/agent/build'...

+ git reset --hard d8736ea1bab42972bf65d31ae066384791bebb43
HEAD is now at d8736ea Updated pipe path

+ git config user.name bitbucket-pipelines

+ git config user.email commits-noreply@bitbucket.org

+ git config push.default current

+ git config http.${BITBUCKET_GIT_HTTP_ORIGIN}.proxy http://localhost:29418/

+ git remote set-url origin http://bitbucket.org/$BITBUCKET_REPO_FULL_NAME

+ git reflog expire --expire=all --all

+ echo ".bitbucket/pipelines/generated" >> .git/info/exclude

+ chmod 777 $BUILD_DIR


Default variables:
BITBUCKET_BRANCH
BITBUCKET_BUILD_NUMBER
BITBUCKET_CLONE_DIR
BITBUCKET_COMMIT
BITBUCKET_GIT_HTTP_ORIGIN
BITBUCKET_GIT_SSH_ORIGIN
BITBUCKET_PARALLEL_STEP
BITBUCKET_PARALLEL_STEP_COUNT
BITBUCKET_PIPELINE_UUID
BITBUCKET_PROJECT_KEY
BITBUCKET_PROJECT_UUID
BITBUCKET_REPO_FULL_NAME
BITBUCKET_REPO_IS_PRIVATE
BITBUCKET_REPO_OWNER
BITBUCKET_REPO_OWNER_UUID
BITBUCKET_REPO_SLUG
BITBUCKET_REPO_UUID
BITBUCKET_SSH_KEY_FILE
BITBUCKET_STEP_RUN_NUMBER
BITBUCKET_STEP_TRIGGERER_UUID
BITBUCKET_STEP_UUID
BITBUCKET_WORKSPACE
CI
DOCKER_HOST
PIPELINES_JWT_TOKEN

Repository variables:
BITBUCKET_ACCESS_TOKEN
OPENAI_API_KEY

Images used:
build : docker.io/library/swift@sha256:eed64f71ef1e341d3a4cdb8d73684f719c2b2db718c5beec02d47a72cb3c03f2
+ docker container run \
--volume=/opt/atlassian/pipelines/agent/build:/opt/atlassian/pipelines/agent/build \
--volume=/opt/atlassian/pipelines/agent/ssh:/opt/atlassian/pipelines/agent/ssh:ro \
--volume=/opt/atlassian/pipelines/bin/docker:/usr/local/bin/docker:ro \
--volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes \
--volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/bitbucket-chatgpt-codereview:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/bitbucket-chatgpt-codereview \
--workdir=$(pwd) \
--label=org.bitbucket.pipelines.system=true \
--env=BITBUCKET_STEP_TRIGGERER_UUID="$BITBUCKET_STEP_TRIGGERER_UUID" \
--env=BITBUCKET_REPO_FULL_NAME="$BITBUCKET_REPO_FULL_NAME" \
--env=BITBUCKET_GIT_HTTP_ORIGIN="$BITBUCKET_GIT_HTTP_ORIGIN" \
--env=BITBUCKET_PROJECT_UUID="$BITBUCKET_PROJECT_UUID" \
--env=BITBUCKET_REPO_IS_PRIVATE="$BITBUCKET_REPO_IS_PRIVATE" \
--env=BITBUCKET_WORKSPACE="$BITBUCKET_WORKSPACE" \
--env=BITBUCKET_SSH_KEY_FILE="$BITBUCKET_SSH_KEY_FILE" \
--env=BITBUCKET_REPO_OWNER_UUID="$BITBUCKET_REPO_OWNER_UUID" \
--env=BITBUCKET_BRANCH="$BITBUCKET_BRANCH" \
--env=BITBUCKET_REPO_UUID="$BITBUCKET_REPO_UUID" \
--env=BITBUCKET_PROJECT_KEY="$BITBUCKET_PROJECT_KEY" \
--env=BITBUCKET_PARALLEL_STEP_COUNT="$BITBUCKET_PARALLEL_STEP_COUNT" \
--env=BITBUCKET_REPO_SLUG="$BITBUCKET_REPO_SLUG" \
--env=CI="$CI" \
--env=BITBUCKET_REPO_OWNER="$BITBUCKET_REPO_OWNER" \
--env=BITBUCKET_PARALLEL_STEP="$BITBUCKET_PARALLEL_STEP" \
--env=BITBUCKET_STEP_RUN_NUMBER="$BITBUCKET_STEP_RUN_NUMBER" \
--env=BITBUCKET_BUILD_NUMBER="$BITBUCKET_BUILD_NUMBER" \
--env=BITBUCKET_GIT_SSH_ORIGIN="$BITBUCKET_GIT_SSH_ORIGIN" \
--env=BITBUCKET_PIPELINE_UUID="$BITBUCKET_PIPELINE_UUID" \
--env=BITBUCKET_COMMIT="$BITBUCKET_COMMIT" \
--env=BITBUCKET_CLONE_DIR="$BITBUCKET_CLONE_DIR" \
--env=PIPELINES_JWT_TOKEN="$PIPELINES_JWT_TOKEN" \
--env=BITBUCKET_STEP_UUID="$BITBUCKET_STEP_UUID" \
--env=BITBUCKET_DOCKER_HOST_INTERNAL="$BITBUCKET_DOCKER_HOST_INTERNAL" \
--env=DOCKER_HOST="tcp://host.docker.internal:2375" \
--env=BITBUCKET_PIPE_SHARED_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes" \
--env=BITBUCKET_PIPE_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/bitbucket-chatgpt-codereview" \
--env=BITBUCKET_ACCESS_TOKEN="$BITBUCKET_ACCESS_TOKEN" \
--env=MODEL="gpt-4" \
--env=OPENAI_API_KEY="$OPENAI_API_KEY" \
--add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \
bitbucketpipelines/bitbucket-chatgpt-codereview:0.1.1
Unable to find image 'bitbucketpipelines/bitbucket-chatgpt-codereview:0.1.1' locally
0.1.1: Pulling from bitbucketpipelines/bitbucket-chatgpt-codereview
13808c22b207: Pulling fs layer
6c9a484475c1: Pulling fs layer
fb408522af25: Pulling fs layer
54ac57f98245: Pulling fs layer
de5947f22207: Pulling fs layer
c597a79123b2: Pulling fs layer
5812ba1379dd: Pulling fs layer
b8a9afc06d39: Pulling fs layer
66e344f8490c: Pulling fs layer
c597a79123b2: Waiting
5812ba1379dd: Waiting
de5947f22207: Waiting
b8a9afc06d39: Waiting
66e344f8490c: Waiting
54ac57f98245: Waiting
6c9a484475c1: Verifying Checksum
6c9a484475c1: Download complete
fb408522af25: Download complete
13808c22b207: Verifying Checksum
13808c22b207: Download complete
54ac57f98245: Verifying Checksum
54ac57f98245: Download complete
de5947f22207: Verifying Checksum
de5947f22207: Download complete
c597a79123b2: Verifying Checksum
c597a79123b2: Download complete
b8a9afc06d39: Download complete
5812ba1379dd: Verifying Checksum
5812ba1379dd: Download complete
66e344f8490c: Verifying Checksum
66e344f8490c: Download complete
13808c22b207: Pull complete
6c9a484475c1: Pull complete
fb408522af25: Pull complete
54ac57f98245: Pull complete
de5947f22207: Pull complete
c597a79123b2: Pull complete
5812ba1379dd: Pull complete
b8a9afc06d39: Pull complete
66e344f8490c: Pull complete
Digest: sha256:bc6bfa835b9d4782e41fd244a1ced339e82230945d22791ddb980b8cde7d64b3
Status: Downloaded newer image for bitbucketpipelines/bitbucket-chatgpt-codereview:0.1.1
[31m✖ File pipe.yml not found. Please give correct path to file. [0m
Searching for files matching artifact pattern .bitbucket/pipelines/generated/pipeline/pipes/**

Searching for test report files in directories named [test-results, failsafe-reports, test-reports, TestResults, surefire-reports] down to a depth of 4
Finished scanning for test reports. Found 0 test report files.
Merged test suites, total number tests is 0, with 0 failures and 0 errors.
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 26, 2024

Hi @Yuriy Berdnikov 

Thanks for the detailed feedback and contribution to the community. Yep, it's a bug. We have fixed and released a new version of the bitbucker-chatgpt-codereview pipe:

atlassian/bitbucket-chatgpt-codereview:0.1.2

 

Welcome you feedback or feature request!

 

Best regards,
Oleksandr Kyrdan

Like Yuriy Berdnikov likes this
Yuriy Berdnikov April 26, 2024

thanks, it works now !

Few suggestions:

- would be great to add option to exclude files, for example, I have an iOS project and there's a project file that we want to ignore.

- custom prompt support - as an option, so I can specify additional text to the original prompt

In any case - thanks for the great pipeline !

Like Oleksandr Kyrdan likes this
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 26, 2024

Yep, good idea.

For the custom prompt - Have you tried MESSAGE variable.
Content of the message object to extend system prompt. If provided, users MESSAGE will extend default pipe’s messages. 

Like Yuriy Berdnikov likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events