[zorg] r236763 - Archive test traces to Google Storage after lldb-test
Ying Chen
chying at google.com
Thu May 7 12:00:22 PDT 2015
Author: chying
Date: Thu May 7 14:00:22 2015
New Revision: 236763
URL: http://llvm.org/viewvc/llvm-project?rev=236763&view=rev
Log:
Archive test traces to Google Storage after lldb-test
Summary:
The test traces will be zipped to a folder named by bulidid
And then uploaded to google storage
Test Plan: Set up local master and traces are archived as expected
Reviewers: chaoren, vharron, sivachandra
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D9453
Modified:
zorg/trunk/zorg/buildbot/builders/LLDBBuilder.py
Modified: zorg/trunk/zorg/buildbot/builders/LLDBBuilder.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/LLDBBuilder.py?rev=236763&r1=236762&r2=236763&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/LLDBBuilder.py (original)
+++ zorg/trunk/zorg/buildbot/builders/LLDBBuilder.py Thu May 7 14:00:22 2015
@@ -510,7 +510,26 @@ def getLLDBUbuntuCMakeBuildFactory(build
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
More information about the llvm-commits
mailing list