-
Notifications
You must be signed in to change notification settings - Fork 29
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
Test & Verify Binary Releases #143
Comments
Okay, Linux works! 😄 🎉 I just need a Mac user to help now. Someone who doesn't have Rust installed. Do the following:
That should be enough per Ruby version. |
Seem failed on Mac with 2.5 MacOS 10.12.6
But these versions got no issue:
Will edit and add results for other versions later (installing) Edit 1: Update list of ruby versions with no issues |
Thanks! @PikachuEXE
That could be a Thermite issue, or an environment variable changing the type of library extension. Only For the Ruby 2.5 can you check this in irb? I believe I can enforce both Linux & Mac to use the |
These versions:
|
Thanks. It's odd that the problem only arose in 2.5. Thermite has a method to set all "bundle" as "dylib". lib/thermite/config.rb#L49-L59 |
I noticed it's trying to load Otherwise the file exists |
Ah. Thanks for the info. Would you feel comfortable sharing this info in an issue on Thermite? |
Should I open a new issue on Thermite? |
Yeah I think he should know his Thermite gem sometimes tries to load a travis user on a Mac. You can reference this issue for him to look back to as well. |
Thank you! You've been a great help. 🎉 |
I reviewed the log for
Links to Travis build logs I wonder what happens if bundler and rubygems are updated before build |
@andrewstucki Looking at the research you've done on steveklabnik/ruby-sys#25 would applying your patch to my forks for both ruby-sys and ruru perhaps allow the Mac & Ruby 2.5.0 version to work on this issue? I'm also curious as to whether this would allow me to not need to copy Ruby's lib to my Rust lib build directory. In ruru I put it in the |
@danielpclark So from the looks of the stack trace above it's just an issue of not being able to find Regarding the second question, yep, that should be the case, for the exact reasons above. Looking at how this library does appear to have some Rust tests that run outside of the context of the Ruby interpreter though, you'll need to do something like the re-export testing features that I added in steveklabnik/ruby-sys#31 and d-unsed/ruru#95 since Rust trying to execute the tests won't actually have access to the required symbols without linking in In other words, run the Rust tests with that |
The changes you've recommended @andrewstucki have been applied. The good news is I don't need If |
@danielpclark awesome, so it sounds like the Rust tests don't actually use any of If that's the case just be careful with adding additional Rust tests that call down into |
That's not the case. This project specifically uses ruru for everything we depend on end product wise. It just works and I'm happy with that. Just to clarify I did add the |
@PikachuEXE if you get a chance to try Ruby 2.5.0 again with this let me know how it goes. If it still doesn't work I'll close this off as an outside issue for Thermite. Thanks! |
Now it works! ( Tried with If there is anything else need to be tested let me know ;) |
Fail when installing in a docker container Env
Error Log
|
Which docker container did this happen for you in? All of the Ruby docker images I tried worked. Specifically fro Ruby 2.5 it was
That could be an anomaly where the connection to Github Releases was unavailable. That's my best guess with the information we have here and now. |
As of FasterPath v0.3.6 we now have binary releases compiled and deployed to Github. These need to be tested across many Ruby versions and operating systems to establish their reliability.
v0.3.7 Systems Tried
❌ Mac & Ruby 2.5.0
These tests need to be conducted from a dependency stand point, not from downloading from this repository.
To test these you need to switch to a specific Ruby version, do a gem install, try it out in IRB and experiment with a few methods to see if it will segfault. Please try at least 3 methods a few different ways with string parameters. The gem install should retrieve the binary release and you won't need to compile the asset.
Some issues we may need to address:
rustc
dependency? #34 there was some discussion about minor Ruby versions not being compatible with each other and causing segfaults. This seems like a logical possibility since each compiled version of Ruby, even minor versions, creates a different library to be linked with.Carg.toml
file instead of the Ruby gem version.I would like this to be versioned with Ruby.Looking at how Github Releases are organized this may not matter.v0.3.9 Systems Tried
Since we know it worked on previous builds we really want to focus on Mac & Ruby 2.5.0.
The text was updated successfully, but these errors were encountered: