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

[PROF-10603] Upgrade to libdatadog 13.1 #3997

Merged
merged 3 commits into from
Oct 15, 2024

Conversation

ivoanjo
Copy link
Member

@ivoanjo ivoanjo commented Oct 14, 2024

What does this PR do?

This PR upgrades the datadog gem to use libdatadog 13.1.

There were no needed API changes, it's a drop-in upgrade.

Motivation:

Staying on the latest libdatadog enables us to pick up the latest improvements and also makes it easier to develop new features that need libdatadog changes.

Additional Notes:

As usual, I'm opening this PR as a draft as libdatadog 13.1 is not yet available on rubygems.org, and I'll come back to re-trigger CI and mark this as non-draft once it is.

How to test the change?

Our existing test coverage includes libdatadog testing, so a green CI is good here :)

ivoanjo added a commit to DataDog/libdatadog that referenced this pull request Oct 14, 2024
**What does this PR do?**

This PR includes the changes documented in the "Releasing a new version
to rubygems.org" part of the README:
https://github.com/datadog/libdatadog/tree/main/ruby#releasing-a-new-version-to-rubygemsorg

**Motivation:**

Enable Ruby to use libdatadog v13.1.0.

**Additional Notes:**

We ended up not releasing 13.0 for Ruby. I don't see any reason
to backfill so I've skipped ahead.

**How to test the change?**

I've tested this release locally using the changes in
DataDog/dd-trace-rb#3997 .

As a reminder, new libdatadog releases don't get automatically picked up
by dd-trace-rb, so the PR that bumps the Ruby profiler will also test
this release against all supported Ruby versions.
**What does this PR do?**

This PR upgrades the datadog gem to use libdatadog 13.1.

There were no needed API changes, it's a drop-in upgrade.

**Motivation:**

Staying on the latest libdatadog enables us to pick up the latest
improvements and also makes it easier to develop new features that need
libdatadog changes.

**Additional Notes:**

As usual, I'm opening this PR as a draft as libdatadog 13.1 is not yet
available on rubygems.org, and I'll come back to re-trigger CI and mark
this as non-draft once it is.

**How to test the change?**

Our existing test coverage includes libdatadog testing, so a green CI is good here :)
@ivoanjo ivoanjo force-pushed the ivoanjo/prof-10603-libdatadog13_1-upgrade branch from b31ccb5 to c3747a9 Compare October 14, 2024 12:37
@codecov-commenter
Copy link

codecov-commenter commented Oct 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.87%. Comparing base (3381fe0) to head (720cc5c).
Report is 268 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3997      +/-   ##
==========================================
- Coverage   97.87%   97.87%   -0.01%     
==========================================
  Files        1314     1314              
  Lines       78641    78641              
  Branches     3906     3906              
==========================================
- Hits        76971    76969       -2     
- Misses       1670     1672       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pr-commenter
Copy link

pr-commenter bot commented Oct 14, 2024

Benchmarks

Benchmark execution time: 2024-10-14 14:03:15

Comparing candidate commit 720cc5c in PR branch ivoanjo/prof-10603-libdatadog13_1-upgrade with baseline commit 3381fe0 in branch master.

Found 0 performance improvements and 3 performance regressions! Performance is the same for 21 metrics, 2 unstable metrics.

scenario:profiler - gvl benchmark samples

  • 🟥 throughput [-782.135op/s; -773.628op/s] or [-6.239%; -6.171%]

scenario:profiler - sample timeline=false

  • 🟥 throughput [-1.246op/s; -1.226op/s] or [-17.633%; -17.352%]

scenario:profiler - stack collector

  • 🟥 throughput [-191.099op/s; -189.416op/s] or [-6.107%; -6.053%]

@ivoanjo ivoanjo marked this pull request as ready for review October 14, 2024 13:25
@ivoanjo ivoanjo requested review from a team as code owners October 14, 2024 13:25
@ivoanjo ivoanjo requested a review from AlexJF October 14, 2024 14:31
@ivoanjo
Copy link
Member Author

ivoanjo commented Oct 15, 2024

Merging ahead! I spotted that there's potential performance regressions -- I'll keep an eye for the performance in our real-world apps, as they're usually more reliable than our microbenchmarks.

@ivoanjo ivoanjo merged commit 450f05a into master Oct 15, 2024
258 checks passed
@ivoanjo ivoanjo deleted the ivoanjo/prof-10603-libdatadog13_1-upgrade branch October 15, 2024 14:38
@github-actions github-actions bot added this to the 2.5.0 milestone Oct 15, 2024
@ivoanjo ivoanjo added core Involves Datadog core libraries profiling Involves Datadog profiling labels Nov 4, 2024
@Strech Strech mentioned this pull request Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Involves Datadog core libraries profiling Involves Datadog profiling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants