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

feat(about): reimplement git build info in /health #589

Merged
merged 5 commits into from
Aug 29, 2024

Conversation

andrewazores
Copy link
Member

@andrewazores andrewazores commented Jul 31, 2024

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 #550

Description of the change:

Stores the output of git rev-parse in META-INF/gitinfo similar to what the 2.x build did with git describe. Then, GET /health includes this string in its output as a nested JSON property, rather than replacing the version string.

Motivation for the change:

Easier identification of development builds and linking to exact sources for all builds.

How to manually test:

  1. Check out and build PR
  2. ./smoketest.bash -Ok
  3. http :8080/health

@github-actions github-actions bot added the needs-triage Needs thorough attention from code reviewers label Jul 31, 2024
@mergify mergify bot added the safe-to-test label Jul 31, 2024
@andrewazores andrewazores added feat New feature or request and removed needs-triage Needs thorough attention from code reviewers labels Jul 31, 2024
@andrewazores andrewazores changed the title feat(about): reimplement 'git describe' output for /health version string feat(about): reimplement 'git describe' output in /health Jul 31, 2024
@andrewazores andrewazores changed the title feat(about): reimplement 'git describe' output in /health feat(about): reimplement git build info in /health Jul 31, 2024
@andrewazores andrewazores marked this pull request as ready for review July 31, 2024 15:36
@andrewazores andrewazores requested a review from a team as a code owner July 31, 2024 15:36
aali309
aali309 previously approved these changes Jul 31, 2024
Copy link
Contributor

@aali309 aali309 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 to me.

@andrewazores
Copy link
Member Author

/build_test

Copy link

Workflow started at 8/29/2024, 12:12:29 PM. View Actions Run.

Copy link

No OpenAPI schema changes detected.

Copy link

No GraphQL schema changes detected.

Copy link

CI build and push: All tests pass ✅
https://github.com/cryostatio/cryostat/actions/runs/10618740395

Copy link
Member

@mwangggg mwangggg left a comment

Choose a reason for hiding this comment

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

lgtm

@andrewazores andrewazores merged commit 58c49b7 into cryostatio:main Aug 29, 2024
9 checks passed
@andrewazores andrewazores deleted the git-version branch August 29, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs feat New feature or request safe-to-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants