ruby: workaround ptest hang problem
PATCH 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.
--- meta/recipes-devtools/ruby/ruby.inc | 4 ++++ 1 file changed, 4 insertions(+)
meta/recipes-devtools/ruby/ruby.inc +4 -0
@@ -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
Thanks, does this mean ruby-zotest can be moved out of ptest_problems list?
Alex
Quoted 49 lines · Changqing Li
From: Changqing Li <[email protected]>
since openssl 3 not compatible problem, ruby have disable openssl extention. But disable openssl extention make
test_smtp.rshang at test case "test_start".Net::TestSMTP#test_start:
NameError: uninitialized constantNet::SMTP::OpenSSL
Did you mean? Open3 /usr/lib64/ruby/3.0.0/net/smtp.rb:195:indefault_ssl_context' /usr/lib64/ruby/3.0.0/net/smtp.rb:552:instart' /usr/lib64/ruby/3.0.0/net/smtp.rb:475:instart' /usr/lib64/ruby/ptest/test/net/smtp/test_smtp.rb:199:intest_start'temporarily remove the hang case to make other testcases can be run.
Signed-off-by Changqing Li <[email protected]>--- meta/recipes-devtools/ruby/ruby.inc | 4 ++++ 1 file changed, 4 insertions(+)meta/recipes-devtools/ruby/ruby.inc +4
-1@@ -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 +} --2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#157818):
https://lists.openembedded.org/g/openembedded-core/message/157818
Mute This Topic: https://lists.openembedded.org/mt/86785429/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 4 lines · Alexander Kanavin
**[Please note: This e-mail is from an EXTERNAL e-mail address]
Thanks, does this mean t can be moved out of
ptest_problemslist?
test_smtp hang problem should caused by openssl upgrade to 3.0. but ruby_ptest is moved into ptest_problems when openssl is 1.1,
so I am not sure why ruby_ptest timeout in the past. But after I remove test_smtp, I can run ruby test successfully.
if no objection, maybe I can try move it out of ptest_problems and send a V2
//Changqing
Quoted 63 lines
Alex
On Wed 3. Nov 2021 at 6.50, Changqing Li <[email protected] <mailto:[email protected]>> wrote:
From: Changqing Li <[email protected] <mailto:[email protected]>> since openssl 3 not compatible problem, ruby have disable openssl extention. But disable openssl extention make test_smtp.rs <https://urldefense.com/v3/__http://test_smtp.rs__;!!AjveYdw8EvQ!KRwgmqCbWpbd4POOmjciuyaTRY8ELuICspkVDw3exWGHI7r5_v_SA8NhwdyWxhbCjFDmlw$> 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. Signed-off-by: Changqing Li <[email protected] <mailto:[email protected]>> --- meta/recipes-devtools/ruby/ruby.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/recipes-devtools/ruby/ruby.inc b/meta/recipes-devtools/ruby/ruby.inc index 2b5caf35f5..776c409f6c 100644 --- a/meta/recipes-devtools/ruby/ruby.inc +++ b/meta/recipes-devtools/ruby/ruby.inc @@ -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 +} -- 2.17.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157818): https://lists.openembedded.org/g/openembedded-core/message/157818 <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/message/157818__;!!AjveYdw8EvQ!KRwgmqCbWpbd4POOmjciuyaTRY8ELuICspkVDw3exWGHI7r5_v_SA8NhwdyWxhYfrjf3Gg$> Mute This Topic: https://lists.openembedded.org/mt/86785429/1686489 <https://urldefense.com/v3/__https://lists.openembedded.org/mt/86785429/1686489__;!!AjveYdw8EvQ!KRwgmqCbWpbd4POOmjciuyaTRY8ELuICspkVDw3exWGHI7r5_v_SA8NhwdyWxhZ-072GZw$> Group Owner: [email protected] <mailto:openembedded-core%[email protected]> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/unsub__;!!AjveYdw8EvQ!KRwgmqCbWpbd4POOmjciuyaTRY8ELuICspkVDw3exWGHI7r5_v_SA8NhwdyWxhbrqz8_YA$> [[email protected] <mailto:[email protected]>] -=-=-=-=-=-=-=-=-=-=-=-
Quoted 9 lines · Changqing Li
test_smtphang problem should caused by openssl upgrade to 3.0. butruby_ptestis moved intoptest_problemswhen openssl is 1.1,so I am not sure why
ruby_ptesttimeout in the past. But after I removetest_smtp, I can run ruby test successfully.if no objection, maybe I can try move it out of
ptest_problemsand send a V2
Yes please. run-ptest handles hanging tests better than it did before, so we can better pinpoint any remaining problems.
Alex