Gihtub cloud build runs fail

1,458 views
Skip to first unread message

Peter Macherey

unread,
Nov 2, 2020, 1:26:34 PM11/2/20
to Google Cloud Developers
Hey there,
we are having problems with our cloud build runs since a few days. Suddenly they stopped working without any change on the cloud build configuration. Our runs are triggered on PR creation through the github cloud build app. The error itself is clear and I also understand the reason but why its happening is quite strange. It seems that since last week the source fetched by the cloud build run is the github repo and not the storage object as it was previously. Since we are later initializing the repo again now its throws an error that the repo is already initialized.

Here are two log from different runs by the same trigger but with different FETCHSOURCE steps:

1. Log (success)

FETCHSOURCE
/ [0 files][ 0.0 B/ 5.4 MiB]
/ [1 files][ 5.4 MiB/ 5.4 MiB]
Operation completed over 1 objects/5.4 MiB.
BUILD
Starting Step #0 - "Decrypt git deploy key"
Step #0 - "Decrypt git deploy key": Already have image (with digest): gcr.io/cloud-builders/gcloud
Finished Step #0 - "Decrypt git deploy key"
Starting Step #1 - "Setup git repository"
Step #1 - "Setup git repository": Already have image (with digest): gcr.io/cloud-builders/git
Step #1 - "Setup git repository": Initialized empty Git repository in /workspace/.git/
Step #1 - "Setup git repository": Warning: Permanently added 'github.com,xxxx' (RSA) to the list of known hosts.
Step #1 - "Setup git repository": From github.com:xxxx/xxxx
Step #1 - "Setup git repository": * branch xxxx    -> FETCH_HEAD
Step #1 - "Setup git repository": * branch xxxx -> FETCH_HEAD
Step #1 - "Setup git repository": * [new branch] develop -> origin/develop
Finished Step #1 - "Setup git repository"

2. Log (fail)
FETCHSOURCE
Initialized empty Git repository in /workspace/.git/
 * branch            xxxxx -> FETCH_HEAD
HEAD is now at xxxxx Merge branch 'dependabot/pip/xxxx/ingress/pydantic-1.7.2' of github.com:xxxx/xxxx into dependabot/pip/xxxx/ingress/pydantic-1.7.2
BUILD
Starting Step #0 - "Decrypt git deploy key"
Step #0 - "Decrypt git deploy key": Already have image (with digest): gcr.io/cloud-builders/gcloud
Finished Step #0 - "Decrypt git deploy key"
Starting Step #1 - "Setup git repository"
Step #1 - "Setup git repository": Already have image (with digest): gcr.io/cloud-builders/git
Step #1 - "Setup git repository": fatal: remote origin already exists.
Step #1 - "Setup git repository": Reinitialized existing Git repository in /workspace/.git/
Finished Step #1 - "Setup git repository"
ERROR
ERROR: build step 1 "gcr.io/cloud-builders/git" failed: step exited with non-zero status: 128

Does anyone came across this problem and knows why the source suddenly changed?Any help appreciated here :)

best regards 
Peter

Elliott (Google Cloud Platform Support)

unread,
Nov 2, 2020, 6:24:06 PM11/2/20
to Google Cloud Developers
Hello,

I was unable to find a common issue relating to your build. To best address your build errors, please open a Google Issue Tracker so that we may share project information to find clues as to why this is happening as Google Groups are meant for general discussions.
Reply all
Reply to author
Forward
0 new messages