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: Don't fail on version comparison #1175

Merged
merged 2 commits into from
Apr 13, 2021
Merged

fix: Don't fail on version comparison #1175

merged 2 commits into from
Apr 13, 2021

Conversation

tolusha
Copy link
Collaborator

@tolusha tolusha commented Apr 13, 2021

Signed-off-by: Anatolii Bazko abazko@redhat.com

What does this PR do?

If next-update-info.json contains some invalid version under latestVersion field then chectl fails on checking update.
This PR is intended to fix the problem by catching version comparison and providing default behavior for such cases.

What issues does this PR fix or reference?

eclipse-che/che#19562

How to test this PR?

  1. Update next-update-info.json: {"latestVersion":"undefined","lastCheck":1618297305982}
  2. Try server:deploy command

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@tolusha tolusha changed the title Don't fail on version comparison fix: Don't fail on version comparison Apr 13, 2021
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mmorhun, tolusha

The full list of commands accepted by this bot can be found 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

@tolusha tolusha merged commit 950a1f6 into master Apr 13, 2021
@tolusha tolusha deleted the fixsemver branch April 13, 2021 11:06
@che-bot che-bot added this to the 7.29 milestone Apr 13, 2021
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.

4 participants