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

contrib: Add support for snapshot releases #24092

Merged
merged 2 commits into from
Mar 3, 2023

Conversation

joestringer
Copy link
Member

@joestringer joestringer commented Mar 1, 2023

Some of the scripts already had some 'snapshot' version/tag support already, this fixes up the remaining instances.

  • contrib: Support vX.Y.Z-snapshot.W versions
  • contrib: Fix incorrect relnotes for snapshots

Used to generate #24091.

Update remaining scripts that don't support `-snapshot` versions.

Previously the CRD schema generation step could crash out at determining
the CRD schema versions for a prerelease version. This crash would be
caused by attempting to find the CRD schema version on the branch
corresponding to the upcoming prerelease build, but that branch didn't
yet exist. Fix it by reverting to generating CRD schema only for
existing branches if this is a prerelease where a branch doesn't exist
yet.

Signed-off-by: Joe Stringer <joe@cilium.io>
Previously we didn't pass the "previous branch" parameter to the release
notes script for prereleases, which somehow ended up causing some PRs to
show up in the changelog if they were merged after the previous feature
freeze. In this case, figure out when there will be a minor version
change and pass the prior branch into the release notes script to avoid
advertising such features as coming new in snapshots or RCs.

Signed-off-by: Joe Stringer <joe@cilium.io>
@joestringer joestringer requested a review from a team as a code owner March 1, 2023 04:49
@joestringer joestringer added the release-note/misc This PR makes changes that have no direct user impact. label Mar 1, 2023
@joestringer joestringer requested review from nebril and aanm March 1, 2023 04:49
@maintainer-s-little-helper maintainer-s-little-helper bot added dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. and removed dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Mar 1, 2023
Copy link
Member

@aanm aanm left a comment

Choose a reason for hiding this comment

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

The changes in this PR alone LGTM. I've left some comments in cilium/release#96

@joestringer joestringer merged commit 1f05f9d into cilium:master Mar 3, 2023
@joestringer joestringer deleted the dev/release-snapshot branch March 3, 2023 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants