[PATCH] Send email notification for failures on lldb android builder

Ying Chen chying at google.com
Tue May 26 11:20:24 PDT 2015


Simply code based on review feedback


http://reviews.llvm.org/D9953

Files:
  buildbot/osuosl/master/config/status.py
  zorg/buildbot/builders/LLDBBuilder.py

Index: buildbot/osuosl/master/config/status.py
===================================================================
--- buildbot/osuosl/master/config/status.py
+++ buildbot/osuosl/master/config/status.py
@@ -130,7 +130,8 @@
             subject="Build %(builder)s Failure",
             mode = "failing",
             builders = ["lldb-x86_64-ubuntu-14.04-cmake",
-                        "lldb-x86_64-darwin-13.4"],
+                        "lldb-x86_64-darwin-13.4",
+                        "lldb-x86_64-ubuntu-14.04-android"],
             addLogs=False,
             num_lines = 15),
         ]
Index: zorg/buildbot/builders/LLDBBuilder.py
===================================================================
--- zorg/buildbot/builders/LLDBBuilder.py
+++ zorg/buildbot/builders/LLDBBuilder.py
@@ -255,6 +255,7 @@
     llvm_builddir = "build"
     if env is None:
         env = {}
+    flunkTestFailure = True
     extraTestFlag = ''
     # TODO: for now, run tests with 8 threads and without mi tests on android
     # come back when those issues are addressed
@@ -282,6 +283,8 @@
             if remote_platform is not None:
                 urlStr='connect://%(remote_host)s:%(remote_port)s'
                 if remote_platform is 'android':
+                    #i386/x86_64 are the only android archs that are expected to pass at this time
+                    flunkTestFailure = arch in ('i386', 'x86_64')
                     testenv['LLDB_TEST_THREADS'] = '8'
                     extraTestFlag = ' -m'
                     urlStr = 'adb://%(deviceid)s:%(remote_port)s'
@@ -308,6 +311,8 @@
                                               WithProperties(DOTEST_OPTS)],
                                      description="test lldb",
                                      parseSummaryOnly=True,
+                                     flunkOnFailure=flunkTestFailure,
+                                     warnOnFailure=flunkTestFailure,
                                      workdir='%s' % llvm_builddir,
                                      env=testenv))
             f=cleanSVNSourceTree(f, '%s/tools/lldb' % llvm_srcdir)

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9953.26527.patch
Type: text/x-patch
Size: 2131 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150526/83df7f45/attachment.bin>


More information about the llvm-commits mailing list