add failed test artifacts retriever
cover add failed test artifacts retriever
This series is a proposal to bring in an "artifact retriever" to ease debugging when some runtime tests fails. This is a follow-up to corresponding RFC ([1]), which in turn is a proposal to address general debugging issues like [2]
In the proposed form the retriever is pretty simple/dumb: it waits for all tests listed for a testimage run to be done, and if any of those tests has failed, it tries to read a list of "artifacts of interest to retrieve", and pulls those files onto the host system (next to testresults.json) for further analysis. This is true for ALL runtime tests. So for example, a failing test in a very basic test session running ping, ssh and ptests will trigger artifacts retrieval, the failing test being either a ping test, a ssh test or a ptest.
The artifacts list is provided in the form of a configuration file which must be a valid json file, with an 'artifacts' entry at its root, pointing to an array of aths to retrieve. Such paths must be absolute and can point either to files or directories. For example:
{
"artifacts": [
"/usr/lib/lttng-tools/ptest",
"/var/log",
"/etc/version",
]
}There is one single artifacts file to be provided for a whole test run (i.e a run done with bitbake -c testimage). The artifacts configuration file is not submitted with this series: current design assumes that this configuration is linked to CI runs, so artifacts configuration file(s) may be stored in yocto-autobuilder-helper, which then can pass the configuration to the testimage class (where retriever is implemented) through a new bitbake variable: ARTIFACTS_LIST_PATH
Retrieved files are pulled through scp to allow compatibility for both Qemu and SSH targets, and are currently stored "as is" (unarchived/uncompressed) in tmp/log/oeqa/<image>/artifacts.
The series has been tested with the following process:
- create an 'artifacts.json' file based on sample above
- add dummy failing ptest in lttng-modules through a custom patch in meta/recipes-kernel/lttng
- build core-image-minimal image with:
- DISTRO_FEATURES:append = " ptest"
- CORE_IMAGE_EXTRA_INSTALL += "dropbear lttng-tools-ptest"
- TEST_SUITES = "ping ssh ptest"
- IMAGE_CLASSES += "testimage"
- ARTIFACTS_LIST_PATH="<yocto_dir>/build/artifacts.json"
- run tests: bitbake core-image-minimal -c testimage
- ensure artifacts are properly retrieved and stored
Depending on this series feedback, here is what could follow:
- documentation update for new ARTIFACTS_LIST_PATH variable and artifacts storage path
- adding some artifacts.json file(s) to yocto-autobuilder-helper to automatically pull out some artifacts for intermittent failures
- adding compression and publication of artifacts on Autobuilder web server
The main questioning I have about current implementation is the granularity level to offer to select which files/directories to retrieve. Based on Alexander's feedback on initial RFC, it may be too tedious to specify for each ptest what file to retrieve, so I have gone for a very simple version which list files for the whole run. But feel free to challenge it and provide some insights if some finer controls would be more useful.
[1] https://lore.kernel.org/openembedded-core/[email protected]/T/#t
[2] https://bugzilla.yoctoproject.org/show_bug.cgi?id=14901
Alexis Lothoré (3):
oeqa/target/ssh: update options for SCP
testimage: shut down DUT later
testimage: implement test artifacts retriever for failing tests
meta/classes-recipe/testimage.bbclass | 55 ++++++++++++++++++++++++++- meta/lib/oeqa/core/target/ssh.py | 6 ++- 2 files changed, 59 insertions(+), 2 deletions(-)
Signature · 1 line
2.40.1
RFC PATCH 1/3 oeqa/target/ssh: update options for SCP
Add two options for SCP:
- by default scp expects sftp server to be available on target, which is not always true (e.g: core-image-minimal image). Pass -O to force SCP to fallback to legacy SCP protocol
- by default scp expects files. Passing -r option allows to copy directories too
--- meta/lib/oeqa/core/target/ssh.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
meta/lib/oeqa/core/target/ssh.py +5 -1
@@ -40,8 +40,12 @@ class OESSHTarget(OETarget): '-o', 'StrictHostKeyChecking=no', '-o', 'LogLevel=ERROR' ] + scp_options = [ + '-O', # Allow legacy option for images not containing SFTP server + '-r' + ] self.ssh = ['ssh', '-l', self.user ] + ssh_options - self.scp = ['scp'] + ssh_options + self.scp = ['scp'] + ssh_options + scp_options if port: self.ssh = self.ssh + [ '-p', port ] self.scp = self.scp + [ '-P', port ]
Signature · 1 line
2.40.1
Re: [OE-Core][RFC][PATCH 1/3] oeqa/target/ssh: update options for SCP
Quoted 4 lines · Alexis Lothoré via lists.openembedded.org
Add two options for SCP:
- by default scp expects sftp server to be available on target, which is not always true (e.g: core-image-minimal image). Pass -O to force SCP to fallback to legacy SCP protocol
We deliberately switched away from SCP since it is deprecated and will be removed in a later openssh release. This is therefore a step backwards, we really need to do something different.
Quoted 2 lines
- by default scp expects files. Passing -r option allows to copy directories too
Cheers,
Richard
Re: [OE-Core][RFC][PATCH 1/3] oeqa/target/ssh: update options for SCP
Quoted 10 lines · Richard Purdie
Quoted 4 lines · Alexis Lothoré via lists.openembedded.org
Add two options for SCP:
- by default scp expects sftp server to be available on target, which is not always true (e.g: core-image-minimal image). Pass -O to force SCP to fallback to legacy SCP protocolWe deliberately switched away from SCP since it is deprecated and will be removed in a later openssh release. This is therefore a step backwards, we really need to do something different.
Understood. Digging a bit about the deprecation issue and why it did not work on my machine without this option, and based on fixes seen in mailing list around this issue, I found out that my image was not configured properly (adding dropbear package instead of enabling it as an IMAGE_FEATURE, which brings in sftp support)
I guess keeping scp command but with sftp support instead of legacy scp support is ok ? Or you are in fact talking about completely stopping using the scp binary, even with sftp support ?
Kind regards,
Quoted 7 lines
Quoted 3 lines
- by default scp expects files. Passing -r option allows to copy directories too
Cheers,
Richard
Signature · 3 lines
Alexis Lothoré, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: [OE-Core][RFC][PATCH 1/3] oeqa/target/ssh: update options for SCP
Quoted 12 lines · Alexis Lothoré
Quoted 10 lines · Richard Purdie
Quoted 4 lines · Alexis Lothoré via lists.openembedded.org
Add two options for SCP:
- by default scp expects sftp server to be available on target, which is not always true (e.g: core-image-minimal image). Pass -O to force SCP to fallback to legacy SCP protocolWe deliberately switched away from SCP since it is deprecated and will be removed in a later openssh release. This is therefore a step backwards, we really need to do something different.
Quoted 8 lines
Understood. Digging a bit about the deprecation issue and why it did not work on my machine without this option, and based on fixes seen in mailing list around this issue, I found out that my image was not configured properly (adding dropbear package instead of enabling it as an
IMAGE_FEATURE, which brings in sftp support)
I guess keeping scp command but with sftp support instead of legacy scp support is ok ? Or you are in fact talking about completely stopping using the scp binary, even with sftp support ?
Using scp is fine but I don't think we can rely on the SCP protocol staying around.
Cheers,
Richard
RFC PATCH 2/3 testimage: shut down DUT later
In reply to Alexis LothoréMove target stop (for Qemu targets: qemu image stop) later in testimage main function, especially _after_ having access to general test results, to allow executing some other actions (like retrieving some files) on DUT depending on test results (e.g. : retrieve some log files)
--- meta/classes-recipe/testimage.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta/classes-recipe/testimage.bbclass +3 -1
@@ -393,7 +393,6 @@ def testimage_main(d): results = tc.results finally: signal.signal(signal.SIGTERM, orig_sigterm_handler) - tc.target.stop() # Show results (if we have them) if results:
@@ -404,6 +403,8 @@ def testimage_main(d): dump_streams=d.getVar('TESTREPORT_FULLLOGS')) results.logSummary(pn) + tc.target.stop() + # Copy additional logs to tmp/log/oeqa so it's easier to find them targetdir = os.path.join(get_testimage_json_result_dir(d), d.getVar("PN")) os.makedirs(targetdir, exist_ok=True)
@@ -415,6 +416,7 @@ def testimage_main(d): if not results.wasSuccessful(): bb.fatal('%s - FAILED - also check the logs in %s' % (pn, d.getVar("LOG_DIR")), forcelog=True) + def get_runtime_paths(d): """ Returns a list of paths where runtime test must reside.
Signature · 1 line
2.40.1
Re: [OE-Core][RFC][PATCH 2/3] testimage: shut down DUT later
Quoted 23 lines · Alexis Lothoré via lists.openembedded.org
Move target stop (for Qemu targets: qemu image stop) later in testimage main function, especially _after_ having access to general test results, to allow executing some other actions (like retrieving some files) on DUT depending on test results (e.g. : retrieve some log files)
Signed-off-by Alexis Lothoré <[email protected]>--- meta/classes-recipe/testimage.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta/classes-recipe/testimage.bbclass +0
-1@@ -393,7 +393,6 @@ def testimage_main(d): results = tc.results finally: signal.signal(signal.SIGTERM, orig_sigterm_handler) - tc.target.stop() # Show results (if we have them) if results:
meta/classes-recipe/testimage.bbclass def testimage_main(d): · line 407
Quoted 5 lines
meta/classes-recipe/testimage.bbclass +2
-0@@ -404,6 +403,8 @@ def testimage_main(d): dump_streams=d.getVar('TESTREPORT_FULLLOGS')) results.logSummary(pn) + tc.target.stop() +
I've not really had a chance to think about this properly, sorry but there is an issue that jumps out at me in this patch.
The stop is delibverately in a finally: clause so it always runs even if there is an exception in the code. You've moved it outside of this so the target would no longer be shut down any more in such an exception case. This would potentially leave images running in the case of exceptions and we want to avoid that.
Cheers,
Richard
Re: [OE-Core][RFC][PATCH 2/3] testimage: shut down DUT later
Hello Richard,
Quoted 34 lines · Richard Purdie
Quoted 23 lines · Alexis Lothoré via lists.openembedded.org
Move target stop (for Qemu targets: qemu image stop) later in testimage main function, especially _after_ having access to general test results, to allow executing some other actions (like retrieving some files) on DUT depending on test results (e.g. : retrieve some log files)
Signed-off-by Alexis Lothoré <[email protected]>--- meta/classes-recipe/testimage.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta/classes-recipe/testimage.bbclass +0
-1@@ -393,7 +393,6 @@ def testimage_main(d): results = tc.results finally: signal.signal(signal.SIGTERM, orig_sigterm_handler) - tc.target.stop() # Show results (if we have them) if results:meta/classes-recipe/testimage.bbclass def testimage_main(d): · line 407
Quoted 5 lines
meta/classes-recipe/testimage.bbclass +2
-0@@ -404,6 +403,8 @@ def testimage_main(d): dump_streams=d.getVar('TESTREPORT_FULLLOGS')) results.logSummary(pn) + tc.target.stop() +I've not really had a chance to think about this properly, sorry but there is an issue that jumps out at me in this patch.
Quoted 5 lines
The stop is delibverately in a finally: clause so it always runs even if there is an exception in the code. You've moved it outside of this so the target would no longer be shut down any more in such an exception case. This would potentially leave images running in the case of exceptions and we want to avoid that.
I felt the danger while touching this part (and tested at least with a Ctrl-C that everything was behaving correctly), but indeed I did not think enough about the "any exception other than KeyboardInterrupt or BlockingIOError". I'll then drop the patch moving this stop, and if it's ok, move the artifacts retrieval in the finally clause, just before the stop.
Quoted 3 lines
Cheers,
Richard
Signature · 3 lines
Alexis Lothoré, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
RFC PATCH 3/3 testimage: implement test artifacts retriever for failing tests
In reply to Alexis LothoréAdd a basic artifacts retrievers in testimage class which:
- triggers when at least one runtime test fails
- reads a list of files to retrieve from ARTIFACTS_LIST_PATH
- retrieve those files over scp thanks to existing ssh class
- store those files in an "artifacts" directory in "tmp/log/oeqa/<image>"
Bring partial solution to [YOCTO #14901]
--- meta/classes-recipe/testimage.bbclass | 51 +++++++++++++++++++++++++++ 1 file changed, 51 insertions(+)
meta/classes-recipe/testimage.bbclass +51 -0
@@ -18,6 +18,12 @@ inherit image-artifact-names TESTIMAGE_AUTO ??= "0" +# When any test fails, if path to an artifacts configuration (listing +# files/directories to retrieve on target) has been provided, all listed +# elements will be downloaded from target before shutting it down + +ARTIFACTS_LIST_PATH ??= "" + # You can set (or append to) TEST_SUITES in local.conf to select the tests # which you want to run for your target. # The test names are the module names in meta/lib/oeqa/runtime/cases.
@@ -192,6 +198,45 @@ def get_testimage_boot_patterns(d): boot_patterns[flag] = flagval.encode().decode('unicode-escape') return boot_patterns +def load_artifacts_list(artifacts_conf_path): + import json + + if not artifacts_conf_path: + return None + + if not os.path.isfile(artifacts_conf_path): + return None + + try: + with open(artifacts_conf_path) as f: + artifacts_list = json.load(f) + except json.decoder.JSONDecodeError as e: + bb.warn(f"Invalid tests artifact list format: {e.lineno}:{e.colno} : {e.msg}") + return None + + if 'artifacts' in artifacts_list: + return artifacts_list['artifacts'] + + return None + +def retrieve_test_artifacts(target, artifacts_list, target_dir): + import shutil + + local_artifacts_dir = os.path.join(target_dir, "artifacts") + if os.path.isdir(local_artifacts_dir): + shutil.rmtree(local_artifacts_dir) + + os.makedirs(local_artifacts_dir) + for artifact_path in artifacts_list: + if not os.path.isabs(artifact_path): + bb.warn(f"{artifact_path} is not an absolute path") + continue + try: + dest_dir = os.path.join(local_artifacts_dir, os.path.dirname(artifact_path[1:])) + os.makedirs(dest_dir, exist_ok=True) + target.copyFrom(artifact_path, dest_dir) + except: + bb.warn(f"Can not retrieve {artifact_path} from test target") def testimage_main(d): import os
@@ -402,6 +447,12 @@ def testimage_main(d): get_testimage_result_id(configuration), dump_streams=d.getVar('TESTREPORT_FULLLOGS')) results.logSummary(pn) + if not results.wasSuccessful(): + artifacts_list = load_artifacts_list(d.getVar("ARTIFACTS_LIST_PATH")) + if not artifacts_list: + bb.warn("Could not load artifacts list, skip artifacts retrieval") + else: + retrieve_test_artifacts(tc.target, artifacts_list, get_testimage_json_result_dir(d)) tc.target.stop()
Signature · 1 line
2.40.1
Re: [OE-Core][RFC][PATCH 3/3] testimage: implement test artifacts retriever for failing tests
meta/classes-recipe/testimage.bbclass inherit image-artifact-names · line 25
Quoted 5 lines · Alexis Lothoré via lists.openembedded.org
meta/classes-recipe/testimage.bbclass +5
-0+# When any test fails, if path to an artifacts configuration (listing +# files/directories to retrieve on target) has been provided, all listed +# elements will be downloaded from target before shutting it down + +ARTIFACTS_LIST_PATH ??= ""
I think this should be simplified further by simply specifying the default list directly instead:
TESTIMAGE_FAILED_QA_ARTIFACTS ?= "${libdir}/*/ptest/ /var/log/ /etc/version"
Then, if desired, the list can be overridden globally, or per image as needed - from the image recipes and/or regular bitbake configuration mechanisms used by CI (local.conf etc). If the feature needs to be switched off altogether, that can be done by setting an empty list.
Alex
Re: [OE-Core][RFC][PATCH 3/3] testimage: implement test artifacts retriever for failing tests
Hi,
Quoted 11 lines · Alexander Kanavin
meta/classes-recipe/testimage.bbclass inherit image-artifact-names · line 25
Quoted 5 lines · Alexis Lothor� via lists.openembedded.org
meta/classes-recipe/testimage.bbclass +5
-0+# When any test fails, if path to an artifacts configuration (listing +# files/directories to retrieve on target) has been provided, all listed +# elements will be downloaded from target before shutting it down + +ARTIFACTS_LIST_PATH ??= ""I think this should be simplified further by simply specifying the default list directly instead:
Quoted 1 line
TESTIMAGE_FAILED_QA_ARTIFACTS?= "${libdir}/*/ptest//var/log//etc/version"
Try fetching /etc/os-release too, please.
I like this patch, thanks!
Cheers,
-Mikko
Re: [OE-Core][RFC][PATCH 3/3] testimage: implement test artifacts retriever for failing tests
Hello Alexander, Mikko,
Quoted 15 lines · Mikko Rapeli
Hi,
Quoted 12 lines · Alexander Kanavin
meta/classes-recipe/testimage.bbclass inherit image-artifact-names · line 25
Quoted 5 lines · Alexis Lothoré via lists.openembedded.org
meta/classes-recipe/testimage.bbclass +5
-0+# When any test fails, if path to an artifacts configuration (listing +# files/directories to retrieve on target) has been provided, all listed +# elements will be downloaded from target before shutting it down + +ARTIFACTS_LIST_PATH ??= ""I think this should be simplified further by simply specifying the default list directly instead:
TESTIMAGE_FAILED_QA_ARTIFACTS?= "${libdir}/*/ptest//var/log//etc/version"
I wondered about this possibility while adding this variable, and at this time I thought it would encode to much "CI logic" in testimage class. But since you raise the suggestion, I can update to pass directly the file list, which could indeed be overridden by CI tests runners. We can start with those three paths in the default value.
Another point raised by your example is the lack of wildcards management in artifacts path, which would clearly ease the listing, especially for ptests. I'll see if I can come up with something better for this
Quoted 2 lines
Try fetching
/etc/os-releasetoo, please.
ACK, will add it to default list
Quoted 17 lines
I like this patch, thanks!
Cheers,
-Mikko
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#182307): https://lists.openembedded.org/g/openembedded-core/message/182307
Mute This Topic: https://lists.openembedded.org/mt/99283034/7394887
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Alexis Lothoré, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: [OE-Core][RFC][PATCH 3/3] testimage: implement test artifacts retriever for failing tests
Quoted 5 lines · Alexis Lothoré
I wondered about this possibility while adding this variable, and at this time I thought it would encode to much "CI logic" in testimage class. But since you raise the suggestion, I can update to pass directly the file list, which could indeed be overridden by CI tests runners. We can start with those three paths in the default value.
But this isn't CI logic. It's bitbake's QA logic, which can and should be available in local builds. Running testimage locally is a supported and regularly used operation, so it should work exactly same as in CI.
Alex
Re: [OE-Core][RFC][PATCH 3/3] testimage: implement test artifacts retriever for failing tests
In reply to Alexis LothoréHi,
These changes are an improvement, but based on my experience in product test automation, instead of collecting logs after testing is completed, it is better to capture logs from the target device while tests are being executed. Serial console, systemd journal etc logs can be captured as streams from the device under test (DUT), and time stamps added from the test controller so that aligning events like test command execution and log messages is possible. It is also a good idea to capture core dumps via this kind of stream(s). Problems with HW and BSP SW may not be visible after testing completes (device has rebooted, reset) or capturing data is not possible at all (due to system, kernel, userspace hang, oom or too much load).
This capturing of logs could be implemented by adding some configurable variables to execute commands on the test controller and inside oeqa environment at certain stages of testing, for example after serial console login prompt has been detected. Command to execute could be a simple "ssh -c 'journalctl -b -a'" to capture boot logs and "ssh 'journalctl -a -f'" and log the output data with additional time stamps to bitbake task output or a separate file.
Just thinking out loud here, these changes are an improvement over current situation already. Thanks for sending these patches!
Cheers,
-Mikko
Re: [OE-Core][RFC][PATCH 3/3] testimage: implement test artifacts retriever for failing tests
Hi Mikko, sorry for late reply, and thanks for the additional feedback
Quoted 12 lines · Mikko Rapeli
Hi,
These changes are an improvement, but based on my experience in product test automation, instead of collecting logs after testing is completed, it is better to capture logs from the target device while tests are being executed. Serial console, systemd journal etc logs can be captured as streams from the device under test (DUT), and time stamps added from the test controller so that aligning events like test command execution and log messages is possible. It is also a good idea to capture core dumps via this kind of stream(s). Problems with HW and BSP SW may not be visible after testing completes (device has rebooted, reset) or capturing data is not possible at all (due to system, kernel, userspace hang, oom or too much load).
Quoted 8 lines
This capturing of logs could be implemented by adding some configurable variables to execute commands on the test controller and inside oeqa environment at certain stages of testing, for example after serial console login prompt has been detected. Command to execute could be a simple "ssh -c 'journalctl -b -a'" to capture boot logs and "ssh 'journalctl -a -f'" and log the output data with additional time stamps to bitbake task output or a separate file.
Just thinking out loud here, these changes are an improvement over current situation already. Thanks for sending these patches!
While I tend to agree with what you are suggesting, I feel like there are some new constraints, because of targets variety: is the system a real target or a qemu image ? Does it run systemd/journald ? Are coredumps enabled by default ? Of course those constraints may be quite easy to circumvent, moreover we can think of a "best effort" solution which gathers "what it can" from running target. Also, there may be some corner cases that would need some specific
handling: some tests can be quite long (hours), what about broken pipes during those ? This would definitely need some re-connection strategies for example.
Since current proposed solution is not very invasive/has not much requirements except a valid ssh access, I plan to update the series and let some real testing show if it is relevant. If not (or not enough), we may give a try to a "runtime" version like the one you are suggesting ?
Thanks,
Alexis
Quoted 15 lines
Cheers,
-Mikko
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#182316): https://lists.openembedded.org/g/openembedded-core/message/182316
Mute This Topic: https://lists.openembedded.org/mt/99283034/7394887
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Alexis Lothoré, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: [OE-Core][RFC][PATCH 3/3] testimage: implement test artifacts retriever for failing tests
Hi,
Quoted 24 lines · Alexis Lothor�
Hi Mikko, sorry for late reply, and thanks for the additional feedback
Quoted 12 lines · Mikko Rapeli
Hi,
These changes are an improvement, but based on my experience in product test automation, instead of collecting logs after testing is completed, it is better to capture logs from the target device while tests are being executed. Serial console, systemd journal etc logs can be captured as streams from the device under test (DUT), and time stamps added from the test controller so that aligning events like test command execution and log messages is possible. It is also a good idea to capture core dumps via this kind of stream(s). Problems with HW and BSP SW may not be visible after testing completes (device has rebooted, reset) or capturing data is not possible at all (due to system, kernel, userspace hang, oom or too much load).
Quoted 8 lines
This capturing of logs could be implemented by adding some configurable variables to execute commands on the test controller and inside oeqa environment at certain stages of testing, for example after serial console login prompt has been detected. Command to execute could be a simple "ssh -c 'journalctl -b -a'" to capture boot logs and "ssh 'journalctl -a -f'" and log the output data with additional time stamps to bitbake task output or a separate file.
Just thinking out loud here, these changes are an improvement over current situation already. Thanks for sending these patches!
Quoted 8 lines
While I tend to agree with what you are suggesting, I feel like there are some new constraints, because of targets variety: is the system a real target or a qemu image ? Does it run systemd/journald ? Are coredumps enabled by default ? Of course those constraints may be quite easy to circumvent, moreover we can think of a "best effort" solution which gathers "what it can" from running target. Also, there may be some corner cases that would need some specific
handling: some tests can be quite long (hours), what about broken pipes during those ? This would definitely need some re-connection strategies for example.
Agreed. Currently our qemu reboot tests are failing for due some kind of reconnection issue, for example. I'll try to find time to fix this...
Quoted 4 lines
Since current proposed solution is not very invasive/has not much requirements except a valid ssh access, I plan to update the series and let some real testing show if it is relevant. If not (or not enough), we may give a try to a "runtime" version like the one you are suggesting ?
Yes, the series is a clear improvement over the current state.
Cheers,
-Mikko