Skip to content

Conversation

sanak
Copy link
Member

@sanak sanak commented Jun 11, 2022

CIでRuby 2.5 のテストがこけているようでした。
https://github.com/redmine-patch-meetup/redmine-dev-mirror/runs/6843257002?check_suite_focus=true

Run ./.github/actions/test-with-db.sh mysql
+ database=mysql
+ cp ./config/database.mysql.yml ./config/database.yml
+ bundle install --path vendor/bundle --without minimagick
Your Ruby version is 2.5.9, but your Gemfile specified >= 2.[6](https://github.com/redmine-patch-meetup/redmine-dev-mirror/runs/6843257002?check_suite_focus=true#step:5:7).0, < 3.2.0
+ bundle update
Your Ruby version is 2.5.9, but your Gemfile specified >= 2.6.0, < 3.2.0
+ bundle exec rake db:create db:migrate
Bundler::RubyVersionMismatch: Your Ruby version is 2.5.9, but your Gemfile specified >= 2.6.0, < 3.2.0
bundler: failed to load command: rake (/usr/local/bin/rake)
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler/definition.rb:495:in `validate_ruby!'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler/definition.rb:4[7](https://github.com/redmine-patch-meetup/redmine-dev-mirror/runs/6843257002?check_suite_focus=true#step:5:8)0:in `validate_runtime!'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler.rb:101:in `setup'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler/setup.rb:20:in `<top (required)>'
  /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
+ bundle exec rake test
Bundler::RubyVersionMismatch: Your Ruby version is 2.5.[9](https://github.com/redmine-patch-meetup/redmine-dev-mirror/runs/6843257002?check_suite_focus=true#step:5:10), but your Gemfile specified >= 2.6.0, < 3.2.0
bundler: failed to load command: rake (/usr/local/bin/rake)
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler/definition.rb:495:in `validate_ruby!'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler/definition.rb:470:in `validate_runtime!'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler.rb:[10](https://github.com/redmine-patch-meetup/redmine-dev-mirror/runs/6843257002?check_suite_focus=true#step:5:11)1:in `setup'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler/setup.rb:20:in `<top (required)>'
  /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
Error: Process completed with exit code 1.

調べてみたところ、どうも先月末にRuby 2.5をドロップすることになったようでしたので、

CIのMatrixからRuby 2.5を削除し、Ruby 3.0/3.1 を追加してみました。

@sanak
Copy link
Member Author

sanak commented Jun 12, 2022

@juno-nishizaki, @matobaa
こちら、CIのテスト実行の方、全てパスしたようですので、お手すきの際にマージ頂けると助かります。

@sanak sanak requested review from juno-nishizaki and matobaa June 12, 2022 01:19
@matobaa matobaa merged commit 8d061a1 into develop Jun 12, 2022
@matobaa matobaa deleted the fix/update-ci-ruby-versions branch June 12, 2022 01:23
matobaa pushed a commit that referenced this pull request Mar 24, 2023
matobaa pushed a commit that referenced this pull request Mar 24, 2023
matobaa pushed a commit that referenced this pull request Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants