You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(internal): properly convert PEP 440 version to SemVer for RCM client [backport #4910 to 1.7] (#4911)
## Description
Backport of #4910
The fix for ensuring RCM used a SemVer compliant version string only
took into account ddtrace versions that match `x.y.zrc2` or
`x.y.zrc2.dev3+gf344hg`, but not `x.y.z.dev3+gf344hg`.
This fix ensures that if we have a `.dev` without `rc` that we properly
convert `.dev` -> `-dev` which will make it SemVer compliant.
Since the tests rely heavily on the version of `ddtrace.__version__`
writing a test is challenging. We should revisit this in the future so
we can mock the version and parametrize the test to ensure all
variations are tested.
## Checklist
- [ ] Followed the [library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/contributing.html#Release-Note-Guidelines)
when writing a release note.
- [ ] Add additional sections for `feat` and `fix` pull requests.
- [ ] [Library
documentation](https://github.com/DataDog/dd-trace-py/tree/1.x/docs)
and/or [Datadog's documentation
site](https://github.com/DataDog/documentation/) is updated. Link to doc
PR in description.
## Reviewer Checklist
- [ ] Title is accurate.
- [ ] Description motivates each change.
- [ ] No unnecessary changes were introduced in this PR.
- [ ] Avoid breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes unless absolutely necessary.
- [ ] Tests provided or description of manual testing performed is
included in the code or PR.
- [ ] Release note has been added and follows the [library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/contributing.html#Release-Note-Guidelines),
or else `changelog/no-changelog` label added.
- [ ] All relevant GitHub issues are correctly linked.
- [ ] Backports are identified and tagged with Mergifyio.
0 commit comments