Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: set up release-please for updating cloudbuild yamls #700

Closed
wants to merge 1 commit into from

Conversation

mpeddada1
Copy link
Contributor

@mpeddada1 mpeddada1 commented Oct 24, 2023

For #691

@mpeddada1 mpeddada1 requested a review from a team as a code owner October 24, 2023 15:58
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Oct 24, 2023
@@ -14,7 +14,7 @@

timeout: 7200s # 2 hours
substitutions:
_JAVA_SHARED_CONFIG_VERSION: '1.6.0'
_JAVA_SHARED_CONFIG_VERSION: '1.6.0' # {x-version-update:google-cloud-shared-config:released}
Copy link
Member

@burkedavison burkedavison Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this and the other need to be <!-- {x-version-update:google-cloud-shared-config:current} -->? Otherwise, how is the release please PR check on the docker image existing going to pass?

In other words, won't this mean that JAVA_SHARED_CONFIG_VERSION is always one version behind what we want it to be in the release PRs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good question! The reason behind this change is to avoid pushing new images for SNAPSHOT updates. (Please correct me if I'm wrong) My understanding is that the released corresponds to the first item in the value which gets updated when a new release PR is opened (e.g. #694). As a next step, I'm considering changing the Cloud Build for the docker image to be triggered based on a push to the release-please--branches--main so that we don't have to wait for the release PR to be merged before the docker image is pushed. However, opening to hearing alternative solutions.

Copy link
Contributor Author

@mpeddada1 mpeddada1 Oct 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Update] As discussed offline with @burkedavison, setting the job to re-push on a commit can lead to the image being pushed multiple times on the same PR. This can result in the blocking docker validation check showing false positive results (e.g it may verify for the old image but not the recently pushed one). Instead of having a separate check on the release PR to verify for the presence of the docker image, one option being considered is to have the release job wait for the docker image to be available before publishing the maven artifact.

@mpeddada1 mpeddada1 added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Oct 30, 2023
@mpeddada1
Copy link
Contributor Author

Closing in favor of #720 and #729.

@mpeddada1 mpeddada1 closed this Dec 11, 2023
@mpeddada1 mpeddada1 deleted the automate-docker-update branch December 11, 2023 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge Indicates a pull request not ready for merge, due to either quality or timing. size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants