-
Notifications
You must be signed in to change notification settings - Fork 380
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
Raise minor version to 2.11.0 #4351
base: master
Are you sure you want to change the base?
Conversation
- `master` then targets `2.11.0` - development version will properly order WRT `2.10.0`, being `2.11.0.dev.b<git branch hash>.<ci provider><ci monotonic id>.g<git short sha>` - system tests will be able to target `master` without conflicting with released `2.10.0`
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.
👍 LGTM
development version will properly order WRT 2.10.0, being 2.11.0.dev.b..g
Is the dev suffix added somewhere else? Should we add it here in the version.rb instead?
Currently There's tooling to patch it in: https://github.com/DataDog/dd-trace-rb/blob/a444023a8f2a29250d46377e9010ab4fc2ed8623/.gitlab/patch_gem_version.sh This is used by both GHA (when building dev gems that can be published to GitHub Packages) and GitLab CI (when building SSI images):
With this change I am wondering whether we should:
But that's a question for another day I guess. |
I think it'd be nice to have the "dev" in the regular version.rb, rather than a weird patch but +1 on punting on this for later if it's opening a bit of a pandora's box of things that need to be fixed elsewhere :) |
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.
I agree to bump the version after the release, but lets not merge it before fast castle to be ready.
BenchmarksBenchmark execution time: 2025-02-06 12:05:02 Comparing candidate commit da8d449 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 31 metrics, 2 unstable metrics. |
Datadog ReportBranch report: ✅ 0 Failed, 22077 Passed, 1477 Skipped, 6m 4.6s Total Time |
@cbeauchesne do you anticipate any issue with this change? i.e is there any ruby-specific off-by-one system test code that would be upset by us updating the version in |
BTW, this change in gemspec should propagates to all the lockfiles under However, our automation does not kicked in. https://github.com/DataDog/dd-trace-rb/actions/runs/13176490545/attempts/1 |
I triggered again: https://github.com/DataDog/dd-trace-rb/actions/runs/13176490545 |
@lloeki the only ruby specific trick is here : https://github.com/DataDog/system-tests/blob/main/utils/_context/library_version.py#L113 -> No reason to have anything bad. The second point, which is not ruby specific, is if somebody declared a feature working for |
Thanks @cbeauchesne this is exactly the "off-by-one" I was looking for! if library == "ruby":
if len(self.version.build) != 0 or len(self.version.prerelease) != 0:
# we are not in a released version
# dd-trace-rb main branch expose a version equal to the last release, so hack it:
# * add 1 to minor version
# * and set z as prerelease if not prerelease is set, becasue z will be after any other prerelease
# if dd-trace-rb repo fix the underlying issue, we can remove this hack.
self.version = Version(
major=self.version.major,
minor=self.version.minor,
patch=self.version.patch + 1,
prerelease=self.version.prerelease,
build=self.version.build,
)
if not self.version.prerelease:
self.version = Version(
major=self.version.major,
minor=self.version.minor,
patch=self.version.patch,
prerelease=("z",),
build=self.version.build,
) It looks like that starting with this PR the whole special casing should go away:
|
What does this PR do?
Raise minor version after
2.10.0
release.Motivation:
master
then targets2.11.0
2.10.0
, being2.11.0.dev.b<git branch hash>.<ci provider><ci monotonic id>.g<git short sha>
master
without conflicting with released2.10.0
Change log entry
Nope.
Additional Notes:
How to test the change?