-
Notifications
You must be signed in to change notification settings - Fork 501
[BUILD] Use -dev versions in main branch #3609
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3609 +/- ##
=======================================
Coverage 90.03% 90.03%
=======================================
Files 220 220
Lines 7069 7069
=======================================
Hits 6364 6364
Misses 705 705
🚀 New features to boost your workflow:
|
|
||
std::string actual = OPENTELEMETRY_VERSION; | ||
EXPECT_EQ(actual, expected); | ||
/* OPENTELEMETRY_VERSION may contain a -dev suffix */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the exact suffix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The -dev
convention for main is arbitrary, we can potentially have also -rc
, -rfc
or anything, so the -dev
part can not be hardcoded in the unit test itself.
There is no #define OPENTELEMETRY_VERSION_SUFFIX "-dev"
either (and I don't think we should add it), so there is nothing to compare the suffix against to validate the full version string.
This code change in the unit test is sufficient to pass with both "1.23.0" and "1.23.0-dev".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good with one minor change - the version and suffix at the top of the main CMakeLists.txt file need to be updated
Fixes #3583
Changes
Please provide a brief description of the changes here.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes