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

Generate Changelog - Release Automation: Add cloud build target for release builds #2884

Merged
merged 12 commits into from
Jan 10, 2023

Conversation

mangalpalli
Copy link
Contributor

What type of PR is this?

Uncomment only one /kind <> line, press enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking
/kind bug
/kind cleanup
/kind documentation

/kind feature

/kind hotfix

What this PR does / Why we need it:

Created a Make target in release.mk that manually submits a cloud build job
The cloud build job generates the CHANGELOG file for both RC and release.
The file is stored in a Google Cloud storage bucket so that we can retrieve it to be added to our PR for later.

Which issue(s) this PR fixes:

Closes #2460

Special notes for your reviewer:

NA

@mangalpalli mangalpalli added this to the 1.29.0 milestone Jan 3, 2023
@mangalpalli mangalpalli self-assigned this Jan 3, 2023
@mangalpalli mangalpalli added the kind/feature New features for Agones label Jan 3, 2023
@mangalpalli mangalpalli marked this pull request as ready for review January 3, 2023 15:56
@google-oss-prow google-oss-prow bot requested a review from dzlier-gcp January 3, 2023 15:56
@mangalpalli mangalpalli changed the title Issue 2460 Generate Changelog - Release Automation: Add cloud build target for release builds Jan 3, 2023
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: d668c2ce-b66a-4690-9278-9b48d2fea498

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 990899b7-0e99-41d5-95a7-229af18a551e

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2884/head:pr_2884 && git checkout pr_2884
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.29.0-b07ae49-amd64

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: f5c1d49b-7382-4b99-bdb7-f00d147c670e

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2884/head:pr_2884 && git checkout pr_2884
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.29.0-7e60d8d-amd64

Copy link
Member

@markmandel markmandel left a comment

Choose a reason for hiding this comment

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

I'll take this for a run to test - but at first glance, this looks great!

@@ -34,8 +34,8 @@ and copy it into a release issue. Fill in relevant values, found inside {}
- [ ] `git checkout main && git pull --rebase upstream main`
- [ ] If full release, run `make site-deploy SERVICE={version}-1`, (replace . with -)
- For example, if you are creating the 1.18.0 release, then you would deploy the 1-17-0 service (release minus one, and then replace dots with dashes).
- [ ] Run `make gen-changelog` to generate the CHANGELOG.md (if release candidate
`make gen-changelog RELEASE_VERSION={version}-rc`). You will need your
- [ ] Run `make build-release` to generate the CHANGELOG.md (if release candidate
Copy link
Member

Choose a reason for hiding this comment

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

We should also add a note about grabbing the CHANGELOG from the GCS bucket and putting it locally.

If you like

https://github.com/googleforgames/quilkin/blob/192376f579b3d0ee9001a25feb2ce7a1791364de/build/templates/release-issue.md?plain=1#L20-L21

You could steal that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Member

Choose a reason for hiding this comment

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

This seems like the wrong order 😄 you've got notes to download the artifacts before you run the make build-release 😁

Copy link
Member

Choose a reason for hiding this comment

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

Just gently bumping this change - only thing blocking this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed it. :)

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 6e06d42d-908f-4bad-b3bd-1c40e191edc2

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: b36a2635-8c85-43da-9829-c8eaaf1067cc

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2884/head:pr_2884 && git checkout pr_2884
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.29.0-36d4135-amd64

@markmandel
Copy link
Member

Just set this up and ran this locally - had to make some permission changes / setup the secret, but all worked 👍🏻

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: d37115e5-ab9f-456a-9b16-62b6a57de8ff

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2884/head:pr_2884 && git checkout pr_2884
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.29.0-d13e616-amd64

@google-oss-prow google-oss-prow bot added the lgtm label Jan 10, 2023
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mangalpalli, markmandel

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@markmandel markmandel enabled auto-merge (squash) January 10, 2023 16:05
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 0c5f9a8e-a45e-44ee-81fe-87d693f6787f

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2884/head:pr_2884 && git checkout pr_2884
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.29.0-7e1438c-amd64

@markmandel markmandel merged commit 52889ee into googleforgames:main Jan 10, 2023
gongmax pushed a commit to gongmax/agones that referenced this pull request Jan 11, 2023
…elease builds (googleforgames#2884)

* Release target for cloud build job

* Added Cloudbuild File
* changing env variables
* changelog gen changes
* Handling CHANGELOG generation for both the release and RC
* Updating release document to incorporate new CHANGELOG generation make target
* Removed testing changes
* Updated release doc
* review changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Release Automation: Add cloud build target for release builds
3 participants