-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Help! Modeling extension testing after Gem::TestCase #1807
Comments
(Can you reproduce the error when you're on the latest release of Rubygems? 2.6.8 is not the latest release.) |
I'm going to close this for lack of response but will reopen if still an issue for you @danielpclark |
Thanks for getting back to me. I didn't see that you had responded. I ended up giving up on testing this in my project through the test suite. I went with Thermite for building and manual testing in Docker environments. To be honest if I were to implement these tests today I would just add Docker to my test suite to mount a path to the latest local gem build and install that. This solves all of my ruby gem environment issues with a true client install experience. This issue is fine closed. Thanks again! |
I'm having a problem
or would like to suggest a feature.My current problem is "a failing dependency build in a clean environment/temporary directory"
This issue is related to:
gem
Here are my current environment details:
I will abide by the code of conduct.
I've been studying rubygems code for more days than I can remember and I really would appreciate some help. I don't know where else I could go to ask - but I can only hope that some of you would be so kind as to help me.
My problem I'm aiming to solve:
I have a Rust extension that compiles on most operating systems but not all. I first want to write a test that proves a gem install successfully builds the dynamic library in the gems
ext
folder. From there I can more easily get other operating systems to work.The current test I'm working on is mostly following your own
Gem::TestCase
code in your test suite. The problem I'm currently running into is handling real gem dependencies such as FFI. I've kind of figured out how to get the remote dependencies setup but now I'm getting an exception on rake version not being found.One of the possible ideas for the dependency I've thought of but haven't done is to run a gem proxy locally that simply pulls gems into the temp directory from the local gem locations. I would need help to be able to point the test suite to it though. Or maybe point all dependencies to the local versions directory.
There are "so many variables being modified" for the gem and dependencies that it's hard for me to figure out what needs to be setup or changed for my particular test case.
I had first tried building this with Bundler but all those endevours failed so I'm writing it purely with rubygems. The error has me also somewhat confused as it includes a Bundler exception - when I don't see that being called from anywhere, not even in FFI.
Here's the current test suite output
faster_path uses rake 12 while ffi uses rake 10.1
I have put a lot of time into trying to figure this out and really do appreciate your help. Again the current source for this test is here: faster_path - test/gem_install_test.rb. You can clone and try it directly from the
test_bundle
branch ofdanielpclark/faster_path
. The test on this branch can be run withrake gem_compile_test
.I'll keep this issue focused to just this.
The text was updated successfully, but these errors were encountered: