-
Notifications
You must be signed in to change notification settings - Fork 184
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
Testsuite fails with ruby3.3.0dev #459
Comments
Thank you for the report, however I'm not able to reproduce, and CI ran against ruby-head just a few minutes ago and passed: https://github.com/Shopify/bootsnap/actions/runs/6927736486/job/18842186171 Perhaps it was just a temporary regression on |
I tried ruby/ruby@9aee12c but this issue is still reproducible to me. |
That's really weird, could you give more information about your testing environment? Plarform, etc? |
So the difference here seems when testsuite is executed via bundler v.s. is executed directly (note that we want to reduce dependency as much as possible so we usually execute testsuite directly):
So bundler seems to be changing environ internally? |
Hum, even this way I'm not able to reproduce. But I don't see much harm in your proposed change, so please PR it. |
Okay. I will create PR. |
With ruby3.3.0dev, "require" method may invoke :to_str or :to_path more than once in ruby internal. To rescue this, relax method invocation checking for KernelRequireTest. Closes Shopify#459 .
Tried with ruby/ruby@3bc41f4 , bootsnap git head ( ff04a20 ) testsuite fails like:
Looking at :
bootsnap/test/load_path_cache/core_ext/kernel_require_test.rb
Lines 20 to 22 in ff04a20
actually with the latest ruby3.3.0dev, both
:to_str
and:to_path
are invoked 3 times for both (perhaps before.to_str
is invoked for 3rd time, the test was "stopped" due to the intermediate exception error) , on the other hand with ruby3.2.2 both:to_str
and:to_path
are to be invoked twice.Looking at the commit this code is introduced: 671d1d4 , looks like this test is to verify that both bootsnap and ruby side invokes
:to_str
and:to_path
, so I guess the below is sufficient:The text was updated successfully, but these errors were encountered: