]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oeqa/ssh: Improve performance and log sizes
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Nov 2024 16:54:44 +0000 (16:54 +0000)
committerSteve Sakoman <steve@sakoman.com>
Thu, 9 Jan 2025 14:01:28 +0000 (06:01 -0800)
commit57673a71b20e2bbb53e7652a709bdcb32c429b6b
tree71074a8ac1d511a73fcec836c5c9b4328f5a1973
parentf32ab69b4caef5ac2f61bb53102d8b08b94d54d5
oeqa/ssh: Improve performance and log sizes

The current code is not fit for purpose when handling large files via ssh. In the strace
ptest case, we can end up with a 1.4GB archive being transferred for which every
byte is printed into the task logfile twice over. This is then sent over bitbake IPC
which compounds the problems.

Make the following improvements:
  * when the output is large (over 64kb), don't print it
  * use a bytearray for better concat performance since strings are slow for this
  * when there is no ssh output, say that
  * print periodic size status output rather than the data itself since this could be binary and/or large
  * fix the killed process message logic which appeared broken

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e7dd009a17dc902852983a82bce41bf78bb1e242)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/core/target/ssh.py