Truffleruby test failure in test_performance_warning(TC_OpenStruct)

未关闭
#65 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ruby/ostruct 的其他 Issue

查看 ruby/ostruct 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。