[PATCH] Archive test traces to outer directory named by build number after lldb-test

Ying Chen chying at google.com
Thu May 7 12:03:58 PDT 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D9453

Files:
  zorg/trunk/zorg/buildbot/builders/LLDBBuilder.py

Index: zorg/trunk/zorg/buildbot/builders/LLDBBuilder.py
===================================================================
--- zorg/trunk/zorg/buildbot/builders/LLDBBuilder.py
+++ zorg/trunk/zorg/buildbot/builders/LLDBBuilder.py
@@ -510,7 +510,26 @@
                                        build_type,
                                        config,
                                        env)
+    # archive test traces
+    f = archiveLLDBTestTraces(f)
+    return f
 
+# zip and upload test traces to google storage
+def archiveLLDBTestTraces(f):
+    llvm_builddir = 'build'
+    f.addStep(ShellCommand(name="compress test traces",
+                           command=WithProperties("zip -r build-%(buildnumber)s lldb-test-traces-*"),
+                           description="zip",
+                           haltOnFailure=False,
+                           workdir='%s' % llvm_builddir))
+    f.addStep(ShellCommand(name="upload test traces",
+                           command=['gsutil',
+                                    'mv',
+                                    WithProperties('build-%(buildnumber)s.zip'),
+                                    WithProperties('gs://lldb_test_traces/%(buildername)s/')],
+                           description="upload to Google Storage",
+                           haltOnFailure=False,
+                           workdir='%s' % llvm_builddir))
     return f
 
 # for cmake and compile

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9453.25213.patch
Type: text/x-patch
Size: 1436 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150507/0c25c6d8/attachment.bin>


More information about the llvm-commits mailing list