Module: tools
Branch: master
Commit: 44456b4f96bc602827244416afe2dbbbb7600d10
URL: https://source.winehq.org/git/tools.git/?a=commit;h=44456b4f96bc60282724441…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Jul 11 11:35:42 2018 +0200
testbot/LibvirtTool: Only power off the VM if needed for the revert.
Reverting from a powered off state is sometimes ten times longer than
reverting from the current state.
But Libvirt/QEmu is buggy and fails to revert if the VM configuration
changes. So try the revert first and, if it fails (which is fast),
power off + re-revert the VM.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/bin/LibvirtTool.pl | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
diff --git a/testbot/bin/LibvirtTool.pl b/testbot/bin/LibvirtTool.pl
index 39e8c55..e6742f4 100755
--- a/testbot/bin/LibvirtTool.pl
+++ b/testbot/bin/LibvirtTool.pl
@@ -411,19 +411,25 @@ sub Revert()
}
$CurrentStatus = "reverting";
- # Some QEmu/KVM versions are buggy and cannot revert a running VM
- Debug(Elapsed($Start), " Powering off the VM\n");
+ # Revert the VM (and power it on if necessary)
my $Domain = $VM->GetDomain();
- my $ErrMessage = $Domain->PowerOff();
+ Debug(Elapsed($Start), " Reverting $VMKey to ", $VM->IdleSnapshot, "\n");
+ my $ErrMessage = $Domain->RevertToSnapshot();
if (defined $ErrMessage)
{
- LogMsg "Could not power off $VMKey: $ErrMessage\n";
- LogMsg "Trying the revert anyway...\n";
- }
+ # Libvirt/QEmu is buggy and cannot revert a running VM from one hardware
+ # configuration to another. So try again after powering off the VM, though
+ # this can be much slower.
+ Debug(Elapsed($Start), " Powering off the VM\n");
+ $ErrMessage = $Domain->PowerOff();
+ if (defined $ErrMessage)
+ {
+ FatalError("Could not power off $VMKey: $ErrMessage\n");
+ }
- # Revert the VM (and power it on if necessary)
- Debug(Elapsed($Start), " Reverting $VMKey to ", $VM->IdleSnapshot, "\n");
- $ErrMessage = $Domain->RevertToSnapshot();
+ Debug(Elapsed($Start), " Reverting $VMKey to ", $VM->IdleSnapshot, "... again\n");
+ $ErrMessage = $Domain->RevertToSnapshot();
+ }
if (defined $ErrMessage)
{
FatalError("Could not revert $VMKey to ". $VM->IdleSnapshot .": $ErrMessage\n");
Module: tools
Branch: master
Commit: 507d75c0536ef921dcd8a38bccfc3c6cbc97d23e
URL: https://source.winehq.org/git/tools.git/?a=commit;h=507d75c0536ef921dcd8a38…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Jul 11 11:31:19 2018 +0200
testbot/WineSendLog: Print a message for non-mailing list jobs.
WineSendLog exits early for these.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/bin/WineSendLog.pl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/testbot/bin/WineSendLog.pl b/testbot/bin/WineSendLog.pl
index 29da4a0..f095bce 100755
--- a/testbot/bin/WineSendLog.pl
+++ b/testbot/bin/WineSendLog.pl
@@ -426,7 +426,11 @@ EOF
close(SENDMAIL);
# This is all for jobs submitted from the website
- return if (!defined $Job->Patch);
+ if (!defined $Job->Patch)
+ {
+ Debug("Not a mailing list patch -> all done.\n");
+ return;
+ }
#
# Build a job summary with only the new errors
Module: tools
Branch: master
Commit: 8b70c57a3b157a4f3e47e48573781f36303dd745
URL: https://source.winehq.org/git/tools.git/?a=commit;h=8b70c57a3b157a4f3e47e48…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Jul 11 11:30:52 2018 +0200
testbot/LibvirtTool: Remove the duplicate units after the elapsed time.
The string returned by PrettyElapsed() already includes the time unit
since it's needed for durations over 1 minute to be readable.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/bin/LibvirtTool.pl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testbot/bin/LibvirtTool.pl b/testbot/bin/LibvirtTool.pl
index 91fe053..39e8c55 100755
--- a/testbot/bin/LibvirtTool.pl
+++ b/testbot/bin/LibvirtTool.pl
@@ -344,7 +344,7 @@ sub Monitor()
return 1 if (ChangeStatus("offline", "off", "done"));
NotifyAdministrator("The $VMKey VM is working again",
"The $VMKey VM started working again after ".
- PrettyElapsed($Start) ." seconds.");
+ PrettyElapsed($Start) .".");
return 0;
}
}
@@ -483,6 +483,6 @@ else
Error("Unsupported action $Action!\n");
$Rc = 1;
}
-LogMsg "$Action on $VMKey completed in ", PrettyElapsed($Start), " s\n";
+LogMsg "$Action on $VMKey completed in ", PrettyElapsed($Start), "\n";
exit $Rc;