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

versioncheck: fix parsing of snapshot release versions #24286

Merged
merged 2 commits into from Mar 13, 2023

Conversation

tklauser
Copy link
Member

For the Cilium v1.14 release cycle we started doing snapshot releases which are tagged in the format vX.Y.Z-snapshotN. Let versioncheck.Version accept this version format.

For cilium/cilium-cli#1448

First commit cleans up the test failure reporting in the versioncheck package. Second commit fixes parsing of the version.

Rather than enumerating the test cases and having to look up the exact
version and constraint, let's report this information as part of the
test failure.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser added the release-note/misc This PR makes changes that have no direct user impact. label Mar 10, 2023
@tklauser tklauser requested a review from a team as a code owner March 10, 2023 09:34
@tklauser tklauser requested a review from thorn3r March 10, 2023 09:34
For the Cilium v1.14 release cycle we started doing snapshot releases
which are tagged in the format vX.Y.Z-snapshotN. Let
versioncheck.Version accept this version format.

For cilium/cilium-cli#1448

Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser force-pushed the pr/tklauser/versioncheck-allow-snapshot branch from 40e11ec to d7f973b Compare March 10, 2023 09:44
@tklauser
Copy link
Member Author

/test

Copy link
Contributor

@thorn3r thorn3r left a comment

Choose a reason for hiding this comment

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

looks great! 👍

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Mar 13, 2023
@tklauser tklauser merged commit 7087445 into master Mar 13, 2023
@tklauser tklauser deleted the pr/tklauser/versioncheck-allow-snapshot branch March 13, 2023 14:35
tklauser added a commit to cilium/cilium-cli that referenced this pull request Mar 14, 2023
…k fix

cilium-cli uses the github.com/cilium/cilium/pkg/versioncheck package to
parse Cilium versions. In the latest version, this package was fixed to
allow parsing snapshot release versions, cf.
cilium/cilium#24286

For #1448

Signed-off-by: Tobias Klauser <tobias@cilium.io>
tklauser added a commit to cilium/cilium-cli that referenced this pull request Mar 15, 2023
…k fix

cilium-cli uses the github.com/cilium/cilium/pkg/versioncheck package to
parse Cilium versions. In the latest version, this package was fixed to
allow parsing snapshot release versions, cf.
cilium/cilium#24286

For #1448

Signed-off-by: Tobias Klauser <tobias@cilium.io>
michi-covalent pushed a commit to michi-covalent/cilium that referenced this pull request May 30, 2023
…k fix

cilium-cli uses the github.com/cilium/cilium/pkg/versioncheck package to
parse Cilium versions. In the latest version, this package was fixed to
allow parsing snapshot release versions, cf.
cilium#24286

For cilium#1448

Signed-off-by: Tobias Klauser <tobias@cilium.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. 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

2 participants