Truffleruby test failure in test_performance_warning(TC_OpenStruct)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- ruby
- Lĩnh vực
- testing-qa
Hướng nghiên cứu
Bắt đầu với test/ostruct/test_ostruct.rb tại test_performance_warning(TC_OpenStruct), sau đó tái hiện lỗi trên TruffleRuby và kiểm tra assertion của stderr. Hoàn tất khi test không còn thất bại do cảnh báo rubygems.rb không mong đợi, đồng thời vẫn kiểm tra cảnh báo hiệu năng của OpenStruct.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
There is a current test failure on TruffleRuby, in the test test_performance_warning(TC_OpenStruct).
===============================================================================
Failure: test_performance_warning(TC_OpenStruct):
pid 1875 exit 0
| /home/runner/.rubies/truffleruby-24.1.1/lib/mri/rubygems.rb:1207: warning: unstable interpolated regexps cause deoptimization loops which hurt performance significantly, avoid creating regexps dynamically where possible or cache them to fix this
| -e:1: warning: OpenStruct use is discouraged for performance reasons
.
1. [2/3] Assertion for "stderr"
| <["-e:1: warning: OpenStruct use is discouraged for performance reasons"]> expected but was
| <["/home/runner/.rubies/truffleruby-24.1.1/lib/mri/rubygems.rb:1207: warning: unstable interpolated regexps cause deoptimization loops which hurt performance significantly, avoid creating regexps dynamically where possible or cache them to fix this",
| "-e:1: warning: OpenStruct use is discouraged for performance reasons"]>.
|
| diff:
| + ["/home/runner/.rubies/truffleruby-24.1.1/lib/mri/rubygems.rb:1207: warning: unstable interpolated regexps cause deoptimization loops which hurt performance significantly, avoid creating regexps dynamically where possible or cache them to fix this",
| - ["-e:1: warning: OpenStruct use is discouraged for performance reasons"]
| ? ^
| + "-e:1: warning: OpenStruct use is discouraged for performance reasons"]
| ? ^
|
| folded diff:
| + ["/home/runner/.rubies/truffleruby-24.1.1/lib/mri/rubygems.rb:1207: warning: u
| + nstable interpolated regexps cause deoptimization loops which hurt performance
| + significantly, avoid creating regexps dynamically where possible or cache the
| + m to fix this",
| - ["-e:1: warning: OpenStruct use is discouraged for performance reasons"]
| ? ^
| + "-e:1: warning: OpenStruct use is discouraged for performance reasons"]
| ? ^.
<false> is not true.
/home/runner/work/ostruct/ostruct/vendor/bundle/truffleruby/3.2.4.24.1.0.1/gems/test-unit-ruby-core-1.0.6/lib/core_assertions.rb:540:in `assert'
/home/runner/work/ostruct/ostruct/vendor/bundle/truffleruby/3.2.4.24.1.0.1/gems/test-unit-ruby-core-1.0.6/lib/core_assertions.rb:774:in `assert_all_assertions'
/home/runner/work/ostruct/ostruct/vendor/bundle/truffleruby/3.2.4.24.1.0.1/gems/test-unit-ruby-core-1.0.6/lib/core_assertions.rb:110:in `assert_in_out_err'
/home/runner/work/ostruct/ostruct/test/ostruct/test_ostruct.rb:425:in `test_performance_warning'
- Ngôn ngữ chính
- Ruby
- Star
- 175
- Fork
- 35
- Merge trung bình
- 16 giờ 14 phút
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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/ostruct
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
new warning with ruby 3.4 Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Issue tương tự
-
user-reported
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Kong/developer.konghq.com#7316 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
TheOdinProject/curriculum#31408 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
notch8/utk_knapsack#148 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Homebrew/homebrew-cask#288729 · 1 bình luận ·
-
Test `FileUtils.options_of` Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100