Skip to content

[PROF-13115] Bootstrap installing dependencies on Ruby 4.0.0-preview2#5092

Merged
ivoanjo merged 1 commit intomasterfrom
ivoanjo/prof-13115-add-ruby-4-gemfile
Nov 25, 2025
Merged

[PROF-13115] Bootstrap installing dependencies on Ruby 4.0.0-preview2#5092
ivoanjo merged 1 commit intomasterfrom
ivoanjo/prof-13115-add-ruby-4-gemfile

Conversation

@ivoanjo
Copy link
Member

@ivoanjo ivoanjo commented Nov 25, 2025

What does this PR do?

This PR adds the ruby-4.0.gemfile file that's needed for running bundle install on Ruby 4.0.0-preview2.

The contents of this file being added are copy/pasted from ruby-3.5.gemfile with no changes.

I did not add or change anything on purpose: This is a very minimal part of the Ruby 4 CI support being prepared in
#5084 but unlocks local development with Ruby 4.0. I suggest we keep adjustments/cleanups/etc for that later PR where we officially add Ruby 4.0 to our CI.

Motivation:

Without this file it's impossible to do local development on Ruby 4.0.0-preview2.

It also came up in
DataDog/datadog-ruby_core_source#19: we want to check if the profiler extension compiles on Ruby 4.0 and we're not able without this file.

With this PR we can run bundle install and start running tests and tackling what's missing.

Change log entry

None.

(This doesn't get a changelog entry since it affects only development -- the Gemfile nor the version-specific variants are not shipped as part of the released gem)

Additional Notes:

N/A

How to test the change?

Validate that it's possible to run bundle install on Ruby 4.0.

**What does this PR do?**

This PR adds the `ruby-4.0.gemfile` file that's needed for running
`bundle install` on Ruby 4.0.0-preview2.

The contents of this file being added are copy/pasted from
`ruby-4.0.gemfile` with no changes.

I did not add or change anything on purpose: This is a very minimal
part of the Ruby 4 CI support being prepared in
#5084 but
unlocks local development with Ruby 4.0. I suggest we keep
adjustments/cleanups/etc for that later PR where we officially add Ruby
4.0 to our CI.

**Motivation:**

Without this file it's impossible to do local development on
Ruby 4.0.0-preview2.

It also came up in
<DataDog/datadog-ruby_core_source#19>:
we want to check if the profiler extension compiles on Ruby 4.0 and
we're not able without this file.

With this PR we can run `bundle install` and start running tests
and tackling what's missing.

**Additional Notes:**

N/A

**How to test the change?**

Validate that it's possible to run `bundle install` on Ruby 4.0.
@ivoanjo ivoanjo requested a review from a team as a code owner November 25, 2025 14:26
@github-actions
Copy link

github-actions bot commented Nov 25, 2025

Thank you for updating Change log entry section 👏

Visited at: 2025-11-25 14:27:50 UTC

@datadog-official
Copy link

datadog-official bot commented Nov 25, 2025

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage
Patch Coverage: 100.00%
Total Coverage: 95.17% (-0.00%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 8dacd14 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@pr-commenter
Copy link

pr-commenter bot commented Nov 25, 2025

Benchmarks

Benchmark execution time: 2025-11-25 14:56:56

Comparing candidate commit 8dacd14 in PR branch ivoanjo/prof-13115-add-ruby-4-gemfile with baseline commit c823ca8 in branch master.

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

@ivoanjo ivoanjo merged commit f045f9d into master Nov 25, 2025
559 checks passed
@ivoanjo ivoanjo deleted the ivoanjo/prof-13115-add-ruby-4-gemfile branch November 25, 2025 15:00
@github-actions github-actions bot added this to the 2.23.0 milestone Nov 25, 2025
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