[llvm] c4f18d6 - remote-exec: Only copy command line arguments which name files that exist.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 9 20:25:14 PDT 2025


Author: Peter Collingbourne
Date: 2025-07-09T20:24:40-07:00
New Revision: c4f18d6874df380eda3be224eaae6c24e996bbdf

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

LOG: remote-exec: Only copy command line arguments which name files that exist.

Speculative fix for failing buildbot:
https://lab.llvm.org/buildbot/#/builders/193/builds/8961

Added: 
    

Modified: 
    llvm/utils/remote-exec.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/remote-exec.py b/llvm/utils/remote-exec.py
index 636ed9e9548a9..8512b264f5d1c 100644
--- a/llvm/utils/remote-exec.py
+++ b/llvm/utils/remote-exec.py
@@ -130,11 +130,12 @@ def main():
                 ]
             )
         else:
-            # Copy only the files, which are specified in the command line.
-            # Copy them to remote host one by one.
+            # Copy only files which are specified in the command line and exist on
+            # the host. Copy them to the remote host one by one.
             for x in commandLine:
-                _, f = os.path.split(x)
-                subprocess.check_call(scp(args, x, pathOnRemote(f)))
+                if os.path.exists(x):
+                    _, f = os.path.split(x)
+                    subprocess.check_call(scp(args, x, pathOnRemote(f)))
 
         # Make sure all executables in the remote command line have 'execute'
         # permissions on the remote host. The host that compiled the test-executable


        


More information about the llvm-commits mailing list