Skip to content

Conversation

@eregon
Copy link
Contributor

@eregon eregon commented Dec 3, 2025

See individual commits for details.

FYI there is also postmodern/ruby-versions@e80b1c1

@eregon eregon force-pushed the update-truffleruby-urls-and-dependencies branch 2 times, most recently from 38a98a6 to 7b002c3 Compare December 3, 2025 10:35
Copy link
Owner

@postmodern postmodern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but we should add additional tests to test/truffleruby-tests/dependencies_tests.sh for when the truffleruby version is 33.x or greater in order to test when the openssl and libyaml dependencies are omitted. We could do that in this PR or in a separate PR/commit. Depends on how fast you want this merged.

@eregon
Copy link
Contributor Author

eregon commented Dec 4, 2025

Thanks for the review. It's not urgent, I'll add them in this PR.

@eregon
Copy link
Contributor Author

eregon commented Dec 10, 2025

I noticed not all tests are run in CI:
https://github.com/postmodern/ruby-install/actions/runs/19890819627/job/57008938647?pr=517
doesn't run any dependencies_tests.sh for example.
The issue seems this glob:

for test in ${0%/*}/{,*-tests/}*_test.sh; do

@eregon eregon force-pushed the update-truffleruby-urls-and-dependencies branch 2 times, most recently from a7c4011 to 1d0ac4b Compare December 10, 2025 11:21
@eregon
Copy link
Contributor Author

eregon commented Dec 10, 2025

All good and passing now.
It was quite a bit of work to update all those tests, not sure I'm convinced of their value vs cost to maintain ratio, but anyway it's done.

Comment on lines +3 to +4
# Same as truffleruby dependencies
source "${BASH_SOURCE[0]%/*}/../truffleruby/dependencies.sh"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also be a symlink, not sure what you prefer.

@eregon
Copy link
Contributor Author

eregon commented Dec 10, 2025

The ArchLinux and OpenSUSE failures are unrelated to this PR and preexisting.

The same tests also fail on FreeBSD and additonally there truffleruby tests fail since BSD is not a supported platform for TruffleRuby.
So I guess we should skip the truffleruby tests on BSD.

Could you take care of those by pushing extra commits to this PR?

@eregon
Copy link
Contributor Author

eregon commented Jan 10, 2026

@postmodern Hello, any chance you could finish this up or just merge this PR?
The remaining failures are unrelated to this PR and pre-existing (but hidden as not all tests ran).

Copy link
Owner

@postmodern postmodern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason some of the tests are not being ran is the truffleruby shunit2 test files are named *_tests.sh instead of *_test.sh. If you rename test/truffleruby-tests/dependencies_tests.sh to test/truffleruby-tests/dependencies_test.sh, test/truffleruby-graalvm-tests/functions_tests.sh to test/truffleruby-graalvm-tests/functions_test.sh, and remove the test/runner change, the shunit2 test files should run.

I renamed all of the *_tests.sh files in the fix_test_file_names branch, but ran into a TruffleRuby FreeBSD detection issue once the files started running again.

* TruffleRuby does not currently support FreeBSD.
@eregon
Copy link
Contributor Author

eregon commented Jan 11, 2026

The reason some of the tests are not being ran is the truffleruby shunit2 test files

Not just those but all dependencies_tests.sh and functions_tests.sh as you noticed.
It's what I mentioned back in #517 (comment)

@eregon eregon force-pushed the update-truffleruby-urls-and-dependencies branch from 1d0ac4b to cac480a Compare January 11, 2026 08:15
@eregon
Copy link
Contributor Author

eregon commented Jan 11, 2026

I rebased on top of fix_test_file_names, it was fairly easy, just one conflict to deal with.

@eregon eregon requested a review from postmodern January 11, 2026 08:18
@eregon
Copy link
Contributor Author

eregon commented Jan 11, 2026

@postmodern Thank you for fixing the CI. This should be ready to go after merging fix_test_file_names.

@postmodern postmodern merged commit 266389f into postmodern:master Jan 12, 2026
6 checks passed
@postmodern
Copy link
Owner

I will start preparing a patch release with these and other fixes in it.

@postmodern postmodern added this to the 0.10.2 milestone Jan 12, 2026
@postmodern
Copy link
Owner

postmodern commented Jan 14, 2026

ruby-install 0.10.2 has now been released to coincide with the TruffleRuby 33 announcement. Just installed TruffleRuby 33 and the rest of my rubies.

Unfortunately, I made one mistake and forgot to update the ruby-install --version number in ruby-install.sh... 🤦

@eregon
Copy link
Contributor Author

eregon commented Jan 14, 2026

Thank you!

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