Skip to contentSkip to conversation

ruby: workaround ptest hang problem

PATCH New [email protected] 1 participant 1 message Nov 12, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 ruby: workaround ptest hang problem

From: Changqing Li <[email protected]>

* workaround ptest hang problem

since openssl 3 not compatible problem, ruby have disable openssl extention. But disable openssl extention make test_smtp.rs hang at test case "test_start".

Net::TestSMTP#test_start:
NameError: uninitialized constant Net::SMTP::OpenSSL
Did you mean? Open3 /usr/lib64/ruby/3.0.0/net/smtp.rb:195:in default_ssl_context' /usr/lib64/ruby/3.0.0/net/smtp.rb:552:in start' /usr/lib64/ruby/3.0.0/net/smtp.rb:475:in start' /usr/lib64/ruby/ptest/test/net/smtp/test_smtp.rb:199:in test_start'

temporarily remove the hang case to make other testcases can be run.

* mask out known failed case, and enable it by default

Mask out known failed case, and move ruby-ptest out of the PTESTS_PROBLEMS list. On 48 core host, run ruby ptest in qemux86-64:

root@qemux86-64:/usr/lib64/ruby/ptest# time ./run-ptest
PASS: test/test_prime.rb
PASS: test/test_syslog.rb
...
PASS: test/did_you_mean/tree_spell/test_human_typo.rb
PASS: test/did_you_mean/tree_spell/test_change_word.rb

real 4m55.233s
user 3m25.262s
sys 0m31.037s

---
 .../distro/include/ptest-packagelists.inc     |  3 +-
 meta/recipes-devtools/ruby/ruby.inc           | 51 +++++++++++++++++++
 2 files changed, 52 insertions(+), 2 deletions(-)
meta/conf/distro/include/ptest-packagelists.inc +1 -2
index 2e324f8da4..f1c40ac813 100644
@@ -81,6 +81,7 @@ PTESTS_SLOW = "\
     openssl-ptest \
     perl-ptest \
     python3-ptest \
+    ruby-ptest \
     strace-ptest \
     tcl-ptest \
     util-linux-ptest \
@@ -90,7 +91,6 @@ PTESTS_SLOW = "\
 PTESTS_SLOW:remove:riscv64 = "valgrind-ptest"
 PTESTS_PROBLEMS:append:riscv64 = "valgrind-ptest"
 
-#    ruby-ptest \ # Timeout
 #    lz4-ptest \ # Needs a rewrite
 #    rt-tests-ptest \ # Needs to be checked whether it runs at all
 #    bash-ptest \ # Test outcomes are non-deterministic by design
@@ -103,7 +103,6 @@ PTESTS_PROBLEMS:append:riscv64 = "valgrind-ptest"
 #    python3-numpy-ptest \ # requires even more RAM and (possibly) disk space; multiple failures
 
 PTESTS_PROBLEMS = "\
-    ruby-ptest \
     lz4-ptest \
     rt-tests-ptest \
     bash-ptest \
meta/recipes-devtools/ruby/ruby.inc +51 -0

54 lines not on this page · raw message

Signature · 1 line
2.17.1