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: one time manual docker images update for shared-deps 3.21.0 release #2334

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

mpeddada1
Copy link
Contributor

@mpeddada1 mpeddada1 commented Jan 3, 2024

Preparing docker images for #2290. Similar to the observations in googleapis/java-shared-config#730, release-please doesn't update these files despite the following configs being applied:

  • Inline annotation with x-version-update:<artifact-name>:released
  • Addition of .cloudbuild/ yamls files to extraFiles parameter in release-please.yaml (line)

These files were updated after the the release PR was opened. In the case of java-shared-config, the update to these extra files didn't happen until a new release PR was opened. Created a follow-up task to verify the automation in the next release #2327.

@mpeddada1 mpeddada1 requested a review from a team as a code owner January 3, 2024 17:47
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Jan 3, 2024
@@ -14,7 +14,7 @@

timeout: 7200s # 2 hours
substitutions:
_SHARED_DEPENDENCIES_VERSION: '3.20.0' # {x-version-update:google-cloud-shared-dependencies:released}
_SHARED_DEPENDENCIES_VERSION: '3.21.0' # {x-version-update:google-cloud-shared-dependencies:released}
Copy link
Member

Choose a reason for hiding this comment

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

Could you remind me why this one is released but the above two are current?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The cloudbuild.yaml file is used for the Cloud Build trigger that actually publishes the docker images with every release whereas the cloudbuild-test-*.yaml files are mainly for verifying the docker images locally (therefore, they're also updated to SNAPSHOT). Since publishing the docker images for SNAPSHOT versions would be redundant, we only update cloudbuild when a release takes place.

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 being said, we only trigger the cloud build job when a specific github tag is pushed so the docker image will only be pushed when a non-SNAPSHOT release PR is merged. The main purpose of the versioning is mostly to reduce the cognitive load in tracking which image tags are pushed without having to look at the cloud build trigger configurations.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@burkedavison As discussed offline, modified the use of released to current. This will mitigate the risk of a manual trigger of the cloud build job accidentally overriding a published image.

@mpeddada1 mpeddada1 requested a review from burkedavison January 3, 2024 18:07
Copy link

sonarqubecloud bot commented Jan 3, 2024

Quality Gate Passed Quality Gate passed for 'gapic-generator-java-root'

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

sonarqubecloud bot commented Jan 3, 2024

Quality Gate Passed Quality Gate passed for 'java_showcase_integration_tests'

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@mpeddada1 mpeddada1 merged commit dcaffd7 into main Jan 3, 2024
37 of 39 checks passed
@mpeddada1 mpeddada1 deleted the docker-image-3.21.0-update branch January 3, 2024 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants