Giter VIP home page Giter VIP logo

Comments (6)

joey-grafana avatar joey-grafana commented on September 27, 2024

There was some discussion and initial improvements in this issue.

from tempo.

ishanjain28 avatar ishanjain28 commented on September 27, 2024

Hey @joey-grafana, Can you explain this a bit more please ?

version field in response comes from main.Version flag set when compiling the program. For normal releases, It's set to a semver value and the response is what you'd expect.

{"version":"2.5.0","revision":"46dad3411","branch":"HEAD","buildUser":"","buildDate":"","goVersion":"go1.21.3"}

If I understand correctly, With this PR, you always want a semver value here ?

from tempo.

joey-grafana avatar joey-grafana commented on September 27, 2024

Hey this does not work correctly for cloud deployments as the versioning is slightly different. We are basing our check on there being a semver version present.

@fabrizio-grafana I know you worked on the feature initially so if you have any additional context please feel free to share.

from tempo.

JahJahWei avatar JahJahWei commented on September 27, 2024

tempo/Makefile

Line 50 in 89e6789

GO_OPT= -mod vendor -ldflags "-X main.Branch=$(GIT_BRANCH) -X main.Revision=$(GIT_REVISION) -X main.Version=$(VERSION)"

VERSION=$(shell ./tools/image-tag | cut -d, -f 1)

tempo/tools/image-tag

Lines 14 to 21 in 89e6789

TAG=$((git describe --exact-match 2> /dev/null || echo "") | sed 's/v//g')
if [ -z "$TAG" ]
then
echo ${BRANCH}-${SHA}${WIP}
else
echo ${TAG}
fi

I think not have a git tag in the current commit when you are building.

from tempo.

javiermolinar avatar javiermolinar commented on September 27, 2024

Since the version depends on the tag/branch we have discrepancies between enterprise/non-enterprise versions.

One simple approach could be having a VERSION file directly in the root of the repo and then read it when building like Mimir does:

https://github.com/grafana/mimir/blob/0e8c09f237649e95dc1bf3f7547fd279c24bdcf9/VERSION#L1

https://github.com/grafana/mimir/blob/0e8c09f237649e95dc1bf3f7547fd279c24bdcf9/Makefile#L17

from tempo.

github-actions avatar github-actions commented on September 27, 2024

This issue has been automatically marked as stale because it has not had any activity in the past 60 days.
The next time this stale check runs, the stale label will be removed if there is new activity. The issue will be closed after 15 days if there is no new activity.
Please apply keepalive label to exempt this Issue.

from tempo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.