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

Copy release notes from previous release also when it's a staged rollout #1105

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

panpeter
Copy link
Contributor

@panpeter panpeter commented Nov 1, 2023

This PR updates the logic related to reusing release notes.

Previously GPP was reusing the latest release notes only in case of a full rollout. Now GPP will reuse the latest release notes also when it's a staged rollout release.

Discussed here: #763 (comment)

✅ Tests pass
✅ Checked with real project
✅ Documentation updated

@panpeter panpeter requested a review from SUPERCILEX as a code owner November 1, 2023 08:40
@SUPERCILEX
Copy link
Collaborator

Can you confirm the scenarios you've tested? I'm specifically interested in making sure release notes from past releases are still used if there are none in staging.

@@ -71,8 +71,6 @@ internal class DefaultTrackManager(
createDefaultTrack(config)
}

track.maybeCopyChangelogFromPreviousRelease(config.trackName)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Dumb question cuz I don't remember how anything works, but why was this removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Instead of calling Track.maybeCopyChangelogFromPreviousRelease we now call TrackRelease.maybeCopyChangelogFromPreviousRelease in places where we create a TrackRelease. So this functionality is still there, just in different places.

@panpeter
Copy link
Contributor Author

panpeter commented Nov 2, 2023

Can you confirm the scenarios you've tested? I'm specifically interested in making sure release notes from past releases are still used if there are none in staging.

I've primarily relied on Track update uses existing release notes when no local ones are available test. For example, if you comment out maybeCopyChangelogFromPreviousRelease the test does not pass. So we should be covered 😊

@SUPERCILEX SUPERCILEX merged commit f3d3eef into Triple-T:master Nov 2, 2023
4 checks passed
@SUPERCILEX
Copy link
Collaborator

Alright sounds good, thanks! A snapshot build will be published in a bit. If you can make sure everything works with that build, I'd appreciate it.

@panpeter
Copy link
Contributor Author

panpeter commented Nov 3, 2023

Great, thanks!

If you can make sure everything works with that build, I'd appreciate it.

Sure. We'll run a release on Monday. I'll let you know how it goes 👍

@panpeter
Copy link
Contributor Author

panpeter commented Nov 6, 2023

@SUPERCILEX , we've switched to the snapshot version and all works great. The release notes were copied from our previous releases 😊

@SUPERCILEX
Copy link
Collaborator

Sweet, fired off a release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants