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

inject alpha into the version for metrics api and sdk. #2311

Merged

Conversation

breedx-splk
Copy link
Contributor

Resolves #2266.

After doing a ./gradlew clean build the jars with alpha look like:

$ find . -name '*.jar' | grep alpha
./sdk/metrics/build/libs/opentelemetry-sdk-metrics-0.13.0-alpha-SNAPSHOT.jar
./sdk/metrics/build/libs/opentelemetry-sdk-metrics-0.13.0-alpha-SNAPSHOT-sources.jar
./sdk/metrics/build/libs/opentelemetry-sdk-metrics-0.13.0-alpha-SNAPSHOT-javadoc.jar
./api/metrics/build/libs/opentelemetry-api-metrics-0.13.0-alpha-SNAPSHOT-javadoc.jar
./api/metrics/build/libs/opentelemetry-api-metrics-0.13.0-alpha-SNAPSHOT-sources.jar
./api/metrics/build/libs/opentelemetry-api-metrics-0.13.0-alpha-SNAPSHOT.jar

@codecov
Copy link

codecov bot commented Dec 15, 2020

Codecov Report

Merging #2311 (9b95fc5) into master (eccbfeb) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2311      +/-   ##
============================================
- Coverage     87.72%   87.71%   -0.02%     
- Complexity     2429     2430       +1     
============================================
  Files           270      270              
  Lines          8163     8163              
  Branches        906      906              
============================================
- Hits           7161     7160       -1     
- Misses          671      672       +1     
  Partials        331      331              
Impacted Files Coverage Δ Complexity Δ
...y/sdk/metrics/aggregator/DoubleMinMaxSumCount.java 95.91% <0.00%> (-4.09%) 6.00% <0.00%> (ø%)
...dk/extension/trace/jaeger/sampler/RateLimiter.java 100.00% <0.00%> (+5.88%) 5.00% <0.00%> (+1.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eccbfeb...9b95fc5. Read the comment docs.

Copy link
Contributor

@jkwatson jkwatson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like an ok approach to me. Nice and simple!

@@ -6,6 +6,10 @@ plugins {
id "ru.vyarus.animalsniffer"
}

version = "${version}".replaceFirst(/^(\d+)\.(\d+).(\d+)/) { _, major, minor, patch ->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've stared a lot but don't think I'm missing it - isn't this just version += '-alpha'?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not with -SNAPSHOT versions, where -alpha needs to be inserted in the middle.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it - thanks

@anuraaga anuraaga merged commit 5a93b77 into open-telemetry:master Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change the metrics api and sdk modules to have a pre-release tag on their version numbers.
3 participants