[PATCH] testbot/WineRunReconfig: Notify the administrator if the build fails.

Francois Gouget fgouget at codeweavers.com
Tue Sep 24 04:00:40 CDT 2019


Build failures prevent the TestBot snapshot from being updated
(leading to an out-of-date Wine and patches that fail to apply)
and can typically only be fixed manually.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/bin/WineRunReconfig.pl | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/testbot/bin/WineRunReconfig.pl b/testbot/bin/WineRunReconfig.pl
index 5e60e9097..ccab25195 100755
--- a/testbot/bin/WineRunReconfig.pl
+++ b/testbot/bin/WineRunReconfig.pl
@@ -438,6 +438,11 @@ if ($TA->GetFile("Reconfig.log", "$TaskDir/log"))
   {
     # We should not have badpatch errors and if the result line is missing we
     # probably already have an error message that explains why.
+    NotifyAdministrator("The ". $VM->Name ." build failed",
+                        "The ". $VM->Name ." build failed:\n\n".
+                        "$Summary->{Task}\n\n".
+                        "See the link below for more details:\n".
+                        MakeSecureURL(GetTaskURL($JobId, $StepNo, $TaskNo)) ."\n");
     $NewStatus = "badbuild";
   }
 }
-- 
2.20.1




More information about the wine-devel mailing list