Truffleruby test failure in test_performance_warning(TC_OpenStruct)
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- ruby
- 領域
- testing-qa
調査の方向性
test/ostruct/test_ostruct.rb の test_performance_warning(TC_OpenStruct) から始め、次に TruffleRuby で失敗を再現して stderr のアサーションを調べます。予期しない rubygems.rb の警告が原因でテストが失敗しなくなり、OpenStruct のパフォーマンス警告のチェックは引き続き行われれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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'
- 主要言語
- Ruby
- スター
- 175
- フォーク
- 35
- 平均マージ
- 16時間 14分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ruby/ostruct のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
似ている issue
-
user-reported
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
Kong/developer.konghq.com#7316 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
TheOdinProject/curriculum#31408 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
notch8/utk_knapsack#148 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
Homebrew/homebrew-cask#288729 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100