Description
I've ran into this when deploying the Go Playground with Go 1.11.1 recently (see CL 140097), where the cloud build failed because it took more than the default 10 minute timeout:
ERROR: (gcloud.app.deploy) Cloud build failed. Check logs at https://console.cloud.google.com Failure status: UNKNOWN: Error Response: [4] DEADLINE_EXCEEDED
In the recent past, some builds have taken around 9~ minutes. They were faster earlier on.
People have run into the 10 minute timeout in other contexts too. E.g., see https://stackoverflow.com/questions/50046545/google-app-engine-build-timed-out-during-deployment.
For now, this issue is to gather data and see if this keeps happening. We can then decide on how to best deal with it. If you run into this, please post data here. /cc @bradfitz @andybons
Workaround
The easiest temporary workaround I'm currently aware of is to increase the timeout before the gcloud app deploy
step. For example:
gcloud config set app/cloud_build_timeout 900 # 15 mins
Note that it's a global config value.