[zorg] r188693 - [llvmlab] Change publish good build to maintain separate directories of links to each built compiler for a validated build instead of maintaining one validated build for each compiler type.

Michael Gottesman mgottesman at apple.com
Mon Aug 19 12:29:16 PDT 2013


Author: mgottesman
Date: Mon Aug 19 14:29:16 2013
New Revision: 188693

URL: http://llvm.org/viewvc/llvm-project?rev=188693&view=rev
Log:
[llvmlab] Change publish good build to maintain separate directories of links to each built compiler for a validated build instead of maintaining one validated build for each compiler type.

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=188693&r1=188692&r2=188693&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/PhasedBuilderUtils.py (original)
+++ zorg/trunk/zorg/buildbot/PhasedBuilderUtils.py Mon Aug 19 14:29:16 2013
@@ -267,15 +267,27 @@ def PublishGoodBuild():
     # Buildbot uses got_revision instead of revision to identify builds.
     # We set it below so that the revision shows up in the html status pages.
     setProperty(f, 'got_revision', WithProperties('%(revision)s'))
+
     for phase in config.phase_config.phases:
         for build in phase['builders']:
             buildname = build['name']
             project = _project_from_name(buildname)
             if project in ('clang', 'llvm-gcc', 'apple-clang'):
+                file_str = project + '-%(get_phase_id)s.tar.gz'
                 link_str = os.path.join(artifacts_dir, buildname,
-                                        project + '-%(get_phase_id)s.tar.gz')
+                                        file_str)
+                build_artifacts_dir = os.path.join(artifacts_dir, 'validated_builds',
+                                                   buildname)
+                f.addStep(MasterShellCommand(
+                        name='create.dir.%s' % buildname,
+                        command = ['mkdir', '-p',
+                                   build_artifacts_dir],
+                        haltOnFailure = True,
+                        description = ['create', 'validated', 'dir', 'for', buildname]))
+                
                 artifacts_str = os.path.join(artifacts_dir, 'latest_validated',
-                                             buildname + '.tar.gz')
+                                             buildname, file_str)
+
                 f.addStep(MasterShellCommand(
                     name='Publish.'+ buildname, haltOnFailure = True,
                     command = ['ln', '-sfv',





More information about the llvm-commits mailing list