ruby / ruby/ostruct

Truffleruby test failure in test_performance_warning(TC_OpenStruct)

Aperta
#65 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Ruby
Stelle
175
Fork
35
Merge medio
16h 14m
PR unite (30g)
1

Descrizione

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'

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia da test/ostruct/test_ostruct.rb in test_performance_warning(TC_OpenStruct), poi riproduci il fallimento su TruffleRuby ed esamina l’asserzione su stderr. Il lavoro è completato quando il test non fallisce più a causa dell’avviso imprevisto di rubygems.rb, continuando comunque a verificare l’avviso sulle prestazioni di OpenStruct.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
ruby
Ambito
testing-qa
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.