[polly] e509974 - [Polly][CI] Unconditionally delete test-suite build

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 29 06:01:18 PST 2026


Author: Michael Kruse
Date: 2026-01-29T15:00:25+01:00
New Revision: e509974d423f1f260d63ec374463b5f75b18625e

URL: https://github.com/llvm/llvm-project/commit/e509974d423f1f260d63ec374463b5f75b18625e
DIFF: https://github.com/llvm/llvm-project/commit/e509974d423f1f260d63ec374463b5f75b18625e.diff

LOG: [Polly][CI] Unconditionally delete test-suite build

The test-suite should be recompiled every time, even in incremental
builds.

Added: 
    

Modified: 
    .ci/buildbot/worker.py
    polly/ci/polly-x86_64-linux-test-suite.py

Removed: 
    


################################################################################
diff  --git a/.ci/buildbot/worker.py b/.ci/buildbot/worker.py
index f6aad96304c86..09a6d0cb0d6c2 100644
--- a/.ci/buildbot/worker.py
+++ b/.ci/buildbot/worker.py
@@ -291,6 +291,10 @@ def rmtree(self, *args, **kwargs):
         """Convenience wrapper for rmtree()"""
         return rmtree(*args, *kwargs)
 
+    def try_delete(self, *args, **kwargs):
+        """Convenience wrapper for try_delete()"""
+        return try_delete(*args, *kwargs)
+
     def checkout(self, giturl, sourcepath):
         """Convenience wrapper for checkout()"""
         return checkout(giturl, sourcepath)

diff  --git a/polly/ci/polly-x86_64-linux-test-suite.py b/polly/ci/polly-x86_64-linux-test-suite.py
index 2a91f479d222a..6a6eb683e9cd5 100644
--- a/polly/ci/polly-x86_64-linux-test-suite.py
+++ b/polly/ci/polly-x86_64-linux-test-suite.py
@@ -50,6 +50,9 @@
     with w.step("checkout-testsuite", halt_on_fail=True):
         w.checkout("https://github.com/llvm/llvm-test-suite", testsuitesrcdir)
 
+    with w.step("clean-testsuite"):
+        w.try_delete(testsuitebuilddir)
+
     with w.step("configure-testsuite", halt_on_fail=True):
         jobsarg = f";-j{w.jobs}" if w.jobs else ""
         w.run_command(


        


More information about the llvm-commits mailing list