-
Notifications
You must be signed in to change notification settings - Fork 17
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
Support Ruby 2.6+ again #3
Conversation
Follow 0d1b754 On ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin20], `bin/setup; rake` failed as below ``` install -c tmp/x86_64-darwin20/pathname/2.7.2/pathname.bundle lib/pathname.bundle cp tmp/x86_64-darwin20/pathname/2.7.2/pathname.bundle tmp/x86_64-darwin20/stage/lib/pathname.bundle Loaded suite /Users/kachick/.gem/ruby/2.7.2/gems/rake-13.0.3/lib/rake/rake_test_loader Started ............................................................................... ............................................................................... ............................................................................... ..............................................E =============================================================================== Error: test_ractor_shareable(TestPathnameRactor): NameError: undefined local variable or method `skip' for #<TestPathnameRactor:0x00007ff6c7a2d878> /Users/kachick/repos/pathname/test/pathname/test_ractor.rb:7:in `setup' =============================================================================== Finished in 0.196045 seconds. ------------------------------------------------------------------------------- 284 tests, 368 assertions, 0 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications 99.6479% passed ------------------------------------------------------------------------------- 1448.65 tests/s, 1877.12 assertions/s rake aborted! Command failed with status (1) /Users/kachick/.gem/ruby/2.7.2/gems/rake-13.0.3/exe/rake:27:in `<top (required)>' Tasks: TOP => default => test (See full trace by running task with --trace) ```
It sounds a bit too much to me to drop support this early. The failure on ruby 2.7 should be simple to fix by replacing Finally, I think 0d1b754 is a wrong motivation to stop testing versions in CI: gemifying a standard library means it can be upgraded from older rubies as long as the gem supports them, so those should still be tested until support is officially dropped. |
Agreed. It caused by my laziness. It should be set |
Oh, sorry I didn't know these Gemfied repositories should support which ruby versions... 😮 Hmm... @deivid-rodriguez told me so good references, thank you for the digging 🙏 So I might to try to support |
I have tried it, but hmm... sorry I can not immediately resolve some of issues 🙇 First of it is 5059642, I didn't know ruby accepts integer key as a keyword arguments since ruby 2.7...(Or it is my misunderstanding? 😓 ) Second issue looks CI, them I can finish running tests in my local, but CI looks fault https://github.com/ruby/pathname/pull/3/checks?check_run_id=2224125960 The error looks weird.
The alerting code is nothing in this PR... So CI might using ruby bundled one? 🤔 pathname/test/pathname/test_pathname.rb Lines 1068 to 1077 in 5059642
|
Thanks for the update @kachick!
In my opinion, if the changes here are enough to support ruby 2.5, I think it's worth keeping it. I'm pushing for the same move for But this is up to @hsbt. |
I just run into this. My preference would be to reintroduce support for old rubies, but if this is not desired by the maintainers of this library, could we bump the Thanks! |
I created #13 to implement the alternative proposal. |
@deivid-rodriguez Thanks. @kachick I want to support only the stable versions. So, Ruby 2.6 will be EOL status at 2022/3. I will close this. |
Thank you all! 🙇 |
pathname/.github/workflows/test.yml
Line 10 in a71f7d8
This gem is testing only in Ruby 3.0+ since 0d1b754
Actually, old rubies can't finish tests.
bin/setup; rake
failed as below.On ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin20]
On ruby 2.3.8p459 (2018-10-18 revision 65136) [x86_64-linux]