Skip to content

DLPX-74854 Update /usr/bin/get-appliance-version to also report the h… #274

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

Merged
merged 1 commit into from
Mar 22, 2021

Conversation

skinner-m-c
Copy link
Contributor

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build was run locally and any changes were pushed
  • Lint has passed locally and any fixes were made for failures

Test run

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Current script does not report the hotfix version.
Issue Number: DLPX-74854

What is the new behavior?

Due to changes in delphix/appliance-build#507 and with ongoing work in hotfixes, the version is stored in a ZFS property. For the sake of consistency the hotfix version should be reported in this tool. Because we are not changing the Delphix version string, the hotfix version is not included in the version string, but is a separate value.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@skinner-m-c skinner-m-c requested a review from grwilson March 18, 2021 18:56
Copy link
Contributor

@prakashsurya prakashsurya left a comment

Choose a reason for hiding this comment

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

Since the hotfix-version field is completely separate from the current-version field, and the implementation of retrieving and parsing is independent, how would you feel about creating a new script (e.g. get-hotfix-version) to retrieve the hotfix version?

I might be able to be convinced otherwise, but I sort of feel that the two versions are distinct enough, that perhaps using a separate script might be more appropriate. This might also make it a little more apparent when reading consumer logic, that we're getting the hotfix version; e.g. we'd see get-hotfix-version rather than get-appliance-version -f, which to me is easier to immediately see what "version" we're retrieving.

What do you think?

@skinner-m-c
Copy link
Contributor Author

@prakashsurya I am open to a new script. I'll wait a little before proceeding to see if others have other ideas and opinions.

@skinner-m-c skinner-m-c force-pushed the ms/DLPX-74854-hotfix-ver branch from e5a8c0e to 2d1de9f Compare March 19, 2021 19:32
@skinner-m-c skinner-m-c force-pushed the ms/DLPX-74854-hotfix-ver branch 2 times, most recently from e165a57 to 631d619 Compare March 19, 2021 19:59
@skinner-m-c skinner-m-c force-pushed the ms/DLPX-74854-hotfix-ver branch 3 times, most recently from 3af6d40 to 1747766 Compare March 19, 2021 21:09
Copy link
Contributor

@prakashsurya prakashsurya left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you.

@skinner-m-c skinner-m-c force-pushed the ms/DLPX-74854-hotfix-ver branch from 1747766 to 1adb891 Compare March 19, 2021 21:10
@skinner-m-c skinner-m-c requested a review from pzakha March 19, 2021 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants