-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
loki 2.7 wrong version information #7669
Comments
Yes, it is affected, too.
|
Just checking. this is what it tells me for v2.6.0. So yea this needs a fix.
|
This happend in the past (#4587), so maybe there is some CI magic missing for the release step? |
I also just noticed this when updating my Ansible role for promtail. One task of the ci run is to confirm that actually the correct version gets installed. It's quite annoying that it's the second time this is happening. In my opinion, embedding version information during a release is important and should not be neglected like this. It helps to ensure automation for downstream projects |
I fully agree with @patrickjahns. Btw we are using your role happily in our environment. Thanks 🌺 |
LogCLI is affected too:
|
2.7.1 is still affected |
When I build locally, it shows exact version number (check out v2.7.1 and make promtail). I also suspect CI process. |
This could happen if a build tag like v2.7.1 was not fetched properly and then the build process was running. If there's no tag on the exact commit to publish, then BRANCH variable becomes HEAD, so the VERSION variable becomes like "HEAD-e0af1cc". Lines 7 to 21 in 86dcc82
Line 35 in 86dcc82
|
Describe the bug
Additionally the metric
loki_build_info
containsloki_build_info{branch="HEAD", goversion="go1.19.2", instance="loki-test.hkm.de:3100", job="loki", revision="1b627d880", version="HEAD-1b627d8"}
Maybe promtail is affected, too. I haven't checked it.
To Reproduce
See above
Expected behavior
loki -version
should report version2.7
instead of git hash.The text was updated successfully, but these errors were encountered: