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

fix(semver): use semver util to check version upgrades #1084

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

tthvo
Copy link
Member

@tthvo tthvo commented Aug 10, 2023

Welcome to Cryostat! 👋

Before contributing, make sure you have:

  • Read the contributing guidelines
  • Linked a relevant issue which this PR resolves
  • Linked any other relevant issues, PR's, or documentation, if any
  • Resolved all conflicts, if any
  • Rebased your branch PR on top of the latest upstream main branch
  • Attached at least one of the following labels to the PR: [chore, ci, docs, feat, fix, test]
  • Signed all commits using a GPG signature

To recreate commits with GPG signature git fetch upstream && git rebase --force --gpg-sign upstream/main


Related to #971

Description of the change:

Use semver package to reliably compare semantic versions.

Motivation for the change:

Previously, using the trick major * 100 + minor * 10 + patch, which will suffer incorrect behavior if the comparing between, for example, 1.11.0 and 0.43.0.

@tthvo tthvo added the fix label Aug 10, 2023
@tthvo tthvo requested a review from ebaron as a code owner August 10, 2023 21:33
@github-actions github-actions bot added the needs-triage Needs thorough attention from code reviewers label Aug 10, 2023
@mergify mergify bot added the safe-to-test label Aug 10, 2023
@tthvo tthvo removed the needs-triage Needs thorough attention from code reviewers label Aug 10, 2023
@tthvo tthvo force-pushed the fix-semver-compare branch 2 times, most recently from 07550f2 to 6ecaf75 Compare August 10, 2023 22:00
@cryostatio cryostatio deleted a comment from github-actions bot Aug 10, 2023
@github-actions
Copy link

Test image available:

CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat-web:pr-1084-6ecaf7564d226d0c96ee1b2cd9b0ea50450863b4 sh smoketest.sh

@andrewazores
Copy link
Member

rebase please

@github-actions
Copy link

Test image available:

CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat-web:pr-1084-d1dfc64ec29268e53af401c283f2f10e3d1a7ba9 sh smoketest.sh

@andrewazores andrewazores merged commit dccf9e6 into cryostatio:main Aug 11, 2023
19 checks passed
@tthvo tthvo deleted the fix-semver-compare branch August 11, 2023 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants