[zorg] r188753 - [llvmlab] When publishing a compiler, link it in as the latest verified compiler from its builder.

Michael Gottesman mgottesman at apple.com
Mon Aug 19 23:21:16 PDT 2013


Author: mgottesman
Date: Tue Aug 20 01:21:16 2013
New Revision: 188753

URL: http://llvm.org/viewvc/llvm-project?rev=188753&view=rev
Log:
[llvmlab] When publishing a compiler, link it in as the latest verified compiler from its builder.

This gives a simple target to curl from to get the latest compiler for other
tools/buildbots/builders.

Modified:
    zorg/trunk/zorg/buildbot/PhasedBuilderUtils.py

Modified: zorg/trunk/zorg/buildbot/PhasedBuilderUtils.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/PhasedBuilderUtils.py?rev=188753&r1=188752&r2=188753&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/PhasedBuilderUtils.py (original)
+++ zorg/trunk/zorg/buildbot/PhasedBuilderUtils.py Tue Aug 20 01:21:16 2013
@@ -125,7 +125,7 @@ def GetLatestValidated(f):
             haltOnFailure=False, description=['rm', 'host-compiler'],
             workdir=WithProperties('%(builddir)s')))
     latest_url = zorg.buildbot.Artifacts.base_download_url
-    latest_url += '/latest_validated/clang-x86_64-darwin11-R.tar.gz'
+    latest_url += '/validated_builds/clang-x86_64-darwin11-R.tar.gz'
     f.addStep(buildbot.steps.shell.ShellCommand(
               name='download.artifacts',
               command=['curl', '-fvLo', 'host-compiler.tar.gz', latest_url],
@@ -292,7 +292,17 @@ def PublishGoodBuild(f=None, validated_b
                 
                 artifacts_str = os.path.join(artifacts_dir, validated_build_dir,
                                              buildname, file_str)
-
+                
+                f.addStep(MasterShellCommand(
+                    name='Publish.Latest.' + buildname,
+                    haltOnFailure=True,
+                    command=['ln', '-sfv',
+                             WithProperties(link_str,
+                                            get_phase_id=determine_phase_id),
+                             os.path.join(artifacts_dir, validated_build_dir,
+                                          "%s.tar.gz" % buildname)],
+                    description=['publish', buildname, 'as latest']))
+                                            
                 f.addStep(MasterShellCommand(
                     name='Publish.'+ buildname, haltOnFailure = True,
                     command = ['ln', '-sfv',





More information about the llvm-commits mailing list