concurrent-ruby rspec testsuite fails with ruby4.0.0dev perhaps due to Set change
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start with spec/concurrent/set_spec.rb and the failures at lines 10 and 16, then inspect lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb:34. Reproduce the failures using the reported Ruby 4.0.0dev command and compare the behavior with the referenced Ruby Set change. Done means the affected set specs pass without the internal monitor error on Ruby 4.0.0dev.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Trying with ruby 4.0.0dev (2025-11-16 master bacd35626c) +PRISM [x86_64-linux]
https://github.com/ruby/ruby/commit/bacd35626c500db1f27136b57363685e4da74d9b
concurrent-ruby git head
https://github.com/ruby-concurrency/concurrent-ruby/commit/05523c01f6f2eebcb7579c2b8efc29e595010bb0
concurrent-ruby side rspec testsuite fails (concurrent-ruby-edge side not tested) like:
$ env RUBYLIB=$(pwd)/lib/concurrent-ruby rspec --exclude-pattern 'spec/concurrent/{actor_spec.rb,channel_spec.rb,lazy_register_spec.rb,channel/**/*,edge/**/*,processing_actor_spec.rb,promises_spec.rb,throttle_spec.rb,cancellation_spec.rb,executor/wrapping_executor_spec.rb}'
......
Failures:
1) Concurrent::Set.[] when initializing with arguments creates a set with the given objects
Failure/Error: monitor or raise("BUG: Internal monitor was not properly initialized. Please report this to the concurrent-ruby developers.")
RuntimeError:
BUG: Internal monitor was not properly initialized. Please report this to the concurrent-ruby developers.
# ./lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb:34:in 'Concurrent::CRubySet#=='
# ./spec/concurrent/set_spec.rb:17:in 'block (4 levels) in <module:Concurrent>'
2) Concurrent::Set.[] when initializing with no arguments is expected to be empty
Failure/Error: monitor or raise("BUG: Internal monitor was not properly initialized. Please report this to the concurrent-ruby developers.")
RuntimeError:
BUG: Internal monitor was not properly initialized. Please report this to the concurrent-ruby developers.
# ./lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb:34:in 'Concurrent::CRubySet#empty?'
# ./spec/concurrent/set_spec.rb:11:in 'block (4 levels) in <module:Concurrent>'
Finished in 2 minutes 31.1 seconds (files took 0.48868 seconds to load)
2157 examples, 2 failures, 12 pending
Failed examples:
rspec ./spec/concurrent/set_spec.rb:16 # Concurrent::Set.[] when initializing with arguments creates a set with the given objects
rspec ./spec/concurrent/set_spec.rb:10 # Concurrent::Set.[] when initializing with no arguments is expected to be empty
Maybe this is due to Set change in ruby4_0 like
https://github.com/ruby/ruby/commit/e4f85bfc311a3812de7bc2e9d068934e8b364574
but I am not sure.
- Ngôn ngữ chính
- Ruby
- Star
- 5.8k
- Fork
- 420
- Merge trung bình
- 20 giờ 45 phút
- Pull request đã merge (30 ngày)
- 4
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ruby-concurrency/concurrent-ruby
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
ruby-concurrency/concurrent-ruby#1118 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ruby-concurrency/concurrent-ruby#1099 · 9 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
ruby-concurrency/concurrent-ruby#1095 · 8 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
ruby-concurrency/concurrent-ruby#1091 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
ruby-concurrency/concurrent-ruby#1072 · 1 reaction ·
Tất cả issue của ruby-concurrency/concurrent-ruby
Issue tương tự
-
バグ
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
-
Version bump for OpenVox 9 Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
voxpupuli/puppet-epel#186 · 1 bình luận ·
-
external_created_at is no longer used for the message timestamp since the new message UI (v4.4.0) Đang mởBug Frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
TheOdinProject/curriculum#31402 · 1 bình luận ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100