Changeset 92191 in webkit
- Timestamp:
- Aug 2, 2011 8:25:33 AM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/config.json
r92160 r92191 260 260 { "name": "CSSRegions SnowLeopard Intel Release (Build)", "type": "Build", "builddir": "cssregions-snowleopard-intel-release", 261 261 "platform": "mac-snowleopard", "configuration": "release", "architectures": ["x86_64"], "features": ["css-regions", "css-exclusions"], 262 "upload": true, 262 263 "slavenames": ["adobe-mac-slave1"] 263 264 } -
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg
r91782 r92191 132 132 class UploadBuiltProduct(transfer.FileUpload): 133 133 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)) 135 136 haltOnFailure = True 136 137 137 138 def __init__(self): 138 139 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 139 152 140 153 … … 592 605 593 606 class Factory(factory.BuildFactory): 594 def __init__(self, platform, configuration, architectures, buildOnly, features=None ):607 def __init__(self, platform, configuration, architectures, buildOnly, features=None, **kwargs): 595 608 factory.BuildFactory.__init__(self) 596 609 self.addStep(ConfigureBuild, platform=platform, configuration=configuration, architecture=" ".join(architectures), buildOnly=buildOnly, features=features) … … 604 617 605 618 class BuildFactory(Factory): 606 def __init__(self, platform, configuration, architectures, triggers=None, **kwargs):619 def __init__(self, platform, configuration, architectures, triggers=None, upload=False, **kwargs): 607 620 Factory.__init__(self, platform, configuration, architectures, True, **kwargs) 608 621 self.addStep(CompileWebKit) 609 if triggers :622 if triggers or upload: 610 623 self.addStep(ArchiveBuiltProduct) 611 624 self.addStep(UploadBuiltProduct) 625 if triggers: 612 626 self.addStep(trigger.Trigger, schedulerNames=triggers) 613 627 … … 726 740 727 741 factoryKwArgs = { 728 "features": builder.pop("features", []) 742 "features": builder.pop("features", []), 743 "upload": builder.pop("upload", False) 729 744 } 730 745 -
trunk/Tools/ChangeLog
r92188 r92191 1 2011-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 1 19 2011-08-02 Patrick Gansterer <paroga@webkit.org> 2 20
Note: See TracChangeset
for help on using the changeset viewer.