diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-20 16:54:44 +0000 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-01-13 05:49:08 -0800 |
commit | 66f9cec85308921d62fa447f10828043c89a79c2 (patch) | |
tree | 4b90862ae78edb1a461a5ae6598bfe220f45f844 /scripts/lib/devtool/ide_sdk.py | |
parent | f7169136671458a98690a7eb3328aa743f02d19e (diff) | |
download | poky-66f9cec85308921d62fa447f10828043c89a79c2.tar.gz |
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
(From OE-Core rev: 57673a71b20e2bbb53e7652a709bdcb32c429b6b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e7dd009a17dc902852983a82bce41bf78bb1e242)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts/lib/devtool/ide_sdk.py')
0 files changed, 0 insertions, 0 deletions