From: Harish.Sadineni@windriver.com
To: openembedded-core@lists.openembedded.org
Cc: Randy.MacLeod@windriver.com, Naveen.Gowda@windriver.com,
Sundeep.Kokkonda@windriver.com,
Shivaprasad.Moodalappa@windriver.com
Subject: [PATCH 2/2] gcc: Oe-selftest failure analysis - allowing multiple ssh sessions
Date: Thu, 18 Apr 2024 03:50:51 -0700 [thread overview]
Message-ID: <20240418105051.2559536-2-Harish.Sadineni@windriver.com> (raw)
In-Reply-To: <20240418105051.2559536-1-Harish.Sadineni@windriver.com>
From: Harish Sadineni <Harish.Sadineni@windriver.com>
Reusing SSH Connection to speed up remote login process using multiplexing to reduce time taken while running oe-selftest for gcc.
Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
---
meta/lib/oeqa/selftest/cases/gcc.py | 10 ++++++++++
meta/recipes-connectivity/openssh/openssh/sshd_config | 2 +-
meta/recipes-devtools/gcc/gcc-testsuite.inc | 3 ++-
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/meta/lib/oeqa/selftest/cases/gcc.py b/meta/lib/oeqa/selftest/cases/gcc.py
index 4cc0894d42..992a5b74be 100644
--- a/meta/lib/oeqa/selftest/cases/gcc.py
+++ b/meta/lib/oeqa/selftest/cases/gcc.py
@@ -5,6 +5,7 @@
#
import os
import time
+import subprocess
from oeqa.core.decorator import OETestTag
from oeqa.core.case import OEPTestResultTestCase
from oeqa.selftest.case import OESelftestTestCase
@@ -83,6 +84,15 @@ class GccSelfTestBase(OESelftestTestCase, OEPTestResultTestCase):
# validate that SSH is working
status, _ = qemu.run("uname")
self.assertEqual(status, 0)
+ qemu_ip = qemu.ip
+ ssh_command = [
+ "ssh", "-o", "StrictHostKeyChecking=no",
+ "-o", "UserKnownHostsFile=/dev/null",
+ "-o", "ControlMaster=auto",
+ "-o", "ControlPath=~/.ssh/control-%r@%h:%p",
+ "-o", "Controlpersist=yes", "root@{}".format(qemu_ip),
+ "exit" ]
+ subprocess.run(ssh_command, check=True)
return self.run_check(*args, ssh=qemu.ip, **kwargs)
diff --git a/meta/recipes-connectivity/openssh/openssh/sshd_config b/meta/recipes-connectivity/openssh/openssh/sshd_config
index b9357ef6c5..37ffe28142 100644
--- a/meta/recipes-connectivity/openssh/openssh/sshd_config
+++ b/meta/recipes-connectivity/openssh/openssh/sshd_config
@@ -34,7 +34,7 @@ Include /etc/ssh/sshd_config.d/*.conf
#PermitRootLogin prohibit-password
#StrictModes yes
#MaxAuthTries 6
-#MaxSessions 10
+MaxSessions 1000
#PubkeyAuthentication yes
diff --git a/meta/recipes-devtools/gcc/gcc-testsuite.inc b/meta/recipes-devtools/gcc/gcc-testsuite.inc
index 0a950b6c9e..62e9691a99 100644
--- a/meta/recipes-devtools/gcc/gcc-testsuite.inc
+++ b/meta/recipes-devtools/gcc/gcc-testsuite.inc
@@ -87,7 +87,8 @@ python check_prepare() {
content.append("set_board_info username {0}".format(d.getVar("TOOLCHAIN_TEST_HOST_USER")))
port = d.getVar("TOOLCHAIN_TEST_HOST_PORT")
- content.append("set_board_info rsh_prog \"/usr/bin/ssh -p {0} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no\"".format(port))
+ qemuip_address = d.getVar("TOOLCHAIN_TEST_HOST")
+ content.append("set_board_info rsh_prog \"/usr/bin/ssh -S ~/.ssh/control-root@{0}:{1} \"".format( qemuip_address, port))
content.append("set_board_info rcp_prog \"/usr/bin/scp -P {0} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no\"".format(port))
return "\n".join(content)
--
2.43.0
next prev parent reply other threads:[~2024-04-18 10:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-18 10:50 [PATCH 1/2] gcc: Oe-selftest failure analysis - fix for host key verfication & kex exchange identification failures Harish.Sadineni
2024-04-18 10:50 ` Harish.Sadineni [this message]
2024-04-18 11:00 ` [PATCH 2/2] gcc: Oe-selftest failure analysis - allowing multiple ssh sessions Sadineni, Harish
2024-04-18 10:57 ` [PATCH 1/2] gcc: Oe-selftest failure analysis - fix for host key verfication & kex exchange identification failures Sadineni, Harish
2024-04-18 11:07 ` Patchtest results for " patchtest
2024-04-25 12:07 ` [OE-core] " Richard Purdie
2024-04-25 12:35 ` Richard Purdie
2024-07-16 18:20 ` Sadineni, Harish
-- strict thread matches above, loose matches on Subject: below --
2024-04-18 11:34 [PATCH 1/2] gcc: " Harish.Sadineni
2024-04-18 11:34 ` [PATCH 2/2] gcc: Oe-selftest failure analysis - allowing multiple ssh sessions Harish.Sadineni
2024-04-18 11:40 ` Sadineni, Harish
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240418105051.2559536-2-Harish.Sadineni@windriver.com \
--to=harish.sadineni@windriver.com \
--cc=Naveen.Gowda@windriver.com \
--cc=Randy.MacLeod@windriver.com \
--cc=Shivaprasad.Moodalappa@windriver.com \
--cc=Sundeep.Kokkonda@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox