-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
bundle install
get stuck for a specific gem under setup-ruby action + windows + ruby 2.6
#218
Comments
Sorry, I've been busy this morning. Is this working as expected using Ruby 2.7 and 3.0? |
@MSP-Greg Yes, you can see from here: https://github.com/ntkme/debug-setup-ruby/runs/3648601998?check_suite_focus=true 2.7 and 3.0 works under windows, ubuntu, and macos. 2.6 works for ubuntu and macos. |
The most strange part as I posted originally is that: if I copy the |
I repo'd the issue locally. I haven't had time to debug (and may not for a while), but in the Maybe that helps... |
That did help. I managed to get a windows machine to test this and the root cause is insane. It has to do with running Even after finding the root cause I still don't understand what kind of interpretation difference is happening causing the different behavior of different ruby versions, but apparently under windows ruby 2.6 (maybe due to the old gnu make it bundles), I did find a workaround that works for ruby 2.6 inside the |
@larskanis Hello, is this something that could be addressed by RubyInstaller..? |
GitHub Actions and my local system use one set of MSYS2 built tools. So, both in Actions and locally, the passing Ruby versions use the exact same set of MSYS2 tools as Ruby 2.6. |
Although I have "a specific gem" in the title, but it does not appear to be the root cause of this problem. So, please bear with me for the details.
Here is a repository for reproduction: https://github.com/ntkme/debug-setup-ruby/blob/main/.github/workflows/build.yml
This is a matrix build:
The failed workflow result is here: https://github.com/ntkme/debug-setup-ruby/runs/3648601998?check_suite_focus=true
Every thing other than
windows + ruby 2.6
passed really quick. I killed thewindows + ruby 2.6
after 15 min, but in reality it get stuck forever and would get killed after 6 hours by GitHub actions.What works and what doesn't
cache-version
does not fix the problem so it is not a cache corruption issue.sass-embedded
works. - However, this does not appear to be the root cause.bundle
commands from the log of failed build and run them as a separate step, It works. This shows there is something weird going on withsetup-ruby
causing the failure. See below.This is a diff showing the how I moved the bundle commands out of the ruby-setup action:
This build shows that running exactly the same bundle commands outside of
setup-ruby
works: https://github.com/ntkme/debug-setup-ruby/runs/3648668586?check_suite_focus=trueWhat I need help understanding is that - what is the difference running
bundle
commands insidesetup-ruby
action and running exactly same command as a separate step, and whysetup-ruby
action might causebundle
to stuck forever.Thanks.
The text was updated successfully, but these errors were encountered: