Skip to content
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

Fix CI for Ruby3.4 #274

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Fix CI for Ruby3.4 #274

wants to merge 4 commits into from

Conversation

tk0miya
Copy link
Contributor

@tk0miya tk0miya commented Jan 13, 2024

Our CI with Ruby3.4 has been broken because the mutex_m gem has become the bundled gem since 3.4.

This fixes it via modifying dependencies.

  • Upgrade minitest to v5.21.1 (latest)

    Old minitest depends on mutex_m gem (before v5.21) without explicit
    dependency. This upgrade minitest to the latest version which does not depends on
    the mutex_m gem.

  • Add mutex_m to the dependencies of test app

    Since Ruby 3.4, mutex_m gem becames the bundled gem. So it should be
    listed on the dependencies list.

    Note: The latest activesupport now does not depends on it. So it's also
    okay to upgrade it to the new one instead of adding.

Old minitest depends on mutex_m gem (before v5.21) without explicit
dependency.  So it causes dependency errors on CI because the mutex_m
gem became the bundled gem since Ruby 3.4.

This upgrade minitest to the latest version which does not depends on
the mutex_m gem.
Since Ruby 3.4, mutex_m gem becames the bundled gem.  So it should be
listed on the dependencies list.

Note: The latest activesupport now does not depends on it.  So it's also
okay to upgrade it to the new one.
Since Ruby 3.4, abbrev gem has became the bundled gem.  But old rbs gem
does not depend on it.  This updates rbs gem to v3.4, which depends on
abbrev gem explicitly.
@tk0miya
Copy link
Contributor Author

tk0miya commented Feb 4, 2024

Now I added an additional commit:

  • deps: Update rbs to v3.4

    Since Ruby 3.4, abbrev gem has became the bundled gem. But old rbs gem
    does not depend on it. This updates rbs gem to v3.4, which depends on
    abbrev gem explicitly.

Since Ruby 3.4, base64, bigdecimal, and drb gems have became the bundled
gem.  So they should be listed on the dependencies list.

Note: The latest activesupport now depends on them.  So it's also okay
to upgrade it to the new one.
@tk0miya
Copy link
Contributor Author

tk0miya commented Feb 4, 2024

I also added another commit:

  • deps: Add bundled gems to the dependencies of test app

    Since Ruby 3.4, base64, bigdecimal, and drb gems have became the bundled
    gem. So they should be listed on the dependencies list.

    Note: The latest activesupport now depends on them. So it's also okay
    to upgrade it to the new one.

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.

1 participant