Truffleruby test failure in test_performance_warning(TC_OpenStruct)

Abierto
#65 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
ruby
Área
testing-qa

Línea de trabajo

Comienza con test/ostruct/test_ostruct.rb en test_performance_warning(TC_OpenStruct), luego reproduce el fallo en TruffleRuby e inspecciona la aserción de stderr. Se considera terminado cuando el test ya no falla debido a la advertencia inesperada de rubygems.rb y sigue comprobando la advertencia de rendimiento de OpenStruct.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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'

Lenguaje dominante
Ruby
Estrellas
175
Forks
35
Merge medio
16 h 14 min
PR fusionados (30 d)
1

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ruby/ostruct

Todos los issues de ruby/ostruct

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.