This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
Switch Cloud Run deployed revision prefix to build ID #705
Labels
component: delivery
Related to automation, testing, deployment of the application.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Proposal
Currently, the deploy.cloudbuild.yaml uses the Pub/Sub messageId as the revision prefix. However, this messageId is not generally useful to look up details about the process separate from acking the message in the event of a retry loop. We should definitely log it as part of the build if Cloud Build doesn't do that for us.
However, what we don't have right now is provenance from the Cloud Run revision to the build that ran the deployment. The build context for the container image is available to Cloud Run, but since we have a split build & deploy process, we don't have a direct connection to the deploy build and it's logs.
It would be great if the revision where either:
Part of why we aren't using Build ID is the potential for revision name character limits not being large enough to encompass a UUID. The allowed revision length has changed multiple times in the past, we should verify current state.
Problems this will solve
The text was updated successfully, but these errors were encountered: