[zorg] r305420 - We want a clean build if cmake files have been changed.

Galina Kistanova via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 14 15:05:01 PDT 2017


Author: gkistanova
Date: Wed Jun 14 17:05:00 2017
New Revision: 305420

URL: http://llvm.org/viewvc/llvm-project?rev=305420&view=rev
Log:
We want a clean build if cmake files have been changed.

Modified:
    zorg/trunk/zorg/buildbot/changes/llvmpoller.py

Modified: zorg/trunk/zorg/buildbot/changes/llvmpoller.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/changes/llvmpoller.py?rev=305420&r1=305419&r2=305420&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/changes/llvmpoller.py (original)
+++ zorg/trunk/zorg/buildbot/changes/llvmpoller.py Wed Jun 14 17:05:00 2017
@@ -38,6 +38,7 @@ class LLVMPoller(base.PollingChangeSourc
                  projects=None, cachepath=None):
 
         self.cleanRe = re.compile(r"Require(?:s?)\s*.*\s*clean build", re.IGNORECASE + re.MULTILINE)
+        self.cleanCfg = re.compile(r"(CMakeLists\.txt$|\.cmake$|\.cmake\.in$)")
 
         # projects is a list of projects to watch or None to watch all.
         if projects:
@@ -302,8 +303,9 @@ class LLVMPoller(base.PollingChangeSourc
                     log.msg("LLVMPoller(%s): Ignoring deletion of branch '%s'" % (self.svnurl, branch))
                 else:
                     properties = dict()
-                    if self.cleanRe.search(comments):
-                        log.msg(">>>>> Create a change with the 'clean' property for r%s" % revision)
+                    if self.cleanRe.search(comments) or \
+                       any([m for f in files for m in [self.cleanCfg.search(f)] if m]):
+                        log.msg("Creating a change with the 'clean' property for r%s" % revision)
                         properties['clean'] = (True, "change")
                     chdict = dict(author=author,
                                   files=files,




More information about the llvm-commits mailing list