All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ruby: workaround ptest hang problem
@ 2021-11-03  5:48 changqing.li
  2021-11-03  6:36 ` [OE-core] " Alexander Kanavin
  0 siblings, 1 reply; 4+ messages in thread
From: changqing.li @ 2021-11-03  5:48 UTC (permalink / raw)
  To: openembedded-core

From: Changqing Li <changqing.li@windriver.com>

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.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
 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



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] ruby: workaround ptest hang problem
  2021-11-03  5:48 [PATCH] ruby: workaround ptest hang problem changqing.li
@ 2021-11-03  6:36 ` Alexander Kanavin
  2021-11-03  8:01   ` Changqing Li
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Kanavin @ 2021-11-03  6:36 UTC (permalink / raw)
  To: Changqing Li; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1906 bytes --]

Thanks, does this mean ruby-zotest can be moved out of ptest_problems list?

Alex

On Wed 3. Nov 2021 at 6.50, Changqing Li <changqing.li@windriver.com> wrote:

> From: Changqing Li <changqing.li@windriver.com>
>
> 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.
>
> Signed-off-by: Changqing Li <changqing.li@windriver.com>
> ---
>  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
> Mute This Topic: https://lists.openembedded.org/mt/86785429/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 3130 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] ruby: workaround ptest hang problem
  2021-11-03  6:36 ` [OE-core] " Alexander Kanavin
@ 2021-11-03  8:01   ` Changqing Li
  2021-11-03  8:20     ` Alexander Kanavin
  0 siblings, 1 reply; 4+ messages in thread
From: Changqing Li @ 2021-11-03  8:01 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 3548 bytes --]


On 11/3/21 2:36 PM, Alexander Kanavin wrote:
>
> **[Please note: This e-mail is from an EXTERNAL e-mail address]
>
> Thanks, does this mean t can be moved out of ptest_problems list?

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

>
> Alex
>
> On Wed 3. Nov 2021 at 6.50, Changqing Li <changqing.li@windriver.com 
> <mailto:changqing.li@windriver.com>> wrote:
>
>     From: Changqing Li <changqing.li@windriver.com
>     <mailto:changqing.li@windriver.com>>
>
>     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 <changqing.li@windriver.com
>     <mailto:changqing.li@windriver.com>>
>     ---
>      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: openembedded-core+owner@lists.openembedded.org
>     <mailto:openembedded-core%2Bowner@lists.openembedded.org>
>     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$>
>     [alex.kanavin@gmail.com <mailto:alex.kanavin@gmail.com>]
>     -=-=-=-=-=-=-=-=-=-=-=-
>

[-- Attachment #2: Type: text/html, Size: 6223 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] ruby: workaround ptest hang problem
  2021-11-03  8:01   ` Changqing Li
@ 2021-11-03  8:20     ` Alexander Kanavin
  0 siblings, 0 replies; 4+ messages in thread
From: Alexander Kanavin @ 2021-11-03  8:20 UTC (permalink / raw)
  To: Changqing Li; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 551 bytes --]

On Wed, 3 Nov 2021 at 09:01, Changqing Li <changqing.li@windriver.com>
wrote:

> 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
>
Yes please. run-ptest handles hanging tests better than it did before, so
we can better pinpoint any remaining problems.

Alex

[-- Attachment #2: Type: text/html, Size: 968 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-03  8:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-03  5:48 [PATCH] ruby: workaround ptest hang problem changqing.li
2021-11-03  6:36 ` [OE-core] " Alexander Kanavin
2021-11-03  8:01   ` Changqing Li
2021-11-03  8:20     ` Alexander Kanavin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.