Re: [OE-core] [PATCH 1/2] gcc: fix for host key verfication & kex exchange identification failures

2024-04-18 Thread Sadineni, Harish via lists.openembedded.org
testresults before applying patch for x86_64 :
|  gcc            |   g++           |  libatomic    |   libgomp  |    libitm    
  |   libstdc++ |  Total (Sum of all modules)
expected passes         |  148313     |   218545      |  27              |    
3369      |    24           |    9693     |  379971
unexpected failures     |  15             |   20              |                 
   |                  |                   |                 |  35
expected failures         |  1419         |   2052          |                   
 |    30          |                   |    6           |  3507
unresolved testcases  |  25130        |   10816       |  27              |    
1579      |     22          |    4869      |  42443
unsupported tests       |  2686          |   10420       |                    | 
   410        |     2             |    643       |  14161

testresults after applying patch for x86_64:
|  gcc          |   g++           |  libatomic    |   libgomp  |    libitm      
|   libstdc++ |  Total (Sum of all modules)
expected passes         |  177610    |   230158     |  54              |    
5033      |    24          |    13695    |  426574
unexpected failures     |  99           |   20              |                   
 |    1            |    19          |    7            |  146
expected failures         |  1422       |   2063          |                    
|    32          |    3            |    106        |  3626
unresolved testcases  |  4              |                    |                  
  |                  |                  |    1125       |  1129
unsupported tests       |  2147        |   10350       |                    |   
 429        |    2            |    805         |  13733

Unresolved cases are reduced to ~1000 (i.e., More than 41K tests are newly 
executed)
More than 45000 tests cases are passed newly.

Thanks,
Harish

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198514): 
https://lists.openembedded.org/g/openembedded-core/message/198514
Mute This Topic: https://lists.openembedded.org/mt/105595960/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 1/2] gcc: fix for host key verfication & kex exchange identification failures

2024-04-18 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

while runnig oe-selftest for gcc, testcases that need to be run on qemu are not 
running due to below failures.
- Executing on ssh: mkdir -p /tmp/runtest.3549641   (timeout = 300)
   spawn [open ...]
   Host key verification failed.
   ERROR: Couldn't create remote directory /tmp/runtest.3549641 on ssh
- kex_exchange_identification: read: Connection reset by peer^M
   Connection reset by 192.168.7.2 port 22^M
   ERROR: Couldn't create remote directory /tmp/runtest.3549814 on ssh

Host key verification failure is happening when ssh board config file name is 
defined as "ssh.exp" and there are multiple ssh.exp files generated during the 
build and a wrong ssh config was taken. To resolve this changed the board 
config file name to "linux-ssh.exp" which ensures correct ssh settings are used.

To resolve kex exchange identification error increased the MaxStartups.

Signed-off-by: Harish Sadineni 
---
 meta/lib/oeqa/selftest/cases/gcc.py   | 2 +-
 meta/recipes-connectivity/openssh/openssh/sshd_config | 2 +-
 meta/recipes-devtools/gcc/gcc-testsuite.inc   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/lib/oeqa/selftest/cases/gcc.py 
b/meta/lib/oeqa/selftest/cases/gcc.py
index 89360178fe..4cc0894d42 100644
--- a/meta/lib/oeqa/selftest/cases/gcc.py
+++ b/meta/lib/oeqa/selftest/cases/gcc.py
@@ -37,7 +37,7 @@ class GccSelfTestBase(OESelftestTestCase, 
OEPTestResultTestCase):
 features = []
 features.append('MAKE_CHECK_TARGETS = "{0}"'.format(" ".join(targets)))
 if ssh is not None:
-features.append('TOOLCHAIN_TEST_TARGET = "ssh"')
+features.append('TOOLCHAIN_TEST_TARGET = "linux-ssh"')
 features.append('TOOLCHAIN_TEST_HOST = "{0}"'.format(ssh))
 features.append('TOOLCHAIN_TEST_HOST_USER = "root"')
 features.append('TOOLCHAIN_TEST_HOST_PORT = "22"')
diff --git a/meta/recipes-connectivity/openssh/openssh/sshd_config 
b/meta/recipes-connectivity/openssh/openssh/sshd_config
index e9eaf93157..b9357ef6c5 100644
--- a/meta/recipes-connectivity/openssh/openssh/sshd_config
+++ b/meta/recipes-connectivity/openssh/openssh/sshd_config
@@ -100,7 +100,7 @@ ClientAliveInterval 15
 ClientAliveCountMax 4
 #UseDNS no
 #PidFile /var/run/sshd.pid
-#MaxStartups 10:30:100
+MaxStartups 75:30:100
 #PermitTunnel no
 #ChrootDirectory none
 #VersionAddendum none
diff --git a/meta/recipes-devtools/gcc/gcc-testsuite.inc 
b/meta/recipes-devtools/gcc/gcc-testsuite.inc
index f16d471478..0a950b6c9e 100644
--- a/meta/recipes-devtools/gcc/gcc-testsuite.inc
+++ b/meta/recipes-devtools/gcc/gcc-testsuite.inc
@@ -101,7 +101,7 @@ python check_prepare() {
 f.write(generate_qemu_linux_user_config(d))
 
 # write out target ssh board config
-with open(os.path.join(dejagnudir, "ssh.exp"), "w") as f:
+with open(os.path.join(dejagnudir, "linux-ssh.exp"), "w") as f:
 f.write(generate_remote_ssh_linux_config(d))
 
 # generate site.exp to provide boards
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198512): 
https://lists.openembedded.org/g/openembedded-core/message/198512
Mute This Topic: https://lists.openembedded.org/mt/105595960/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-