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

SDK Version is an empty string #1418

Closed
marcalff opened this issue May 30, 2022 · 4 comments
Closed

SDK Version is an empty string #1418

marcalff opened this issue May 30, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@marcalff
Copy link
Member

Greetings,

opentelemetry::sdk::version::FULL_VERSION is not populated, it is an empty string.

File sdk/src/version/version.cc is intended to be post processed by commit hooks (buildscripts/pre-commit),
but these don't seem to be used, and beside, attributes like BUILD_DATE should probably be populated during the build, not at commit time.

Instead of checking in file version.cc in git,
a possible solution is to check in file version.cc.in,
and have file version.cc generated by CMake during the build.

Not familiar with Bazel, I assume files can be generated there as well.

Regards.

@marcalff marcalff added the bug Something isn't working label May 30, 2022
@ThomsonTan
Copy link
Contributor

We are supposed to run the buildscripts/pre-commit before releasing, but we didn't do this so far. For BUILD_DATE, it sounds like it should be release date as we release source package. @lalitb, any thoughts?

https://github.com/open-telemetry/opentelemetry-cpp/blame/main/RELEASING.md#L67

@lalitb
Copy link
Member

lalitb commented May 31, 2022

We are supposed to run the buildscripts/pre-commit before releasing, but we didn't do this so far

I think we should run this script manually for now before releasing. The plan was to automate the release process and execute this script through github action (#593 - Have reopened this issue now).

@lalitb lalitb assigned lalitb and ThomsonTan and unassigned lalitb May 31, 2022
@lalitb
Copy link
Member

lalitb commented Jun 6, 2022

We can close this issue once new release populates the SDK version. And track the release automation through #593. Assigning to @ThomsonTan to close this once the next release is published.

@ThomsonTan ThomsonTan added this to the V1.4.1 release milestone Jun 20, 2022
@ThomsonTan
Copy link
Contributor

This was fixed in #1458.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants