Orchestrator: --version option does not return easily understandable version number

Description

When using the option --version on the Orchestrator binary included in the Percona Distribution, the sha that identifies the latest commit is returned:

/usr/bin/orchestrator --version
a48d8b288cef64ac49b2f20c17cca828c13e87cf

This is useful because it lets you understand the latest commit that is included in the build.
However, at the same time, it would be useful that the exact version number is printed, example:

/usr/bin/orchestrator --version
3.2.6-2

This would simplify user life.

Something even more advanced would be to do in a similar way to what we are doing with Percona Server, e.g, add the "version", the specific Percona "release" , and also the GitHub's tag, e.g.

Ver 3.2.6-x ... Release 'x', Revision 'tag'

In the rpm, we are already adding the -x, where x is in Percona Distribution for MySQL v8.0.28 is "2" - https://www.percona.com/downloads/percona-distribution-mysql-ps/LATEST/#

Thanks,

Environment

None

AFFECTED CS IDs

CS0028651

Attachments

2
  • 19 Jul 2022, 07:54 AM
  • 15 Jul 2022, 06:23 AM

Smart Checklist

Activity

Show:

Vadim Yalovets July 21, 2022 at 7:33 PM

Packages are replaced by an improved variant.

Evgeniy Patlan July 12, 2022 at 7:09 AM

Hi ,
Yes we use ./script/build
https://github.com/percona/orchestrator-packaging/blob/main/percona-orchestrator.spec#L28
We can try to change it to build script from root directory but according to documentation currently we are using the correct script
https://github.com/openark/orchestrator/blob/master/docs/build.md

Done

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Smart Checklist

Created July 11, 2022 at 3:12 PM
Updated May 22, 2024 at 11:09 AM
Resolved August 2, 2022 at 9:11 PM

Flag notifications