Truffleruby test failure in test_performance_warning(TC_OpenStruct)
还没有人认领这个 Issue。
评估
- 难度
- 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 分钟
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 74/100
bensheldon/good_job#1816 · 5 条评论 ·