-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
Bundler install appears broken on Ruby 2.2 #496
Comments
Ruby
|
This is interesting.
Given the above, I have no idea what the issue is... |
This is possibly related to the deprecation of the RubyGems dependencies API. There's a brownout today (2023-04-17). See https://blog.rubygems.org/2023/02/22/dependency-api-deprecation.html and https://blog.rubygems.org/2023/04/07/dependency-api-deprecation-delayed.html. Ruby 2.1 has also been encountering issues (see #493). |
Is this duplicate of #493 ? |
This is clearly a RubyGems issue, would be best to file it there. |
There's another rubygems.org Dependency API deprecation brownout today (April 24), so the Ruby 2.2 failures have reoccurred (example: https://github.com/jeremyevans/tilt/actions/runs/4782416382/jobs/8501734094). I tried installing bundler manually again on ruby 2.2 on a different system and still didn't have any problems:
Maybe this is not the fault of setup-ruby, but I am unable to reproduce the problem outside of it. |
Maybe one possible fix would be to add |
I tried to repro, but got a segfault instead: https://github.com/eregon/setup-ruby-test/actions/runs/4789939825/jobs/8518407285 I would guess recent compilers miscompile Ruby 2.2 and cause such segfault or wrong behavior (hooray for C undefined behavior). |
An interesting data point, on these runs it:
So it seems to always work on 20.04, and always fail on 22.04. |
So from the above runs it seems to always work on 20.04, and always fail on 22.04. |
Even when using |
@eregon Thank you very much for testing and that information. |
Appears to be broken. See also: ruby/setup-ruby#496
Appears to be broken. See also: ruby/setup-ruby#496
These builds now all pass for the time being, so since they were in the original .travis.yml I'm adding them here. To get ruby 2.2 working with the official setup-ruby action I've had to pin the runner on ubuntu-20.04 due to a known issue with setup-ruby, 2.2 and ubuntu-latest: ruby/setup-ruby#496
These builds now all pass for the time being, so since they were in the original .travis.yml I'm adding them here. To get ruby 2.2 working with the official setup-ruby action I've had to pin the runner on ubuntu-20.04 due to a known issue with setup-ruby, 2.2 and ubuntu-latest: ruby/setup-ruby#496
These builds now all pass for the time being, so since they were in the original .travis.yml I'm adding them here. To get ruby 2.2 working with the official setup-ruby action I've had to pin the runner on ubuntu-20.04 due to a known issue with setup-ruby, 2.2 and ubuntu-latest: ruby/setup-ruby#496
These builds now all pass for the time being, so since they were in the original .travis.yml I'm adding them here. To get ruby 2.2 working with the official setup-ruby action I've had to pin the runner on ubuntu-20.04 due to a known issue with setup-ruby, 2.2 and ubuntu-latest: ruby/setup-ruby#496
These builds now all pass for the time being, so since they were in the original .travis.yml I'm adding them here. To get ruby 2.2 working with the official setup-ruby action I've had to pin the runner on ubuntu-20.04 due to a known issue with setup-ruby, 2.2 and ubuntu-latest: ruby/setup-ruby#496
These builds now all pass for the time being, so since they were in the original .travis.yml I'm adding them here. To get ruby 2.2 working with the official setup-ruby action I've had to pin the runner on ubuntu-20.04 due to a known issue with setup-ruby, 2.2 and ubuntu-latest: ruby/setup-ruby#496
Ruby 2.2.10 cannot be installed on the latest Ubuntu. Reference: GitHub / ruby / setup-ruby / Bundler install appears broken on Ruby 2.2 / comment by eregon [1] Error output: Installing Bundler Bundler 2 requires Ruby 2.3+, using Bundler 1 on Ruby <= 2.2 /opt/hostedtoolcache/Ruby/2.2.10/x64/bin/gem install bundler -v ~> 1.0 ERROR: While executing gem ... (RuntimeError) Marshal.load reentered at marshal_load Took 0.28 seconds [1] ruby/setup-ruby#496 (comment)
Ruby 2.2.10 cannot be installed on the latest Ubuntu but the Ubuntu 20.04. Reference: GitHub / ruby / setup-ruby / Bundler install appears broken on Ruby 2.2 / the summary comment by eregon [1] Error output: Installing Bundler Bundler 2 requires Ruby 2.3+, using Bundler 1 on Ruby <= 2.2 /opt/hostedtoolcache/Ruby/2.2.10/x64/bin/gem install bundler -v ~> 1.0 ERROR: While executing gem ... (RuntimeError) Marshal.load reentered at marshal_load Took 0.28 seconds [1] ruby/setup-ruby#496 (comment)
Ruby 2.2.10 cannot be installed on the latest Ubuntu but the Ubuntu 20.04. Reference: GitHub / ruby / setup-ruby / Bundler install appears broken on Ruby 2.2 / the summary comment by eregon [1] Error output: Installing Bundler Bundler 2 requires Ruby 2.3+, using Bundler 1 on Ruby <= 2.2 /opt/hostedtoolcache/Ruby/2.2.10/x64/bin/gem install bundler -v ~> 1.0 ERROR: While executing gem ... (RuntimeError) Marshal.load reentered at marshal_load Took 0.28 seconds [1] ruby/setup-ruby#496 (comment)
Ruby 2.2.10 cannot be installed on the latest Ubuntu but the Ubuntu 20.04. Reference: GitHub / ruby / setup-ruby / Bundler install appears broken on Ruby 2.2 / the summary comment by eregon [1] Error output: Installing Bundler Bundler 2 requires Ruby 2.3+, using Bundler 1 on Ruby <= 2.2 /opt/hostedtoolcache/Ruby/2.2.10/x64/bin/gem install bundler -v ~> 1.0 ERROR: While executing gem ... (RuntimeError) Marshal.load reentered at marshal_load Took 0.28 seconds [1] ruby/setup-ruby#496 (comment)
Ruby 2.2.10 cannot be installed on the latest Ubuntu but the Ubuntu 20.04. Reference: GitHub / ruby / setup-ruby / Bundler install appears broken on Ruby 2.2 / the summary comment by eregon [1] Error output: Installing Bundler Bundler 2 requires Ruby 2.3+, using Bundler 1 on Ruby <= 2.2 /opt/hostedtoolcache/Ruby/2.2.10/x64/bin/gem install bundler -v ~> 1.0 ERROR: While executing gem ... (RuntimeError) Marshal.load reentered at marshal_load Took 0.28 seconds [1] ruby/setup-ruby#496 (comment)
- Test against Ruby 3.3 - Use a string value instead of experimental boolean for improved readability - Test legacy Ruby versions against ubuntu-20.04 to avoid segmentation faults and errors related to `Marshal` Ref: ruby/setup-ruby#496
Until we have dropped support for the old Rubies. See ruby/setup-ruby#496 (comment)
This avoids the following error: Bundler 2 requires Ruby 2.3+, using Bundler 1 on Ruby <= 2.2 /opt/hostedtoolcache/Ruby/2.2.10/x64/bin/gem install bundler -v ~> 1.0 ERROR: While executing gem ... (RuntimeError) Marshal.load reentered at marshal_load See ruby/setup-ruby#496 This works fine on ubuntu 20.04 and 24.04.
This avoids the following error: Bundler 2 requires Ruby 2.3+, using Bundler 1 on Ruby <= 2.2 /opt/hostedtoolcache/Ruby/2.2.10/x64/bin/gem install bundler -v ~> 1.0 ERROR: While executing gem ... (RuntimeError) Marshal.load reentered at marshal_load See ruby/setup-ruby#496 This works fine on ubuntu 20.04 and 24.04.
This avoids the following error: Bundler 2 requires Ruby 2.3+, using Bundler 1 on Ruby <= 2.2 /opt/hostedtoolcache/Ruby/2.2.10/x64/bin/gem install bundler -v ~> 1.0 ERROR: While executing gem ... (RuntimeError) Marshal.load reentered at marshal_load See ruby/setup-ruby#496 This works fine on ubuntu 20.04 and 24.04.
Ensure the following before filing this issue
I verified it reproduces with the latest version with
- uses: ruby/setup-ruby@v1
(see Versioning policy)I tried to reproduce the issue locally by following the workflow steps (including all commands done by
ruby/setup-ruby
, except forDownloading Ruby
&Extracting Ruby
),and it did not reproduce locally (if it does reproduce locally, it's not a ruby/setup-ruby issue)
Are you running on a GitHub-hosted runner or a self-hosted runner?
GitHub-hosted runner
Link to the failed workflow job (must be a public workflow job, so the necessary information is available)
https://github.com/jeremyevans/ruby-refrigerator/actions/runs/4716774683/jobs/8364821711
Any other notes?
This has failed in multiple projects, and appears to be a general issue with Ruby 2.2. Here's another example:
https://github.com/jeremyevans/sequel/actions/runs/4723218962/jobs/8378878032
Installation of bundler works locals:
Example output:
The text was updated successfully, but these errors were encountered: