egeria icon indicating copy to clipboard operation
egeria copied to clipboard

Add reporting of git version (last commit) by egeria server

Open planetf1 opened this issue 5 years ago • 9 comments

It would be really useful to be able to check what exact version an egeria server is at when debugging problems / capturing info or during development

Some tools like helm make his easy to check on the command line - and will report server and client version - for example:

➜  atlas git:(helm32) ✗ helm version                                                                                                                                   git:(helm32|✚1
Client: &version.Version{SemVer:"v2.13.1", GitCommit:"618447cbf203d147601b4b9bd7f8c37a5d39fbb4", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.13.1", GitCommit:"618447cbf203d147601b4b9bd7f8c37a5d39fbb4", GitTreeState:"clean"}

We could do something similar in Egeria -

  • report git version as part of server origin?
  • ensure version gets written to audit/debug output
  • capture in client code ...

planetf1 avatar Apr 17 '19 11:04 planetf1

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 20 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar May 28 '20 00:05 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 20 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 01 '20 00:08 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 20 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 03 '20 00:10 github-actions[bot]

This information has been asked for in relation to Dino so it would be useful if we can capture more git version and build information that can be accessed through (prob.) the platform services API.

grahamwallis avatar Oct 05 '20 08:10 grahamwallis

In open-metadata-resources/open-metadata-deployment/docker/egeria I make use of a 'git-commit-id-plugin' to pull out some git information that is then fed into the docker build so that we have metadata stored within the image.

There's docs at https://github.com/git-commit-id/git-commit-id-maven-plugin/blob/master/maven/docs/using-the-plugin.md which show an example of creating a git.properties, that we could package up.

That all being said I'm continuing to find maven awkward in numerous areas. Gradle is work in progress, and it looks like another approach is viable there -> https://villim.github.io/get-git-commit-info-in-gradle with the key being the 'grgit' library

planetf1 avatar Oct 05 '20 16:10 planetf1

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 20 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Dec 05 '20 00:12 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 20 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 09 '21 00:02 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 20 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Apr 24 '21 00:04 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 20 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 02 '21 00:08 github-actions[bot]