Skip to contentSkip to conversation

ruby: workaround ptest hang problem

PATCH Superseded [email protected] 2 participants 3 messages Nov 4, 2021 – Nov 5, 2021

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ruby: workaround ptest hang problem

From: Changqing Li <[email protected]>

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.

meantime, move ruby-ptest out of the PTESTS_PROBLEMS list

---
 meta/conf/distro/include/ptest-packagelists.inc | 3 +--
 meta/recipes-devtools/ruby/ruby.inc             | 4 ++++
 2 files changed, 5 insertions(+), 2 deletions(-)
meta/conf/distro/include/ptest-packagelists.inc +1 -2
index 2e324f8da4..197469a07b 100644
@@ -85,12 +85,12 @@ PTESTS_SLOW = "\
     tcl-ptest \
     util-linux-ptest \
     valgrind-ptest \
+    ruby-ptest \
 "
 
 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 +4 -0
index 2b5caf35f5..776c409f6c 100644
@@ -42,3 +42,7 @@ do_configure:prepend() {
 do_configure:prepend() {
     rm -rf ${S}/ext/openssl/extconf.rb
 }
+# Remove this test temporarily until it compatible with openssl 3
+do_install_ptest:append() {
+    rm -rf ${D}${PTEST_PATH}/test/net/smtp/test_smtp.rb
+}
Signature · 1 line
2.17.1
#1 lore raw

meta/conf/distro/include/ptest-packagelists.inc PTESTS_SLOW = "\ · line 90

Quoted 7 lines · Changqing Li
meta/conf/distro/include/ptest-packagelists.inc +1 -0
@@ -85,12 +85,12 @@ PTESTS_SLOW = "\
     tcl-ptest \
     util-linux-ptest \
     valgrind-ptest \
+    ruby-ptest \
 "
 

Thanks, can you insert this in alphabetical order? Also please add to the commit message how long does the test take.

Alex

#2 lore raw
Quoted 13 lines · Alexander Kanavin

**[Please note: This e-mail is from an EXTERNAL e-mail address]

On Thu, 4 Nov 2021 at 02:42, Changqing Li <[email protected] <mailto:[email protected]>> wrote:

    @@ -85,12 +85,12 @@ PTESTS_SLOW = "\
         tcl-ptest \
         util-linux-ptest \
         valgrind-ptest \
    +    ruby-ptest \
     "
Quoted 3 lines

Thanks, can you insert this in alphabetical order? Also please add to the commit message how long does the test take.

Alex

OK,  Thanks.  I will send V3