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

Use Ruby 3.4.1 locally and test against it on CI #2138

Merged
merged 9 commits into from
Jan 7, 2025
Merged

Conversation

KaanOzkan
Copy link
Contributor

@KaanOzkan KaanOzkan commented Jan 3, 2025

Motivation

#2137

Implementation

Best reviewed commit by commit

Tests

@KaanOzkan KaanOzkan changed the title Ko/ruby 3.4 Use Ruby 3.4.1 locally and test against it on CI Jan 3, 2025
@KaanOzkan KaanOzkan added the chore label Jan 3, 2025
@KaanOzkan KaanOzkan force-pushed the ko/ruby-3.4 branch 6 times, most recently from cb02b79 to 3365d41 Compare January 3, 2025 21:26
`benchmark` gem will be removed as a default gem in Ruby 3.5.0 and
requiring it without depending causes warnings
Ruby 3.4 contains a single quote instead of a backtick in the stack
trace. We need to accept both since we still test with older Rubies
@KaanOzkan KaanOzkan marked this pull request as ready for review January 6, 2025 23:26
@KaanOzkan KaanOzkan requested a review from a team as a code owner January 6, 2025 23:26
.github/workflows/ci.yml Show resolved Hide resolved
tapioca.gemspec Show resolved Hide resolved
@@ -11,7 +11,7 @@ def before_suite(suite)

def record(test)
# Trim leading "test_dddd_" and replace it with "it "
test.name.gsub!(/^test_\d{4}_/, "it ")
test.name = test.name.gsub(/^test_\d{4}_/, "it ")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strings will be frozen by default which means we can't modify the string test.name points to without a deprecation warning.

@@ -5,6 +5,8 @@

module Tapioca
class ConfigTest < SpecWithProject
include Tapioca::Helpers::Test::Template
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed for ruby_version

tapioca/tests/dsl_spec/project/sorbet/tapioca/extensions/test\.rb:2:in\s['`]<top\s\(required\)>':\s
Raising\sfrom\stest\sextension\s\(RuntimeError\)
}x
assert_stderr_includes_pattern(result, err)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only difference in these regexes is that now we can observe both a single quote or backtick based on Ruby version.

@KaanOzkan KaanOzkan merged commit bce1224 into main Jan 7, 2025
34 checks passed
@KaanOzkan KaanOzkan deleted the ko/ruby-3.4 branch January 7, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants