Changeset 92191 in webkit


Ignore:
Timestamp:
Aug 2, 2011 8:25:33 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

CSS Regions build bot should archive and upload output files
https://bugs.webkit.org/show_bug.cgi?id=65200

Until now the buildbots would only upload the result archive if the 'trigger' parameters was specified. The
upload was needed, because the testbots needed to download and use the archive. For CSS Regions we don't have
a testbot yet, but we want to save the archive on the server for manual testing. Added new parameter
in config.json, called "upload" that when set to "true" will force the upload to the buildmaster server.

The "features" argument is now taken into account when determining the name of the archive on the server. That
was needed in order to avoid the CSS Regions Mac buildbot overwrite the SnowLeopard Mac build.

Patch by Alexandru Chiculita <Alexandru Chiculita> on 2011-08-02
Reviewed by Adam Roben.

  • BuildSlaveSupport/build.webkit.org-config/config.json:
  • BuildSlaveSupport/build.webkit.org-config/master.cfg:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/config.json

    r92160 r92191  
    260260                    { "name": "CSSRegions SnowLeopard Intel Release (Build)", "type": "Build", "builddir": "cssregions-snowleopard-intel-release",
    261261                      "platform": "mac-snowleopard", "configuration": "release", "architectures": ["x86_64"], "features": ["css-regions", "css-exclusions"],
     262                      "upload": true,
    262263                      "slavenames": ["adobe-mac-slave1"]
    263264                    }
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg

    r91782 r92191  
    132132class UploadBuiltProduct(transfer.FileUpload):
    133133    slavesrc = WithProperties("WebKitBuild/%(configuration)s.zip")
    134     masterdest = WithProperties("archives/%(fullPlatform)s-%(architecture)s-%(configuration)s/%(got_revision)s.zip")
     134    masterdest = WithProperties("archives/%(fullPlatform)s-%(architecture)s-%(configuration)s%(extraFeatures)s/%(got_revision)s.zip",
     135                                extraFeatures=lambda properties: UploadBuiltProduct.determineExtraFeatures(properties))
    135136    haltOnFailure = True
    136137
    137138    def __init__(self):
    138139        transfer.FileUpload.__init__(self, self.slavesrc, self.masterdest, mode=0644)
     140
     141    @staticmethod
     142    def determineExtraFeatures(properties):
     143        if not properties.hasProperty("features"):
     144            return ''
     145        features = properties.getProperty("features")
     146        if not len(features):
     147            return ''
     148        result = '-with-' + '-and-'.join(features)
     149        # Just to make sure no feature will add invalid chars, we allow only letters here.
     150        result = re.sub('[^a-zA-Z]', '-', result)
     151        return result
    139152
    140153
     
    592605
    593606class Factory(factory.BuildFactory):
    594     def __init__(self, platform, configuration, architectures, buildOnly, features=None):
     607    def __init__(self, platform, configuration, architectures, buildOnly, features=None, **kwargs):
    595608        factory.BuildFactory.__init__(self)
    596609        self.addStep(ConfigureBuild, platform=platform, configuration=configuration, architecture=" ".join(architectures), buildOnly=buildOnly, features=features)
     
    604617
    605618class BuildFactory(Factory):
    606     def __init__(self, platform, configuration, architectures, triggers=None, **kwargs):
     619    def __init__(self, platform, configuration, architectures, triggers=None, upload=False, **kwargs):
    607620        Factory.__init__(self, platform, configuration, architectures, True, **kwargs)
    608621        self.addStep(CompileWebKit)
    609         if triggers:
     622        if triggers or upload:
    610623            self.addStep(ArchiveBuiltProduct)
    611624            self.addStep(UploadBuiltProduct)
     625        if triggers:
    612626            self.addStep(trigger.Trigger, schedulerNames=triggers)
    613627
     
    726740
    727741        factoryKwArgs = {
    728             "features": builder.pop("features", [])
     742            "features": builder.pop("features", []),
     743            "upload": builder.pop("upload", False)
    729744        }
    730745
  • trunk/Tools/ChangeLog

    r92188 r92191  
     12011-08-02  Alexandru Chiculita  <achicu@adobe.com>
     2
     3        CSS Regions build bot should archive and upload output files
     4        https://bugs.webkit.org/show_bug.cgi?id=65200
     5
     6        Until now the buildbots would only upload the result archive if the 'trigger' parameters was specified. The
     7        upload was needed, because the testbots needed to download and use the archive. For CSS Regions we don't have
     8        a testbot yet, but we want to save the archive on the server for manual testing. Added new parameter
     9        in config.json, called "upload" that when set to "true" will force the upload to the buildmaster server.
     10
     11        The "features" argument is now taken into account when determining the name of the archive on the server. That
     12        was needed in order to avoid the CSS Regions Mac buildbot overwrite the SnowLeopard Mac build.
     13
     14        Reviewed by Adam Roben.
     15
     16        * BuildSlaveSupport/build.webkit.org-config/config.json:
     17        * BuildSlaveSupport/build.webkit.org-config/master.cfg:
     18
    1192011-08-02  Patrick Gansterer  <paroga@webkit.org>
    220
Note: See TracChangeset for help on using the changeset viewer.