Skip to content

[NO-TICKET] Remove 4.0.0-preview2 headers and bump gem version to 3.5.2#26

Merged
ivoanjo merged 3 commits into
masterfrom
ivoanjo/remove-r4-preview2-headers
Jan 26, 2026
Merged

[NO-TICKET] Remove 4.0.0-preview2 headers and bump gem version to 3.5.2#26
ivoanjo merged 3 commits into
masterfrom
ivoanjo/remove-r4-preview2-headers

Conversation

@ivoanjo

@ivoanjo ivoanjo commented Jan 20, 2026

Copy link
Copy Markdown
Member

What does this PR do?

This PR:

Motivation:

In #24 I mentioned

I still left the 4.0.0-preview2 headers since dd-trace-rb CI is still, as of this writing, using them, but once we update it those should be cleaned up as well

This is no longer the case, so let's reduce the on-disk footprint of the gem by shedding this last set of headers.

Additional Notes:

N/A

How to test the change?

In #25 we ran into a bug in header version selection caused by mixing preview and non-preview headers, and added a few integration-like specs for it. To keep the specs working, I've tweaked the tests to keep faking that the 4.0.0-preview2 header folder is still around.

I've also packaged this locally and tried installing it on 4.0.0/4.0.1/3.4.7.

We no longer need these! I also adjusted the specs so we keep
test coverage for when preview and non-preview headers are mixed.
This folder is small but it's not needed!
@ivoanjo

ivoanjo commented Jan 26, 2026

Copy link
Copy Markdown
Member Author

Thanks y'all for the review, going ahead with merging and releasing!

@ivoanjo
ivoanjo merged commit d0fbdc9 into master Jan 26, 2026
37 checks passed
@ivoanjo
ivoanjo deleted the ivoanjo/remove-r4-preview2-headers branch January 26, 2026 09:12
ivoanjo added a commit to DataDog/dd-trace-rb that referenced this pull request Jan 26, 2026
**What does this PR do?**

This PR bumps the minimum version of the datadog-ruby_core_source gem to
the latest version (3.5.2), having the usual diff (e.g. #5236 was the
previous update).

**Motivation:**

Doing this bump forces updates to the datadog gem to also pull in the
latest version of the datadog-ruby_core_source gem. This ensures users
have the best experience and don't e.g. run into issues because somehow
they're running the latest version of the gem with an outdated version
of the headers.

Specifically version 3.5.2 drops support for the Ruby 4.0.0-preview2
headers, so overall should not impact anyone, while at the same time
having a smaller on-disk footprint
(DataDog/datadog-ruby_core_source#26).

**Additional Notes:**

N/A

**How to test the change?**

Green CI is good!
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