Skip to content

[PROF-11680] Add Ruby 3.5.0-preview1 headers and bump gem version 3.4.1#15

Merged
ivoanjo merged 1 commit into
masterfrom
ivoanjo/prof-11680-ruby-35-preview1
Apr 24, 2025
Merged

[PROF-11680] Add Ruby 3.5.0-preview1 headers and bump gem version 3.4.1#15
ivoanjo merged 1 commit into
masterfrom
ivoanjo/prof-11680-ruby-35-preview1

Conversation

@ivoanjo

@ivoanjo ivoanjo commented Apr 23, 2025

Copy link
Copy Markdown
Member

What does this PR do?

This PR imports the Ruby 3.5.0-preview1 headers into the gem.

Motivation:

These headers are needed to get the Datadog Ruby profiler to work correctly on Ruby 3.5.0-preview1.

(I tried without these updated headers and it broke since it will try to fall back to the 3.4 headers).

Additional Notes:

This PR is very similar to #14 .

How to test the change?

I've tested this PR by running the ruby profiler test suite on both Ruby 3.4.1 and 3.5.0-preview1 with these changes, and validating it was green.

At some point we'll have CI in dd-trace-rb for Ruby 3.5, but currently this testing was done locally.

…3.4.1

**What does this PR do?**

This PR imports the Ruby 3.5.0-preview1 headers into the gem.

**Motivation:**

These headers are needed to get the Datadog Ruby profiler to work
correctly on Ruby 3.5.0-preview1.

(I tried without these updated headers and it broke since it will try
to fall back to the 3.4 headers).

**Additional Notes:**

This PR is very similar to
#14 .

**How to test the change?**

I've tested this PR by running the ruby profiler test suite on
both Ruby 3.4.1 and 3.5.0-preview1 with these changes, and validating
it was green.

At some point we'll have CI in dd-trace-rb for Ruby 3.5, but currently
this testing was done locally.
@ivoanjo
ivoanjo merged commit 3d1e46d into master Apr 24, 2025
@ivoanjo
ivoanjo deleted the ivoanjo/prof-11680-ruby-35-preview1 branch April 24, 2025 09:17
ivoanjo added a commit to DataDog/dd-trace-rb that referenced this pull request Apr 24, 2025
**What does this PR do?**

This PR adds support for profiling Ruby 3.5.0-preview1. The only
work needed was importing the latest headers in
DataDog/datadog-ruby_core_source#15
so this PR adds the new 3.4.1 release of the headers as the minimum
version allowed.

**Motivation:**

By setting the minimum version of `datadog-ruby_core_source` to the
latest release, we make sure bundler picks it up, and doesn't try
to use an incorrect release with Ruby 3.5.

**Additional Notes:**

N/A

**How to test the change?**

We don't yet test with 3.5 on CI; I tested locally that the profiler
test suite is working fine with 3.4 and 3.5.
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.

3 participants