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

Pin rake-compiler version as workaround for issue with Ruby <= 2.5 #3021

Closed

Conversation

ivoanjo
Copy link
Member

@ivoanjo ivoanjo commented Aug 1, 2023

What does this PR do?:

This PR pins the version of the rake-compiler dependency to fix an incompatibility between version 1.2.4 and Ruby <= 2.5.

(Version 1.2.4 was just released on 2023-08-01)

Those versions fail when running bundle exec rake clean compile to compile the profiling native extension with:

rake aborted!
NoMethodError: undefined method `cleanpath' for #<String:0x00005eaf10da03e0>
rake-compiler-1.2.4/lib/rake/extensiontask.rb:166:in `block in define_compile_tasks'

Motivation:

Unbreak our CI.

Additional Notes:

I plan to also report this upstream.

This will not affect customers, as rake-compiler is only used in development.

How to test the change?:

Validate that CI is back to green (or run bundle exec rake clean compile on Ruby <= 2.5 and validate it works).

**What does this PR do?**:

This PR pins the version of the `rake-compiler` dependency to fix
an incompatibility between version 1.2.4 and Ruby <= 2.5.

(Version 1.2.4 was just released on 2023-08-01)

Those versions fail when running `bundle exec rake clean compile` to
compile the profiling native extension with:

```
rake aborted!
NoMethodError: undefined method `cleanpath' for #<String:0x00005eaf10da03e0>
rake-compiler-1.2.4/lib/rake/extensiontask.rb:166:in `block in define_compile_tasks'
```

**Motivation**:

Unbreak our CI.

**Additional Notes**:

I plan to also report this upstream.

This will not affect customers, as `rake-compiler` is only used in
development.

**How to test the change?**:

Validate that CI is back to green (or run
`bundle exec rake clean compile` on Ruby <= 2.5 and validate it works).
@codecov-commenter
Copy link

Codecov Report

Merging #3021 (121c31e) into master (b3f3a0a) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3021   +/-   ##
=======================================
  Coverage   98.09%   98.09%           
=======================================
  Files        1317     1317           
  Lines       74362    74362           
  Branches     3402     3402           
=======================================
+ Hits        72943    72947    +4     
+ Misses       1419     1415    -4     

see 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@TonyCTHsu TonyCTHsu added this to the 1.13.1 milestone Aug 2, 2023
@ivoanjo
Copy link
Member Author

ivoanjo commented Aug 3, 2023

This is no longer needed! After this was reported, the rake-compiler maintainers were super responsive and fixed the issue + released version 1.2.5. Our CI should pick up the fixed version automatically, just like it picked the broken version automatically.

Closing :)

@ivoanjo ivoanjo closed this Aug 3, 2023
@GustavoCaso GustavoCaso deleted the ivoanjo/workaround-rake-compiler-legacy-rubies branch October 11, 2023 11:41
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.

None yet

4 participants