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

Add revision to version string #3147

Merged
merged 2 commits into from
Jul 11, 2023
Merged

Add revision to version string #3147

merged 2 commits into from
Jul 11, 2023

Conversation

S7evinK
Copy link
Contributor

@S7evinK S7evinK commented Jul 10, 2023

Since the removal of build.sh, we don't include any information about the revision Dendrite was build from. Since go1.18, the revision a binary was build from is automatically included, so we can try to get that instead.

This also adds a dendrite_up metric showing the current version (dendrite_up{version="0.13.1+c796f20"} 1)

Closes #2993

@S7evinK S7evinK added the T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. label Jul 10, 2023
@S7evinK S7evinK requested a review from a team as a code owner July 10, 2023 08:03
@codecov
Copy link

codecov bot commented Jul 10, 2023

Codecov Report

Patch coverage: 17.64% and project coverage change: -0.03 ⚠️

Comparison is base (69b2069) 65.22% compared to head (c796f20) 65.19%.

❗ Current head c796f20 differs from pull request most recent head 2063074. Consider uploading reports for the commit 2063074 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3147      +/-   ##
==========================================
- Coverage   65.22%   65.19%   -0.03%     
==========================================
  Files         504      504              
  Lines       56300    56315      +15     
==========================================
- Hits        36721    36715       -6     
- Misses      15765    15783      +18     
- Partials     3814     3817       +3     
Flag Coverage Δ
unittests 49.64% <17.64%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cmd/dendrite/main.go 59.09% <ø> (ø)
internal/version.go 25.00% <17.64%> (-4.42%) ⬇️

... and 12 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@S7evinK S7evinK merged commit 99f94fc into main Jul 11, 2023
18 checks passed
@S7evinK S7evinK deleted the s7evink/version branch July 11, 2023 11:56
@S7evinK S7evinK mentioned this pull request Oct 25, 2023
S7evinK added a commit that referenced this pull request Oct 25, 2023
If I didn't mess up the workflow, this should remove some ugliness from
the version string (e.g. 0.13.2+57ddbe0.57ddbe0, dupe commit hash, as a
result of #3147)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dendrite_up metric
1 participant